Home
last modified time | relevance | path

Searched refs:policy_count (Results 1 – 3 of 3) sorted by relevance

/linux/include/net/netns/
H A Dxfrm.h56 unsigned int policy_count[XFRM_POLICY_MAX * 2]; member
/linux/net/xfrm/
H A Dxfrm_policy.c691 unsigned int cnt = READ_ONCE(net->xfrm.policy_count[dir]); in xfrm_bydst_should_resize()
717 si->incnt = READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_IN]); in xfrm_spd_getinfo()
718 si->outcnt = READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_OUT]); in xfrm_spd_getinfo()
719 si->fwdcnt = READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_FWD]); in xfrm_spd_getinfo()
720 si->inscnt = READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_IN+XFRM_POLICY_MAX]); in xfrm_spd_getinfo()
721 si->outscnt = READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_OUT+XFRM_POLICY_MAX]); in xfrm_spd_getinfo()
722 si->fwdscnt = READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_FWD+XFRM_POLICY_MAX]); in xfrm_spd_getinfo()
2324 WRITE_ONCE(net->xfrm.policy_count[dir], net->xfrm.policy_count[dir] + 1); in __xfrm_policy_link()
2343 WRITE_ONCE(net->xfrm.policy_count[dir], net->xfrm.policy_count[dir] - 1); in __xfrm_policy_unlink()
3228 !READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_OUT]))) in xfrm_lookup_with_ifid()
[all …]
/linux/include/net/
H A Dxfrm.h1272 if (!READ_ONCE(net->xfrm.policy_count[dir]) && !secpath_exists(skb)) in __xfrm_check_nopolicy()
1373 if (!READ_ONCE(net->xfrm.policy_count[XFRM_POLICY_OUT]) && in xfrm_route_forward()