Skip to content

Commit

Permalink
app/testpmd: fix checksum engine with GTP on 32-bit
Browse files Browse the repository at this point in the history
[ upstream commit f7bfa1285fe943b5189a63bb1d427e823b7fcc20 ]

l2_len is not calculated correctly on 32-bit systems, resulting in
packet forwarding failure.

This patch fixes this issue by changing the l2_len calculation.

Fixes: dd827fa42a30 ("app/testpmd: fix GTP L2 length in checksum engine")

Signed-off-by: Shiyang He <shiyangx.he@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
  • Loading branch information
heshiyax authored and bluca committed Jul 13, 2023
1 parent d946766 commit b92c1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/test-pmd/csumonly.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ parse_gtp(struct rte_udp_hdr *udp_hdr,
info->l4_proto = 0;
}

info->l2_len += gtp_len + sizeof(udp_hdr);
info->l2_len += gtp_len + sizeof(*udp_hdr);
}

/* Parse a vxlan header */
Expand Down

0 comments on commit b92c1c4

Please sign in to comment.