]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Change bridge port attributes only when bridged
authorIdo Schimmel <idosch@mellanox.com>
Mon, 4 Jan 2016 09:42:26 +0000 (10:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2016 03:07:58 +0000 (22:07 -0500)
commitfc9db118d75e8e9c139ed039729a7eb5c26ef822
treea4fb0928d1c3db4b46ebbe77a039ede1dfdb56b4
parenta866e2cb3b6bd90e7039462a3bfbbd025bfa65b5
mlxsw: spectrum: Change bridge port attributes only when bridged

Bridge port attributes are offloaded to hardware when invoked with SELF
flag set, but it really makes no sense to reflect them when port is not
bridged.

Allow a user to change these attribute only when port is bridged and
initialize them correctly when joining or leaving a bridge.

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