]> git.ipfire.org Git - thirdparty/linux.git/commit
libbpf: prog load: Allow to use fd_array_cnt
authorAnton Protopopov <aspsk@isovalent.com>
Fri, 13 Dec 2024 13:09:32 +0000 (13:09 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 13 Dec 2024 22:48:39 +0000 (14:48 -0800)
commitf9933acda31a9882b6e08f58cb976e67842a180b
treee752461df968a0fdcf2681ed2499b29f7f4d9d4f
parent4d3ae294f900fb7232fb6c890dbd3176b8a5f121
libbpf: prog load: Allow to use fd_array_cnt

Add new fd_array_cnt field to bpf_prog_load_opts
and pass it in bpf_attr, if set.

Signed-off-by: Anton Protopopov <aspsk@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241213130934.1087929-6-aspsk@isovalent.com
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h