selftests/bpf: Add BPF_FIB_LOOKUP_SRC tests
authorMartynas Pumputis <m@lambda.lt>
Sat, 7 Oct 2023 08:14:15 +0000 (10:14 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 9 Oct 2023 23:28:37 +0000 (16:28 -0700)
commitb0f7a8ca11795541f09060ccf583a341a9c94d5f
tree1d0dc82af40e4622f899322f070c6ac30b64ac39
parentdab4e1f06cabb6834de14264394ccab197007302
selftests/bpf: Add BPF_FIB_LOOKUP_SRC tests

This patch extends the existing fib_lookup test suite by adding two test
cases (for each IP family):

* Test source IP selection from the egressing netdev.
* Test source IP selection when an IP route has a preferred src IP addr.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
Link: https://lore.kernel.org/r/20231007081415.33502-3-m@lambda.lt
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/fib_lookup.c