[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190902102137.841-1-mcroce@redhat.com>
Date: Mon, 2 Sep 2019 12:21:35 +0200
From: Matteo Croce <mcroce@...hat.com>
To: netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Maxime Chevallier <maxime.chevallier@...tlin.com>,
Marcin Wojtas <mw@...ihalf.com>,
Antoine Tenart <antoine.tenart@...tlin.com>,
Stefan Chulski <stefanc@...vell.com>,
Nadav Haklai <nadavh@...vell.com>,
Lorenzo Bianconi <lorenzo@...nel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: [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(-)
--
2.21.0
Powered by blists - more mailing lists