Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/include/net/
H A Dinet_hashtables.h132 spinlock_t *ehash_locks; member
183 return &hashinfo->ehash_locks[hash & hashinfo->ehash_locks_mask]; in inet_ehash_lockp()
196 kvfree(hashinfo->ehash_locks); in inet_ehash_locks_free()
197 hashinfo->ehash_locks = NULL; in inet_ehash_locks_free()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dinet_hashtables.c949 hashinfo->ehash_locks = kvmalloc_array(nblocks, locksz, GFP_KERNEL); in inet_ehash_locks_alloc()
950 if (!hashinfo->ehash_locks) in inet_ehash_locks_alloc()
954 spin_lock_init(&hashinfo->ehash_locks[i]); in inet_ehash_locks_alloc()