aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/restrack.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2020-07-02 11:18:05 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-07 14:05:51 -0300
commitb572ebe6675526be5d3b0e831e9d567c4fc0fd5d (patch)
treee8a2758594ee5401a5398f93667ae06e1613800d /drivers/infiniband/hw/mlx5/restrack.h
parentRDMA/mlx5: Limit the scope of mlx5_ib_enable_driver function (diff)
downloadlinux-dev-b572ebe6675526be5d3b0e831e9d567c4fc0fd5d.tar.xz
linux-dev-b572ebe6675526be5d3b0e831e9d567c4fc0fd5d.zip
RDMA/mlx5: Separate restrack callbacks initialization from main.c
The restrack code has separate .c, so move callbacks initialization to that file to improve code locality. Link: https://lore.kernel.org/r/20200702081809.423482-3-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/restrack.h')
-rw-r--r--drivers/infiniband/hw/mlx5/restrack.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/restrack.h b/drivers/infiniband/hw/mlx5/restrack.h
new file mode 100644
index 000000000000..e8d81270f1b6
--- /dev/null
+++ b/drivers/infiniband/hw/mlx5/restrack.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
+/*
+ * Copyright (c) 2013-2020, Mellanox Technologies Ltd. All rights reserved.
+ */
+
+#ifndef _MLX5_IB_RESTRACK_H
+#define _MLX5_IB_RESTRACK_H
+
+#include "mlx5_ib.h"
+
+int mlx5_ib_restrack_init(struct mlx5_ib_dev *dev);
+
+#endif /* _MLX5_IB_RESTRACK_H */