From: Benjamin LaHaise <bcrl@redhat.com>
To: harish.vasudeva@amd.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Need some help with IP/TCP Checksum Offload
Date: Fri, 22 Feb 2002 18:52:22 -0500 [thread overview]
Message-ID: <20020222185222.B16169@redhat.com> (raw)
In-Reply-To: <CB35231B9D59D311B18600508B0EDF2F04F280E6@caexmta9.amd.com>
In-Reply-To: <CB35231B9D59D311B18600508B0EDF2F04F280E6@caexmta9.amd.com>; from harish.vasudeva@amd.com on Fri, Feb 22, 2002 at 02:57:22PM -0800
On Fri, Feb 22, 2002 at 02:57:22PM -0800, harish.vasudeva@amd.com wrote:
>
> Then, in my start_xmit( ) routine, i am parsing for the right
> headers & when i get the IP/TCP header, i print out the checksum
> & it is already the right checksum. When does the OS/Protocol
> offload this task? Am i missing something here?
The network stack generates checksums for packets while copying,
so the checksum offload feature is only used for packets that are
not copied. The easiest way to generate packets of this nature
is to use the sendfile() syscall to transmit data from the page
cache directly onto the wire. If you need a couple of test
programs I can forward a few to you offline. Cheers,
-ben
next prev parent reply other threads:[~2002-02-22 23:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-22 22:57 Need some help with IP/TCP Checksum Offload harish.vasudeva
2002-02-22 23:52 ` Benjamin LaHaise [this message]
2002-02-23 0:00 ` Ion Badulescu
2002-02-23 7:34 ` Andi Kleen
2002-02-24 17:48 ` Marek Zawadzki
-- strict thread matches above, loose matches on Subject: below --
2002-02-23 0:56 harish.vasudeva
2002-02-25 16:22 ` Ion Badulescu
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=20020222185222.B16169@redhat.com \
--to=bcrl@redhat.com \
--cc=harish.vasudeva@amd.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 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.