All of lore.kernel.org
 help / color / mirror / Atom feed
* Confused about ip_summed member in sk_buff
@ 2022-10-21  6:29 J.J. Mars
  2022-10-22 19:51 ` Cong Wang
  0 siblings, 1 reply; 5+ messages in thread
From: J.J. Mars @ 2022-10-21  6:29 UTC (permalink / raw)
  To: netdev

Hi everyone, I'm new here and I hope this mail won't disturb you :)

Recently I was working with something about ip_summed, and I'm really
confused about the question what does ip_summed exactly mean?
This member is defined with comment Driver fed us an IP checksum'. So
I guess it's about IP/L3 checksum status.
But the possible value of ip_summed like CHECKSUM_UNNECESSARY is about L4.

What confused me a lot is ip_summed seems to tell us the checksum of
IP/L3 layer is available from its name.
But it seems to tell us the checksum status of L4 layer from its value.

Besides, in ip_rcv() it seems the ip_summed is not used before
calculating the checksum of IP header.

So does ip_summed indicate the status of L3 checksum status or L4
checksum status?
If L4, why is it named like that?

Best regards, Mars

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

end of thread, other threads:[~2022-11-09  7:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-21  6:29 Confused about ip_summed member in sk_buff J.J. Mars
2022-10-22 19:51 ` Cong Wang
2022-11-08 12:32   ` J.J. Mars
2022-11-08 17:12     ` Edward Cree
2022-11-09  7:22       ` J.J. Mars

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.