aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/trap.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2016-08-17 16:39:31 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-17 19:18:27 -0400
commit2f25844c233650b2abb92b66b3d0af7d73b5f88f (patch)
tree6b6fa76dccd88a0e199620c98de47ae197f2cf8a /drivers/net/ethernet/mellanox/mlxsw/trap.h
parentmlxsw: spectrum: Create PVID vPort before registering netdevice (diff)
downloadlinux-dev-2f25844c233650b2abb92b66b3d0af7d73b5f88f.tar.xz
linux-dev-2f25844c233650b2abb92b66b3d0af7d73b5f88f.zip
mlxsw: spectrum: Mark port as active before registering it
Commit bbf2a4757b30 ("mlxsw: spectrum: Initialize ports at the end of init sequence") moved ports initialization to the end of the init sequence, which means ports are the first to be removed during fini. Since the FDB delayed work is still active when ports are removed it's possible for it to process FDB notifications of inactive ports, resulting in a warning message. Fix that by marking ports as inactive only after unregistering them. The NETDEV_UNREGISTER event will invoke bridge's driver port removal sequence that will cause the FDB (and FDB notifications) to be flushed. Fixes: bbf2a4757b30 ("mlxsw: spectrum: Initialize ports at the end of init sequence") Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions