samples/bpf: Remove the xdp_redirect* utilities
authorToke Høiland-Jørgensen <toke@redhat.com>
Thu, 24 Aug 2023 10:22:45 +0000 (12:22 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 24 Aug 2023 15:43:50 +0000 (08:43 -0700)
commit91dda69b08de93465632561701a337ec18321ea4
tree3a1b6720336cfe45a54ee8fa3aa62c514a30b10f
parente7c9e73d082252ecd026f7e01d8015a347c375c1
samples/bpf: Remove the xdp_redirect* utilities

These utilities have all been ported to xdp-tools as functions of the
xdp-bench utility. The four different utilities in samples are incorporated
as separate subcommands to xdp-bench, with most of the command line
parameters left intact, except that mandatory arguments are always
positional in xdp-bench. For full usage details see the --help output of
each command, or the xdp-bench man page.

Some examples of how to convert usage to xdp-bench are:

xdp_redirect eth0 eth1
  --> xdp-bench redirect eth0 eth1

xdp_redirect_map eth0 eth1
  --> xdp-bench redirect-map eth0 eth1

xdp_redirect_map_multi eth0 eth1 eth2 eth3
  --> xdp-bench redirect-multi eth0 eth1 eth2 eth3

xdp_redirect_cpu -d eth0 -c 0 -c 1
  --> xdp-bench redirect-cpu -c 0 -c 1 eth0

xdp_redirect_cpu -d eth0 -c 0 -c 1 -r eth1
  --> xdp-bench redirect-cpu -c 0 -c 1 eth0 -r redirect -D eth1

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20230824102255.1561885-3-toke@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/Makefile
samples/bpf/xdp_redirect.bpf.c [deleted file]
samples/bpf/xdp_redirect_cpu.bpf.c [deleted file]
samples/bpf/xdp_redirect_cpu_user.c [deleted file]
samples/bpf/xdp_redirect_map.bpf.c [deleted file]
samples/bpf/xdp_redirect_map_multi.bpf.c [deleted file]
samples/bpf/xdp_redirect_map_multi_user.c [deleted file]
samples/bpf/xdp_redirect_map_user.c [deleted file]
samples/bpf/xdp_redirect_user.c [deleted file]