diff options
| author | Antony Antony <antony.antony@secunet.com> | 2026-05-26 22:08:17 +0300 |
|---|---|---|
| committer | Steffen Klassert <steffen.klassert@secunet.com> | 2026-06-04 13:22:40 +0300 |
| commit | bac7a60e267831471ecdf54881fc62a2c80c446c (patch) | |
| tree | e2b3a80990ade0a257f866805f07256f8a78422e /tools/lib | |
| parent | b2cb192b95e591b7c14af94aa0763b99149a3742 (diff) | |
| download | linux-bac7a60e267831471ecdf54881fc62a2c80c446c.tar.xz | |
xfrm: add state synchronization after migration
Add xfrm_migrate_sync() to copy curlft and replay state from the old SA
to the new one before installation. The function allocates no memory, so
it can be called under a spinlock. In preparation for a subsequent patch
in this series.
A subsequent patch calls this under x->lock, atomically capturing the
latest lifetime counters and replay state from the original SA and
deleting it in the same critical section to prevent SN/IV reuse
for XFRM_MSG_MIGRATE_STATE method.
No functional change.
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions
