summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-11-07 13:33:35 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-11-11 14:23:02 +0100
commitf78f747f41d04a35ceca630b68ff204b0a58534e (patch)
tree189babc94bc3f158fe79a462c46729d8940881bc /drivers/net/mlx5
parentdd3c774f6ffb446ede55037b69fd6862fd0fd40f (diff)
downloaddpdk-f78f747f41d04a35ceca630b68ff204b0a58534e.zip
dpdk-f78f747f41d04a35ceca630b68ff204b0a58534e.tar.gz
dpdk-f78f747f41d04a35ceca630b68ff204b0a58534e.tar.xz
net/mlx5: allow jump to group lower than current
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>
Diffstat (limited to 'drivers/net/mlx5')
-rw-r--r--drivers/net/mlx5/mlx5_flow_dv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c
index 9ca0ffe..3f3dad0 100644
--- a/drivers/net/mlx5/mlx5_flow_dv.c
+++ b/drivers/net/mlx5/mlx5_flow_dv.c
@@ -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;
}