Skip to contentSkip to conversation

net/mlx5: fix modify port action validation

PATCH In review Dmitry Kozlyuk 2 participants 2 messages Mar 2, 2022 – Mar 7, 2022 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

Fixes 72a944dba163 ("net/mlx5: fix header modify action validation")
---
 drivers/net/mlx5/mlx5_flow.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow.h +1 -1
index e510921a3f..e3af8fcdf9 100644
@@ -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
#1 lore raw

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 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.

Quoted 5 lines
Fixes 72a944dba163 ("net/mlx5: fix header modify action validation")

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh