Home
last modified time | relevance | path

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

/net/core/
Dsock_map.c881 static struct bpf_shtab_bucket *sock_hash_select_bucket(struct bpf_shtab *htab, in sock_hash_select_bucket() argument
884 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket()
904 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in __sock_hash_lookup_elem() local
912 bucket = sock_hash_select_bucket(htab, hash); in __sock_hash_lookup_elem()
918 static void sock_hash_free_elem(struct bpf_shtab *htab, in sock_hash_free_elem() argument
921 atomic_dec(&htab->count); in sock_hash_free_elem()
928 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_from_link() local
933 bucket = sock_hash_select_bucket(htab, elem->hash); in sock_hash_delete_from_link()
945 sock_hash_free_elem(htab, elem); in sock_hash_delete_from_link()
952 struct bpf_shtab *htab = container_of(map, struct bpf_shtab, map); in sock_hash_delete_elem() local
[all …]
/net/xfrm/
Dxfrm_policy.c4087 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
4093 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init()
4094 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init()
4095 if (!htab->table) in xfrm_policy_init()
4097 htab->hmask = hmask; in xfrm_policy_init()
4098 htab->dbits4 = 32; in xfrm_policy_init()
4099 htab->sbits4 = 32; in xfrm_policy_init()
4100 htab->dbits6 = 128; in xfrm_policy_init()
4101 htab->sbits6 = 128; in xfrm_policy_init()
4118 struct xfrm_policy_hash *htab; in xfrm_policy_init() local
[all …]