mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
net: dsa: remove trans argument from mdb ops
The DSA switch MDB ops pass the switchdev_trans structure down to the drivers, but no one is using them and they aren't supposed to anyway. Remove the trans argument from MDB prepare and add operations. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
80e0236079
commit
3709aadc83
5 changed files with 12 additions and 20 deletions
|
@ -129,7 +129,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
|
|||
return -EOPNOTSUPP;
|
||||
|
||||
for_each_set_bit(port, group, ds->num_ports) {
|
||||
err = ds->ops->port_mdb_prepare(ds, port, mdb, trans);
|
||||
err = ds->ops->port_mdb_prepare(ds, port, mdb);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ static int dsa_switch_mdb_add(struct dsa_switch *ds,
|
|||
}
|
||||
|
||||
for_each_set_bit(port, group, ds->num_ports)
|
||||
ds->ops->port_mdb_add(ds, port, mdb, trans);
|
||||
ds->ops->port_mdb_add(ds, port, mdb);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue