[PATCH] net/i40e: support GTP in tunnel parameters parsing
Yijun Geng
1204565380 at qq.com
Wed Jul 9 10:32:14 CEST 2025
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. During TX checksum offloading,
the incorrect L3 header offset was used when calculating the inner IP
checksum, resulting in modifying the length field of the GTP header.
Signed-off-by: Yijun Geng <1204565380 at qq.com>
---
drivers/net/intel/i40e/i40e_rxtx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/intel/i40e/i40e_rxtx.c b/drivers/net/intel/i40e/i40e_rxtx.c
index aba3c11ee5..d59d81474e 100644
--- a/drivers/net/intel/i40e/i40e_rxtx.c
+++ b/drivers/net/intel/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:
--
2.45.2.windows.1
More information about the dev
mailing list