Thread (32 messages) flat view 32 messages, 3 authors, 2017-02-19

RE: [PATCH net-next 11/13] net: ethernet: aquantia: Refactoring buffers copying.

From: David Laight <hidden>
Date: 2017-02-16 13:10:17

From: Lino Sanfilippo
Sent: 15 February 2017 21:31
...
Well, you should really try to avoid copying the tx buffers _at all_.
E.g. by passing self->buff_ring to aq_ring_tx_append_buffs() instead of
the temporary array.
Copying can help for horridly fragmented frames or when iommu (etc)
setup is expensive.
At least some ethernet hardware has minimum fragment lengths.

However, if the frame doesn't fit at the end - just copy to the front.

Something should ensure the copies are aligned (you may want gaps
between frames.)

I presume there is a 'space in buffer' check elsewhere.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help