DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] L4 rx checksum verification in tun/tap pmd
@ 2020-12-16 15:58 Jacques Fourie
  0 siblings, 0 replies; only message in thread
From: Jacques Fourie @ 2020-12-16 15:58 UTC (permalink / raw)
  To: dev

Hi,

I noticed that TCP rx checksum verification fails when using the tap pmd.
In this particular case packets with correct checksums will always have
PKT_RX_L4_CKSUM_BAD set in ol_flags. The rte_ipv4_udptcp_cksum() and
rte_ipv6_udptcp_cksum() functions already return the ones complement of the
checksum, unlike rte_raw_cksum(), which is used for the L3 checksum
verification. After changing the code to use rte_ipv4_udptcp_cksum()
instead of ~rte_ipv4_udptcp_cksum() the problem seems to be fixed. The same
thing goes for rte_ipv6_udptcp_cksum().

Regards,
Jacques

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

only message in thread, other threads:[~2020-12-16 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 15:58 [dpdk-dev] L4 rx checksum verification in tun/tap pmd Jacques Fourie

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).