DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Bug in IPv4 header checksum computation?
@ 2019-04-01 15:29 N. Benes
  2019-04-01 15:29 ` N. Benes
  2019-04-02  7:58 ` Andrew Rybchenko
  0 siblings, 2 replies; 6+ messages in thread
From: N. Benes @ 2019-04-01 15:29 UTC (permalink / raw)
  To: dev

Hi,

I wrote to the users list a bit more a week ago concerning the IPv4
Header Checksum computation and received no comments on it yet:

https://mails.dpdk.org/archives/users/2019-March/004021.html
https://mails.dpdk.org/archives/users/2019-March/004022.html

I have the impression that the current implementation wrongly does a
conditional final inversion of the computed sum. This is correct for
e.g. UDP, but I think it is not for an IPv4 Header (header checksum is
not optional).

If it is a bug, this could result in a surprisingly high number of
invalid/dropped IPv4 packets, when the checksum is calculated manually
via the DPDK API (not NIC-offloaded) and the IPv4 header has an
appropriate combination of values e.g. the IP Identification field.

Cheers!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-02  8:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-01 15:29 [dpdk-dev] Bug in IPv4 header checksum computation? N. Benes
2019-04-01 15:29 ` N. Benes
2019-04-02  7:58 ` Andrew Rybchenko
2019-04-02  7:58   ` Andrew Rybchenko
2019-04-02  8:46   ` Olivier Matz
2019-04-02  8:46     ` Olivier Matz

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