From: Shannon Nelson Date: Tue, 19 Dec 2017 23:35:49 +0000 (-0800) Subject: xfrm: wrap xfrmdev_ops with offload config X-Git-Tag: v4.16-rc1~123^2~286^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9cb0d21d01b974761735a7f5345d632f967e625a;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Steffen Klassert --- diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c82d207ebc97..352066e4eeef 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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