linux-bl808/kernel/bpf
Yafang Shao 992c9e13f5 bpf: Make __GFP_NOWARN consistent in bpf map creation
Some of the bpf maps are created with __GFP_NOWARN, i.e. arraymap,
bloom_filter, bpf_local_storage, bpf_struct_ops, lpm_trie,
queue_stack_maps, reuseport_array, stackmap and xskmap, while others are
created without __GFP_NOWARN, i.e. cpumap, devmap, hashtab,
local_storage, offload, ringbuf and sock_map. But there are not key
differences between the creation of these maps. So let make this
allocation flag consistent in all bpf maps creation. Then we can use a
generic helper to alloc all bpf maps.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Link: https://lore.kernel.org/r/20220810151840.16394-4-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2022-08-10 11:49:25 -07:00
..
preload
arraymap.c
bloom_filter.c
bpf_inode_storage.c
bpf_iter.c bpf, iter: Fix the condition on p when calling stop. 2022-08-09 09:12:00 -07:00
bpf_local_storage.c
bpf_lru_list.c
bpf_lru_list.h
bpf_lsm.c
bpf_struct_ops.c
bpf_struct_ops_types.h
bpf_task_storage.c
btf.c bpf: Always return corresponding btf_type in __get_type_size() 2022-08-09 10:30:45 -07:00
cgroup.c
core.c bpf: Add BPF-helper for accessing CLOCK_TAI 2022-08-09 09:47:13 -07:00
cpumap.c bpf: Make __GFP_NOWARN consistent in bpf map creation 2022-08-10 11:49:25 -07:00
devmap.c bpf: Make __GFP_NOWARN consistent in bpf map creation 2022-08-10 11:49:25 -07:00
disasm.c
disasm.h
dispatcher.c
hashtab.c bpf: Make __GFP_NOWARN consistent in bpf map creation 2022-08-10 11:49:25 -07:00
helpers.c bpf: export crash_kexec() as destructive kfunc 2022-08-10 09:22:18 -07:00
inode.c
Kconfig
link_iter.c
local_storage.c bpf: Make __GFP_NOWARN consistent in bpf map creation 2022-08-10 11:49:25 -07:00
lpm_trie.c
Makefile
map_in_map.c
map_in_map.h
map_iter.c
mmap_unlock_work.h
net_namespace.c
offload.c bpf: Make __GFP_NOWARN consistent in bpf map creation 2022-08-10 11:49:25 -07:00
percpu_freelist.c
percpu_freelist.h
prog_iter.c
queue_stack_maps.c bpf: Remove unneeded memset in queue_stack_map creation 2022-08-10 11:48:22 -07:00
reuseport_array.c
ringbuf.c bpf: Make __GFP_NOWARN consistent in bpf map creation 2022-08-10 11:49:25 -07:00
stackmap.c
syscall.c
sysfs_btf.c
task_iter.c
tnum.c
trampoline.c
verifier.c bpf: add destructive kfunc flag 2022-08-10 09:22:18 -07:00