commit | 1e54ad251a93a524f1a2950b1d65bc7437c57a53 | [log] [tgz] |
---|---|---|
author | Toke Høiland-Jørgensen <toke@toke.dk> | Mon Jun 25 14:25:02 2018 +0200 |
committer | Daniel Borkmann <daniel@iogearbox.net> | Wed Jun 27 11:01:03 2018 +0200 |
tree | 603c318ae2766a28976e694cf7a966002375777e | |
parent | 22adedd304668f0a2001284ddf225b49e9c05c64 [diff] |
samples/bpf: Add xdp_sample_pkts example 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>