[dpdk-dev] Bug in IPv4 header checksum computation?
Andrew Rybchenko
arybchenko at solarflare.com
Tue Apr 2 09:58:52 CEST 2019
Hi,
added more people in CC.
On 4/1/19 6:29 PM, N. Benes wrote:
> 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.
I agree that it looks like a bug in DPDK. RFC 791 says nothing about
avoid zero value for IPv4 checksum.
Andrew.
More information about the dev
mailing list