]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Don't lose bridge port device during enslavement
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 May 2017 06:37:29 +0000 (08:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:18:46 +0000 (15:18 -0400)
commitc7387a420d61e6beae9f51422ac795981d01b676
tree355189600141c660b97a8948dc2d59447e5be435
parenta5512a247a16ee186af9af89cea2a3a79ee6c38e
mlxsw: spectrum: Don't lose bridge port device during enslavement

Currently, when port netdevs (or their uppers) are enslaved to a bridge,
we simply propagate the CHANGEUPPER event all the way down and lose the
context of the actual netdevice used as the bridge port.

This leads to a lot of information hanging off the ports (and vPorts),
which doesn't logically belong there, such as mrouter indication and
unknown unicast flood state.

Following patches are going to put the mlxsw_sp_port struct on diet and
instead introduce a bridge port struct, where the above mentioned
information belongs. But in order to do that, we need to be able to
determine the bridge port netdevice, so propagate it down.

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