summaryrefslogtreecommitdiffstats
path: root/samples/bpf/xdp_sample_pkts_kern.c
Commit message (Collapse)AuthorAgeFilesLines
* samples/bpf: Add xdp_sample_pkts exampleToke Høiland-Jørgensen2018-06-271-0/+66
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>