]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Initialize ports at the end of init sequence
authorIdo Schimmel <idosch@mellanox.com>
Sat, 2 Jul 2016 09:00:14 +0000 (11:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Jul 2016 19:21:17 +0000 (15:21 -0400)
commite9bd5b492a7dd4275d769151e25b41f21188fc4e
tree5240af2aa7a7becdd26dd38b41b6f63d1a71ca08
parent565218b6baa76ec7617f616c5b74f7ef215ec21c
mlxsw: spectrum: Initialize ports at the end of init sequence

During ports initialization a net device is registered for each
available port, which implies the port is usable. However, a port is
only usable after the different parts of the device (e.g. flooding,
buffers) are initialized. This is especially important now, when we must
initialize the router before the ports, as otherwise the device can't be
initialized.

Solve that by initializing the switch ports at the end of init sequence.

Also, remove an unnecessary warning about port up/down events, which
would otherwise be invoked whenever removing the driver, as ports are
removed before unregistering the listener for these events.

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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c