Searched refs:dtab (Results 1 – 1 of 1) sorted by relevance
68 struct bpf_dtab *dtab; member105 static inline struct hlist_head *dev_map_index_hash(struct bpf_dtab *dtab, in dev_map_index_hash() argument108 return &dtab->dev_index_head[idx & (dtab->n_buckets - 1)]; in dev_map_index_hash()111 static int dev_map_init_map(struct bpf_dtab *dtab, union bpf_attr *attr) in dev_map_init_map() argument131 bpf_map_init_from_attr(&dtab->map, attr); in dev_map_init_map()134 dtab->n_buckets = roundup_pow_of_two(dtab->map.max_entries); in dev_map_init_map()136 if (!dtab->n_buckets) /* Overflow check */ in dev_map_init_map()141 dtab->dev_index_head = dev_map_create_hash(dtab->n_buckets, in dev_map_init_map()142 dtab->map.numa_node); in dev_map_init_map()143 if (!dtab->dev_index_head) in dev_map_init_map()[all …]