summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/udpgro_fwd.sh
diff options
context:
space:
mode:
authorWang Yufen <wangyufen@huawei.com>2022-11-17 10:45:03 +0800
committerDavid S. Miller <davem@davemloft.net>2022-11-18 12:01:14 +0000
commit302e57f809be8b678d1ab0b2634504d5d51a166d (patch)
tree4d1f35634a231fad5eda48debb87a908df2b7eed /tools/testing/selftests/net/udpgro_fwd.sh
parent40b9d1ab63f5c4f3cb69450044d07b45e5af72e1 (diff)
selftests/net: fix missing xdp_dummy
After commit afef88e65554 ("selftests/bpf: Store BPF object files with .bpf.o extension"), we should use xdp_dummy.bpf.o instade of xdp_dummy.o. In addition, use the BPF_FILE variable to save the BPF object file name, which can be better identified and modified. Fixes: afef88e65554 ("selftests/bpf: Store BPF object files with .bpf.o extension") Signed-off-by: Wang Yufen <wangyufen@huawei.com> Cc: Daniel Müller <deso@posteo.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/udpgro_fwd.sh')
-rwxr-xr-xtools/testing/selftests/net/udpgro_fwd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/udpgro_fwd.sh b/tools/testing/selftests/net/udpgro_fwd.sh
index 1bcd82e1f662..c079565add39 100755
--- a/tools/testing/selftests/net/udpgro_fwd.sh
+++ b/tools/testing/selftests/net/udpgro_fwd.sh
@@ -1,6 +1,7 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
+BPF_FILE="../bpf/xdp_dummy.bpf.o"
readonly BASE="ns-$(mktemp -u XXXXXX)"
readonly SRC=2
readonly DST=1
@@ -46,7 +47,7 @@ create_ns() {
ip -n $BASE$ns addr add dev veth$ns $BM_NET_V4$ns/24
ip -n $BASE$ns addr add dev veth$ns $BM_NET_V6$ns/64 nodad
done
- ip -n $NS_DST link set veth$DST xdp object ../bpf/xdp_dummy.o section xdp 2>/dev/null
+ ip -n $NS_DST link set veth$DST xdp object ${BPF_FILE} section xdp 2>/dev/null
}
create_vxlan_endpoint() {