Home
last modified time | relevance | path

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

/linux-6.6.21/net/xfrm/
Dxfrm_user.c2773 int i, num_migrate; in copy_from_user_migrate() local
2786 num_migrate = nla_len(rt) / sizeof(*um); in copy_from_user_migrate()
2788 if (num_migrate <= 0 || num_migrate > XFRM_MAX_DEPTH) { in copy_from_user_migrate()
2793 for (i = 0; i < num_migrate; i++, um++, ma++) { in copy_from_user_migrate()
2899 static inline unsigned int xfrm_migrate_msgsize(int num_migrate, int with_kma, in xfrm_migrate_msgsize() argument
2905 + nla_total_size(sizeof(struct xfrm_user_migrate) * num_migrate) in xfrm_migrate_msgsize()
2910 int num_migrate, const struct xfrm_kmaddress *k, in build_migrate() argument
2942 for (i = 0, mp = m ; i < num_migrate; i++, mp++) { in build_migrate()
2957 const struct xfrm_migrate *m, int num_migrate, in xfrm_send_migrate() argument
2965 skb = nlmsg_new(xfrm_migrate_msgsize(num_migrate, !!k, !!encap), in xfrm_send_migrate()
[all …]
Dxfrm_policy.c4428 struct xfrm_migrate *m, int num_migrate, in xfrm_policy_migrate() argument
4443 for (j = 0, mp = m; j < num_migrate; j++, mp++) { in xfrm_policy_migrate()
4469 static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate, in xfrm_migrate_check() argument
4474 if (num_migrate < 1 || num_migrate > XFRM_MAX_DEPTH) { in xfrm_migrate_check()
4479 for (i = 0; i < num_migrate; i++) { in xfrm_migrate_check()
4487 for (j = i + 1; j < num_migrate; j++) { in xfrm_migrate_check()
4506 struct xfrm_migrate *m, int num_migrate, in xfrm_migrate() argument
4519 err = xfrm_migrate_check(m, num_migrate, extack); in xfrm_migrate()
4538 for (i = 0, mp = m; i < num_migrate; i++, mp++) { in xfrm_migrate()
4554 err = xfrm_policy_migrate(pol, m, num_migrate, extack); in xfrm_migrate()
[all …]
Dxfrm_state.c2468 const struct xfrm_migrate *m, int num_migrate, in km_migrate() argument
2479 ret = km->migrate(sel, dir, type, m, num_migrate, k, in km_migrate()