[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063D6719AE5E284EB5DD2968C1650D6DCFE68133@AcuExch.aculab.com>
Date: Thu, 16 Feb 2017 13:10:06 +0000
From: David Laight <David.Laight@...LAB.COM>
To: 'Lino Sanfilippo' <LinoSanfilippo@....de>,
Pavel Belous <Pavel.Belous@...antia.com>,
"David S . Miller" <davem@...emloft.net>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Simon Edelhaus <Simon.Edelhaus@...antia.com>,
Alexey Andriyanov <Alexey.Andriyanov@...antia.com>
Subject: RE: [PATCH net-next 11/13] net: ethernet: aquantia: Refactoring
buffers copying.
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
Powered by blists - more mailing lists