aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-02-27 14:44:32 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-27 15:39:56 -0500
commit3d705f07d16b1d872c556b4ebf44deabeca0e9c1 (patch)
tree6a3cb2d5ae7b60ab72a8d07374a5beebae2c8a80 /net/dsa
parentd45224d604c5ba6ac5f9d6fddbe1d058c81dee80 (diff)
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/dsa')
-rw-r--r--net/dsa/slave.c5
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 = {
1118 .ndo_vlan_rx_kill_vid = dsa_slave_vlan_rx_kill_vid, 1118 .ndo_vlan_rx_kill_vid = dsa_slave_vlan_rx_kill_vid,
1119}; 1119};
1120 1120
1121static const struct switchdev_ops dsa_slave_switchdev_ops = {
1122 .switchdev_port_attr_set = dsa_slave_port_attr_set,
1123};
1124
1125static struct device_type dsa_type = { 1121static struct device_type dsa_type = {
1126 .name = "dsa", 1122 .name = "dsa",
1127}; 1123};
@@ -1382,7 +1378,6 @@ int dsa_slave_create(struct dsa_port *port)
1382 eth_hw_addr_inherit(slave_dev, master); 1378 eth_hw_addr_inherit(slave_dev, master);
1383 slave_dev->priv_flags |= IFF_NO_QUEUE; 1379 slave_dev->priv_flags |= IFF_NO_QUEUE;
1384 slave_dev->netdev_ops = &dsa_slave_netdev_ops; 1380 slave_dev->netdev_ops = &dsa_slave_netdev_ops;
1385 slave_dev->switchdev_ops = &dsa_slave_switchdev_ops;
1386 slave_dev->min_mtu = 0; 1381 slave_dev->min_mtu = 0;
1387 slave_dev->max_mtu = ETH_MAX_MTU; 1382 slave_dev->max_mtu = ETH_MAX_MTU;
1388 SET_NETDEV_DEVTYPE(slave_dev, &dsa_type); 1383 SET_NETDEV_DEVTYPE(slave_dev, &dsa_type);