aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/mlx5_ib.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2022-01-05 10:04:56 +0200
committerJason Gunthorpe <jgg@nvidia.com>2022-01-05 15:18:36 -0400
commitd82e2b27ad3a4fdd745332e0c310ae05660a1bf1 (patch)
tree6adcef70aeb411f28c086c1f4466a46877397a19 /drivers/infiniband/hw/mlx5/mlx5_ib.h
parentRDMA/rxe: Fix indentations and operators sytle (diff)
downloadlinux-dev-d82e2b27ad3a4fdd745332e0c310ae05660a1bf1.tar.xz
linux-dev-d82e2b27ad3a4fdd745332e0c310ae05660a1bf1.zip
RDMA/mad: Delete duplicated init_query_mad functions
Several drivers used same function to initialize query MAD, so move that function to global header file. Link: https://lore.kernel.org/r/af6f35c590ff5ef56d0137351b8b295af0f7c13c.1641369858.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
-rw-r--r--drivers/infiniband/hw/mlx5/mlx5_ib.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h
index b6030ef8f7af..35d27f455eb9 100644
--- a/drivers/infiniband/hw/mlx5/mlx5_ib.h
+++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h
@@ -1466,14 +1466,6 @@ extern const struct uapi_definition mlx5_ib_flow_defs[];
extern const struct uapi_definition mlx5_ib_qos_defs[];
extern const struct uapi_definition mlx5_ib_std_types_defs[];
-static inline void init_query_mad(struct ib_smp *mad)
-{
- mad->base_version = 1;
- mad->mgmt_class = IB_MGMT_CLASS_SUBN_LID_ROUTED;
- mad->class_version = 1;
- mad->method = IB_MGMT_METHOD_GET;
-}
-
static inline int is_qp1(enum ib_qp_type qp_type)
{
return qp_type == MLX5_IB_QPT_HW_GSI || qp_type == IB_QPT_GSI;