aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorChiachang Wang <[email protected]>2025-03-13 02:36:41 +0000
committerSteffen Klassert <[email protected]>2025-04-17 09:00:37 +0000
commite8961c50ee9cc329b9ba4959aa1b8794fae17ab2 (patch)
treed21da77b30d8d2cdf9ad641b9173f43ac38ae445 /net/xfrm/xfrm_user.c
parentxfrm: Migrate offload configuration (diff)
downloadkernel-e8961c50ee9cc329b9ba4959aa1b8794fae17ab2.tar.gz
kernel-e8961c50ee9cc329b9ba4959aa1b8794fae17ab2.zip
xfrm: Refactor migration setup during the cloning process
Previously, migration related setup, such as updating family, destination address, and source address, was performed after the clone was created in `xfrm_state_migrate`. This change moves this setup into the cloning function itself, improving code locality and reducing redundancy. The `xfrm_state_clone_and_setup` function now conditionally applies the migration parameters from struct xfrm_migrate if it is provided. This allows the function to be used both for simple cloning and for cloning with migration setup. Test: Tested with kernel test in the Android tree located in https://android.googlesource.com/kernel/tests/ The xfrm_tunnel_test.py under the tests folder in particular. Signed-off-by: Chiachang Wang <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
0 files changed, 0 insertions, 0 deletions