Merge branch 'dpaa_eth-a050385-erratum-workaround-fixes-under-xdp'
authorJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 03:58:35 +0000 (19:58 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 03:58:36 +0000 (19:58 -0800)
commitfb6221a2013ff7612c61b25bf92c757d6b3abd65
tree921600642c1f3405543cf6caf5d4ebe145923ea0
parent8dc1c444df193701910f5e80b5d4caaf705a8fb0
parent0a9946cca1a30b7236a86757da9df2222eb73ee0
Merge branch 'dpaa_eth-a050385-erratum-workaround-fixes-under-xdp'

Camelia Groza says:

====================
dpaa_eth: A050385 erratum workaround fixes under XDP

This series addresses issue with the current workaround for the A050385
erratum in XDP scenarios.

The first patch makes sure the xdp_frame structure stored at the start of
new buffers isn't overwritten.

The second patch decreases the required data alignment value, thus
preventing unnecessary realignments.

The third patch moves the data in place to align it, instead of allocating
a new buffer for each frame that breaks the alignment rules, thus bringing
an up to 40% performance increase. With this change, the impact of the
erratum workaround is reduced in many cases to a single digit decrease, and
to lower double digits in single flow scenarios.

Changes in v2:
- guarantee enough tailroom is available for the shared_info in 1/3
====================

Link: https://lore.kernel.org/r/cover.1612456902.git.camelia.groza@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>