From: Wei Zhao Date: Tue, 23 Oct 2018 03:38:10 +0000 (+0800) Subject: net/ixgbe: fix RSS flow error return X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6e8110cca64f69814ccb493efb5471f6e948ba44;p=dpdk.git net/ixgbe: fix RSS flow error return If hash function is 0, it should disable RSS then return 0. Fixes: 518cc3927b13 ("net/ixgbe: move RSS to flow API") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Tested-by: Yuan Peng Acked-by: Qi Zhang --- diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c index 8609f41958..9e2fbba3e2 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.c +++ b/drivers/net/ixgbe/ixgbe_rxtx.c @@ -5702,7 +5702,7 @@ ixgbe_config_rss_filter(struct rte_eth_dev *dev, */ if ((rss_conf.rss_hf & IXGBE_RSS_OFFLOAD_ALL) == 0) { ixgbe_rss_disable(dev); - return -EINVAL; + return 0; } if (rss_conf.rss_key == NULL) rss_conf.rss_key = rss_intel_key; /* Default hash key */