RE: Need some help with IP/TCP Checksum Offload

From: Ion Badulescu (ionut@cs.columbia.edu)
Date: Mon Feb 25 2002 - 11:22:37 EST


On Fri, 22 Feb 2002 harish.vasudeva@amd.com wrote:

> i tried setting the NETIF_F_SG flag, but the stack still gives the right checksum.

Correct, not all packets will use the zerocopy framework. Using sendfile
is one way of generating them; I believe NFS will also do zerocopy but
I haven't checked it.

> Now, i have this 1 more question. If @ all the stack does offload chksum
> to the hardware, how will the driver come to know about this? Is there a
> per packet indication from the stack asking the driver
> TO-DO/OR-NOT-TO-DO chksum offloading?

Yes: skb->ip_summed == CHECKSUM_HW says the hardware is expected to
generate the checksum.

Ion

-- 
  It is better to keep your mouth shut and be thought a fool,
            than to open it and remove all doubt.

- 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/



This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:14 EST