Skip to content

bpf: A fix and a change to bpf_fib_lookup

Martin KaFai Lau bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bpf: Disable bh in bpf_test_run for xdp and tc prognet/bpf/test_run.c+2 -00 replies
2/4bpf: bpf_fib_lookup should not return neigh in NUD_FAILED statenet/core/filter.c+2 -20 replies
3/4bpf: Add BPF_FIB_LOOKUP_SKIP_NEIGH for bpf_fib_lookupinclude/uapi/linux/bpf.h net/core/filter.c tools/include/uapi/linux/bpf.h+25 -102 replies
4/4selftests/bpf: Add bpf_fib_lookup testtools/testing/selftests/bpf/prog_tests/fib_lookup.c tools/testing/selftests/bpf/progs/fib_lookup.c+209 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/4] bpf: A fix and a change to bpf_fib_lookup

From: Martin KaFai Lau <[email protected]>

This set fixes the bpf_fib_lookup such that it won't return a NUD_FAILED neigh which may have invalid dmac. It also adds a SKIP_NEIGH lookup flag to have bpf_fib_lookup skipping the neigh lookup.

Please see individual patch for details.

Martin KaFai Lau (4):
bpf: Disable bh in bpf_test_run for xdp and tc prog
bpf: bpf_fib_lookup should not return neigh in NUD_FAILED state
bpf: Add BPF_FIB_LOOKUP_SKIP_NEIGH for bpf_fib_lookup selftests/bpf: Add bpf_fib_lookup test

 include/uapi/linux/bpf.h                      |   1 +
 net/bpf/test_run.c                            |   2 +
 net/core/filter.c                             |  37 ++--
 tools/include/uapi/linux/bpf.h                |   1 +
 .../selftests/bpf/prog_tests/fib_lookup.c     | 187 ++++++++++++++++++
 .../testing/selftests/bpf/progs/fib_lookup.c  |  22 +++
 6 files changed, 238 insertions(+), 12 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/fib_lookup.c
 create mode 100644 tools/testing/selftests/bpf/progs/fib_lookup.c
Signature · 1 line
2.30.2