Skip to content

Commit

Permalink
app/testpmd: fix IPv6 tunnel packet checksum error
Browse files Browse the repository at this point in the history
In checksum forwarding mode, the checksum of tunnel packet calculated
incorrectly when outer header is IPv6.

This patch fixes the issue by setting L4 checksum flag.

Fixes: daa02b5 ("mbuf: add namespace to offload flags")
Cc: stable@dpdk.org

Signed-off-by: Shiyang He <shiyangx.he@intel.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
heshiyax authored and ovsrobot committed May 30, 2023
1 parent c9df59b commit c229bdc
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 @@ -582,7 +582,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
else
ipv4_hdr->hdr_checksum = rte_ipv4_cksum(ipv4_hdr);
} else
ol_flags |= RTE_MBUF_F_TX_OUTER_IPV6;
ol_flags |= RTE_MBUF_F_TX_OUTER_IPV6 | RTE_MBUF_F_TX_L4_MASK;

if (info->outer_l4_proto != IPPROTO_UDP)
return ol_flags;
Expand Down

0 comments on commit c229bdc

Please sign in to comment.