]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Nov 2021 15:38:02 +0000 (16:38 +0100)
commit621246b6d9c01ab321e0f3d9180acb5016092370
tree0357f54b69c6d6a3d786683db124aab331cf6ce2
parent34e08a117c6d19bb5657de8d1e572d7db82badfe
selftests/bpf/xdp_redirect_multi: Use arping to accurate the arp number

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: dc048e497cee ("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
tools/testing/selftests/bpf/test_xdp_redirect_multi.sh