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)
commit7e6897f95935973c3253fd756135b5ea58043dc8
treeb51f503250727273df277698fac760b6cdc26393
parent75ccbef6369e94ecac696a152a998a978d41376b
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