mbox series

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

Message ID 20190902102137.841-1-mcroce@redhat.com
Headers show
Series mvpp2: per-cpu buffers | expand

Message

Matteo Croce Sept. 2, 2019, 10:21 a.m. UTC
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(-)

Comments

David Miller Sept. 2, 2019, 7:08 p.m. UTC | #1
From: Matteo Croce <mcroce@redhat.com>
Date: Mon,  2 Sep 2019 12:21:35 +0200

> 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.

Series applied to net-next.