diff options
author | 2025-03-13 02:36:41 +0000 | |
---|---|---|
committer | 2025-04-17 11:00:37 +0200 | |
commit | e8961c50ee9cc329b9ba4959aa1b8794fae17ab2 (patch) | |
tree | d21da77b30d8d2cdf9ad641b9173f43ac38ae445 /scripts/gdb/linux/stackdepot.py | |
parent | xfrm: Migrate offload configuration (diff) | |
download | wireguard-linux-e8961c50ee9cc329b9ba4959aa1b8794fae17ab2.tar.xz wireguard-linux-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 <chiachangwang@google.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions