diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-02-27 11:44:32 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-27 12:39:56 -0800 |
commit | 3d705f07d16b1d872c556b4ebf44deabeca0e9c1 (patch) | |
tree | 6a3cb2d5ae7b60ab72a8d07374a5beebae2c8a80 /net | |
parent | d45224d604c5ba6ac5f9d6fddbe1d058c81dee80 (diff) | |
download | linux-3d705f07d16b1d872c556b4ebf44deabeca0e9c1.tar.bz2 |
net: Remove switchdev_ops
Now that we have converted all possible callers to using a switchdev
notifier for attributes we do not have a need for implementing
switchdev_ops anymore, and this can be removed from all drivers the
net_device structure.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/dsa/slave.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index b089b43120e1..1808a2cd6872 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1118,10 +1118,6 @@ static const struct net_device_ops dsa_slave_netdev_ops = { .ndo_vlan_rx_kill_vid = dsa_slave_vlan_rx_kill_vid, }; -static const struct switchdev_ops dsa_slave_switchdev_ops = { - .switchdev_port_attr_set = dsa_slave_port_attr_set, -}; - static struct device_type dsa_type = { .name = "dsa", }; @@ -1382,7 +1378,6 @@ int dsa_slave_create(struct dsa_port *port) eth_hw_addr_inherit(slave_dev, master); slave_dev->priv_flags |= IFF_NO_QUEUE; slave_dev->netdev_ops = &dsa_slave_netdev_ops; - slave_dev->switchdev_ops = &dsa_slave_switchdev_ops; slave_dev->min_mtu = 0; slave_dev->max_mtu = ETH_MAX_MTU; SET_NETDEV_DEVTYPE(slave_dev, &dsa_type); |