Home
last modified time | relevance | path

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

/Linux-v5.4/kernel/bpf/
Dhashtab.c25 struct bpf_htab { struct
47 struct bpf_htab *htab; argument
62 static bool htab_is_lru(const struct bpf_htab *htab) in htab_is_lru()
68 static bool htab_is_percpu(const struct bpf_htab *htab) in htab_is_percpu()
74 static bool htab_is_prealloc(const struct bpf_htab *htab) in htab_is_prealloc()
95 static struct htab_elem *get_htab_elem(struct bpf_htab *htab, int i) in get_htab_elem()
100 static void htab_free_elems(struct bpf_htab *htab) in htab_free_elems()
119 static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key, in prealloc_lru_pop()
134 static int prealloc_init(struct bpf_htab *htab) in prealloc_init()
192 static void prealloc_destroy(struct bpf_htab *htab) in prealloc_destroy()
[all …]
/Linux-v5.4/net/core/
Dsock_map.c523 struct bpf_htab { struct
537 static struct bpf_htab_bucket *sock_hash_select_bucket(struct bpf_htab *htab, in sock_hash_select_bucket() argument
560 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in __sock_hash_lookup_elem()
574 static void sock_hash_free_elem(struct bpf_htab *htab, in sock_hash_free_elem()
584 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in sock_hash_delete_from_link()
608 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in sock_hash_delete_elem()
629 static struct bpf_htab_elem *sock_hash_alloc_elem(struct bpf_htab *htab, in sock_hash_alloc_elem()
658 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in sock_hash_update_common()
756 struct bpf_htab *htab = container_of(map, struct bpf_htab, map); in sock_hash_get_next_key()
795 struct bpf_htab *htab; in sock_hash_alloc()
[all …]