DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/i40e: support GTP in tunnel parameters parsing
@ 2025-07-09  8:32 Yijun Geng
  0 siblings, 0 replies; only message in thread
From: Yijun Geng @ 2025-07-09  8:32 UTC (permalink / raw)
  To: bruce.richardson; +Cc: dev

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@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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-09  8:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-09  8:32 [PATCH] net/i40e: support GTP in tunnel parameters parsing Yijun Geng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).