Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 2006 11:20:21 +0300
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        kamal kc <kamal_ckk@yahoo.com>
Cc:        freebsd <freebsd-net@FreeBSD.org>
Subject:   Re: offloading ip checksum calculation to the NIC
Message-ID:  <20060203082021.GL60276@FreeBSD.org>
In-Reply-To: <20060203062046.86880.qmail@web30011.mail.mud.yahoo.com>
References:  <20060203062046.86880.qmail@web30011.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 02, 2006 at 10:20:46PM -0800, kamal kc wrote:
k> i want to offload ip checksum calculation to the NIC.
k> I use 3Com 3c905B-TX NIC cards.
k> 
k> I found that there are variables::>>
k> 
k>         int	csum_flags;		/* flags regarding checksum */
k> 	int	csum_data;		/* data field used by csum routines */
k> 
k> in struct pkthdr in mbuf.h.
k> 
k> also i found the various flags for the hardware checksumming.
k> but i don't know the exact steps i need to do 
k> in order to offload checksumming. 
k> 
k> should i set the csum_flags to CSUM_IP and point
k> csum_data to the start of the ip header ??
k> 
k> it would be a great help if anybody
k> could tell me what do i need to do ?

afaik, the xl(4) driver already supports checksum calculation.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060203082021.GL60276>