Skip to content

Deprecate bpf_prog_load_xattr() API

Andrii Nakryiko bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9libbpf: use __u32 fields in bpf_map_create_optstools/lib/bpf/bpf.h+4 -42 replies
2/9libbpf: add API to get/set log_level at per-program leveltools/lib/bpf/libbpf.c tools/lib/bpf/libbpf.h tools/lib/bpf/libbpf.map +1 more+23 -10 replies
3/9bpftool: migrate off of deprecated bpf_create_map_xattr() APItools/bpf/bpftool/map.c+13 -100 replies
4/9selftests/bpf: remove recently reintroduced legacy btf__dedup() usetools/testing/selftests/bpf/prog_tests/btf_dedup_split.c+2 -20 replies
5/9selftests/bpf: mute xdpxceiver.c's deprecation warningstools/testing/selftests/bpf/xdpxceiver.c+6 -00 replies
6/9selftests/bpf: remove all the uses of deprecated bpf_prog_load_xattr()tools/testing/selftests/bpf/prog_tests/bpf_verif_scale.c tools/testing/selftests/bpf/prog_tests/connect_force_port.c tools/testing/selftests/bpf/prog_tests/kfree_skb.c +6 more+119 -1070 replies
7/9samples/bpf: clean up samples/bpf build failessamples/bpf/Makefile samples/bpf/Makefile.target samples/bpf/hbm_kern.h +1 more+12 -210 replies
8/9samples/bpf: get rid of deprecated libbpf API usessamples/bpf/cookie_uid_helper_example.c samples/bpf/fds_example.c samples/bpf/map_perf_test_user.c +12 more+108 -570 replies
9/9libbpf: deprecate bpf_prog_load_xattr() APItools/lib/bpf/libbpf.h tools/lib/bpf/libbpf_common.h+6 -00 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/9] Deprecate bpf_prog_load_xattr() API

Few lines in the last patch to mark bpf_prog_load_xattr() deprecated required a decent amount of clean ups in all the other patches. samples/bpf is big part of the clean up.

This patch set also bumps libbpf version to 0.7, as libbpf v0.6 release will be cut shortly.

Andrii Nakryiko (9):
libbpf: use __u32 fields in bpf_map_create_opts
libbpf: add API to get/set log_level at per-program level
bpftool: migrate off of deprecated bpf_create_map_xattr() API selftests/bpf: remove recently reintroduced legacy btf__dedup() use selftests/bpf: mute xdpxceiver.c's deprecation warnings selftests/bpf: remove all the uses of deprecated bpf_prog_load_xattr() samples/bpf: clean up samples/bpf build failes samples/bpf: get rid of deprecated libbpf API uses
libbpf: deprecate bpf_prog_load_xattr() API

 samples/bpf/Makefile                          | 13 ++++-
 samples/bpf/Makefile.target                   | 11 ----
 samples/bpf/cookie_uid_helper_example.c       | 14 +++--
 samples/bpf/fds_example.c                     | 24 +++++---
 samples/bpf/hbm_kern.h                        |  2 -
 samples/bpf/lwt_len_hist_kern.c               |  7 ---
 samples/bpf/map_perf_test_user.c              | 15 +++--
 samples/bpf/sock_example.c                    | 12 ++--
 samples/bpf/sockex1_user.c                    | 15 ++++-
 samples/bpf/sockex2_user.c                    | 14 ++++-
 samples/bpf/test_cgrp2_array_pin.c            |  4 +-
 samples/bpf/test_cgrp2_attach.c               | 13 +++--
 samples/bpf/test_cgrp2_sock.c                 |  8 ++-
 samples/bpf/test_lru_dist.c                   | 11 ++--
 samples/bpf/trace_output_user.c               |  4 +-
 samples/bpf/xdp_sample_pkts_user.c            | 22 +++----
 samples/bpf/xdpsock_ctrl_proc.c               |  3 +
 samples/bpf/xdpsock_user.c                    |  3 +
 samples/bpf/xsk_fwd.c                         |  3 +
 tools/bpf/bpftool/map.c                       | 23 ++++----
 tools/lib/bpf/bpf.h                           |  8 +--
 tools/lib/bpf/libbpf.c                        | 14 +++++
 tools/lib/bpf/libbpf.h                        |  3 +
 tools/lib/bpf/libbpf.map                      |  6 ++
 tools/lib/bpf/libbpf_common.h                 |  5 ++
 tools/lib/bpf/libbpf_version.h                |  2 +-
 .../bpf/prog_tests/bpf_verif_scale.c          | 30 +++++++---
 .../bpf/prog_tests/btf_dedup_split.c          |  4 +-
 .../bpf/prog_tests/connect_force_port.c       | 17 +++---
 .../selftests/bpf/prog_tests/kfree_skb.c      | 58 ++++++-------------
 .../bpf/prog_tests/sockopt_inherit.c          | 12 ++--
 .../selftests/bpf/prog_tests/sockopt_multi.c  | 12 ++--
 .../selftests/bpf/prog_tests/tcp_rtt.c        | 21 +++----
 .../bpf/prog_tests/test_global_funcs.c        | 28 ++++++---
 tools/testing/selftests/bpf/test_sock_addr.c  | 33 +++++++----
 .../selftests/bpf/xdp_redirect_multi.c        | 15 ++---
 tools/testing/selftests/bpf/xdpxceiver.c      |  6 ++
 37 files changed, 293 insertions(+), 202 deletions(-)
Signature · 1 line
2.30.2