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:Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by:
Alexei 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:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment