From: Martynas Pumputis <m@lambda.lt>
To: bpf@vger.kernel.org
Cc: Daniel Borkmann <daniel@iogearbox.net>,
netdev@vger.kernel.org, Martin KaFai Lau <martin.lau@linux.dev>,
Nikolay Aleksandrov <razor@blackwall.org>,
Martynas Pumputis <m@lambda.lt>
Subject: [PATCH bpf v3 0/2] bpf: Fix src IP addr related limitation in bpf_*_fib_lookup()
Date: Sat, 7 Oct 2023 10:14:13 +0200 [thread overview]
Message-ID: <20231007081415.33502-1-m@lambda.lt> (raw)
The patchset fixes the limitation of bpf_*_fib_lookup() helper, which
prevents it from being used in BPF dataplanes with network interfaces
which have more than one IP addr. See the first patch for more details.
Thanks!
* v2->v3: Address Martin KaFai Lau's feedback
* v1->v2: Use IPv6 stubs to fix compilation when CONFIG_IPV6=m.
Martynas Pumputis (2):
bpf: Derive source IP addr via bpf_*_fib_lookup()
selftests/bpf: Add BPF_FIB_LOOKUP_SET_SRC tests
include/uapi/linux/bpf.h | 9 +++
net/core/filter.c | 13 +++-
tools/include/uapi/linux/bpf.h | 10 +++
.../selftests/bpf/prog_tests/fib_lookup.c | 76 +++++++++++++++++--
4 files changed, 101 insertions(+), 7 deletions(-)
--
2.42.0
next reply other threads:[~2023-10-07 8:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-07 8:14 Martynas Pumputis [this message]
2023-10-07 8:14 ` [PATCH bpf v3 1/2] bpf: Derive source IP addr via bpf_*_fib_lookup() Martynas Pumputis
2023-10-07 8:14 ` [PATCH bpf v3 2/2] selftests/bpf: Add BPF_FIB_LOOKUP_SRC tests Martynas Pumputis
2023-10-09 23:50 ` [PATCH bpf v3 0/2] bpf: Fix src IP addr related limitation in bpf_*_fib_lookup() patchwork-bot+netdevbpf
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=20231007081415.33502-1-m@lambda.lt \
--to=m@lambda.lt \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=martin.lau@linux.dev \
--cc=netdev@vger.kernel.org \
--cc=razor@blackwall.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).