From: Wei Zhao Date: Tue, 3 Apr 2018 06:09:08 +0000 (+0800) Subject: net/i40e: fix flow RSS queue region X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=55bde0b880820104a410bbb324a982f59b59d25a;p=dpdk.git 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 --- 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,