net/ice: fix RSS hash update
Checks
Commit Message
From: Zhichao Zeng <zhichaox.zeng@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@dpdk.org
Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
---
drivers/net/ice/ice_ethdev.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Comments
> -----Original Message-----
> From: Zeng, ZhichaoX <zhichaox.zeng@intel.com>
> Sent: Thursday, August 4, 2022 5:33 PM
> To: dev@dpdk.org
> Cc: stable@dpdk.org; Yang, Qiming <qiming.yang@intel.com>; Zhou, YidingX
> <yidingx.zhou@intel.com>; Zeng, ZhichaoX <zhichaox.zeng@intel.com>;
> Zhang, Qi Z <qi.z.zhang@intel.com>; Junyu Jiang <junyux.jiang@intel.com>
> Subject: [PATCH] net/ice: fix RSS hash update
>
> From: Zhichao Zeng <zhichaox.zeng@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@dpdk.org
>
> Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi
@@ -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);