Message ID | 20240224223418.526631-1-thinker.li@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | Allow struct_ops maps with a large number of programs | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Martin KaFai Lau <martin.lau@kernel.org>: On Sat, 24 Feb 2024 14:34:15 -0800 you wrote: > The BPF struct_ops previously only allowed for one page to be used for > the trampolines of all links in a map. However, we have recently run > out of space due to the large number of BPF program links. By > allocating additional pages when we exhaust an existing page, we can > accommodate more links in a single map. > > The variable st_map->image has been changed to st_map->image_pages, > and its type has been changed to an array of pointers to buffers of > PAGE_SIZE. Additional pages are allocated when all existing pages are > exhausted. > > [...] Here is the summary with links: - [bpf-next,v4,1/3] bpf, net: validate struct_ops when updating value. https://git.kernel.org/bpf/bpf-next/c/73e4f9e615d7 - [bpf-next,v4,2/3] bpf: struct_ops supports more than one page for trampolines. https://git.kernel.org/bpf/bpf-next/c/187e2af05abe - [bpf-next,v4,3/3] selftests/bpf: Test struct_ops maps with a large number of program links. https://git.kernel.org/bpf/bpf-next/c/93bc28d859e5 You are awesome, thank you!