Skip to content
Commit 275a9c72 authored by Camelia Groza's avatar Camelia Groza Committed by Jakub Kicinski
Browse files

dpaa_eth: reserve space for the xdp_frame under the A050385 erratum



When the erratum workaround is triggered, the newly created xdp_frame
structure is stored at the start of the newly allocated buffer. Avoid
the structure from being overwritten by explicitly reserving enough
space in the buffer for storing it.

Account for the fact that the structure's size might increase in time by
aligning the headroom to DPAA_FD_DATA_ALIGNMENT bytes, thus guaranteeing
the data's alignment.

Fixes: ae680bcb ("dpaa_eth: implement the A050385 erratum workaround for XDP")
Signed-off-by: default avatarCamelia Groza <camelia.groza@nxp.com>
Acked-by: default avatarMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Acked-by: default avatarMadalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8dc1c444
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment