Skip to content

mvpp2: per-cpu buffers

Matteo Croce lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mvpp2: refactor BM pool functionsdrivers/net/ethernet/marvell/mvpp2/mvpp2_main.c+16 -190 replies
2/2mvpp2: percpu buffersdrivers/net/ethernet/marvell/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c+222 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.21.0