mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Need Info on Checksum Offloading
@ 2001-11-15  1:20 harish.vasudeva
  2001-11-15  1:41 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: harish.vasudeva @ 2001-11-15  1:20 UTC (permalink / raw)
  To: linux-kernel

Hi All,

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

thanx
HARISH V


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

* Re: Need Info on Checksum Offloading
  2001-11-15  1:20 Need Info on Checksum Offloading harish.vasudeva
@ 2001-11-15  1:41 ` Jeff Garzik
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2001-11-15  1:41 UTC (permalink / raw)
  To: harish.vasudeva; +Cc: linux-kernel

harish.vasudeva@amd.com wrote:
> 
> Hi All,
> 
>  Could any1 pls direct me wherein i could find some documentation about implementing checksum offloading for my ethernet LAN driver?


There is not good documentation.  Feel free to ask me questions, I am
the Linux network driver maintainer.

First, search the source code in linux/drivers/net/* for
NETIF_F_IP_CSUM, NETIF_F_HW_CSUM, skb->csum, and nr_frags.

Can I expect an ethernet driver submitted to me, soon?

	Jeff

-- 
Jeff Garzik      | Only so many songs can be sung
Building 1024    | with two lips, two lungs, and one tongue.
MandrakeSoft     |         - nomeansno


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

* Re: Need Info on Checksum Offloading
       [not found] <CB35231B9D59D311B18600508B0EDF2F0197A311@caexmta9.amd.com.suse.lists.linux.kernel>
@ 2001-11-15  6:16 ` Andi Kleen
  0 siblings, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2001-11-15  6:16 UTC (permalink / raw)
  To: harish.vasudeva; +Cc: linux-kernel

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

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

end of thread, other threads:[~2001-11-21 18:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-15  1:20 Need Info on Checksum Offloading harish.vasudeva
2001-11-15  1:41 ` Jeff Garzik
     [not found] <CB35231B9D59D311B18600508B0EDF2F0197A311@caexmta9.amd.com.suse.lists.linux.kernel>
2001-11-15  6:16 ` Andi Kleen

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®