IB/mlx5: Create profile infrastructure to add and remove stages
authorMark Bloch <markb@mellanox.com>
Mon, 1 Jan 2018 11:06:58 +0000 (13:06 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 4 Jan 2018 00:26:58 +0000 (17:26 -0700)
commit16c1975f1032330d54979fbc83c5f767afce67a9
tree200cb608a4c52d0e5bc7c89523c619b483efce0c
parentd67d6114ca23263dfc17ef98e94b88846b796212
IB/mlx5: Create profile infrastructure to add and remove stages

Today we have single function which is used when we add an IB interface,
break this function into multiple functions.

Create stages and a generic mechanism to execute each stage.
This is in preparation for RDMA/IB representors which might not need
all stages or will do things differently in some of the stages.

This patch doesn't change any functionality.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h