]> 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)
commit2ce0040f2ccca847254c41b21652ead3579cfd1f
treed4bcb599f333f6773c1af065182da9ba61a37bb2
parent37bf773d0416a4dba077ef7333e70130d9e96aab
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