summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/cmd.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2019-01-13 14:57:04 +0100
committerLeon Romanovsky <leonro@mellanox.com>2019-01-15 09:02:29 +0100
commit73f5a82bb3c9fce550da4a74a32b8cb064b50663 (patch)
tree7999275277be129745235e16b53a4a625aab06ba /drivers/infiniband/hw/mlx5/cmd.h
parentLinux 5.0-rc2 (diff)
downloadlinux-73f5a82bb3c9fce550da4a74a32b8cb064b50663.tar.xz
linux-73f5a82bb3c9fce550da4a74a32b8cb064b50663.zip
RDMA/mad: Reduce MAD scope to mlx5_ib only
Management Datagram Interface (MAD) is applicable only when physical port is Infiniband. It makes MAD command logic to be completely unrelated to eth/core parts of mlx5. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Acked-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/cmd.h')
-rw-r--r--drivers/infiniband/hw/mlx5/cmd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/cmd.h b/drivers/infiniband/hw/mlx5/cmd.h
index 1e76dc67a369..923a7b93f507 100644
--- a/drivers/infiniband/hw/mlx5/cmd.h
+++ b/drivers/infiniband/hw/mlx5/cmd.h
@@ -63,4 +63,6 @@ int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid);
int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid);
int mlx5_cmd_alloc_q_counter(struct mlx5_core_dev *dev, u16 *counter_id,
u16 uid);
+int mlx5_cmd_mad_ifc(struct mlx5_core_dev *dev, const void *inb, void *outb,
+ u16 opmod, u8 port);
#endif /* MLX5_IB_CMD_H */