]> git.ipfire.org Git - thirdparty/linux.git/commit
xfrm: move encap and xuo into struct xfrm_migrate
authorAntony Antony <antony.antony@secunet.com>
Tue, 26 May 2026 19:08:46 +0000 (21:08 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 4 Jun 2026 10:22:42 +0000 (12:22 +0200)
commit1d97daee303847bd9f0ff97dc257380fc156206d
tree549fd2e815329773f169c0b7cf2181999ec940c1
parent15e5d32de6bf008eff2b6f60db0c7c3e2cef5a3b
xfrm: move encap and xuo into struct xfrm_migrate

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.

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_policy.c
net/xfrm/xfrm_state.c