summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_xdp_veth.sh
diff options
context:
space:
mode:
authorJussi Maki <joamaki@gmail.com>2021-07-31 05:57:37 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2021-08-09 23:25:15 +0200
commit95413846cca37f20000dd095cf6d91f8777129d7 (patch)
tree10efc097fe1c9353717a18a3ed8a87ab8a14a8c6 /tools/testing/selftests/bpf/test_xdp_veth.sh
parent689186699931313c7a42462602bd5c03eef77f9f (diff)
downloadlinux-95413846cca37f20000dd095cf6d91f8777129d7.tar.bz2
selftests/bpf: Fix xdp_tx.c prog section name
The program type cannot be deduced from 'tx' which causes an invalid argument error when trying to load xdp_tx.o using the skeleton. Rename the section name to "xdp" so that libbpf can deduce the type. Signed-off-by: Jussi Maki <joamaki@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210731055738.16820-7-joamaki@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_xdp_veth.sh')
-rwxr-xr-xtools/testing/selftests/bpf/test_xdp_veth.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/test_xdp_veth.sh b/tools/testing/selftests/bpf/test_xdp_veth.sh
index ba8ffcdaac30..995278e684b6 100755
--- a/tools/testing/selftests/bpf/test_xdp_veth.sh
+++ b/tools/testing/selftests/bpf/test_xdp_veth.sh
@@ -108,7 +108,7 @@ ip link set dev veth2 xdp pinned $BPF_DIR/progs/redirect_map_1
ip link set dev veth3 xdp pinned $BPF_DIR/progs/redirect_map_2
ip -n ns1 link set dev veth11 xdp obj xdp_dummy.o sec xdp_dummy
-ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec tx
+ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec xdp
ip -n ns3 link set dev veth33 xdp obj xdp_dummy.o sec xdp_dummy
trap cleanup EXIT