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

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git