Home
last modified time | relevance | path

Searched refs:buckets_num (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/kernel/net/core/
H A Dsock_map.c870 u32 buckets_num; member
884 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket()
1095 i = hash & (htab->buckets_num - 1); in sock_hash_get_next_key()
1098 for (; i < htab->buckets_num; i++) { in sock_hash_get_next_key()
1134 htab->buckets_num = roundup_pow_of_two(htab->map.max_entries); in sock_hash_alloc()
1137 if (htab->buckets_num == 0 || in sock_hash_alloc()
1138 htab->buckets_num > U32_MAX / sizeof(struct bpf_shtab_bucket)) { in sock_hash_alloc()
1143 cost = (u64) htab->buckets_num * sizeof(struct bpf_shtab_bucket) + in sock_hash_alloc()
1153 htab->buckets = bpf_map_area_alloc(htab->buckets_num * in sock_hash_alloc()
1162 for (i = 0; i < htab->buckets_num; i++) { in sock_hash_alloc()
[all …]