bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrii Nakryiko <andrii@kernel.org>
To: <bpf@vger.kernel.org>, <ast@kernel.org>, <daniel@iogearbox.net>
Cc: <andrii@kernel.org>, <kernel-team@fb.com>
Subject: [PATCH bpf-next 0/4] libbpf: streamline netlink-based XDP APIs
Date: Wed, 19 Jan 2022 22:14:18 -0800	[thread overview]
Message-ID: <20220120061422.2710637-1-andrii@kernel.org> (raw)

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


             reply	other threads:[~2022-01-20  6:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20  6:14 Andrii Nakryiko [this message]
2022-01-20  6:14 ` [PATCH bpf-next 1/4] libbpf: streamline low-level XDP APIs 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220120061422.2710637-1-andrii@kernel.org \
    --to=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=kernel-team@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).