lkml.org 
[lkml]   [2002]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: Need some help with IP/TCP Checksum Offload
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/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.037 / U:2.988 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site