diff options
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index eb76da74dfa4..0770b3ae5ccb 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c | |||
@@ -311,7 +311,9 @@ static inline unsigned int idx_hash(struct net *net, u32 index) | |||
311 | return __idx_hash(index, net->xfrm.policy_idx_hmask); | 311 | return __idx_hash(index, net->xfrm.policy_idx_hmask); |
312 | } | 312 | } |
313 | 313 | ||
314 | static struct hlist_head *policy_hash_bysel(struct net *net, struct xfrm_selector *sel, unsigned short family, int dir) | 314 | static struct hlist_head *policy_hash_bysel(struct net *net, |
315 | const struct xfrm_selector *sel, | ||
316 | unsigned short family, int dir) | ||
315 | { | 317 | { |
316 | unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; | 318 | unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; |
317 | unsigned int hash = __sel_hash(sel, family, hmask); | 319 | unsigned int hash = __sel_hash(sel, family, hmask); |
@@ -321,7 +323,10 @@ static struct hlist_head *policy_hash_bysel(struct net *net, struct xfrm_selecto | |||
321 | net->xfrm.policy_bydst[dir].table + hash); | 323 | net->xfrm.policy_bydst[dir].table + hash); |
322 | } | 324 | } |
323 | 325 | ||
324 | static struct hlist_head *policy_hash_direct(struct net *net, xfrm_address_t *daddr, xfrm_address_t *saddr, unsigned short family, int dir) | 326 | static struct hlist_head *policy_hash_direct(struct net *net, |
327 | const xfrm_address_t *daddr, | ||
328 | const xfrm_address_t *saddr, | ||
329 | unsigned short family, int dir) | ||
325 | { | 330 | { |
326 | unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; | 331 | unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; |
327 | unsigned int hash = __addr_hash(daddr, saddr, family, hmask); | 332 | unsigned int hash = __addr_hash(daddr, saddr, family, hmask); |