]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: simplify SA initialization routine
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 19 Feb 2025 13:50:58 +0000 (15:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 21 Feb 2025 07:08:15 +0000 (08:08 +0100)
commitb6ccf61aa4fda43f7961f2e83433bc6e6b78ab95
tree110c29342155915d69053bb5b335cd4746065d23
parent585b64f5a62089ef42889b106b063d089feb6599
xfrm: simplify SA initialization routine

SA replay mode is initialized differently for user-space and
kernel-space users, but the call to xfrm_init_replay() existed in
common path with boolean protection. That caused to situation where
we have two different function orders.

So let's rewrite the SA initialization flow to have same order for
both in-kernel and user-space callers.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c