net/mlx5: fix gtp handling in header modify action
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.
--- drivers/net/mlx5/mlx5_flow_dv.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/mlx5/mlx5_flow_dv.c +1 -0
@@ -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
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 actionGTP 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")Signed-off-by Dariusz Sosnowski <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh