Home
last modified time | relevance | path

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

/net/xfrm/
Dxfrm_user.c2156 int i, num_migrate; in copy_from_user_migrate() local
2169 num_migrate = nla_len(rt) / sizeof(*um); in copy_from_user_migrate()
2171 if (num_migrate <= 0 || num_migrate > XFRM_MAX_DEPTH) in copy_from_user_migrate()
2174 for (i = 0; i < num_migrate; i++, um++, ma++) { in copy_from_user_migrate()
2267 static inline size_t xfrm_migrate_msgsize(int num_migrate, int with_kma) in xfrm_migrate_msgsize() argument
2271 + nla_total_size(sizeof(struct xfrm_user_migrate) * num_migrate) in xfrm_migrate_msgsize()
2276 int num_migrate, const struct xfrm_kmaddress *k, in build_migrate() argument
2302 for (i = 0, mp = m ; i < num_migrate; i++, mp++) { in build_migrate()
2316 const struct xfrm_migrate *m, int num_migrate, in xfrm_send_migrate() argument
2327 skb = nlmsg_new(xfrm_migrate_msgsize(num_migrate, !!k), GFP_ATOMIC); in xfrm_send_migrate()
[all …]
Dxfrm_policy.c3170 struct xfrm_migrate *m, int num_migrate) in xfrm_policy_migrate() argument
3183 for (j = 0, mp = m; j < num_migrate; j++, mp++) { in xfrm_policy_migrate()
3209 static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate) in xfrm_migrate_check() argument
3213 if (num_migrate < 1 || num_migrate > XFRM_MAX_DEPTH) in xfrm_migrate_check()
3216 for (i = 0; i < num_migrate; i++) { in xfrm_migrate_check()
3227 for (j = i + 1; j < num_migrate; j++) { in xfrm_migrate_check()
3244 struct xfrm_migrate *m, int num_migrate, in xfrm_migrate() argument
3255 if ((err = xfrm_migrate_check(m, num_migrate)) < 0) in xfrm_migrate()
3270 for (i = 0, mp = m; i < num_migrate; i++, mp++) { in xfrm_migrate()
3285 if ((err = xfrm_policy_migrate(pol, m, num_migrate)) < 0) in xfrm_migrate()
[all …]
Dxfrm_state.c1783 const struct xfrm_migrate *m, int num_migrate, in km_migrate() argument
1793 ret = km->migrate(sel, dir, type, m, num_migrate, k); in km_migrate()