aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-plat.c
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2022-09-02 21:10:52 +0000
committerDaniel Borkmann <[email protected]>2022-09-05 13:33:06 +0000
commit4ab67149f3c6e97c5c506a726f0ebdec38241679 (patch)
treecef5bd8102787075a2766028587d49a917053433 /drivers/usb/cdns3/cdns3-plat.c
parentbpf: Batch call_rcu callbacks instead of SLAB_TYPESAFE_BY_RCU. (diff)
downloadkernel-4ab67149f3c6e97c5c506a726f0ebdec38241679.tar.gz
kernel-4ab67149f3c6e97c5c506a726f0ebdec38241679.zip
bpf: Add percpu allocation support to bpf_mem_alloc.
Extend bpf_mem_alloc to cache free list of fixed size per-cpu allocations. Once such cache is created bpf_mem_cache_alloc() will return per-cpu objects. bpf_mem_cache_free() will free them back into global per-cpu pool after observing RCU grace period. per-cpu flavor of bpf_mem_alloc is going to be used by per-cpu hash maps. The free list cache consists of tuples { llist_node, per-cpu pointer } Unlike alloc_percpu() that returns per-cpu pointer the bpf_mem_cache_alloc() returns a pointer to per-cpu pointer and bpf_mem_cache_free() expects to receive it back. Signed-off-by: Alexei Starovoitov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Kumar Kartikeya Dwivedi <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions