]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:38:56 +0000 (12:38 +0100)
commitc4b98f3c1ce96893c5e9bc0abd06ce5b7b52d7c9
tree92c6f2f14e6013af34a65904b0a58e013f8dabb4
parentb18ec4a9634d510bf70df3393ec27e1b52ca5329
dpaa_eth: update the buffer layout for non-A050385 erratum scenarios

[ Upstream commit acef159a0cb2a978d62b641e2366a33ad1d5afef ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c