[lkml]   [2001]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Need Info on Checksum Offloading
Date 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.038 / U:5.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site