Searched refs:dtab (Results 1 – 1 of 1) sorted by relevance
103 static inline struct hlist_head *dev_map_index_hash(struct bpf_dtab *dtab, in dev_map_index_hash() argument106 return &dtab->dev_index_head[idx & (dtab->n_buckets - 1)]; in dev_map_index_hash()134 static int dev_map_init_map(struct bpf_dtab *dtab, union bpf_attr *attr) in dev_map_init_map() argument140 bpf_map_init_from_attr(&dtab->map, attr); in dev_map_init_map()144 dtab->n_buckets = roundup_pow_of_two(dtab->map.max_entries); in dev_map_init_map()145 dtab->dev_index_head = dev_map_create_hash(dtab->n_buckets, in dev_map_init_map()146 dtab->map.numa_node); in dev_map_init_map()147 if (!dtab->dev_index_head) in dev_map_init_map()150 spin_lock_init(&dtab->index_lock); in dev_map_init_map()152 dtab->netdev_map = bpf_map_area_alloc((u64) dtab->map.max_entries * in dev_map_init_map()[all …]