[PATCH 2/2] app/testpmd: fix the IPv6 extension offset
Mingjin Ye
mingjinx.ye at intel.com
Wed Nov 5 03:47:24 CET 2025
The skip ipv6 extension must be offset after the IPv6 header.
Fixes: 76730c7b9b5a ("app/testpmd: use packet type parsing API")
Cc: stable at dpdk.org
Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>
---
app/test-pmd/csumonly.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index d355dbd8c0..4b24bde190 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -559,6 +559,7 @@ parse_l4_proto(const struct rte_mbuf *m, uint32_t off, uint32_t ptype)
if ((ptype & RTE_PTYPE_INNER_L3_MASK) ==
RTE_PTYPE_INNER_L3_IPV6_EXT) {
+ off += sizeof(struct rte_ipv6_hdr);
ret = rte_net_skip_ip6_ext(ip6h->proto, m, &off, &frag);
if (ret < 0)
return 0;
--
2.25.1
More information about the stable
mailing list