[PATCH v2] net/macb: Use non-coherent memory for rx buffers

David Laight David.Laight at ACULAB.COM
Wed Dec 5 10:22:14 EST 2012


> Well, for the 10/100 MACB interface, I am stuck with 128 Bytes buffers!
> So this use of pages seems sensible.

If you have dma coherent memory you can make the rx buffer space
be an array of short buffers referenced by adjacent ring entries
(possibly with the last one slightly short to allow for the
2 byte offset).
Then, when a big frame ends up in multiple buffers, you need
a maximum of two copies to extract the data.

	David






More information about the linux-arm-kernel mailing list