OSDN Git Service

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)
commit48ebab31d424fbdb8ede8914923bec671a933246
treed4bcb599f333f6773c1af065182da9ba61a37bb2
parent3f9b2d28644183932ed0d363c0fdac46e57e562b
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