Searched refs:nbuckets (Results 1 – 1 of 1) sorted by relevance
637 u32 nbuckets; in bpf_sk_storage_map_alloc() local646 nbuckets = roundup_pow_of_two(num_possible_cpus()); in bpf_sk_storage_map_alloc()648 nbuckets = max_t(u32, 2, nbuckets); in bpf_sk_storage_map_alloc()649 smap->bucket_log = ilog2(nbuckets); in bpf_sk_storage_map_alloc()650 cost = sizeof(*smap->buckets) * nbuckets + sizeof(*smap); in bpf_sk_storage_map_alloc()658 smap->buckets = kvcalloc(sizeof(*smap->buckets), nbuckets, in bpf_sk_storage_map_alloc()666 for (i = 0; i < nbuckets; i++) { in bpf_sk_storage_map_alloc()