mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "francois donzet" <fdonzet@yahoo.fr>
To: linux-kernel@vger.kernel.org
Subject: checksum offloading
Date: Fri, 7 Nov 2003 17:40:33 +0100 (CET)	[thread overview]
Message-ID: <20031107164033.19095.qmail@web25205.mail.ukl.yahoo.com> (raw)

Hi, please answer to my mail (not subscribed)
 
 i've posted this on netdev, and get no reply. I try
there :

It is about tcp checksum offloading :

in my understanding of the process, if the device
supports checksum offloading :

- an incoming packet is handled by the driver
networking code associated to the ethernet card (for
example)

1) the checksum is hardware computed. But in the case
of e100 for example, skb->csum is filled with a sum
covering the entire packet

2) then the packet passes through ip layer, checksum
is verified (not using skb->csum)

3) the packet comes to tcp layer, skb->csum is
extracted and used to compute (folding with the pseudo
header checksum) the final checksum

4) if the packet is incorrect, drop it.

You see the problem is between 1) and 2). In my
understanding, skb->csum is used by tcp, but as
skb->csum as been filled with a sum on the entire
packet content as seen by netif_rx() (that is what is
indicated in skbuff.h by yourself), there is a problem
because tcp only needs the sum on tcpheader+data no ?
no the entire sum computed by the hardware.

Before reading the code, i thought that the TCP
checksum was computed by hardware. (not a sum on
ipheader+tcpheader+data).

Thanks

please answer to my mail (not subscribed

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

             reply	other threads:[~2003-11-07 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07 16:40 francois donzet [this message]
2003-11-10 11:29 francois donzet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031107164033.19095.qmail@web25205.mail.ukl.yahoo.com \
    --to=fdonzet@yahoo.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®