]> 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)
commit94425789883a7152bde51b5dddcf9ad35776c82e
tree200cb608a4c52d0e5bc7c89523c619b483efce0c
parent6f39969091d2c86db8362c92435712b7bfd12c1d
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