Skip to content

Commit

Permalink
xfrm: wrap xfrmdev_ops with offload config
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shannon Nelson authored and Steffen Klassert committed Dec 21, 2017
1 parent 92a2320 commit 9cb0d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9cb0d21

Please sign in to comment.