Re: [PATCH v2] tcp: splice as many packets as possible at once

David Miller
2009-02-04T00:46:46Z

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: Tue, 3 Feb 2009 22:24:31 +1100

> Not necessarily. Even if the hardware can only DMA into contiguous
> memory, we can always allocate a sufficient number of contiguous
> buffers initially, and then always copy them into fragmented skbs
> at receive time. This way the contiguous buffers are never
> depleted.
>
> Granted copying sucks, but this is really because the underlying
> hardware is badly designed. Also copying is way better than
> not receiving at all due to memory fragmentation.

This scheme sounds very reasonable.