net/mlx5: allow jump to current group
Checks
Commit Message
In current implementation, jump action is allowed only if target
group is different than the current flow group.
Change jump action validation such that it allows jump to current group.
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
---
drivers/net/mlx5/mlx5_flow_dv.c | 7 -------
1 file changed, 7 deletions(-)
Comments
Hi Michael,
> -----Original Message-----
> From: Michael Baum <michaelba@nvidia.com>
> Sent: Monday, November 13, 2023 12:44 PM
> To: dev@dpdk.org
> Cc: Matan Azrad <matan@nvidia.com>; Raslan Darawsheh
> <rasland@nvidia.com>; Slava Ovsiienko <viacheslavo@nvidia.com>; Ori Kam
> <orika@nvidia.com>; Suanming Mou <suanmingm@nvidia.com>
> Subject: [PATCH] net/mlx5: allow jump to current group
I think this is a fix
>
> In current implementation, jump action is allowed only if target
> group is different than the current flow group.
>
> Change jump action validation such that it allows jump to current group.
also don't forget to add Fixes tag
You should have a Cc: stable@dpdk.org
Kindest regards
Raslan Darawsheh
@@ -5480,13 +5480,6 @@ flow_dv_validate_action_jump(struct rte_eth_dev *dev,
&grp_info, error);
if (ret)
return ret;
- if (attributes->group == target_group &&
- !(action_flags & (MLX5_FLOW_ACTION_TUNNEL_SET |
- MLX5_FLOW_ACTION_TUNNEL_MATCH)))
- return rte_flow_error_set(error, EINVAL,
- RTE_FLOW_ERROR_TYPE_ACTION, NULL,
- "target group must be other than"
- " the current flow group");
if (table == 0)
return rte_flow_error_set(error, EINVAL,
RTE_FLOW_ERROR_TYPE_ACTION_CONF,