offloading ip checksum calculation to the NIC

kamal kc kamal_ckk at yahoo.com
Thu Feb 2 22:20:49 PST 2006


dear all,

i want to offload ip checksum calculation to the NIC.
I use 3Com 3c905B-TX NIC cards.

I found that there are variables::>>

        int	csum_flags;		/* flags regarding checksum */
	int	csum_data;		/* data field used by csum routines */

in struct pkthdr in mbuf.h.

also i found the various flags for the hardware checksumming.
but i don't know the exact steps i need to do 
in order to offload checksumming. 

should i set the csum_flags to CSUM_IP and point
csum_data to the start of the ip header ??

it would be a great help if anybody
could tell me what do i need to do ?

thanks,
kamal




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-net mailing list