net/hns3: fix RSS configuration on empty RSS type
authorLijun Ou <oulijun@huawei.com>
Tue, 14 Jul 2020 06:16:09 +0000 (14:16 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jul 2020 16:21:21 +0000 (18:21 +0200)
commit2bc3b95deb4145d42bb4159b70d8a7a0451badde
tree6a2817787d67d98a0327dc5b6ced87193e595511
parent8973d7c4ca12eb05cd1560405d4aae210efc0734
net/hns3: fix RSS configuration on empty RSS type

According to the definition of RSS types of action attributes from
testpmd, the driver will not disable RSS but instead requests the
unspecified "best-effort" settings when upper application call
rte_flow_create API function to create flow using empty RSS types.

As a result, here use the default RSS types when RSS types is empty.

Fixes: c37ca66f2b27 ("net/hns3: support RSS")
Cc: stable@dpdk.org
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_flow.c