From: Wenjun Wu Date: Fri, 5 Mar 2021 06:03:24 +0000 (+0800) Subject: net/ice: fix RSS hash update X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=962fa026889d83f5f0a6880a98d050e0c3e0f6b9;p=dpdk.git net/ice: fix RSS hash update This patch change judgment statements to disable RSS for pf when users need to disable RSS or RSS hash function configured is not supported. Fixes: 4717a12cfaf1 ("net/ice: initialize and update RSS based on user config") Cc: stable@dpdk.org Signed-off-by: Wenjun Wu Acked-by: Qi Zhang --- diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 9c9b84a938..5a1190d50e 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -4457,8 +4457,10 @@ 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);