net/i40e: fix RSS flow action parser
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 25 Jan 2018 05:10:33 +0000 (13:10 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
Parameter action_flag is not used correctly in i40e_flow_parse_rss_action.
Also change it from point type to value type since it is not an output
parameter.

Fixes: ecad87d22383 ("net/i40e: move RSS to flow API")

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Zhiyong Yang <zhiyong.yang@intel.com>
drivers/net/i40e/i40e_flow.c

index bc6eceb..34661c8 100644 (file)
@@ -4164,7 +4164,7 @@ static int
 i40e_flow_parse_rss_action(struct rte_eth_dev *dev,
                            const struct rte_flow_action *actions,
                            struct rte_flow_error *error,
-                           uint8_t *action_flag,
+                           uint8_t action_flag,
                            struct i40e_queue_regions *conf_info,
                            union i40e_filter_t *filter)
 {
@@ -4354,7 +4354,7 @@ i40e_parse_rss_filter(struct rte_eth_dev *dev,
                return ret;
 
        ret = i40e_flow_parse_rss_action(dev, actions, error,
-                                       &action_flag, &info, filter);
+                                       action_flag, &info, filter);
        if (ret)
                return ret;