Skip to content

Clean up leftover uses of deprecated APIs

Andrii Nakryiko bpf 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6libbpf: stop using deprecated bpf_map__is_offload_neutral()tools/lib/bpf/libbpf.c+1 -10 repliesApplied
2/6bpftool: stop supporting BPF offload-enabled feature probingtools/bpf/bpftool/feature.c+17 -124 repliesApplied
3/6bpftool: fix uninit variable compilation warningtools/bpf/bpftool/common.c+1 -10 repliesApplied
4/6selftests/bpf: remove usage of deprecated feature probing APIstools/testing/selftests/bpf/test_maps.c tools/testing/selftests/bpf/test_verifier.c+3 -30 repliesApplied
5/6selftests/bpf: redo the switch to new libbpf XDP APIstools/testing/selftests/bpf/prog_tests/xdp_attach.c tools/testing/selftests/bpf/prog_tests/xdp_cpumap_attach.c tools/testing/selftests/bpf/prog_tests/xdp_devmap_attach.c +4 more+47 -500 repliesApplied
6/6samples/bpf: get rid of bpf_prog_load_xattr() usesamples/bpf/xdp1_user.c samples/bpf/xdp_adjust_tail_user.c samples/bpf/xdp_fwd_user.c +3 more+63 -350 repliesApplied

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchQuentin Monnet
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/6] Clean up leftover uses of deprecated APIs

Clean up remaining missed uses of deprecated libbpf APIs across samples/bpf, selftests/bpf, libbpf, and bpftool.

Also fix uninit variable warning in bpftool.

Andrii Nakryiko (6):
libbpf: stop using deprecated bpf_map__is_offload_neutral()
bpftool: stop supporting BPF offload-enabled feature probing
bpftool: fix uninit variable compilation warning selftests/bpf: remove usage of deprecated feature probing APIs selftests/bpf: redo the switch to new libbpf XDP APIs samples/bpf: get rid of bpf_prog_load_xattr() use

 samples/bpf/xdp1_user.c                       | 16 ++++++----
 samples/bpf/xdp_adjust_tail_user.c            | 17 +++++++----
 samples/bpf/xdp_fwd_user.c                    | 15 ++++++----
 samples/bpf/xdp_router_ipv4_user.c            | 17 ++++++-----
 samples/bpf/xdp_rxq_info_user.c               | 16 ++++++----
 samples/bpf/xdp_tx_iptunnel_user.c            | 17 ++++++-----
 tools/bpf/bpftool/common.c                    |  2 +-
 tools/bpf/bpftool/feature.c                   | 29 +++++++++++--------
 tools/lib/bpf/libbpf.c                        |  2 +-
 .../selftests/bpf/prog_tests/xdp_attach.c     | 29 +++++++++----------
 .../bpf/prog_tests/xdp_cpumap_attach.c        |  8 ++---
 .../bpf/prog_tests/xdp_devmap_attach.c        |  8 ++---
 .../selftests/bpf/prog_tests/xdp_info.c       | 14 ++++-----
 .../selftests/bpf/prog_tests/xdp_link.c       | 26 ++++++++---------
 tools/testing/selftests/bpf/test_maps.c       |  2 +-
 tools/testing/selftests/bpf/test_verifier.c   |  4 +--
 .../selftests/bpf/xdp_redirect_multi.c        |  8 ++---
 tools/testing/selftests/bpf/xdping.c          |  4 +--
 18 files changed, 132 insertions(+), 102 deletions(-)
Signature · 1 line
2.30.2