diff options
author | Mariusz Dudek <[email protected]> | 2020-12-03 10:05:46 +0100 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-12-03 10:37:59 -0800 |
commit | 3627d9702d789804a1f4c5a52eabdae810cd9def (patch) | |
tree | 9e772c8c66ed995fa862dbfa9f84423be9aea18f /tools/perf/scripts/python/check-perf-trace.py | |
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 <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions