From: "Björn Töpel" <bjorn.topel@gmail.com>
To: ast@kernel.org, daniel@iogearbox.net, netdev@vger.kernel.org,
bpf@vger.kernel.org
Cc: "Björn Töpel" <bjorn.topel@gmail.com>,
bjorn.topel@intel.com, magnus.karlsson@intel.com,
jonathan.lemon@gmail.com, maximmi@nvidia.com, andrii@kernel.org
Subject: [PATCH bpf-next 0/2] load-acquire/store-release semantics for AF_XDP rings
Date: Mon, 1 Mar 2021 11:43:16 +0100 [thread overview]
Message-ID: <20210301104318.263262-1-bjorn.topel@gmail.com> (raw)
This two-patch series introduces load-acquire/store-release semantics
for the AF_XDP rings.
For most contemporary architectures, this is more effective than a
SPSC ring based on smp_{r,w,}mb() barriers. More importantly,
load-acquire/store-release semantics make the ring code easier to
follow.
This is effectively the change done in commit 6c43c091bdc5
("documentation: Update circular buffer for
load-acquire/store-release"), but for the AF_XDP rings.
Both libbpf and the kernel-side are updated.
More details in each commit.
Thanks,
Björn
Björn Töpel (2):
xsk: update rings for load-acquire/store-release semantics
libbpf, xsk: add libbpf_smp_store_release libbpf_smp_load_acquire
net/xdp/xsk_queue.h | 27 ++++++--------
tools/lib/bpf/libbpf_util.h | 72 +++++++++++++++++++++++++------------
tools/lib/bpf/xsk.h | 17 +++------
3 files changed, 66 insertions(+), 50 deletions(-)
base-commit: 85e142cb42a1e7b33971bf035dae432d8670c46b
--
2.27.0
next reply other threads:[~2021-03-01 10:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 10:43 Björn Töpel [this message]
2021-03-01 10:43 ` [PATCH bpf-next 1/2] xsk: update rings for load-acquire/store-release semantics Björn Töpel
2021-03-01 16:08 ` Toke Høiland-Jørgensen
2021-03-02 8:04 ` Björn Töpel
2021-03-02 10:23 ` Toke Høiland-Jørgensen
2021-03-03 7:56 ` Björn Töpel
2021-03-01 10:43 ` [PATCH bpf-next 2/2] libbpf, xsk: add libbpf_smp_store_release libbpf_smp_load_acquire Björn Töpel
2021-03-01 16:10 ` Toke Høiland-Jørgensen
2021-03-02 8:05 ` Björn Töpel
2021-03-02 9:13 ` Daniel Borkmann
2021-03-02 9:16 ` Björn Töpel
2021-03-02 9:25 ` Daniel Borkmann
2021-03-03 8:08 ` Björn Töpel
2021-03-03 15:39 ` Will Deacon
2021-03-03 16:34 ` Björn Töpel
2021-03-03 4:38 ` Andrii Nakryiko
2021-03-03 7:14 ` Björn Töpel
2021-03-03 8:19 ` Björn Töpel
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=20210301104318.263262-1-bjorn.topel@gmail.com \
--to=bjorn.topel@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bjorn.topel@intel.com \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=jonathan.lemon@gmail.com \
--cc=magnus.karlsson@intel.com \
--cc=maximmi@nvidia.com \
--cc=netdev@vger.kernel.org \
/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).