All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hengqi Chen <hengqi.chen@gmail.com>
To: bpf@vger.kernel.org
Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
	yhs@fb.com, john.fastabend@gmail.com, hengqi.chen@gmail.com
Subject: [PATCH bpf-next 0/2 v2] libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7
Date: Mon,  4 Oct 2021 00:58:42 +0800	[thread overview]
Message-ID: <20211003165844.4054931-1-hengqi.chen@gmail.com> (raw)

bpf_{map,program}__{prev,next} don't follow the libbpf API naming
convention. Deprecate them and replace them with a new set of APIs
named bpf_object__{prev,next}_{program,map}.

v1->v2: [0]
  * Addressed Andrii's comments

  [0]: https://patchwork.kernel.org/project/netdevbpf/patch/20210906165456.325999-1-hengqi.chen@gmail.com/

Hengqi Chen (2):
  libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7
  selftests/bpf: Switch to new bpf_object__next_{map,program} APIs

 tools/lib/bpf/libbpf.c                        | 24 +++++++++++++
 tools/lib/bpf/libbpf.h                        | 35 ++++++++++++-------
 tools/lib/bpf/libbpf.map                      |  4 +++
 tools/testing/selftests/bpf/prog_tests/btf.c  |  2 +-
 .../selftests/bpf/prog_tests/fexit_bpf2bpf.c  |  6 ++--
 .../bpf/prog_tests/select_reuseport.c         |  2 +-
 .../selftests/bpf/prog_tests/tcp_rtt.c        |  2 +-
 tools/testing/selftests/bpf/xdping.c          |  2 +-
 8 files changed, 58 insertions(+), 19 deletions(-)

--
2.25.1

             reply	other threads:[~2021-10-03 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03 16:58 Hengqi Chen [this message]
2021-10-03 16:58 ` [PATCH bpf-next 1/2 v2] libbpf: Deprecate bpf_{map,program}__{prev,next} APIs since v0.7 Hengqi Chen
2021-10-05 22:22   ` Song Liu
2021-10-06 18:07     ` Andrii Nakryiko
2021-10-07  4:01       ` Hengqi Chen
2021-10-03 16:58 ` [PATCH bpf-next 2/2 v2] selftests/bpf: Switch to new bpf_object__next_{map,program} APIs Hengqi Chen
2021-10-05 22:22   ` Song Liu

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=20211003165844.4054931-1-hengqi.chen@gmail.com \
    --to=hengqi.chen@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=john.fastabend@gmail.com \
    --cc=yhs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.