summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorDaniel Jurgens2018-01-04 16:25:35 +0100
committerJason Gunthorpe2018-01-08 19:42:21 +0100
commit7fd8aefb7ce202dd9d97f752bf249be6215f1004 (patch)
tree8b8a9e2d374cbb1dda7aa873a9ad2c7af28f53ac /include/linux/mlx5/driver.h
parentIB/mlx5: Reduce the use of num_port capability (diff)
downloadkernel-qcow2-linux-7fd8aefb7ce202dd9d97f752bf249be6215f1004.tar.gz
kernel-qcow2-linux-7fd8aefb7ce202dd9d97f752bf249be6215f1004.tar.xz
kernel-qcow2-linux-7fd8aefb7ce202dd9d97f752bf249be6215f1004.zip
IB/mlx5: Make netdev notifications multiport capable
When multiple RoCE ports are supported registration for events on multiple netdevs is required. Refactor the event registration and handling to support multiple ports. Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 5b0443c9d337..28733529f6ff 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -1234,6 +1234,11 @@ static inline bool mlx5_rl_is_supported(struct mlx5_core_dev *dev)
return !!(dev->priv.rl_table.max_size);
}
+static inline int mlx5_core_native_port_num(struct mlx5_core_dev *dev)
+{
+ return 1;
+}
+
enum {
MLX5_TRIGGERED_CMD_COMP = (u64)1 << 32,
};