net/i40e: fix flow RSS queue region
authorWei Zhao <wei.zhao1@intel.com>
Tue, 3 Apr 2018 06:09:08 +0000 (14:09 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:41:44 +0000 (00:41 +0200)
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 <wei.zhao1@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_flow.c

index 79e05c2..0a569c2 100644 (file)
@@ -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,