Searched refs:state_hmask (Results 1 – 1 of 1) sorted by relevance
/net/xfrm/ |
D | xfrm_state.c | 63 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash() 71 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash() 78 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash() 83 return __xfrm_seq_hash(seq, net->xfrm.state_hmask); in xfrm_seq_hash() 123 static unsigned long xfrm_hash_new_size(unsigned int state_hmask) in xfrm_hash_new_size() argument 125 return ((state_hmask + 1) << 1) * sizeof(struct hlist_head); in xfrm_hash_new_size() 136 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize() 164 for (i = net->xfrm.state_hmask; i >= 0; i--) in xfrm_hash_resize() 170 ohashmask = net->xfrm.state_hmask; in xfrm_hash_resize() 176 net->xfrm.state_hmask = nhashmask; in xfrm_hash_resize() [all …]
|