From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shannon Nelson Subject: [PATCH v3 ipsec-next 3/3] xfrm: wrap xfrmdev_ops with offload config Date: Tue, 19 Dec 2017 15:35:49 -0800 Message-ID: <1513726549-7065-4-git-send-email-shannon.nelson@oracle.com> References: <1513726549-7065-1-git-send-email-shannon.nelson@oracle.com> Cc: netdev@vger.kernel.org To: steffen.klassert@secunet.com Return-path: Received: from aserp2120.oracle.com ([141.146.126.78]:39472 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753396AbdLSXgD (ORCPT ); Tue, 19 Dec 2017 18:36:03 -0500 In-Reply-To: <1513726549-7065-1-git-send-email-shannon.nelson@oracle.com> Sender: netdev-owner@vger.kernel.org List-ID: There's no reason to define netdev->xfrmdev_ops if the offload facility is not CONFIG'd in. Signed-off-by: Shannon Nelson --- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 2eaac7d..145d0de 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1697,7 +1697,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 -- 2.7.4