Commit 97558e88 authored by Vladimir Oltean's avatar Vladimir Oltean Committed by David S. Miller
Browse files

net: ocelot: delete call to br_fdb_replay



Not using this driver, I did not realize it doesn't react to
SWITCHDEV_FDB_{ADD,DEL}_TO_DEVICE notifications, but it implements just
the bridge bypass operations (.ndo_fdb_{add,del}). So the call to
br_fdb_replay just produces notifications that are ignored, delete it
for now.

Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e887b2df
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1165,10 +1165,6 @@ static int ocelot_switchdev_sync(struct ocelot *ocelot, int port,
	if (err && err != -EOPNOTSUPP)
		return err;

	err = br_fdb_replay(bridge_dev, brport_dev, &ocelot_switchdev_nb);
	if (err)
		return err;

	err = br_vlan_replay(bridge_dev, brport_dev,
			     &ocelot_switchdev_blocking_nb, extack);
	if (err && err != -EOPNOTSUPP)