aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netkit.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2023-10-20 13:32:02 +0000
committerAlexei Starovoitov <[email protected]>2023-10-20 21:15:13 +0000
commitd440ba91ca4d3004709876779d40713a99e21f6a (patch)
treee00e8bcbaedd9a6bc3783abe6edcb71b3c2ac382 /drivers/net/netkit.c
parentbpf: Use bpf_global_percpu_ma for per-cpu kptr in __bpf_obj_drop_impl() (diff)
downloadkernel-d440ba91ca4d3004709876779d40713a99e21f6a.tar.gz
kernel-d440ba91ca4d3004709876779d40713a99e21f6a.zip
selftests/bpf: Add more test cases for bpf memory allocator
Add the following 3 test cases for bpf memory allocator: 1) Do allocation in bpf program and free through map free 2) Do batch per-cpu allocation and per-cpu free in bpf program 3) Do per-cpu allocation in bpf program and free through map free For per-cpu allocation, because per-cpu allocation can not refill timely sometimes, so test 2) and test 3) consider it is OK for bpf_percpu_obj_new_impl() to return NULL. Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions