From: Zhichao Zeng <[email protected]>
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: [email protected]
Signed-off-by: Zhichao Zeng <[email protected]>
---
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