From a9df772580a610785b18d86ecce96f4f3f993b36 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Wed, 26 Jul 2023 15:59:15 +0000 Subject: [PATCH] iptfs: xfrm: add config (netlink) options --- net/xfrm/xfrm_user.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 1409b4e76e89fa..f64e824bb2bd37 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -780,6 +780,12 @@ static struct xfrm_state *xfrm_state_construct(struct net *net, goto error; } +#if IS_ENABLED(CONFIG_XFRM_IPTFS) + if (x->props.mode == XFRM_MODE_IPTFS) + err = xfrm_iptfs_user_init(net, x, attrs); + if (err) + goto error; +#endif return x; error: