Commit b6a7077c authored by Toke Høiland-Jørgensen's avatar Toke Høiland-Jørgensen Committed by Greg Kroah-Hartman
Browse files

xdp: Add xdp_do_redirect_frame() for pre-computed xdp_frames



[ Upstream commit 1372d34c ]

Add an xdp_do_redirect_frame() variant which supports pre-computed
xdp_frame structures. This will be used in bpf_prog_run() to avoid having
to write to the xdp_frame structure when the XDP program doesn't modify the
frame boundaries.

Signed-off-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220103150812.87914-6-toke@redhat.com


Stable-dep-of: 5bcf0dcb ("xdp: use flags field to disambiguate broadcast redirect")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a174aa99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment