+4
−0
samples/bpf/xdp_sample_pkts_kern.c
0 → 100644
+66
−0
samples/bpf/xdp_sample_pkts_user.c
0 → 100644
+169
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Add an example program showing how to sample packets from XDP using the perf event buffer. The example userspace program just prints the ethernet header for every packet sampled. Reviewed-by:Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by:
Toke Høiland-Jørgensen <toke@toke.dk> Acked-by:
Song Liu <songliubraving@fb.com> Signed-off-by:
Daniel Borkmann <daniel@iogearbox.net>