]> git.ipfire.org Git - thirdparty/linux.git/commit
xfrm: split xfrm_state_migrate into create and install functions
authorAntony Antony <antony.antony@secunet.com>
Tue, 26 May 2026 19:07:30 +0000 (21:07 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 4 Jun 2026 10:22:39 +0000 (12:22 +0200)
commit8de53883a4bf807a628f0d150a7ca7ddf56a5cc3
treeb36df409612ab3970137b28c8ef5e3e91cfd58e3
parente2e92714d08117d18f0e560673206717d10edbd4
xfrm: split xfrm_state_migrate into create and install functions

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.

Reviewed-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/xfrm/xfrm_state.c