Home
last modified time | relevance | path

Searched refs:pols (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/net/xfrm/
H A Dxfrm_policy.c2429 xfrm_tmpl_resolve(struct xfrm_policy **pols, int npols, const struct flowi *fl, in xfrm_tmpl_resolve() argument
2440 if (cnx + pols[i]->xfrm_nr >= XFRM_MAX_DEPTH) { in xfrm_tmpl_resolve()
2445 ret = xfrm_tmpl_resolve_one(pols[i], fl, &tpp[cnx], family); in xfrm_tmpl_resolve()
2678 struct xfrm_policy **pols, in xfrm_expand_policies() argument
2683 if (*num_pols == 0 || !pols[0]) { in xfrm_expand_policies()
2688 if (IS_ERR(pols[0])) { in xfrm_expand_policies()
2690 return PTR_ERR(pols[0]); in xfrm_expand_policies()
2693 *num_xfrms = pols[0]->xfrm_nr; in xfrm_expand_policies()
2696 if (pols[0] && pols[0]->action == XFRM_POLICY_ALLOW && in xfrm_expand_policies()
2697 pols[0]->type != XFRM_POLICY_TYPE_MAIN) { in xfrm_expand_policies()
[all …]
/OK3568_Linux_fs/kernel/include/net/
H A Dxfrm.h775 static inline void xfrm_pols_put(struct xfrm_policy **pols, int npols) in xfrm_pols_put() argument
779 xfrm_pol_put(pols[i]); in xfrm_pols_put()
934 struct xfrm_policy *pols[XFRM_POLICY_TYPE_MAX]; member
975 xfrm_pols_put(xdst->pols, xdst->num_pols); in xfrm_dst_destroy()