Searched refs:sk_policy (Results 1 – 5 of 5) sorted by relevance
313 return sk && (rcu_access_pointer(sk->sk_policy[0]) || in l2tp_tunnel_uses_xfrm()314 rcu_access_pointer(sk->sk_policy[1])); in l2tp_tunnel_uses_xfrm()
357 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec()358 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
1127 if (sk && sk->sk_policy[XFRM_POLICY_IN]) in __xfrm_policy_check2()1208 sk->sk_policy[0] = NULL; in xfrm_sk_clone_policy()1209 sk->sk_policy[1] = NULL; in xfrm_sk_clone_policy()1210 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy()1221 pol = rcu_dereference_protected(sk->sk_policy[0], 1); in xfrm_sk_free_policy()1224 sk->sk_policy[0] = NULL; in xfrm_sk_free_policy()1226 pol = rcu_dereference_protected(sk->sk_policy[1], 1); in xfrm_sk_free_policy()1229 sk->sk_policy[1] = NULL; in xfrm_sk_free_policy()
437 struct xfrm_policy __rcu *sk_policy[2]; member
2165 pol = rcu_dereference(sk->sk_policy[dir]); in xfrm_sk_policy_lookup()2266 old_pol = rcu_dereference_protected(sk->sk_policy[dir], in xfrm_sk_policy_insert()2273 rcu_assign_pointer(sk->sk_policy[dir], pol); in xfrm_sk_policy_insert()2331 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()2338 rcu_assign_pointer(sk->sk_policy[i], np); in __xfrm_sk_clone_policy()3049 if (sk && sk->sk_policy[XFRM_POLICY_OUT]) { in xfrm_lookup_with_ifid()3559 if (sk && sk->sk_policy[dir]) { in __xfrm_policy_check()