Skip to content

Commit

Permalink
iptfs: xfrm: add config (netlink) options
Browse files Browse the repository at this point in the history
  • Loading branch information
choppsv1 committed Jul 29, 2023
1 parent 386beb5 commit a9df772
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a9df772

Please sign in to comment.