Skip to content

libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7

Hengqi Chen bpf 2 versions – Applied

Status from this message: Applied to bpf-next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 4 repliesApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7tools/lib/bpf/libbpf.c tools/lib/bpf/libbpf.h tools/lib/bpf/libbpf.map+51 -123 replies
2/2selftests/bpf: Switch to new bpf_object__next_{map,program} APIstools/testing/selftests/bpf/prog_tests/btf.c tools/testing/selftests/bpf/prog_tests/fexit_bpf2bpf.c tools/testing/selftests/bpf/prog_tests/select_reuseport.c +2 more+7 -71 reply

Reviews trailers per patch

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

PatchSong Liu
1/2A-b
2/2A-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 bpf-next 0/2 v2] libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7

bpf_{map,program}__{prev,next} don't follow the libbpf API naming convention. Deprecate them and replace them with a new set of APIs named bpf_object__{prev,next}_{program,map}.

v1->v2: [0]
* Addressed Andrii's comments

[0]: https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/

Hengqi Chen (2):
libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7 selftests/bpf: Switch to new bpf_object__next_{map,program} APIs

 tools/lib/bpf/libbpf.c                        | 24 +++++++++++++
 tools/lib/bpf/libbpf.h                        | 35 ++++++++++++-------
 tools/lib/bpf/libbpf.map                      |  4 +++
 tools/testing/selftests/bpf/prog_tests/btf.c  |  2 +-
 .../selftests/bpf/prog_tests/fexit_bpf2bpf.c  |  6 ++--
 .../bpf/prog_tests/select_reuseport.c         |  2 +-
 .../selftests/bpf/prog_tests/tcp_rtt.c        |  2 +-
 tools/testing/selftests/bpf/xdping.c          |  2 +-
 8 files changed, 58 insertions(+), 19 deletions(-)

--
2.25.1