selftests/bpf: Add BPF_FIB_LOOKUP_MARK tests
authorAnton Protopopov <aspsk@isovalent.com>
Tue, 26 Mar 2024 10:17:41 +0000 (10:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:30:53 +0000 (18:30 -0700)
commit6efec2cb06411a577125b5f531a852c08ead1209
treee9fff17ce16562758b4d40486ce3a96ee5b78431
parent5311591fbb349fe9f5c555dcba3b13a5831aa72d
selftests/bpf: Add BPF_FIB_LOOKUP_MARK tests

This patch extends the fib_lookup test suite by adding a few test
cases for each IP family to test the new BPF_FIB_LOOKUP_MARK flag
to the bpf_fib_lookup:

  * Test destination IP address selection with and without a mark
    and/or the BPF_FIB_LOOKUP_MARK flag set

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240326101742.17421-3-aspsk@isovalent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/fib_lookup.c