net/ixgbe: fix UDP zero checksum on x86
authorHaiyue Wang <haiyue.wang@intel.com>
Thu, 4 Feb 2021 14:39:48 +0000 (22:39 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Feb 2021 20:49:00 +0000 (21:49 +0100)
commit9a40edb599d76f7f9d116bb2f91b23c082b5f154
tree3b4c38838eb5ba97a870b6ce3935d1b7f85f5ccd
parent8a8c4760a1a05e522fb08aff95228d658d10c013
net/ixgbe: fix UDP zero checksum on x86

There is an 82599 errata that UDP frames with a zero checksum are
incorrectly marked as checksum invalid by the hardware.  This was
leading to misleading PKT_RX_L4_CKSUM_BAD flag.

This patch changes the bad UDP checksum to PKT_RX_L4_CKSUM_UNKNOWN,
so the software application will then have to recompute the checksum
itself if needed.

Bugzilla ID: 629
Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Reported-by: Paolo Valerio <pvalerio@redhat.com>
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: Paolo Valerio <pvalerio@redhat.com>
doc/guides/nics/ixgbe.rst
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/ixgbe/ixgbe_rxtx.h
drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c