Merge branch 'mvpp2-per-cpu-buffers'
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 Sep 2019 19:07:46 +0000 (12:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Sep 2019 19:07:46 +0000 (12:07 -0700)
commit67538eb5c00f08d7fe27f1bb703098b17302bdc0
tree8c79108cdd29d552009e4d09acc23d9e1be51e02
parent4ba0ebbc6cdecb9fad7c551a3d97b172ebc7b2fa
parent7d04b0b13b1175ce0c4bdc77f1278c1f120f874f
Merge branch 'mvpp2-per-cpu-buffers'

Matteo Croce says:

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

Signed-off-by: David S. Miller <davem@davemloft.net>