Skip to content

BPF updates

Daniel Borkmann netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v15 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- fix minor stylistic nit spotted by Sergei

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5{f,m}_bpf: make tail calls workingtc/tc_bpf.c+19 -80 replies
2/5{f,m}_bpf: check map attributes when fetching as pinnedtc/tc_bpf.c+53 -00 replies
3/5{f,m}_bpf: allow for user-defined object pinningsetc/iproute2/bpf_pinning include/bpf_elf.h include/utils.h +2 more+204 -250 replies
4/5{f,m}_bpf: allow updates on program arraystc/e_bpf.c tc/tc_bpf.c tc/tc_bpf.h+306 -1492 replies
5/5{f,m}_bpf: add more example codeexamples/bpf/README examples/bpf/bpf_cyclic.c examples/bpf/bpf_funcs.h +2 more+241 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAlexei Starovoitov
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH iproute2 -next v2 0/5] BPF updates

Some more updates on the BPF front-end to get further eBPF functionality working with tc. See individual patches for details. Targeted at iproute2's -next branch.

Thanks!

v1 -> v2:
- fix minor stylistic nit spotted by Sergei

Daniel Borkmann (5):
{f,m}_bpf: make tail calls working
{f,m}_bpf: check map attributes when fetching as pinned {f,m}_bpf: allow for user-defined object pinnings {f,m}_bpf: allow updates on program arrays {f,m}_bpf: add more example code

 etc/iproute2/bpf_pinning    |   6 +
 examples/bpf/README         |  13 +
 examples/bpf/bpf_cyclic.c   |  32 ++
 examples/bpf/bpf_funcs.h    |  11 +
 examples/bpf/bpf_graft.c    |  70 +++++
 examples/bpf/bpf_tailcall.c | 115 +++++++
 include/bpf_elf.h           |   2 +-
 include/utils.h             |   4 +
 lib/rt_names.c              |   5 +-
 tc/e_bpf.c                  |  30 +-
 tc/tc_bpf.c                 | 708 +++++++++++++++++++++++++++++++++-----------
 tc/tc_bpf.h                 |   1 +
 12 files changed, 819 insertions(+), 178 deletions(-)
 create mode 100644 etc/iproute2/bpf_pinning
 create mode 100644 examples/bpf/README
 create mode 100644 examples/bpf/bpf_cyclic.c
 create mode 100644 examples/bpf/bpf_graft.c
 create mode 100644 examples/bpf/bpf_tailcall.c
Signature · 1 line
1.9.3