[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200521191752.3448223-1-kafai@fb.com>
Date: Thu, 21 May 2020 12:17:52 -0700
From: Martin KaFai Lau <kafai@...com>
To: <bpf@...r.kernel.org>
CC: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>, <kernel-team@...com>,
<netdev@...r.kernel.org>
Subject: [PATCH bpf-next 0/3] bpf: Allow inner map with different max_entries
This series allows the outer map to be updated with inner map in different
size as long as it is safe (meaning the max_entries is not used in the
verification time during prog load).
Please see individual patch for details.
Martin KaFai Lau (3):
bpf: Clean up inner map type check
bpf: Relax the max_entries check for inner map
bpf: selftests: Add test for different inner map size
include/linux/bpf.h | 18 +++++-
include/linux/bpf_types.h | 64 +++++++++++--------
kernel/bpf/btf.c | 2 +-
kernel/bpf/map_in_map.c | 12 ++--
kernel/bpf/syscall.c | 19 +++++-
kernel/bpf/verifier.c | 2 +-
.../selftests/bpf/prog_tests/btf_map_in_map.c | 12 ++++
.../selftests/bpf/progs/test_btf_map_in_map.c | 31 +++++++++
8 files changed, 119 insertions(+), 41 deletions(-)
--
2.24.1
Powered by blists - more mailing lists