]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf0cebd81c9cec7395da71b43b9c02c000068907a
tree355189600141c660b97a8948dc2d59447e5be435
parent7cbecf245ade1739f34e00a10b2cdedd851bd7f4
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