selftests/bpf: Add vrf_socket_lookup tests
authorGilad Sever <gilad9366@gmail.com>
Wed, 21 Jun 2023 10:42:11 +0000 (13:42 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 21 Jun 2023 21:48:51 +0000 (23:48 +0200)
commit3d5786ea472c3aff14e931d52ba05627c075d432
tree313e4e0510ec8ea82175d18960ec345cde17d40e
parent9a5cb79762e0eda17ca15c2a6eaca4622383c21c
selftests/bpf: Add vrf_socket_lookup tests

Verify that socket lookup via TC/XDP with all BPF APIs is VRF aware.

Signed-off-by: Gilad Sever <gilad9366@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Eyal Birger <eyal.birger@gmail.com>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230621104211.301902-5-gilad9366@gmail.com
tools/testing/selftests/bpf/prog_tests/vrf_socket_lookup.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/vrf_socket_lookup.c [new file with mode: 0644]