Thread (20 messages) 20 messages, 5 authors, 2021-04-08

Re: [dpdk-dev] [PATCH v1] net/ixgbe: adjust error for UDP with zero checksum

From: David Marchand <hidden>
Date: 2021-02-02 12:54:11

On Tue, Feb 2, 2021 at 1:42 PM Wang, Haiyue [off-list ref] wrote:
quoted
If the driver/hw can't report a valid checksum hint, it should
announce it does not know if the checksum is valid (neither bad, nor
good).

So the workaround for udp packets (on this hw model) would be to
report PKT_RX_L4_CKSUM_UNKNOWN.
The sw application will then have to recompute the checksum itself if needed.
Make sense, but not sure the vector path can handle this more easily. Will try.
Refining this a bit.
It looks like hw correctly reports "good" checksums, so maybe instead
report PKT_RX_L4_CKSUM_UNKNOWN only for reports of "bad" checksums
from the hw?

-- 
David Marchand
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help