]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: test_xdp_veth: Remove unecessarry check_ping()
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Jan 2025 07:21:42 +0000 (08:21 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 3 Feb 2025 11:33:51 +0000 (03:33 -0800)
commit0f5bab8dffc4e38454e13f228e2c5eed01cc319b
treeee2cc61766295f87eebb7742e85d33710e313fbc
parent6d34f5b728eb28e4f5acb00dc147507fea2e510c
selftests/bpf: test_xdp_veth: Remove unecessarry check_ping()

check_ping() directly returns a SYS_NOFAIL without any previous
treatment. It's called only once in the file and hardcodes the used
namespace and ip address.

Replace check_ping() with a direct call of SYS_NOFAIL in the test.

Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250131-redirect-multi-v4-3-970b33678512@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/test_xdp_veth.c