From: Dariusz Sosnowski Date: Wed, 13 Apr 2022 11:18:31 +0000 (+0000) Subject: net/mlx5: fix GTP handling in header modify action X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=26f22fa64e9fd66fbdba560c177ea5c9baacba5c;p=dpdk.git 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") Cc: stable@dpdk.org Signed-off-by: Dariusz Sosnowski Acked-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 1e9bd63635..da2ddd58cd 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -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;