netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problem in driver network code
@ 2003-11-07  8:38 francois donzet
  2003-11-07 17:15 ` Rask Ingemann Lambertsen
  0 siblings, 1 reply; 4+ messages in thread
From: francois donzet @ 2003-11-07  8:38 UTC (permalink / raw)
  To: netdev


Hi all

I am writing my own ethernet driver, and i have a
little question on checksum offloading :

I am trying to understand the role of skb->csum. I've
read some code, and see that it is filled (for example
in e100 code) by the sum of all words excepting the
ethernet II header.

The fact is, on an input path, if CHECKSUM_HW is set,
TCP uses skb->csum to verify the complete checksum
(adding the pseudo header one).

It seems to me that there is a problem ;). If i store
in skb->csum a sum of all words of the packet data, it
 will be unusable by tcp (the skb->csum doesn't
contain the checksum of tcpheader plus data only, as
the ipheader is part of the packet when the sum is
computed)

What do i miss ? I think the skb->csum MUST at one
point contain only a sum on tcpheader+data.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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

end of thread, other threads:[~2003-11-13 21:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-07  8:38 problem in driver network code francois donzet
2003-11-07 17:15 ` Rask Ingemann Lambertsen
2003-11-10  8:14   ` francois donzet
2003-11-13 21:48     ` hw checksum acceleration (Was: problem in driver network code) Rask Ingemann Lambertsen

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