[PATCH] net/ice: fix RSS hash update
zhichaox.zeng at intel.com
zhichaox.zeng at intel.com
Thu Aug 4 11:32:32 CEST 2022
From: Zhichao Zeng <zhichaox.zeng at intel.com>
This patch fixes the issue that the RSS does not update correctly
when the user sets it to none.
Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config")
Cc: stable at dpdk.org
Signed-off-by: Zhichao Zeng <zhichaox.zeng at intel.com>
---
drivers/net/ice/ice_ethdev.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index b2300790ae..587b01cf23 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -4670,10 +4670,8 @@ 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);
--
2.25.1
More information about the dev
mailing list