Re: TCP zero-copy

From: Andi Kleen (ak@muc.de)
Date: Sun Aug 05 2001 - 19:32:36 EST


In article <3B6A7B96.1591.241743@localhost>,
"" <simon@baydel.com> writes:

> I have written a driver for an Intel ixf1002 chip, which has some
> surrounding HW, and is capable of checksumming and processing
> dma in fragments. Is there any information on what changes I
> would have to make to the driver to support zerocopy/checksum ?

The driver has to set dev->features to its checksum capabilities (see skbuff.h
for more details) and implement them. It should also be able to process
skbs with multiple skb fragments in hard_start_xmit for true zero copy;
in this case set NETIF_F_SG and also NETIF_F_HIGHDMA if it supports 64bit
addresses. When NETIF_F_SG and NETIF_F_IP_CSUM or NETIFI_F_HW_CSUM are set
the stack will do zero copy IO on TX with sendfile.

-Andi

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



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:36 EST