bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/4] libbpf: streamline netlink-based XDP APIs
@ 2022-01-20  6:14 Andrii Nakryiko
  2022-01-20  6:14 ` [PATCH bpf-next 1/4] libbpf: streamline low-level " Andrii Nakryiko
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andrii Nakryiko @ 2022-01-20  6:14 UTC (permalink / raw)
  To: bpf, ast, daniel; +Cc: andrii, kernel-team

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-20 12:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-20  6:14 [PATCH bpf-next 0/4] libbpf: streamline netlink-based XDP APIs Andrii Nakryiko
2022-01-20  6:14 ` [PATCH bpf-next 1/4] libbpf: streamline low-level " Andrii Nakryiko
2022-01-20 12:00   ` Toke Høiland-Jørgensen
2022-01-20  6:14 ` [PATCH bpf-next 2/4] bpftool: use new API for attaching XDP program Andrii Nakryiko
2022-01-20  6:14 ` [PATCH bpf-next 3/4] selftests/bpf: switch to new libbpf XDP APIs Andrii Nakryiko
2022-01-20  6:14 ` [PATCH bpf-next 4/4] samples/bpf: adapt samples/bpf to bpf_xdp_xxx() APIs Andrii Nakryiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).