Lines Matching refs:XFRM_POLICY_MAX
662 si->inscnt = net->xfrm.policy_count[XFRM_POLICY_IN+XFRM_POLICY_MAX]; in xfrm_spd_getinfo()
663 si->outscnt = net->xfrm.policy_count[XFRM_POLICY_OUT+XFRM_POLICY_MAX]; in xfrm_spd_getinfo()
664 si->fwdscnt = net->xfrm.policy_count[XFRM_POLICY_FWD+XFRM_POLICY_MAX]; in xfrm_spd_getinfo()
679 for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { in xfrm_hash_resize()
1257 if (policy->walk.dead || dir >= XFRM_POLICY_MAX) in xfrm_hash_rebuild()
1291 for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { in xfrm_hash_rebuild()
1327 if (dir >= XFRM_POLICY_MAX) { in xfrm_hash_rebuild()
1758 xfrm_policy_id2dir(pol->index) >= XFRM_POLICY_MAX || in xfrm_policy_flush_secctx_check()
1793 dir >= XFRM_POLICY_MAX || in xfrm_policy_flush()
2231 __xfrm_policy_link(pol, XFRM_POLICY_MAX + dir); in xfrm_sk_policy_link()
2236 __xfrm_policy_unlink(pol, XFRM_POLICY_MAX + dir); in xfrm_sk_policy_unlink()
2269 pol->index = xfrm_gen_index(net, XFRM_POLICY_MAX+dir, 0); in xfrm_sk_policy_insert()
4014 for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { in xfrm_policy_init()
4018 net->xfrm.policy_count[XFRM_POLICY_MAX + dir] = 0; in xfrm_policy_init()
4070 for (dir = 0; dir < XFRM_POLICY_MAX; dir++) { in xfrm_policy_fini()
4388 if (dir >= XFRM_POLICY_MAX) { in xfrm_migrate()