Add support for fwmark to bpf_fib_lookup. Patch 1: adds the support to the uapi and updates the lookup helper. Patch 2: copies the uapi change to the tools directory. Patch 3: adds test cases. Rumen Telbizov (3): bpf: Add support for mark with bpf_fib_lookup tools: Update bpf header selftests: Add selftests for fwmark support in bpf_fib_lookup include/uapi/linux/bpf.h | 16 +- net/core/filter.c | 4 +- tools/include/uapi/linux/bpf.h | 16 +- tools/testing/selftests/bpf/Makefile | 1 + .../selftests/bpf/progs/test_bpf_fib_lookup.c | 135 ++++++++++++++ .../selftests/bpf/test_bpf_fib_lookup.sh | 166 ++++++++++++++++++ 6 files changed, 332 insertions(+), 6 deletions(-) create mode 100644 tools/testing/selftests/bpf/progs/test_bpf_fib_lookup.c create mode 100755 tools/testing/selftests/bpf/test_bpf_fib_lookup.sh -- 2.30.1 (Apple Git-130)