<html 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=us-ascii">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">The check is at an additional location. I agree, and pointed out to him offline earlier, that a check for the h/w version should be used with the additional code, too.<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"> Jochen<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>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Ferruh Yigit <ferruh.yigit@amd.com><br>
<b>Date: </b>Friday, January 13, 2023 at 8:24 AM<br>
<b>To: </b>Raghav Roy <royra@vmware.com>, dev@dpdk.org <dev@dpdk.org><br>
<b>Cc: </b>Jochen Behrens <jbehrens@vmware.com><br>
<b>Subject: </b>Re: [PATCH] net/vmxnet3: added checks for TCP for RSS Configuration<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">!! External Email<br>
<br>
On 12/22/2022 8:24 AM, Raghav Roy wrote:<br>
> Added checks for TCP in vmxnet3_rss_configure()<br>
> This check ensures the hashType for RSS, when enabled<br>
> just for UDP, is not NONE.<br>
><br>
<br>
Mandatory hash functions for v4 already added in the past:<br>
Commit 52ec00fd1474 ("net/vmxnet3: fix RSS setting on v4")<br>
<br>
Now this commit adds it for all versions, why it was fine in the past<br>
but it is needed now?<br>
<br>
@Jochen, can you please help reviewing this patch?<br>
<br>
<br>
> Signed-off-by: Raghav Roy <royra@vmware.com><br>
> ---<br>
> drivers/net/vmxnet3/vmxnet3_rxtx.c | 9 ++++++++-<br>
> 1 file changed, 8 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c b/drivers/net/vmxnet3/vmxnet3_rxtx.c<br>
> index a875ffec07..e8407c9b2e 100644<br>
> --- a/drivers/net/vmxnet3/vmxnet3_rxtx.c<br>
> +++ b/drivers/net/vmxnet3/vmxnet3_rxtx.c<br>
> @@ -1412,6 +1412,13 @@ vmxnet3_rss_configure(struct rte_eth_dev *dev)<br>
> dev_rss_conf = hw->rss_conf;<br>
> port_rss_conf = &dev->data->dev_conf.rx_adv_conf.rss_conf;<br>
><br>
> + if ((port_rss_conf->rss_hf & VMXNET3_MANDATORY_V4_RSS) !=<br>
> + VMXNET3_MANDATORY_V4_RSS) {<br>
> + PMD_INIT_LOG(WARNING, "RSS: IPv4/6 TCP is required for vmxnet3 RSS, "<br>
> + "automatically setting it");<br>
> + port_rss_conf->rss_hf |= VMXNET3_MANDATORY_V4_RSS;<br>
> + }<br>
> +<br>
<br>
`<br>
#define VMXNET3_MANDATORY_V4_RSS ( \<br>
RTE_ETH_RSS_NONFRAG_IPV4_TCP | \<br>
RTE_ETH_RSS_NONFRAG_IPV6_TCP)<br>
`<br>
<br>
Can you please describe why IPv4/6 TCP hash function is required for driver?<br>
And what is the impact, I mean what is the observed behavior without<br>
this patch, if RSS is failing without this change patch needs to be fix<br>
patch and please describe since when RSS is failing.<br>
<br>
> /* loading hashFunc */<br>
> dev_rss_conf->hashFunc = VMXNET3_RSS_HASH_FUNC_TOEPLITZ;<br>
> /* loading hashKeySize */<br>
> @@ -1419,6 +1426,7 @@ vmxnet3_rss_configure(struct rte_eth_dev *dev)<br>
> /* loading indTableSize: Must not exceed VMXNET3_RSS_MAX_IND_TABLE_SIZE (128)*/<br>
> dev_rss_conf->indTableSize = (uint16_t)((MAX_RX_QUEUES(hw)) * 4);<br>
><br>
> +<br>
> if (port_rss_conf->rss_key == NULL) {<br>
> /* Default hash key */<br>
> port_rss_conf->rss_key = rss_intel_key;<br>
> @@ -1446,6 +1454,5 @@ vmxnet3_rss_configure(struct rte_eth_dev *dev)<br>
> dev_rss_conf->hashType |= VMXNET3_RSS_HASH_TYPE_IPV6;<br>
> if (rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_TCP)<br>
> dev_rss_conf->hashType |= VMXNET3_RSS_HASH_TYPE_TCP_IPV6;<br>
> -<br>
<br>
Please drop unrelated/unimportant syntax changes.<br>
<br>
> return VMXNET3_SUCCESS;<br>
> }<br>
<br>
<br>
!! External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.<o:p></o:p></span></p>
</div>
</div>
</body>
</html>