mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: harish.vasudeva@amd.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Need Info on Checksum Offloading
Date: 15 Nov 2001 07:16:27 +0100	[thread overview]
Message-ID: <p731yj07e4k.fsf@amdsim2.suse.de> (raw)
In-Reply-To: <CB35231B9D59D311B18600508B0EDF2F0197A311@caexmta9.amd.com.suse.lists.linux.kernel>
In-Reply-To: harish.vasudeva@amd.com's message of "15 Nov 2001 02:25:09 +0100"

harish.vasudeva@amd.com writes:

> Hi All,
> 
>  Could any1 pls direct me wherein i could find some documentation about implementing checksum offloading for my ethernet LAN driver?

include/linux/skbuff.h has a big fat comment describing checksums handling.
Just read it.

For RX checksums you just set ip_summed of the incoming skb 
to CHECKSUM_UNNCESSARY (you did a complete check of the checksum;
not recommended as you're unlikely to support all weird protocols) or 
CHECKSUM_HW (you put a checksum of the TCP/UDP data area minus pseudo header
and ip header into skb->csum) or CHECKSUM_NONE for sw checksum.

-Andi

       reply	other threads:[~2001-11-21 18:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CB35231B9D59D311B18600508B0EDF2F0197A311@caexmta9.amd.com.suse.lists.linux.kernel>
2001-11-15  6:16 ` Andi Kleen [this message]
2001-11-15  1:20 harish.vasudeva
2001-11-15  1:41 ` Jeff Garzik

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=p731yj07e4k.fsf@amdsim2.suse.de \
    --to=ak@suse.de \
    --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 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®