diff options
author | Petr Machata <petrm@mellanox.com> | 2018-11-22 18:32:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-23 21:02:24 -0500 |
commit | d17d9f5e5143125f9274194d8f7368f76b9d141f (patch) | |
tree | bf41261e370ea54e0f943ed0efd02b64729e6d9d /net/dsa | |
parent | 0e332c854f4118680b6d37b22551f2f16df806d6 (diff) |
switchdev: Replace port obj add/del SDO with a notification
Drop switchdev_ops.switchdev_port_obj_add and _del. Drop the uses of
this field from all clients, which were migrated to use switchdev
notification in the previous patches.
Add a new function switchdev_port_obj_notify() that sends the switchdev
notifications SWITCHDEV_PORT_OBJ_ADD and _DEL.
Update switchdev_port_obj_del_now() to dispatch to this new function.
Drop __switchdev_port_obj_add() and update switchdev_port_obj_add()
likewise.
Signed-off-by: Petr Machata <petrm@mellanox.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.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index d00a0b6d4ce0..268119cf7117 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -1050,8 +1050,6 @@ static const struct net_device_ops dsa_slave_netdev_ops = { | |||
1050 | static const struct switchdev_ops dsa_slave_switchdev_ops = { | 1050 | static const struct switchdev_ops dsa_slave_switchdev_ops = { |
1051 | .switchdev_port_attr_get = dsa_slave_port_attr_get, | 1051 | .switchdev_port_attr_get = dsa_slave_port_attr_get, |
1052 | .switchdev_port_attr_set = dsa_slave_port_attr_set, | 1052 | .switchdev_port_attr_set = dsa_slave_port_attr_set, |
1053 | .switchdev_port_obj_add = dsa_slave_port_obj_add, | ||
1054 | .switchdev_port_obj_del = dsa_slave_port_obj_del, | ||
1055 | }; | 1053 | }; |
1056 | 1054 | ||
1057 | static struct device_type dsa_type = { | 1055 | static struct device_type dsa_type = { |