selftests/bpf/xdp_redirect_multi: Use arping to accurate the arp number
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 27 Oct 2021 03:35:51 +0000 (11:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:40 +0000 (11:04 +0100)
commit63d52d3f722b2eba066c16457f3ab6fb5f346dfd
treeb4139facce20349ba8bd305ed46f08a56267a9df
parent52058c2e55162a5a573609d5b3ea50f347983df0
selftests/bpf/xdp_redirect_multi: Use arping to accurate the arp number

[ Upstream commit f53ea9dbf78d42a10e2392b5c59362ccc224fd1d ]

The arp request number triggered by ping none exist address is not accurate,
which may lead the test false negative/positive. Change to use arping to
accurate the arp number. Also do not use grep pattern match for dot.

Fixes: d23292476297 ("selftests/bpf: Add xdp_redirect_multi test")
Suggested-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211027033553.962413-3-liuhangbin@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/test_xdp_redirect_multi.sh