Skip to content

Commit

Permalink
net/mlx5: allow jump to group lower than current
Browse files Browse the repository at this point in the history
In current implementation, jump action is allowed only if target
group is higher than the current flow group,

This patch updates function flow_dv_validate_action_jump() to allow
jump action if target group is higher or lower than the current flow
group.
Target group equal to current flow group is still rejected.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
  • Loading branch information
dekelp authored and Ferruh Yigit committed Nov 11, 2019
1 parent dd3c774 commit f78f747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/mlx5/mlx5_flow_dv.c
Original file line number Diff line number Diff line change
Expand Up @@ -3255,10 +3255,10 @@ flow_dv_validate_action_jump(const struct rte_flow_action *action,
return rte_flow_error_set(error, EINVAL,
RTE_FLOW_ERROR_TYPE_ATTR_GROUP, NULL,
"target group index out of range");
if (attributes->group >= target_group)
if (attributes->group == target_group)
return rte_flow_error_set(error, EINVAL,
RTE_FLOW_ERROR_TYPE_ACTION, NULL,
"target group must be higher than"
"target group must be other than"
" the current flow group");
return 0;
}
Expand Down

0 comments on commit f78f747

Please sign in to comment.