aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/xdp_redirect_kern.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2021-08-21 05:50:02 +0530
committerAlexei Starovoitov <ast@kernel.org>2021-08-24 14:48:41 -0700
commit6e1051a54e3100df59dae01c24ff4a6d6027e303 (patch)
treeeee787590ef4dbb51d720afc15053619505580d0 /samples/bpf/xdp_redirect_kern.c
parentsamples: bpf: Convert xdp_monitor_kern.o to XDP samples helper (diff)
downloadlinux-dev-6e1051a54e3100df59dae01c24ff4a6d6027e303.tar.xz
linux-dev-6e1051a54e3100df59dae01c24ff4a6d6027e303.zip
samples: bpf: Convert xdp_monitor to XDP samples helper
Use the libbpf skeleton facility and other utilities provided by XDP samples helper. A lot of the code in xdp_monitor and xdp_redirect_cpu has been moved to the xdp_sample_user.o helper, so we remove the duplicate functions here that are no longer needed. Thanks to BPF skeleton, we no longer depend on order of tracepoints to uninstall them on startup. Instead, the sample mask is used to install the needed tracepoints. Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210821002010.845777-15-memxor@gmail.com
Diffstat (limited to 'samples/bpf/xdp_redirect_kern.c')
0 files changed, 0 insertions, 0 deletions