summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Malov <ivan.malov@oktetlabs.ru>2018-10-11 15:51:13 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 20:35:29 +0200
commit662e382244fb29d8bf03113524a139541e10123f (patch)
tree23a1e70144b2e174392f266e93b3fb323394b61e
parent453e1d4baad9262391eaef15812ade9af1f15a3f (diff)
downloaddpdk-662e382244fb29d8bf03113524a139541e10123f.zip
dpdk-662e382244fb29d8bf03113524a139541e10123f.tar.gz
dpdk-662e382244fb29d8bf03113524a139541e10123f.tar.xz
net/sfc: allow to query RSS key and HF when RSS is disabled
If global RSS is not enabled in the multiqueue mode setting, it will not be possible to change RSS configuration. However, querying default RSS settings should be possible in any case since it may be needed by RTE flow API users to find out what RSS settings will be used by default for a flow rule with RSS action if custom RSS key and hash function choice are not specified. Fixes: 63ab5e0c8fda ("net/sfc: use zero RSS channels as disabled RSS indicator") Cc: stable@dpdk.org Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
-rw-r--r--drivers/net/sfc/sfc_ethdev.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c
index 00f0880..b2e17f2 100644
--- a/drivers/net/sfc/sfc_ethdev.c
+++ b/drivers/net/sfc/sfc_ethdev.c
@@ -1358,9 +1358,6 @@ sfc_dev_rss_hash_conf_get(struct rte_eth_dev *dev,
if (rss->context_type != EFX_RX_SCALE_EXCLUSIVE)
return -ENOTSUP;
- if (rss->channels == 0)
- return -EINVAL;
-
sfc_adapter_lock(sa);
/*