selftests/bpf: Convert static to global in tc_redirect progs
authorStanislav Fomichev <sdf@google.com>
Fri, 14 May 2021 17:05:28 +0000 (10:05 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 20 May 2021 21:48:37 +0000 (23:48 +0200)
commit8f1634b82189e715b0f82f16ce54fab43cfedd8a
treeb06f34cd9ec54455c8dde7818323d6e9a11dc717
parent6bdacdb48e94ff26c03c6eeeef48c03c5e2f7dd4
selftests/bpf: Convert static to global in tc_redirect progs

Both IFINDEX_SRC and IFINDEX_DST are set from the userspace
and it won't work once bpf merges with bpf-next.

Fixes: 096eccdef0b3 ("selftests/bpf: Rewrite test_tc_redirect.sh as prog_tests/tc_redirect.c")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210514170528.3750250-1-sdf@google.com
tools/testing/selftests/bpf/progs/test_tc_neigh.c
tools/testing/selftests/bpf/progs/test_tc_peer.c