aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorLeon Romanovsky <[email protected]>2025-06-08 07:42:53 +0000
committerSteffen Klassert <[email protected]>2025-06-12 05:07:14 +0000
commitc0f21029f123d1b15f8eddc8e3976bf0c8781c43 (patch)
tree221e83a2078ff0d31f27e324607b0b999529330b /net/xfrm/xfrm_user.c
parentMerge branch 'xfrm: fixes for xfrm_state_find under preemption' (diff)
downloadkernel-c0f21029f123d1b15f8eddc8e3976bf0c8781c43.tar.gz
kernel-c0f21029f123d1b15f8eddc8e3976bf0c8781c43.zip
xfrm: always initialize offload path
Offload path is used for GRO with SW IPsec, and not just for HW offload. So initialize it anyway. Fixes: 585b64f5a620 ("xfrm: delay initialization of offload path till its actually requested") Reported-by: Sabrina Dubroca <[email protected]> Closes: https://lore.kernel.org/all/aEGW_5HfPqU1rFjl@krikkit Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r--net/xfrm/xfrm_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index 59f258daf830..1db18f470f42 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -977,6 +977,7 @@ static struct xfrm_state *xfrm_state_construct(struct net *net,
/* override default values from above */
xfrm_update_ae_params(x, attrs, 0);
+ xfrm_set_type_offload(x, attrs[XFRMA_OFFLOAD_DEV]);
/* configure the hardware if offload is requested */
if (attrs[XFRMA_OFFLOAD_DEV]) {
err = xfrm_dev_state_add(net, x,