[dpdk-dev] [PATCH v1] net/ice: fix wrong RSS hash update
Yang, Qiming
qiming.yang at intel.com
Wed Mar 3 07:46:45 CET 2021
> -----Original Message-----
> From: Wu, Wenjun1 <wenjun1.wu at intel.com>
> Sent: Tuesday, March 2, 2021 13:31
> To: dev at dpdk.org; Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>
> Cc: Wu, Wenjun1 <wenjun1.wu at intel.com>; stable at dpdk.org
> Subject: [PATCH v1] net/ice: fix wrong RSS hash update
>
> This patch removes redundant judgment statements to disable RSS when RSS
> hash function configured is not supported.
>
> Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config")
> Cc: stable at dpdk.org
>
> Signed-off-by: Wenjun Wu <wenjun1.wu at intel.com>
> ---
> drivers/net/ice/ice_ethdev.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index
> f43b2e0b2..a84b3d3c0 100644
> --- a/drivers/net/ice/ice_ethdev.c
> +++ b/drivers/net/ice/ice_ethdev.c
> @@ -4461,9 +4461,6 @@ ice_rss_hash_update(struct rte_eth_dev *dev,
> if (status)
> return status;
>
> - if (rss_conf->rss_hf == 0)
> - return 0;
> -
Why need to delete this code? It's a code clean to avoid to do more judgement in the next funxtion.
> /* RSS hash configuration */
> ice_rss_hash_set(pf, rss_conf->rss_hf);
>
> --
> 2.25.1
More information about the dev
mailing list