ethdev: fix RSS update when RSS is disabled
authorHuisong Li <lihuisong@huawei.com>
Wed, 6 Apr 2022 06:57:00 +0000 (14:57 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 12 May 2022 13:49:57 +0000 (15:49 +0200)
commit93e1ea6dfa99dea359b8d66123576a395c2c0acd
tree9a4675aa61c8199ba8a0e8eeefa31dd8d0775236
parentbfd0b54dc84f06183c8a13f75539f0f1dacb3c3e
ethdev: fix RSS update when RSS is disabled

The RTE_ETH_MQ_RX_RSS_FLAG flag is a switch to enable RSS. If the flag
is not set in dev_configure, RSS will be not configured and enabled.
However, RSS hash and reta can still be configured by ethdev ops to
enable RSS if the flag isn't set. The behavior is inconsistent.

Fixes: 99a2dd955fba ("lib: remove librte_ prefix from directory names")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
lib/ethdev/rte_ethdev.c