Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/smc/
Dsmc.h287 return (smc->clcsock->sk->sk_policy[0] || in using_ipsec()
288 smc->clcsock->sk->sk_policy[1]) ? true : false; in using_ipsec()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/net/
Dxfrm.h1122 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()
Dsock.h430 struct xfrm_policy __rcu *sk_policy[2]; member
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_policy.c2167 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()