Home
last modified time | relevance | path

Searched refs:sk_policy (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/net/l2tp/
Dl2tp_core.h313 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()
/Linux-v6.6/net/smc/
Dsmc.h357 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec()
358 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
/Linux-v6.6/include/net/
Dxfrm.h1168 if (sk && sk->sk_policy[XFRM_POLICY_IN]) in __xfrm_policy_check2()
1256 sk->sk_policy[0] = NULL; in xfrm_sk_clone_policy()
1257 sk->sk_policy[1] = NULL; in xfrm_sk_clone_policy()
1258 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy()
1269 pol = rcu_dereference_protected(sk->sk_policy[0], 1); in xfrm_sk_free_policy()
1272 sk->sk_policy[0] = NULL; in xfrm_sk_free_policy()
1274 pol = rcu_dereference_protected(sk->sk_policy[1], 1); in xfrm_sk_free_policy()
1277 sk->sk_policy[1] = NULL; in xfrm_sk_free_policy()
Dsock.h442 struct xfrm_policy __rcu *sk_policy[2]; member
/Linux-v6.6/net/xfrm/
Dxfrm_policy.c2246 pol = rcu_dereference(sk->sk_policy[dir]); in xfrm_sk_policy_lookup()
2348 old_pol = rcu_dereference_protected(sk->sk_policy[dir], in xfrm_sk_policy_insert()
2355 rcu_assign_pointer(sk->sk_policy[dir], pol); in xfrm_sk_policy_insert()
2413 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()
2420 rcu_assign_pointer(sk->sk_policy[i], np); in __xfrm_sk_clone_policy()
3131 if (sk && sk->sk_policy[XFRM_POLICY_OUT]) { in xfrm_lookup_with_ifid()
3649 if (sk && sk->sk_policy[dir]) { in __xfrm_policy_check()