Re: [PATCH ipsec-next v8 06/14] xfrm: split xfrm_state_migrate into create and install functions
From: Sabrina Dubroca
Date: Thu May 07 2026 - 06:13:50 EST
2026-05-05, 06:33:07 +0200, Antony Antony wrote:
> To prepare for subsequent patches, split
> xfrm_state_migrate() into two functions:
> - xfrm_state_migrate_create(): creates the migrated state
> - xfrm_state_migrate_install(): installs it into the state table
>
> splitting will help to avoid SN/IV reuse when migrating AEAD SA.
>
> And add const whenever possible.
> No functional change.
>
> Signed-off-by: Antony Antony <antony.antony@xxxxxxxxxxx>
Reviewed-by: Sabrina Dubroca <sd@xxxxxxxxxxxxxxx>
(I was going to mention xuo, but I see it's handled later on)
--
Sabrina