aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAviv Heller <avivh@mellanox.com>2016-05-09 11:06:44 +0000
committerLeon Romanovsky <leon@kernel.org>2016-08-18 18:49:54 +0300
commit6a32047a441b870dd2570fe0831dada5e9ce40f6 (patch)
tree850da20e130405a1fd7d2ae3923797547824d797 /include/linux
parentnet/mlx5: Implement RoCE LAG feature (diff)
downloadlinux-dev-6a32047a441b870dd2570fe0831dada5e9ce40f6.tar.xz
linux-dev-6a32047a441b870dd2570fe0831dada5e9ce40f6.zip
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index ed983b8c3213..c568dd927330 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -945,6 +945,7 @@ void mlx5_unregister_interface(struct mlx5_interface *intf);
int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
bool mlx5_lag_is_active(struct mlx5_core_dev *dev);
+struct net_device *mlx5_lag_get_roce_netdev(struct mlx5_core_dev *dev);
struct mlx5_profile {
u64 mask;