net/mlx5: Get RoCE netdev
authorAviv Heller <avivh@mellanox.com>
Mon, 9 May 2016 11:06:44 +0000 (11:06 +0000)
committerLeon Romanovsky <leon@kernel.org>
Thu, 18 Aug 2016 15:49:54 +0000 (18:49 +0300)
commit6a32047a441b870dd2570fe0831dada5e9ce40f6
tree850da20e130405a1fd7d2ae3923797547824d797
parent7907f23adc186700efbe56c032527e47485c86ab
net/mlx5: Get RoCE netdev

Used by IB driver for determining the IB bond
device's netdev, when LAG is active.

Returns PF0's netdev if mode is not active-backup,
or the PF netdev of the active slave when mode is
active-backup.

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
include/linux/mlx5/driver.h