<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:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Aptos;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">It’s a bug in netvsc for not reporting RTE_ETH_RSS_NONFRAG_IPV6_UDP. It is implied as in the case in IPV4.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Can you try the following patch?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">diff --git a/drivers/net/netvsc/hn_rndis.c b/drivers/net/netvsc/hn_rndis.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">index 1ba75ee804..fe1f04d8d9 100644<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">--- a/drivers/net/netvsc/hn_rndis.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+++ b/drivers/net/netvsc/hn_rndis.c<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">@@ -717,6 +717,7 @@ hn_rndis_query_rsscaps(struct hn_data *hv,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">        if (caps.ndis_caps & NDIS_RSS_CAP_IPV6)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">                hv->rss_offloads |= RTE_ETH_RSS_IPV6<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">                        | RTE_ETH_RSS_NONFRAG_IPV6_TCP;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">+                       | RTE_ETH_RSS_NONFRAG_IPV6_UDP;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">        if (caps.ndis_caps & NDIS_RSS_CAP_IPV6_EX)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">                hv->rss_offloads |= RTE_ETH_RSS_IPV6_EX<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">                        | RTE_ETH_RSS_IPV6_TCP_EX;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Nandini Rangaswamy <nandini.rangaswamy@broadcom.com>
<br>
<b>Sent:</b> Friday, September 13, 2024 10:56 AM<br>
<b>To:</b> Stephen Hemminger <stephen@networkplumber.org><br>
<b>Cc:</b> Long Li <longli@microsoft.com>; users@dpdk.org<br>
<b>Subject:</b> Re: Netvsc vs Failsafe Performance<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Thanks for clarifying the question regarding Txd size Stephen.<o:p></o:p></p>
<div>
<p class="MsoNormal">I tested out the RSS for TCP UDP.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">As suggested , I set the TCP flags alone in RSS conf and configured the netvsc port.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">struct</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> rte_eth_conf conf
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">{</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.intr_conf
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">{</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.lsc
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">!</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">dpdk</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">.</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">lsc_intr_disable</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">&&</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">!</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">dpdk_if</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">-></span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">lsc_intr_disable</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">&&</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">!!(</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">dev</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">-></span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">data</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">-></span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">dev_flags</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">&</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_DEV_INTR_LSC</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">),</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">},</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.rxmode
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">{</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.mq_mode
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_MQ_RX_RSS</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.offloads
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_RX_OFFLOAD_VLAN_STRIP
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">|</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">|</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">RTE_ETH_RX_OFFLOAD_RSS_HASH
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">|</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_RX_OFFLOAD_UDP_CKSUM</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">},</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">rx_adv_conf</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">.</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">rss_conf</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">{</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.rss_hf
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_RSS_NONFRAG_IPV4_TCP
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">|</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_RSS_NONFRAG_IPV6_TCP</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.rss_key
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> conf_rss_key</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.rss_key_len
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> rss_key_len</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">},</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.txmode
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">{</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.offloads
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_TX_OFFLOAD_UDP_CKSUM
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">|</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> RTE_ETH_TX_OFFLOAD_IPV4_CKSUM</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">},</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">};</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><b><span style="font-size:9.0pt;font-family:"Courier New";color:#AA3731">rte_eth_dev_configure</span></b><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">(</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D"><netvsc
 port></span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">num_rxq</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">num_txq</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">&</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">conf</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">);
</span><span style="font-size:9.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">uint8_t</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">rss_key_temp</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">[</span><span style="font-size:9.0pt;font-family:"Courier New";color:#9C5D27">64</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">];</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D">struct</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> rte_eth_rss_conf rss_conf
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">{</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.rss_key
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"> rss_key_temp</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">.rss_key_len
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">sizeof(</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">rss_key_temp</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">),</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">};</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">ret
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">=</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><b><span style="font-size:9.0pt;font-family:"Courier New";color:#AA3731">rte_eth_dev_rss_hash_conf_get</span></b><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">(</span><span style="font-size:9.0pt;font-family:"Courier New";color:#7A3E9D"><VF
 port></span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">,</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">
</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">&</span><span style="font-size:9.0pt;font-family:"Courier New";color:#333333">rss_conf</span><span style="font-size:9.0pt;font-family:"Courier New";color:#777777">);</span><span style="font-size:9.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:whitesmoke"><span style="font-size:9.0pt;font-family:"Courier New";color:#333333"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></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 ?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Nandini <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<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.<o:p></o:p></p>
</blockquote>
</div>
</div>
<p class="MsoNormal"><br>
<span style="font-size:10.0pt;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><o:p></o:p></p>
</div>
</div>
</body>
</html>