Skip to contentSkip to conversation

net/mlx5: fix flex item macro collision

PATCH In review Gregory Etelson 2 participants 2 messages Nov 11, 2021 – Nov 14, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix flex item macro collision

Flex item macro definition values duplicated existing connection tracking values.

The patch provides new values for flex item macros.

Fixes a23e9b6e3ee9 ("net/mlx5: handle flex item in flows")
---
 drivers/net/mlx5/mlx5_flow.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/mlx5/mlx5_flow.h +3 -3
index 696d294ca5..1de2f2edb0 100644
@@ -181,9 +181,9 @@ enum mlx5_feature_name {
 #define MLX5_FLOW_LAYER_ASO_CT (UINT64_C(1) << 36)
 
 /* Flex item */
-#define MLX5_FLOW_ITEM_OUTER_FLEX (UINT64_C(1) << 36)
-#define MLX5_FLOW_ITEM_INNER_FLEX (UINT64_C(1) << 37)
-#define MLX5_FLOW_ITEM_FLEX_TUNNEL (UINT64_C(1) << 38)
+#define MLX5_FLOW_ITEM_OUTER_FLEX (UINT64_C(1) << 37)
+#define MLX5_FLOW_ITEM_INNER_FLEX (UINT64_C(1) << 38)
+#define MLX5_FLOW_ITEM_FLEX_TUNNEL (UINT64_C(1) << 39)
 
 /* Outer Masks. */
 #define MLX5_FLOW_LAYER_OUTER_L3 \
Signature · 1 line
2.33.1
#1 lore raw

Hi,

Quoted 11 lines

-----Original Message-----
From: Gregory Etelson <[email protected]>
Sent: Thursday, November 11, 2021 6:23 PM
To: [email protected]; Gregory Etelson <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: Matan Azrad <[email protected]>
Subject: [PATCH] net/mlx5: fix flex item macro collision

Flex item macro definition values duplicated existing connection tracking values.

Quoted 6 lines

The patch provides new values for flex item macros.

Fixes a23e9b6e3ee9 ("net/mlx5: handle flex item in flows")

Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh