net/ice: fix wrong RSS hash update
A message that is not in the archive (sent off-list or not yet received): 20210303075648.12399-1
PATCH v3 1/2 net/ice: fix wrong RSS hash update
This patch change judgment statements to disable RSS for pf when users need to disable RSS or RSS hash function configured is not supported.
---
v2: do pf->rss_hf = 0 when rss_conf->rss_hf == 0 instead of direct removal to avoid unnecessary judgment.
v3: fix the same issue for both pf and vf.
--- drivers/net/ice/ice_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ice/ice_ethdev.c +3 -1
@@ -4461,8 +4461,10 @@ ice_rss_hash_update(struct rte_eth_dev *dev,if (status)return status; -if (rss_conf->rss_hf ==0 ) +if (rss_conf->rss_hf ==0 ) { + pf->rss_hf =0 ;return 0 ; + }/* RSS hash configuration */ ice_rss_hash_set (pf, rss_conf->rss_hf);
Signature · 1 line
2.25.1
Quoted 10 lines
-----Original Message-----
From: Wu, Wenjun1 <[email protected]>
Sent: Friday, March 5, 2021 2:03 PM
To: [email protected]; Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>
Cc: Wu, Wenjun1 <[email protected]>; [email protected]
Subject: [PATCH v3 1/2] net/ice: fix wrong RSS hash update
Quoted 7 lines
This patch change judgment statements to disable RSS for pf when users need to disable RSS or RSS hash function configured is not supported.
Fixes 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config")Signed-off-by Wenjun Wu <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
PATCH v3 2/2 net/iavf: fix wrong RSS hash update
In reply to a message not in the archiveThis patch change judgment statements to disable RSS for vf when users need to disable RSS or RSS hash function configured is not supported.
---
v3: fix the same issue for both pf and vf.
--- drivers/net/iavf/iavf_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/iavf/iavf_ethdev.c +3 -1
@@ -1250,8 +1250,10 @@ iavf_dev_rss_hash_update(struct rte_eth_dev *dev,if (ret)return ret; -if (rss_conf->rss_hf ==0 ) +if (rss_conf->rss_hf ==0 ) { + vf->rss_hf =0 ;return 0 ; + }if (vf->vf_res->vf_cap_flags &VIRTCHNL_VF_OFFLOAD_ADV_RSS_PF ) {/* Clear existing RSS. */
Signature · 1 line
2.25.1
Re: [dpdk-dev] [dpdk-stable] [PATCH v3 2/2] net/iavf: fix wrong RSS hash update
Quoted 9 lines · Wenjun Wu
This patch change judgment statements to disable RSS for vf when users need to disable RSS or RSS hash function configured is not supported.
Fixes 95f2f0e9fc2a ("net/iavf: improve default RSS")Signed-off-by Wenjun Wu <[email protected]>
for record,
1/2 merged to next-net-intel, but there is v4 for iavf one and this version is not merged.