[PATCH net-next 0/2] mvpp2: per-cpu buffers

From: Matteo Croce
Date: Mon Sep 02 2019 - 06:22:28 EST


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