]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: delay initialization of offload path till its actually requested
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 19 Feb 2025 13:50:57 +0000 (15:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 21 Feb 2025 07:08:14 +0000 (08:08 +0100)
commit585b64f5a62089ef42889b106b063d089feb6599
tree9c505836d4405303f6ae8b75a8af94beab533350
parente3aa43a50a6455831e3c32dabc7ece38d9cd9d05
xfrm: delay initialization of offload path till its actually requested

XFRM offload path is probed even if offload isn't needed at all. Let's
make sure that x->type_offload pointer stays NULL for such path to
reduce ambiguity.

Fixes: 9d389d7f84bb ("xfrm: Add a xfrm type offload.")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/net/xfrm.h
net/xfrm/xfrm_device.c
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c