[lkml]   [2000]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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