<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:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:11.0pt;
        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="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><br>
I have 2 pods running on same worker<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Pod1 send to pod2<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Pod2 receive with 4 bytes less at end of packet<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This problem happens only if the 2 nic are on the same pf,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If different pf, the problem doesn’t occurs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried with dpdk21 and dpdk22<br>
The code is using driver </span><span lang="en-IL">net_iavf</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="en-IL">nic e810c<br>
driver: ice</span><span lang="EN-US"><br>
</span>firmware-version: 4.00 0x800139bc 21.5.9<o:p></o:p></p>
<p class="MsoNormal">Who does the stripping? The dpdk code or the card? <br>
Why is is different behavior for same pf and different pf ?<br>
What should i change or check? <br>
<br>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_KEEP_CRC;   //Don't strip CRC<o:p></o:p></p>
<p class="MsoNormal">port_conf.rxmode.offloads &= pi_devInfo.rx_offload_capa;<o:p></o:p></p>
<p class="MsoNormal">int ret = rte_eth_dev_configure(pi_nPort, nRxQueues, nTxQueues, &port_conf);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">struct rte_eth_rxconf rx_conf;<o:p></o:p></p>
<p class="MsoNormal">rx_conf.offloads = RTE_ETH_RX_OFFLOAD_KEEP_CRC;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">            int ret = rte_eth_rx_queue_setup(<o:p></o:p></p>
<p class="MsoNormal">                pi_nPort,<o:p></o:p></p>
<p class="MsoNormal">                nQueue,<o:p></o:p></p>
<p class="MsoNormal">                nRxRingSize,<o:p></o:p></p>
<p class="MsoNormal">                socket,<o:p></o:p></p>
<p class="MsoNormal">                performanceMode?NULL:&rx_conf,<o:p></o:p></p>
<p class="MsoNormal">                pool);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>