Home
last modified time | relevance | path

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

/linux-5.19.10/net/xfrm/
Dxfrm_state.c64 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash()
72 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash()
79 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
84 return __xfrm_seq_hash(seq, net->xfrm.state_hmask); in xfrm_seq_hash()
124 static unsigned long xfrm_hash_new_size(unsigned int state_hmask) in xfrm_hash_new_size() argument
126 return ((state_hmask + 1) << 1) * sizeof(struct hlist_head); in xfrm_hash_new_size()
137 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize()
165 for (i = net->xfrm.state_hmask; i >= 0; i--) in xfrm_hash_resize()
171 ohashmask = net->xfrm.state_hmask; in xfrm_hash_resize()
177 net->xfrm.state_hmask = nhashmask; in xfrm_hash_resize()
[all …]
/linux-5.19.10/include/net/netns/
Dxfrm.h46 unsigned int state_hmask; member