mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: dsa: push prepare phase in port_fdb_add
Now that the prepare phase is pushed down to the DSA drivers, propagate it to the port_fdb_add function. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
146a32067b
commit
1f36faf269
4 changed files with 10 additions and 6 deletions
|
@ -354,7 +354,7 @@ static int dsa_slave_port_fdb_add(struct net_device *dev,
|
|||
if (switchdev_trans_ph_prepare(trans))
|
||||
ret = ds->drv->port_fdb_prepare(ds, p->port, fdb, trans);
|
||||
else
|
||||
ret = ds->drv->port_fdb_add(ds, p->port, fdb->addr, fdb->vid);
|
||||
ret = ds->drv->port_fdb_add(ds, p->port, fdb, trans);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue