samples/bpf: Remove the xdp_sample_pkts utility
authorToke Høiland-Jørgensen <toke@redhat.com>
Thu, 24 Aug 2023 10:22:48 +0000 (12:22 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 24 Aug 2023 15:43:50 +0000 (08:43 -0700)
commitcced0699cbf1ebfb39234d764ade2f907c5ca0b5
tree136544a181cdac0d2d8a4deb5e79a4f3bda7137d
parenteaca21d6eee9bb9b9f53c1c187d488ff1cbb6168
samples/bpf: Remove the xdp_sample_pkts utility

The functionality of this utility is covered by the xdpdump utility in
xdp-tools.

There's a slight difference in usage as the xdpdump utility's main focus is
to dump packets before or after they are processed by an existing XDP
program. However, xdpdump also has the --load-xdp-program switch, which
will make it attach its own program if no existing program is loaded. With
this, xdp_sample_pkts usage can be converted as:

xdp_sample_pkts eth0
  --> xdpdump --load-xdp-program eth0

To get roughly equivalent behaviour.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20230824102255.1561885-6-toke@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/Makefile
samples/bpf/xdp_sample_pkts_kern.c [deleted file]
samples/bpf/xdp_sample_pkts_user.c [deleted file]