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: NJakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: NToke Høiland-Jørgensen <toke@toke.dk> Acked-by: NSong Liu <songliubraving@fb.com> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
Showing
想要评论请 注册 或 登录