Home
last modified time | relevance | path

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

/linux-4.4.14/include/net/
Dinet_hashtables.h124 spinlock_t *ehash_locks; member
163 return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; in inet_ehash_lockp()
170 kvfree(hashinfo->ehash_locks); in inet_ehash_locks_free()
171 hashinfo->ehash_locks = NULL; in inet_ehash_locks_free()
/linux-4.4.14/net/ipv4/
Dinet_hashtables.c651 hashinfo->ehash_locks = kmalloc_array(nblocks, locksz, in inet_ehash_locks_alloc()
653 if (!hashinfo->ehash_locks) in inet_ehash_locks_alloc()
654 hashinfo->ehash_locks = vmalloc(nblocks * locksz); in inet_ehash_locks_alloc()
656 if (!hashinfo->ehash_locks) in inet_ehash_locks_alloc()
660 spin_lock_init(&hashinfo->ehash_locks[i]); in inet_ehash_locks_alloc()