]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, xdp: Start using the BPF dispatcher for XDP
authorBjörn Töpel <bjorn.topel@intel.com>
Fri, 13 Dec 2019 17:51:09 +0000 (18:51 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 21:09:32 +0000 (13:09 -0800)
commit680e94b0088b76311a6b1376d984aba75b9cb728
treeb51f503250727273df277698fac760b6cdc26393
parentb62b6d833d3a233af87d61e6ad7deb05fcfdbf39
bpf, xdp: Start using the BPF dispatcher for XDP

This commit adds a BPF dispatcher for XDP. The dispatcher is updated
from the XDP control-path, dev_xdp_install(), and used when an XDP
program is run via bpf_prog_run_xdp().

Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191213175112.30208-4-bjorn.topel@gmail.com
include/linux/bpf.h
include/linux/filter.h
kernel/bpf/syscall.c
net/core/dev.c
net/core/filter.c