<div dir="ltr">Hi Long,<div>I could not get to this in the past month. I have resumed netvsc work today. I shall get back to you as soon as possible.</div><div>Regards,</div><div>Nandini</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 16, 2024 at 12:26 PM Long Li <<a href="mailto:longli@microsoft.com">longli@microsoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-33677505605865813">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="m_-33677505605865813WordSection1">
<p class="MsoNormal">Hi Nandini,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Do you have any luck with UDP traffic?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Long<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Nandini Rangaswamy <<a href="mailto:nandini.rangaswamy@broadcom.com" target="_blank">nandini.rangaswamy@broadcom.com</a>>
<br>
<b>Sent:</b> Thursday, September 19, 2024 9:46 AM<br>
<b>To:</b> Long Li <<a href="mailto:longli@microsoft.com" target="_blank">longli@microsoft.com</a>><br>
<b>Cc:</b> Stephen Hemminger <<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>>; <a href="mailto:users@dpdk.org" target="_blank">users@dpdk.org</a><br>
<b>Subject:</b> Re: Netvsc vs Failsafe Performance<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Long Li,<u></u><u></u></p>
<div>
<p class="MsoNormal">I shall test with UDP traffic and get back to you.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Nandini<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Sep 17, 2024 at 2:57<span style="font-family:Arial,sans-serif"> </span>PM Long Li <<a href="mailto:longli@microsoft.com" target="_blank">longli@microsoft.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">Thank you!<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Are you seeing problems with UDP traffic on the receive side? If everything works fine for you, I’m sending a patch.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Long<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Nandini Rangaswamy <<a href="mailto:nandini.rangaswamy@broadcom.com" target="_blank">nandini.rangaswamy@broadcom.com</a>>
<br>
<b>Sent:</b> Monday, September 16, 2024 3:58 PM<br>
<b>To:</b> Long Li <<a href="mailto:longli@microsoft.com" target="_blank">longli@microsoft.com</a>><br>
<b>Cc:</b> Stephen Hemminger <<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>>;
<a href="mailto:users@dpdk.org" target="_blank">users@dpdk.org</a><br>
<b>Subject:</b> Re: Netvsc vs Failsafe Performance</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Hi Long,<u></u><u></u></p>
<div>
<p class="MsoNormal">I tested this patch and it works as expected. The UDP IPv6 RSS offload bit is set and my dpdk app is able to successfully configure the netvsc port.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Nandini<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Sep 13, 2024 at 2:29<span style="font-family:Arial,sans-serif"> </span>PM Nandini Rangaswamy <<a href="mailto:nandini.rangaswamy@broadcom.com" target="_blank">nandini.rangaswamy@broadcom.com</a>>
wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<p class="MsoNormal">Thanks Long Li.<u></u><u></u></p>
<div>
<p class="MsoNormal">I shall try this patch and get back to you.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Sep 13, 2024 at 2:27<span style="font-family:Arial,sans-serif"> </span>PM Long Li <<a href="mailto:longli@microsoft.com" target="_blank">longli@microsoft.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt">It’s a bug in netvsc for not reporting RTE_ETH_RSS_NONFRAG_IPV6_UDP. It is implied as in the case in IPV4.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">Can you try the following patch?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">diff --git a/drivers/net/netvsc/hn_rndis.c b/drivers/net/netvsc/hn_rndis.c</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">index 1ba75ee804..fe1f04d8d9 100644</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">--- a/drivers/net/netvsc/hn_rndis.c</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">+++ b/drivers/net/netvsc/hn_rndis.c</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">@@ -717,6 +717,7 @@ hn_rndis_query_rsscaps(struct hn_data *hv,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> if (caps.ndis_caps & NDIS_RSS_CAP_IPV6)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> hv->rss_offloads |= RTE_ETH_RSS_IPV6</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> | RTE_ETH_RSS_NONFRAG_IPV6_TCP;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt">+ | RTE_ETH_RSS_NONFRAG_IPV6_UDP;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> if (caps.ndis_caps & NDIS_RSS_CAP_IPV6_EX)</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> hv->rss_offloads |= RTE_ETH_RSS_IPV6_EX</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> | RTE_ETH_RSS_IPV6_TCP_EX;</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span><u></u><u></u></p>
<div style="border-top:none;border-right:none;border-bottom:none;border-left:1.5pt solid blue;padding:0in 0in 0in 4pt">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Nandini Rangaswamy <<a href="mailto:nandini.rangaswamy@broadcom.com" target="_blank">nandini.rangaswamy@broadcom.com</a>>
<br>
<b>Sent:</b> Friday, September 13, 2024 10:56 AM<br>
<b>To:</b> Stephen Hemminger <<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>><br>
<b>Cc:</b> Long Li <<a href="mailto:longli@microsoft.com" target="_blank">longli@microsoft.com</a>>;
<a href="mailto:users@dpdk.org" target="_blank">users@dpdk.org</a><br>
<b>Subject:</b> Re: Netvsc vs Failsafe Performance</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Thanks for clarifying the question regarding Txd size Stephen.<u></u><u></u></p>
<div>
<p class="MsoNormal">I tested out the RSS for TCP UDP.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">As suggested , I set the TCP flags alone in RSS conf and configured the netvsc port.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">struct</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> rte_eth_conf conf
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">{</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.intr_conf </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">{</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.lsc </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">!</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">dpdk</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">.</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">lsc_intr_disable</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">&&</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">!</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">dpdk_if</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">-></span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">lsc_intr_disable</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">&&</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">!!(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">dev</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">-></span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">data</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">-></span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">dev_flags</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">&</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_DEV_INTR_LSC</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">),</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">},</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.rxmode </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">{</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.mq_mode </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_MQ_RX_RSS</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.offloads </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_RX_OFFLOAD_VLAN_STRIP
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">|</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">|</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">RTE_ETH_RX_OFFLOAD_RSS_HASH
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">|</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_RX_OFFLOAD_UDP_CKSUM</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">},</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">rx_adv_conf</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">.</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">rss_conf</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">{</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.rss_hf </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_RSS_NONFRAG_IPV4_TCP
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">|</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_RSS_NONFRAG_IPV6_TCP</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.rss_key </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> conf_rss_key</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.rss_key_len
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> rss_key_len</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">},</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.txmode </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">{</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.offloads </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_TX_OFFLOAD_UDP_CKSUM
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">|</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> RTE_ETH_TX_OFFLOAD_IPV4_CKSUM</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">},</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">};</span><u></u><u></u></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<b><span style="font-size:9pt;font-family:"Courier New";color:rgb(170,55,49)">rte_eth_dev_configure</span></b><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)"><netvsc
port></span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">num_rxq</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">num_txq</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">&</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">conf</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">);
</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">uint8_t</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">rss_key_temp</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">[</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(156,93,39)">64</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">];</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)">struct</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> rte_eth_rss_conf rss_conf
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">{</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.rss_key </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> rss_key_temp</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">.rss_key_len
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">sizeof(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">rss_key_temp</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">),</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">};</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">ret </span>
<span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">=</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><b><span style="font-size:9pt;font-family:"Courier New";color:rgb(170,55,49)">rte_eth_dev_rss_hash_conf_get</span></b><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">(</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(122,62,157)"><VF
port></span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">,</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">&</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)">rss_conf</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(119,119,119)">);</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(51,51,51)"> </span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Now the VF port RSS offloads show only TCP flags set and not UDP. I assumed that even the UDP flags might be set. Is this expected ?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Nandini <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">On Thu, Sep 12, 2024 at 4:09<span style="font-family:Arial,sans-serif"> </span>PM Stephen Hemminger <<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>>
wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin:5pt 0in 5pt 4.8pt">
<p class="MsoNormal">On Thu, 12 Sep 2024 13:47:37 -0700<br>
Nandini Rangaswamy <<a href="mailto:nandini.rangaswamy@broadcom.com" target="_blank">nandini.rangaswamy@broadcom.com</a>> wrote:<br>
<br>
> Thanks for your response Long Li.<br>
> I see with netvsc the maximum number of Tx descriptors is restricted to<br>
> 4096 whereas the number of Rx descriptors is restricted to 8192.<br>
> But, for failsafe PMD , we see that both the number of Txd and Rxd is<br>
> restricted to 8192.<br>
> How is netvsc PMD giving the same performance as failsafe PMD ?<br>
> <br>
> Regards<br>
<br>
I think the limits there were somewhat arbitrary chose with netvsc.<br>
Don't remember a hard reason that would block larger sizes.<br>
<br>
<br>
Having really big rings won't help performance (i.e BufferBloat) and<br>
could a lot of memory consumption. When all heavy data traffic goes through<br>
the VF and that ring is different. Only DoS attacks should be impacted<br>
by rx/tx descriptor limits in the netvsc device. The linux driver actually<br>
has much smaller buffer.<u></u><u></u></p>
</blockquote>
</div>
</div>
<p class="MsoNormal"><br>
<span style="font-size:10pt;color:black;background:white">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is
addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to
the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete
it from your computer, and destroy any printed copy of it.</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<span style="font-size:10pt;color:black;background:white">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is
addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to
the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete
it from your computer, and destroy any printed copy of it.</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
<span style="font-size:10pt;color:black;background:white">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is
addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to
the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete
it from your computer, and destroy any printed copy of it.</span><u></u><u></u></p>
</div>
</div>
</div>
</div></blockquote></div>
<br>
<span style="background-color:rgb(255,255,255)"><font size="2">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.</font></span>