From 55bde0b880820104a410bbb324a982f59b59d25a Mon Sep 17 00:00:00 2001 From: Wei Zhao Date: Tue, 3 Apr 2018 14:09:08 +0800 Subject: [PATCH] net/i40e: fix flow RSS queue region Queue region comparison error in configuration parameters. Fixes: ecad87d22383 ("net/i40e: move RSS to flow API") Cc: stable@dpdk.org Signed-off-by: Wei Zhao Tested-by: Yuan Peng Acked-by: Qi Zhang --- drivers/net/i40e/i40e_flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c index 79e05c2cc6..0a569c2b2f 100644 --- a/drivers/net/i40e/i40e_flow.c +++ b/drivers/net/i40e/i40e_flow.c @@ -4239,7 +4239,7 @@ i40e_flow_parse_rss_action(struct rte_eth_dev *dev, } if (rss_info->num < rss->num || - rss_info->queue[0] < rss->queue[0] || + rss->queue[0] < rss_info->queue[0] || (rss->queue[0] + rss->num > rss_info->num + rss_info->queue[0])) { rte_flow_error_set(error, EINVAL, -- 2.20.1