Home
last modified time | relevance | path

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

/linux-6.1.9/net/xfrm/
Dxfrm_user.c2672 int i, num_migrate; in copy_from_user_migrate() local
2685 num_migrate = nla_len(rt) / sizeof(*um); in copy_from_user_migrate()
2687 if (num_migrate <= 0 || num_migrate > XFRM_MAX_DEPTH) in copy_from_user_migrate()
2690 for (i = 0; i < num_migrate; i++, um++, ma++) { in copy_from_user_migrate()
2793 static inline unsigned int xfrm_migrate_msgsize(int num_migrate, int with_kma, in xfrm_migrate_msgsize() argument
2799 + nla_total_size(sizeof(struct xfrm_user_migrate) * num_migrate) in xfrm_migrate_msgsize()
2804 int num_migrate, const struct xfrm_kmaddress *k, in build_migrate() argument
2836 for (i = 0, mp = m ; i < num_migrate; i++, mp++) { in build_migrate()
2851 const struct xfrm_migrate *m, int num_migrate, in xfrm_send_migrate() argument
2859 skb = nlmsg_new(xfrm_migrate_msgsize(num_migrate, !!k, !!encap), in xfrm_send_migrate()
[all …]
Dxfrm_policy.c4336 struct xfrm_migrate *m, int num_migrate) in xfrm_policy_migrate() argument
4349 for (j = 0, mp = m; j < num_migrate; j++, mp++) { in xfrm_policy_migrate()
4375 static int xfrm_migrate_check(const struct xfrm_migrate *m, int num_migrate) in xfrm_migrate_check() argument
4379 if (num_migrate < 1 || num_migrate > XFRM_MAX_DEPTH) in xfrm_migrate_check()
4382 for (i = 0; i < num_migrate; i++) { in xfrm_migrate_check()
4388 for (j = i + 1; j < num_migrate; j++) { in xfrm_migrate_check()
4405 struct xfrm_migrate *m, int num_migrate, in xfrm_migrate() argument
4417 if ((err = xfrm_migrate_check(m, num_migrate)) < 0) in xfrm_migrate()
4432 for (i = 0, mp = m; i < num_migrate; i++, mp++) { in xfrm_migrate()
4448 if ((err = xfrm_policy_migrate(pol, m, num_migrate)) < 0) in xfrm_migrate()
[all …]
Dxfrm_state.c2305 const struct xfrm_migrate *m, int num_migrate, in km_migrate() argument
2316 ret = km->migrate(sel, dir, type, m, num_migrate, k, in km_migrate()