Revamp existing low-level XDP APIs provided by libbpf to follow more consistent naming (new APIs follow bpf_tc_xxx() approach where it makes sense) and be extensible without ABI breakages (OPTS-based). See patch #1 for details, remaining patches switch bpftool, selftests/bpf and samples/bpf to new APIs. Andrii Nakryiko (4): libbpf: streamline low-level XDP APIs bpftool: use new API for attaching XDP program selftests/bpf: switch to new libbpf XDP APIs samples/bpf: adapt samples/bpf to bpf_xdp_xxx() APIs samples/bpf/xdp1_user.c | 8 +- samples/bpf/xdp_adjust_tail_user.c | 8 +- samples/bpf/xdp_fwd_user.c | 4 +- samples/bpf/xdp_router_ipv4_user.c | 10 +- samples/bpf/xdp_rxq_info_user.c | 8 +- samples/bpf/xdp_sample_pkts_user.c | 8 +- samples/bpf/xdp_sample_user.c | 9 +- samples/bpf/xdp_tx_iptunnel_user.c | 10 +- samples/bpf/xdpsock_ctrl_proc.c | 2 +- samples/bpf/xdpsock_user.c | 10 +- samples/bpf/xsk_fwd.c | 4 +- tools/bpf/bpftool/net.c | 2 +- tools/lib/bpf/libbpf.h | 29 +++++ tools/lib/bpf/libbpf.map | 4 + tools/lib/bpf/netlink.c | 117 +++++++++++++----- .../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 ++-- .../selftests/bpf/xdp_redirect_multi.c | 8 +- tools/testing/selftests/bpf/xdping.c | 4 +- 22 files changed, 205 insertions(+), 125 deletions(-) -- 2.30.2