Skip to contentSkip to conversation

net/mlx5: fix gtp handling in header modify action

PATCH In review Dariusz Sosnowski 2 participants 2 messages Apr 13, 2022 – Apr 21, 2022 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix gtp handling in header modify action

GTP items were ignored during conversion of modify header actions. This caused modify TTL action to generate a wrong modify header command when tunnel and inner headers used different IP versions.

This patch adds GTP item handling to modify header action conversion.

Fixes 04233f36c712 ("net/mlx5: fix layer type in header modify action")
---
 drivers/net/mlx5/mlx5_flow_dv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/mlx5/mlx5_flow_dv.c +1 -0
index 1e9bd63635..da2ddd58cd 100644
@@ -162,6 +162,7 @@ flow_dv_attr_init(const struct rte_flow_item *item, union flow_dv_attr *attr,
 		case RTE_FLOW_ITEM_TYPE_VXLAN_GPE:
 		case RTE_FLOW_ITEM_TYPE_GENEVE:
 		case RTE_FLOW_ITEM_TYPE_MPLS:
+		case RTE_FLOW_ITEM_TYPE_GTP:
 			if (tunnel_decap)
 				attr->attr = 0;
 			break;
Signature · 1 line
2.25.1
#1 lore raw

Hi,

Quoted 13 lines

-----Original Message-----
From: Dariusz Sosnowski <[email protected]>
Sent: Wednesday, April 13, 2022 2:19 PM
To: Matan Azrad <[email protected]>; Slava Ovsiienko <[email protected]>; Suanming Mou <[email protected]>
Cc: [email protected]; Suanming Mou <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: fix gtp handling in header modify action

GTP items were ignored during conversion of modify header actions. This caused modify TTL action to generate a wrong modify header command when tunnel and inner headers used different IP versions.

Quoted 8 lines

This patch adds GTP item handling to modify header action conversion.

Fixes 04233f36c712 ("net/mlx5: fix layer type in header modify action")

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh