From 9add45331fbd897c5b6c452243d0184accdc25f9 Mon Sep 17 00:00:00 2001 From: Yijun Geng <1204565380@qq.com> Date: Mon, 13 May 2024 17:33:06 +0800 Subject: [PATCH] net/i40e: add gtp tunnel type in i40e_parse_tunneling_params i40e I40E_TX_OFFLOAD_MASK indicates that all tunnel types are supported, but gtp type is not considered in i40e_parse_tunneling_params(), tunneling parameter: L4TUNLEN is not set. Inner IP checksum calculation used the wrong L3 header offset, resulting in modifying the length field of the GTP header. Signed-off-by: Yijun Geng <1204565380@qq.com> --- drivers/net/i40e/i40e_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c index 5d25ab4d3a8..19d4cc5a283 100644 --- a/drivers/net/i40e/i40e_rxtx.c +++ b/drivers/net/i40e/i40e_rxtx.c @@ -274,6 +274,7 @@ i40e_parse_tunneling_params(uint64_t ol_flags, break; case RTE_MBUF_F_TX_TUNNEL_VXLAN: case RTE_MBUF_F_TX_TUNNEL_GENEVE: + case RTE_MBUF_F_TX_TUNNEL_GTP: *cd_tunneling |= I40E_TXD_CTX_UDP_TUNNELING; break; case RTE_MBUF_F_TX_TUNNEL_GRE: