Skip to content
Commit c99f4a8c authored by Ilias Apalodimas's avatar Ilias Apalodimas Committed by Greg Kroah-Hartman
Browse files

net: netsec: Correct dma sync for XDP_TX frames



[ Upstream commit d9496f3e ]

bpf_xdp_adjust_head() can change the frame boundaries. Account for the
potential shift properly by calculating the new offset before
syncing the buffer to the device for XDP_TX

Fixes: ba2b2321 ("net: netsec: add XDP support")
Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 238ca641
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