From: Bharath Madhavan <bharath_madhavan@ivivity.com>
To: linux-kernel@vger.kernel.org
Cc: Bharath Madhavan <bharath_madhavan@ivivity.com>
Subject: Question on Partial Checksum in TCP/IP
Date: Mon, 4 Jun 2001 18:14:16 -0400 [thread overview]
Message-ID: <25369470B6F0D41194820002B328BDD20717B1@ATLOPS> (raw)
Hello all,
I am trying to understand a little bit about the TCP path in the
Linux kernel.
I saw that while we were even copying the user data into kernel space, we
were doing
the partial checksum of the data portion alone (as the TCP header is not yet
filled up) and storing
it in skb->csum.
Later on when we fill the header portion, we do the checksum of the header
and "add" it to the
already calculated checksum of the data. Here we check if the HW performs
the checksum
or not (skb->ip_summed == CHECKSUM_HW). I am looking into kernel ver 2.4
My question is, why is this check not performed when the data is copied
initially. Instead of
calling csum_and_copy_from_user, if we did a memcpy in the case when HW does
the checksum,
would'nt that be more efficient? Or have I overlooked something...
Thanks a lot
PS. Please CC responses to me also as I am not subscribed to the mailing
list. Thanks
Bharath
reply other threads:[~2001-06-04 22:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=25369470B6F0D41194820002B328BDD20717B1@ATLOPS \
--to=bharath_madhavan@ivivity.com \
--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®