diff options
author | Shannon Nelson <shannon.nelson@oracle.com> | 2017-12-20 02:35:49 +0300 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2017-12-21 10:17:48 +0300 |
commit | 9cb0d21d01b974761735a7f5345d632f967e625a (patch) | |
tree | c1a8833c15b5c3b27177a2e5b63202952dd07e49 /include/linux/netdevice.h | |
parent | 92a2320697f7f07f4ee988077820965a0fbd11d0 (diff) | |
download | linux-9cb0d21d01b974761735a7f5345d632f967e625a.tar.xz |
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 <shannon.nelson@oracle.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |