From: "Jonathan Lemon" <jonathan.lemon@gmail.com>
To: "Magnus Karlsson" <magnus.karlsson@intel.com>
Cc: bjorn.topel@intel.com, ast@kernel.org, daniel@iogearbox.net,
netdev@vger.kernel.org, bpf@vger.kernel.org, degeneloy@gmail.com,
john.fastabend@gmail.com
Subject: Re: [PATCH bpf-next v3] libbpf: fix compatibility for kernels without need_wakeup
Date: Fri, 25 Oct 2019 12:30:18 -0700 [thread overview]
Message-ID: <9CF134CD-CB33-48D0-BFAF-BCFC2F9AE6AD@gmail.com> (raw)
In-Reply-To: <1571995035-21889-1-git-send-email-magnus.karlsson@intel.com>
On 25 Oct 2019, at 2:17, Magnus Karlsson wrote:
> When the need_wakeup flag was added to AF_XDP, the format of the
> XDP_MMAP_OFFSETS getsockopt was extended. Code was added to the
> kernel to take care of compatibility issues arrising from running
> applications using any of the two formats. However, libbpf was
> not extended to take care of the case when the application/libbpf
> uses the new format but the kernel only supports the old
> format. This patch adds support in libbpf for parsing the old
> format, before the need_wakeup flag was added, and emulating a
> set of static need_wakeup flags that will always work for the
> application.
>
> v2 -> v3:
> * Incorporated code improvements suggested by Jonathan Lemon
Thanks for doing this, Magnus! It looks much simpler now.
>
> v1 -> v2:
> * Rebased to bpf-next
> * Rewrote the code as the previous version made you blind
>
> Fixes: a4500432c2587cb2a ("libbpf: add support for need_wakeup flag in
> AF_XDP part")
> Reported-by: Eloy Degen <degeneloy@gmail.com>
> Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
next prev parent reply other threads:[~2019-10-25 19:30 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-25 9:17 [PATCH bpf-next v3] libbpf: fix compatibility for kernels without need_wakeup Magnus Karlsson
2019-10-25 19:30 ` Jonathan Lemon [this message]
2019-10-29 3:27 ` Alexei Starovoitov
2019-10-30 13:33 ` Toke Høiland-Jørgensen
2019-10-31 7:17 ` Magnus Karlsson
2019-10-31 8:02 ` Björn Töpel
2019-10-31 8:17 ` Magnus Karlsson
2019-10-31 9:50 ` Toke Høiland-Jørgensen
2019-10-31 14:00 ` Alexei Starovoitov
2019-10-31 14:13 ` Toke Høiland-Jørgensen
2019-10-31 14:17 ` Alexei Starovoitov
2019-10-31 14:26 ` Toke Høiland-Jørgensen
2019-10-31 14:44 ` Alexei Starovoitov
2019-10-31 14:52 ` Toke Høiland-Jørgensen
2019-10-31 15:17 ` Alexei Starovoitov
2019-10-31 17:42 ` Jiri Olsa
2019-10-31 18:19 ` Alexei Starovoitov
2019-10-31 19:18 ` Jiri Olsa
2019-10-31 20:39 ` Alexei Starovoitov
2019-11-01 7:27 ` Jiri Olsa
2019-11-01 15:51 ` Alexei Starovoitov
2019-11-01 19:36 ` Toke Høiland-Jørgensen
2019-11-01 20:41 ` Alexei Starovoitov
2019-11-01 21:41 ` Toke Høiland-Jørgensen
2019-11-01 22:08 ` Alexei Starovoitov
2019-11-01 9:16 ` Toke Høiland-Jørgensen
2019-11-01 14:51 ` John Fastabend
2019-10-31 20:23 ` 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=9CF134CD-CB33-48D0-BFAF-BCFC2F9AE6AD@gmail.com \
--to=jonathan.lemon@gmail.com \
--cc=ast@kernel.org \
--cc=bjorn.topel@intel.com \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=degeneloy@gmail.com \
--cc=john.fastabend@gmail.com \
--cc=magnus.karlsson@intel.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).