diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-10-08 17:35:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-11 14:28:50 +0200 |
commit | 1f36faf26943f5f5fc1d1a7be6ce252d2ff25e1a (patch) | |
tree | 3b36239e3821ef482868190b74f63187ef559807 /net/dsa | |
parent | net: dsa: add port_fdb_prepare (diff) | |
download | linux-1f36faf26943f5f5fc1d1a7be6ce252d2ff25e1a.tar.xz linux-1f36faf26943f5f5fc1d1a7be6ce252d2ff25e1a.zip |
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>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 48e8c15a2611..6f7f27e9410c 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -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; } |