]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf5bb5c683e912fdeace14c7e6867685d502fa95
tree200cb608a4c52d0e5bc7c89523c619b483efce0c
parent7d53439f61f8526a6f3da6b9ab2a01569a0d16d5
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