Skip to content

Commit

Permalink
net/ice: fix RSS hash update
Browse files Browse the repository at this point in the history
[ upstream commit 04887b8 ]

This patch fixes the issue that the RSS does not update correctly
when the user sets it to none.

Fixes: 4717a12 ("net/ice: initialize and update RSS based on user config")

Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
zengzhichao233 authored and kevintraynor committed Oct 11, 2022
1 parent 85821d6 commit a991f64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ice/ice_ethdev.c
Expand Up @@ -4623,10 +4623,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);
Expand Down

0 comments on commit a991f64

Please sign in to comment.