Re: [RFC][PATCH] TTY flip buffer SMP changes

From: Theodore Ts'o
Date: Fri Oct 08 2004 - 10:03:41 EST


On Fri, Oct 08, 2004 at 01:51:36PM +0100, Alan Cox wrote:
> On Gwe, 2004-10-08 at 14:35, Paul Fulghum wrote:
> > It does seem to carry serious overhead (in relation
> > to ring buffers) for devices with small FIFOs.
>
> Thats one reason I wanted sk_buff like rather than sk_buff. I want
> to be able to recycle buffers back to drivers when the driver thinks
> its the right thing to do.

You can have the driver hang on to the sk_buff for several interrupts
until it decides to push the data to the line displine. So even if
the FIFO is small, we only have to allocate/deallocate the skbuff only
but rarely, unless someone really needs low_latency --- which should
be but rarely.

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