Home
last modified time | relevance | path

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

/net/xfrm/
Dxfrm_hash.h48 __u8 sbits) in __xfrm4_dpref_spref_hash() argument
51 ntohl(saddr->a4) & __bits2mask32(sbits), in __xfrm4_dpref_spref_hash()
79 __u8 sbits) in __xfrm6_dpref_spref_hash() argument
82 __xfrm6_pref_hash(saddr, sbits); in __xfrm6_dpref_spref_hash()
142 u8 dbits, u8 sbits) in __sel_hash() argument
151 sel->prefixlen_s < sbits) in __sel_hash()
154 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
159 sel->prefixlen_s < sbits) in __sel_hash()
162 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
173 u8 dbits, u8 sbits) in __addr_hash() argument
[all …]
Dxfrm_policy.c338 u8 *dbits, u8 *sbits) in __get_hash_thresh() argument
343 *sbits = net->xfrm.policy_bydst[dir].sbits4; in __get_hash_thresh()
348 *sbits = net->xfrm.policy_bydst[dir].sbits6; in __get_hash_thresh()
353 *sbits = 0; in __get_hash_thresh()
364 u8 sbits; in policy_hash_bysel() local
366 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_bysel()
367 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
384 u8 sbits; in policy_hash_direct() local
386 __get_hash_thresh(net, family, dir, &dbits, &sbits); in policy_hash_direct()
387 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
[all …]