]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Set LAG port collector only when active
authorNir Dotan <nird@mellanox.com>
Tue, 12 Feb 2019 16:29:51 +0000 (16:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 17:03:29 +0000 (12:03 -0500)
commit0b4bc414be2bb3a83b1189b0869f7aa66da53b30
treed4bcb599f333f6773c1af065182da9ba61a37bb2
parenta125366e364ea4258620d42d4716425f007a48c5
mlxsw: spectrum: Set LAG port collector only when active

The LAG port collecting (receive) function was mistakenly set when the
port was registered as a LAG member, while it should be set only when
the port collection state is set to true. Set LAG port to collecting
when it is set to distributing, as described in the IEEE link
aggregation standard coupled control mux machine state diagram.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c