Searched refs:sk_policy (Results 1 – 5 of 5) sorted by relevance
287 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec()288 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
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()
1122 if (sk && sk->sk_policy[XFRM_POLICY_IN]) in __xfrm_policy_check2()1201 sk->sk_policy[0] = NULL; in xfrm_sk_clone_policy()1202 sk->sk_policy[1] = NULL; in xfrm_sk_clone_policy()1203 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy()1214 pol = rcu_dereference_protected(sk->sk_policy[0], 1); in xfrm_sk_free_policy()1217 sk->sk_policy[0] = NULL; in xfrm_sk_free_policy()1219 pol = rcu_dereference_protected(sk->sk_policy[1], 1); in xfrm_sk_free_policy()1222 sk->sk_policy[1] = NULL; in xfrm_sk_free_policy()
430 struct xfrm_policy __rcu *sk_policy[2]; member
2167 pol = rcu_dereference(sk->sk_policy[dir]); in xfrm_sk_policy_lookup()2269 old_pol = rcu_dereference_protected(sk->sk_policy[dir], in xfrm_sk_policy_insert()2276 rcu_assign_pointer(sk->sk_policy[dir], pol); in xfrm_sk_policy_insert()2334 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()2341 rcu_assign_pointer(sk->sk_policy[i], np); in __xfrm_sk_clone_policy()3052 if (sk && sk->sk_policy[XFRM_POLICY_OUT]) { in xfrm_lookup_with_ifid()3602 if (sk && sk->sk_policy[dir]) { in __xfrm_policy_check()