Skip to content

Commit 9cb0d21

Browse files
Shannon Nelsonklassert
authored andcommitted
xfrm: wrap xfrmdev_ops with offload config
There's no reason to define netdev->xfrmdev_ops if the offload facility is not CONFIG'd in. Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
1 parent 92a2320 commit 9cb0d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/netdevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ struct net_device {
17261726
const struct ndisc_ops *ndisc_ops;
17271727
#endif
17281728

1729-
#ifdef CONFIG_XFRM
1729+
#ifdef CONFIG_XFRM_OFFLOAD
17301730
const struct xfrmdev_ops *xfrmdev_ops;
17311731
#endif
17321732

0 commit comments

Comments
 (0)