Skip to content

tools lib bpf: fixes and functional upgrade

Eric Leblond lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8tools lib bpf: add error functionstools/lib/bpf/libbpf.c tools/lib/bpf/libbpf.h+14 -13 replies
2/8uapi linux bpf: add max value to enuminclude/uapi/linux/bpf.h+1 -00 replies
3/8tools: Sync tools/include/uapi/linux/bpf.h with the kerneltools/include/uapi/linux/bpf.h+52 -01 reply
4/8tools lib bpf: export function to set typetools/lib/bpf/libbpf.c tools/lib/bpf/libbpf.h+12 -101 reply
5/8tools lib bpf: add missing functionstools/lib/bpf/bpf.c tools/lib/bpf/bpf.h tools/lib/bpf/libbpf.h+39 -31 reply
6/8tools lib bpf: improve warningtools/lib/bpf/libbpf.c+2 -11 reply
7/8tools lib bpf: fix maps resolutiontools/lib/bpf/libbpf.c+35 -154 replies
8/8tools lib bpf: install header filetools/lib/bpf/Makefile+9 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] tools lib bpf: fixes and functional upgrade

Hello,

Here's a patchset on the libbpf library that can be found in tools/lib/bpf.

Patch 0 to patch 4 add a new function to be able to set the BPF program type. Till then program type such as network filter can't be loaded by the library:

* tools lib bpf: add error functions
* uapi linux bpf: add max value to enum
* tools: Sync tools/include/uapi/linux/bpf.h with the
* tools lib bpf: export function to set type

Patch 5 is adding functions that were missing to handle maps in userspace.

* tools lib bpf: add missing functions

Patch 7 fixes a bug in the parsing of BPF ELF file.

* tools lib bpf: fix maps resolution

Patch 8 update 'make install' to install the header on the system.

* tools lib bpf: install header file

Patchset statistics:

 include/uapi/linux/bpf.h       |  1 +
 tools/include/uapi/linux/bpf.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 tools/lib/bpf/Makefile         | 11 +++++++++--
 tools/lib/bpf/bpf.c            | 35 ++++++++++++++++++++++++++++++++++-
 tools/lib/bpf/bpf.h            |  2 --
 tools/lib/bpf/libbpf.c         | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
 tools/lib/bpf/libbpf.h         | 12 +++++++++++-
 7 files changed, 166 insertions(+), 34 deletions(-)

Best regards,