Skip to contentSkip to conversation

net/ixgbe: fix RSS flow return error

PATCH New Wei Zhao 1 participant 1 message Oct 23, 2018 Network drivers

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix RSS flow return error

From: Zhao Wei <[email protected]>

If hash function is 0, it should disable RSS then return 0.

Fixes 518cc3927b13 ("net/ixgbe: move RSS to flow API")
---
 drivers/net/ixgbe/ixgbe_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_rxtx.c +1 -1
index ae21f04..ad9c46d 100644
@@ -5703,7 +5703,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 */
Signature · 1 line
2.7.5