xfrm: wrap xfrmdev_ops with offload config
authorShannon Nelson <shannon.nelson@oracle.com>
Tue, 19 Dec 2017 23:35:49 +0000 (15:35 -0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 21 Dec 2017 07:17:48 +0000 (08:17 +0100)
There's no reason to define netdev->xfrmdev_ops if
the offload facility is not CONFIG'd in.

Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
include/linux/netdevice.h

index c82d207ebc974c612f4800679677c031f386babb..352066e4eeef5b1ddfbf92f22f920e2d004ea99e 100644 (file)
@@ -1726,7 +1726,7 @@ struct net_device {
        const struct ndisc_ops *ndisc_ops;
 #endif
 
-#ifdef CONFIG_XFRM
+#ifdef CONFIG_XFRM_OFFLOAD
        const struct xfrmdev_ops *xfrmdev_ops;
 #endif