lkml.org 
[lkml]   [2000]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: zero-copy TCP
On Sun, Sep 03, 2000 at 10:18:50AM +0200, Ingo Molnar wrote:
>
> On 2 Sep 2000, Jes Sorensen wrote:
>
> > You can't DMA directly from a file cache page unless you have a
> > network card that does scatter/gather DMA and surprise surprise,
> > 80-90% of the cards on the market don't support this. [...]
>
> exactly. The TUX patch solves this by copying 'multi-fragment skbs' into a
> temporary single-fragment skb, if the card doesnt support scatter-gather,
> 64-bit DMA. This way the copying is delayed as much as possible, to the
> point where we queue the packet to the network device.

I did the same for fragment RX some months ago (simple fragment lists that
were copy-checksummed to user space). Overall it is probably better to use
a kiovec, because that can be more easily used in nfsd and sendfile.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.240 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site