Messages in this thread | | | Subject | Re: Need Info on Checksum Offloading | From | Andi Kleen <> | Date | 15 Nov 2001 07:16:27 +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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |