diff options
author | Mariusz Dudek <mariuszx.dudek@intel.com> | 2020-12-03 10:05:46 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-12-03 10:37:59 -0800 |
commit | 3627d9702d789804a1f4c5a52eabdae810cd9def (patch) | |
tree | 9e772c8c66ed995fa862dbfa9f84423be9aea18f /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
parent | e459f49b4394e2630ea55d5ac7a49402686848fe (diff) |
samples/bpf: Sample application for eBPF load and socket creation split
Introduce a sample program to demonstrate the control and data
plane split. For the control plane part a new program called
xdpsock_ctrl_proc is introduced. For the data plane part, some code
was added to xdpsock_user.c to act as the data plane entity.
Application xdpsock_ctrl_proc works as control entity with sudo
privileges (CAP_SYS_ADMIN and CAP_NET_ADMIN are sufficient) and the
extended xdpsock as data plane entity with CAP_NET_RAW capability
only.
Usage example:
sudo ./samples/bpf/xdpsock_ctrl_proc -i <interface>
sudo ./samples/bpf/xdpsock -i <interface> -q <queue_id>
-n <interval> -N -l -R
Signed-off-by: Mariusz Dudek <mariuszx.dudek@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20201203090546.11976-3-mariuszx.dudek@intel.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions