mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04: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 <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
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…
Reference in a new issue