| Message ID | 20251029130523.1642847-1-rkudurumalla@marvell.com (mailing list archive) |
|---|---|
| State | New |
| Delegated to: | Thomas Monjalon |
| Headers | |
| Series | [v1,1/1] net: fix inner L2 length for GRE and NVGRE | |
Checks
| Context | Check | Description |
|---|---|---|
| ci/checkpatch | success | coding style OK |
| ci/loongarch-compilation | success | Compilation OK |
| ci/loongarch-unit-testing | success | Unit Testing PASS |
| ci/Intel-compilation | success | Compilation OK |
| ci/iol-mellanox-Functional | success | Functional Testing PASS |
| ci/iol-marvell-Functional | success | Functional Testing PASS |
| ci/iol-mellanox-Performance | success | Performance Testing PASS |
| ci/iol-broadcom-Performance | success | Performance Testing PASS |
| ci/github-robot: build | fail | github build: failed |
| ci/iol-sample-apps-testing | warning | Testing issues |
| ci/iol-intel-Performance | success | Performance Testing PASS |
| ci/intel-Testing | success | Testing PASS |
| ci/iol-intel-Functional | success | Functional Testing PASS |
| ci/iol-compile-amd64-testing | warning | Testing issues |
| ci/intel-Functional | success | Functional PASS |
| ci/iol-unit-amd64-testing | success | Testing PASS |
| ci/aws-unit-testing | success | Unit Testing PASS |
| ci/iol-compile-arm64-testing | success | Testing PASS |
| ci/iol-unit-arm64-testing | success | Testing PASS |
Commit Message
diff --git a/lib/net/rte_net.c b/lib/net/rte_net.c index 44fb6c0f51..5476d2a573 100644 --- a/lib/net/rte_net.c +++ b/lib/net/rte_net.c @@ -480,6 +480,9 @@ uint32_t rte_net_get_ptype(const struct rte_mbuf *m, return pkt_type; pkt_type |= ptype_tunnel_without_udp(&proto, m, &off); + if ((pkt_type & RTE_PTYPE_TUNNEL_MASK) == RTE_PTYPE_TUNNEL_GRE || + (pkt_type & RTE_PTYPE_TUNNEL_MASK) == RTE_PTYPE_TUNNEL_NVGRE) + hdr_lens->inner_l2_len += sizeof(struct rte_gre_hdr); hdr_lens->tunnel_len = off - prev_off; }