]> 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)
commitbd133b56fe9befd0e643a7550756389b2e07350f
tree0357f54b69c6d6a3d786683db124aab331cf6ce2
parent3ac0aa25987f32e847f0e74008c0dc28c6f44a11
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: a6bc42d13dd6 ("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