netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] mvpp2: per-cpu buffers
@ 2019-09-02 10:21 Matteo Croce
  2019-09-02 10:21 ` [PATCH net-next 1/2] mvpp2: refactor BM pool functions Matteo Croce
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Matteo Croce @ 2019-09-02 10:21 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, Maxime Chevallier, Marcin Wojtas, Antoine Tenart,
	Stefan Chulski, Nadav Haklai, Lorenzo Bianconi, David S. Miller

This patchset workarounds an PP2 HW limitation which prevents to use
per-cpu rx buffers.
The first patch is just a refactor to prepare for the second one.
The second one allocates percpu buffers if the following conditions are met:
- CPU number is less or equal 4
- no port is using jumbo frames

If the following conditions are not met at load time, of jumbo frame is enabled
later on, the shared allocation is reverted.

Matteo Croce (2):
  mvpp2: refactor BM pool functions
  mvpp2: percpu buffers

 drivers/net/ethernet/marvell/mvpp2/mvpp2.h    |   4 +
 .../net/ethernet/marvell/mvpp2/mvpp2_main.c   | 272 +++++++++++++++---
 2 files changed, 235 insertions(+), 41 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-02 19:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-02 10:21 [PATCH net-next 0/2] mvpp2: per-cpu buffers Matteo Croce
2019-09-02 10:21 ` [PATCH net-next 1/2] mvpp2: refactor BM pool functions Matteo Croce
2019-09-02 10:21 ` [PATCH net-next 2/2] mvpp2: percpu buffers Matteo Croce
2019-09-02 19:08 ` [PATCH net-next 0/2] mvpp2: per-cpu buffers David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).