selftests/bpf: Add netkit to tc_redirect selftest
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 14 Nov 2023 00:42:20 +0000 (01:42 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 20 Nov 2023 18:15:16 +0000 (10:15 -0800)
commitadfeae2d243d9e5b83d094af481d189156b11779
treeb9365cd2f303f48ceebf15bcb03b5e44fc6d735b
parenteee82da79f036bb49ff80d3088b9530e3c2e57eb
selftests/bpf: Add netkit to tc_redirect selftest

Extend the existing tc_redirect selftest to also cover netkit devices
for exercising the bpf_redirect_peer() code paths, so that we have both
veth as well as netkit covered, all tests still pass after this change.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20231114004220.6495-9-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/tc_redirect.c