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>
This commit is contained in:
committed by
Steffen Klassert
parent
92a2320697
commit
9cb0d21d01
@@ -1726,7 +1726,7 @@ struct net_device {
|
|||||||
const struct ndisc_ops *ndisc_ops;
|
const struct ndisc_ops *ndisc_ops;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_XFRM
|
#ifdef CONFIG_XFRM_OFFLOAD
|
||||||
const struct xfrmdev_ops *xfrmdev_ops;
|
const struct xfrmdev_ops *xfrmdev_ops;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user