[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231003071013.824623-1-m@lambda.lt>
Date: Tue, 3 Oct 2023 09:10:11 +0200
From: Martynas Pumputis <m@...bda.lt>
To: bpf@...r.kernel.org
Cc: Daniel Borkmann <daniel@...earbox.net>,
netdev@...r.kernel.org,
Martin KaFai Lau <martin.lau@...ux.dev>,
Nikolay Aleksandrov <razor@...ckwall.org>,
Martynas Pumputis <m@...bda.lt>
Subject: [PATCH bpf v2 0/2] bpf: Fix src IP addr related limitation in bpf_*_fib_lookup()
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!
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
Powered by blists - more mailing lists