Re: [PATCH ipsec-next v8 10/14] xfrm: move encap and xuo into struct xfrm_migrate
From: Sabrina Dubroca
Date: Thu May 07 2026 - 09:32:15 EST
2026-05-05, 06:34:04 +0200, Antony Antony wrote:
> In preparation for an upcoming patch, move the xfrm_encap_tmpl and
> xfrm_user_offload pointers from separate parameters into struct
> xfrm_migrate, reducing the parameter count of
> xfrm_state_migrate_create(), xfrm_state_migrate_install(), and
> xfrm_state_migrate().
>
> The fields are placed after the four xfrm_address_t members where
> the struct is naturally 8-byte aligned, avoiding padding.
>
> No functional change.
>
> Signed-off-by: Antony Antony <antony.antony@xxxxxxxxxxx>
>
> ---
> v5->v6: added this patch.
> ---
> include/net/xfrm.h | 7 ++-----
> net/xfrm/xfrm_policy.c | 4 +++-
> net/xfrm/xfrm_state.c | 20 +++++++-------------
> 3 files changed, 12 insertions(+), 19 deletions(-)
Reviewed-by: Sabrina Dubroca <sd@xxxxxxxxxxxxxxx>
--
Sabrina