Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 21 Nov 2001 13:32:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 21 Nov 2001 13:32:50 -0500 Received: from ns.suse.de ([213.95.15.193]:51984 "HELO Cantor.suse.de") by vger.kernel.org with SMTP id ; Wed, 21 Nov 2001 13:32:35 -0500 To: harish.vasudeva@amd.com Cc: linux-kernel@vger.kernel.org Subject: Re: Need Info on Checksum Offloading In-Reply-To: From: Andi Kleen Date: 15 Nov 2001 07:16:27 +0100 In-Reply-To: harish.vasudeva@amd.com's message of "15 Nov 2001 02:25:09 +0100" Message-ID: Lines: 16 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/