summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorScott Feldman <sfeldma@gmail.com>2015-03-15 21:07:14 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-16 00:14:42 -0400
commit4170604feec780d00e7511c24fa0f6e5c2e4ed75 (patch)
treece9292b2cc29cd37785bfa4a1fcb1a2cda7eb574 /include/linux/netdevice.h
parent7993d44ea1f7b17dd17863ab139d2c9df17dfe51 (diff)
downloadop-kernel-dev-4170604feec780d00e7511c24fa0f6e5c2e4ed75.zip
op-kernel-dev-4170604feec780d00e7511c24fa0f6e5c2e4ed75.tar.gz
switchdev: add swdev ops
As discussed at netconf, introduce swdev_ops as first step to move switchdev ops from ndo to swdev. This will keep switchdev from cluttering up ndo ops space. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index ddab1a2..9e8a2a9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1577,6 +1577,9 @@ struct net_device {
const struct net_device_ops *netdev_ops;
const struct ethtool_ops *ethtool_ops;
const struct forwarding_accel_ops *fwd_ops;
+#ifdef CONFIG_NET_SWITCHDEV
+ const struct swdev_ops *swdev_ops;
+#endif
const struct header_ops *header_ops;
OpenPOWER on IntegriCloud