<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Open Sans";}
/* Style Definitions */
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.uioutputtext
        {mso-style-name:uioutputtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-IL" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p style="margin:0cm;background:white"><span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">I am using Mellanox Technologies MT27800 Family [ConnectX-5], using dpdk
</span></span><span class="uioutputtext"><span lang="EN-US" style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">19 with
</span></span><span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">multi rx queue with rss port_conf.rx_adv_conf.rss_conf.rss_hf</span></span><span class="uioutputtext"><span lang="EN-US" style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">=(</span></span><span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">ETH_RSS_IP
 | ETH_RSS_UDP | ETH_RSS_TCP</span></span><span class="uioutputtext"><span lang="EN-US" style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">)</span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="margin:0cm;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">I analyze traffic and need all packet of same session to arrive to the same process ( session for now can be ip+port)</span></span><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="margin:0cm;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">So Packet that have the same ip + port arrive to the same queue.</span></span><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="margin:0cm;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">But If some packet are ip fragmented, packet arrive to different process. It is a problem!</span></span><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="margin:0cm;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">How can i calculate the hash value in the c++ code, like it is done in the card, so i can reassemble packets and send them to the same process like the
 non fragmented packets</span></span><span class="uioutputtext"><span lang="EN-US" style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333">?</span></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333"><o:p></o:p></span></p>
<p style="margin:0cm;background:white;box-sizing: border-box;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;text-align:start;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span class="uioutputtext"><span style="font-size:10.0pt;font-family:"Open Sans",sans-serif;color:#333333"> </span></span><span lang="en-IL" style="mso-fareast-language:EN-US"><o:p></o:p></span></p>
</div>
</body>
</html>