]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bpf/btf: bump BTF_KFUNC_SET_MAX_CNT
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 6 Sep 2022 15:13:01 +0000 (17:13 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Sep 2022 18:05:03 +0000 (11:05 -0700)
net/bpf/test_run.c is already presenting 20 kfuncs.
net/netfilter/nf_conntrack_bpf.c is also presenting an extra 10 kfuncs.

Given that all the kfuncs are regrouped into one unique set, having
only 2 space left prevent us to add more selftests.

Bump it to 256.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220906151303.2780789-6-benjamin.tissoires@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c

index 9291e2b2c9508728b12887616c311768f1a559b5..2c2d8190ca4a1bcfeaccffab6bc9ce9a3ad0cc75 100644 (file)
@@ -208,7 +208,7 @@ enum btf_kfunc_hook {
 };
 
 enum {
-       BTF_KFUNC_SET_MAX_CNT = 32,
+       BTF_KFUNC_SET_MAX_CNT = 256,
        BTF_DTOR_KFUNC_MAX_CNT = 256,
 };