Thread (15 messages) 15 messages, 5 authors, 2014-10-01

Re: How exactly does CHECKSUM_COMPLETE works?

flat view

From: David Miller <davem@davemloft.net>
Date: 2014-09-30 20:14:26

From: Eric Dumazet <redacted>
Date: Tue, 30 Sep 2014 12:37:12 -0700
On Tue, 2014-09-30 at 12:22 -0700, Eric Dumazet wrote:
quoted
On Tue, 2014-09-30 at 19:05 +0000, Yuval Mintz wrote:
quoted
Can you pinpoint me to what exactly in the code corrects NAPI_GRO_CB(skb)->csum
by negating the ipv4 part in the ones' complete checksum?

E.g., for ipv6 [in ipv6_gro_receive()] I can see that skb_gro_postpull_rcsum() is
called after pulling the ipv6 header [and before proceeding to the next protocol],
but I can't seem to find anything similar to this for ipv4 [in inet_gro_receive()].

IPv4 header is supposed to have a 0 checksum ;)
Or if you prefer :
Someone please submit this formally :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help