net/mlx5: Configure IB devices according to LAG state
authorAviv Heller <avivh@mellanox.com>
Mon, 30 May 2016 15:32:32 +0000 (18:32 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 18 Aug 2016 15:49:58 +0000 (18:49 +0300)
commit917b41aab7b3afb2221ac0895f302ee32431fa6e
treeb419326e0c2b5241138280219745aea91e73c6e1
parent3bc34f3bcb087764796d9a6eaa476e270114eb8f
net/mlx5: Configure IB devices according to LAG state

When mlx5_ib is loaded, we would like each card's IB devices
to be added according to its LAG state (one IB device, instead of
two, is to be added if LAG is active).

Signed-off-by: Aviv Heller <avivh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/lag.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h