mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
0e332c854f
commit
d17d9f5e51
7 changed files with 25 additions and 61 deletions
|
@ -1050,8 +1050,6 @@ static const struct net_device_ops dsa_slave_netdev_ops = {
|
|||
static const struct switchdev_ops dsa_slave_switchdev_ops = {
|
||||
.switchdev_port_attr_get = dsa_slave_port_attr_get,
|
||||
.switchdev_port_attr_set = dsa_slave_port_attr_set,
|
||||
.switchdev_port_obj_add = dsa_slave_port_obj_add,
|
||||
.switchdev_port_obj_del = dsa_slave_port_obj_del,
|
||||
};
|
||||
|
||||
static struct device_type dsa_type = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue