mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
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>
This commit is contained in:
parent
7993d44ea1
commit
4170604fee
2 changed files with 41 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue