dpaa_eth: update the buffer layout for non-A050385 erratum scenarios
authorCamelia Groza <camelia.groza@nxp.com>
Mon, 2 Nov 2020 18:34:35 +0000 (20:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 2 Nov 2020 19:21:31 +0000 (11:21 -0800)
commitacef159a0cb2a978d62b641e2366a33ad1d5afef
tree016bd6ac39a168762abf89d0b8d4544096b76b31
parent04a55c944f151b3149b78beff5ff406faa84485d
dpaa_eth: update the buffer layout for non-A050385 erratum scenarios

Impose a larger RX private data area only when the A050385 erratum is
present on the hardware. A smaller buffer size is sufficient in all
other scenarios. This enables a wider range of linear Jumbo frame
sizes in non-erratum scenarios, instead of turning to multi
buffer Scatter/Gather frames. The maximum linear frame size is
increased by 128 bytes for non-erratum arm64 platforms.

Cleanup the hardware annotations header defines in the process.

Fixes: 3c68b8fffb48 ("dpaa_eth: FMan erratum A050385 workaround")
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c