The 'arp' command is deprecated and is another dependency of the selftest.
Just use 'ip neigh', the test depends on iproute2 already.
Signed-off-by: Jiri Benc <redacted>
---
tools/testing/selftests/bpf/test_tunnel.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
From: David Ahern <hidden> Date: 2021-09-21 15:23:10
On 9/21/21 8:59 AM, Jiri Benc wrote:
quoted hunk
The 'arp' command is deprecated and is another dependency of the selftest.
Just use 'ip neigh', the test depends on iproute2 already.
Signed-off-by: Jiri Benc <redacted>
---
tools/testing/selftests/bpf/test_tunnel.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
I realize you are just following suit with this change, but ip can
change namespaces internally:
ip -netns at_ns0 neigh add 10.1.1.200 lladdr 52:54:00:d9:02:00 dev $DEV_NS
All of the 'ip netns exec ... ip ...' commands can be simplified.
ip netns exec at_ns0 iptables -A OUTPUT -j MARK --set-mark 0x800FF
# root namespace
ip link add dev $DEV type $TYPE external gbp dstport 4789
ip link set dev $DEV address 52:54:00:d9:02:00 up
ip addr add dev $DEV 10.1.1.200/24
- arp -s 10.1.1.100 52:54:00:d9:01:00
+ ip neigh add 10.1.1.100 lladdr 52:54:00:d9:01:00 dev $DEV
}
add_ip6vxlan_tunnel()
On Tue, 21 Sep 2021 09:23:06 -0600, David Ahern wrote:
I realize you are just following suit with this change, but ip can
change namespaces internally:
ip -netns at_ns0 neigh add 10.1.1.200 lladdr 52:54:00:d9:02:00 dev $DEV_NS
All of the 'ip netns exec ... ip ...' commands can be simplified.
I know and I don't like the superfluous exec, either. But that's
something for a different patch. As you said, I'm just following what's
already there. There's ton of different stuff that can be cleaned up in
this and other selftests, unfortunately.
Jiri