net/mlx5: fix modify port action validation
PATCH 1/1 net/mlx5: fix modify port action validation
Certain flows containing a modify header action for an L4 port could be erroneously rejected as invalid, because this action was counted as consuming two HW actions, while it only requires one.
--- drivers/net/mlx5/mlx5_flow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow.h +1 -1
@@ -427,7 +427,7 @@ enum mlx5_feature_name {#define MLX5_ACT_NUM_MDF_IPV6 4#define MLX5_ACT_NUM_MDF_MAC 2#define MLX5_ACT_NUM_MDF_VID 1 -#define MLX5_ACT_NUM_MDF_PORT 2 +#define MLX5_ACT_NUM_MDF_PORT 1#define MLX5_ACT_NUM_MDF_TTL 1#define MLX5_ACT_NUM_DEC_TTL MLX5_ACT_NUM_MDF_TTL#define MLX5_ACT_NUM_MDF_TCPSEQ 1
Signature · 1 line
2.25.1
Hi,
Quoted 12 lines
-----Original Message-----
From: Dmitry Kozlyuk <[email protected]>
Sent: Wednesday, March 2, 2022 3:34 AM
To: [email protected]
Cc: [email protected]; Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>
Subject: [PATCH] net/mlx5: fix modify port action validationCertain flows containing a modify header action for an L4 port could be erroneously rejected as invalid, because this action was counted as consuming two HW actions, while it only requires one.
Quoted 5 lines
Fixes 72a944dba163 ("net/mlx5: fix header modify action validation")Signed-off-by Dmitry Kozlyuk <[email protected]>Acked-by Matan Azrad <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh