Home
last modified time | relevance | path

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

/net/xfrm/
Dxfrm_hash.h47 __u8 sbits) in __xfrm4_dpref_spref_hash() argument
50 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash()
78 __u8 sbits) in __xfrm6_dpref_spref_hash() argument
81 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash()
141 u8 dbits, u8 sbits) in __sel_hash() argument
150 sel->prefixlen_s < sbits) in __sel_hash()
153 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
158 sel->prefixlen_s < sbits) in __sel_hash()
161 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
172 u8 dbits, u8 sbits) in __addr_hash() argument
[all …]
Dxfrm_policy.c359 u8 *dbits, u8 *sbits) in __get_hash_thresh() argument
364 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh()
369 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh()
374 *sbits = 0; in __get_hash_thresh()
385 u8 sbits; in policy_hash_bysel() local
387 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_bysel()
388 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
403 u8 sbits; in policy_hash_direct() local
405 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_direct()
406 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
[all …]