]> git.baikalelectronics.ru Git - kernel.git/commit
xdp: Add xdp_do_redirect_frame() for pre-computed xdp_frames
authorToke Høiland-Jørgensen <toke@redhat.com>
Mon, 3 Jan 2022 15:08:10 +0000 (16:08 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Jan 2022 03:46:32 +0000 (19:46 -0800)
commit1d7d568c73a2b43ab8a2e4894133ecb7bb46f573
tree8bbf0d70bbeb10765d30dd3e284dbbeab56ce584
parentb796ad4af2adb71bd820ad44382766eb9e6be202
xdp: Add xdp_do_redirect_frame() for pre-computed xdp_frames

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
include/linux/filter.h
net/core/filter.c