OSDN Git Service

RDMA/mlx5: Refactor transport domain checks
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 19 Jun 2018 07:39:06 +0000 (10:39 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 19:32:17 +0000 (13:32 -0600)
commitcfdeb8934b6f85f235071e9d3700756a0a12758d
treecc20846adf264f0ed82a8c743a9144c0823615fc
parent2e2ba09e48b72497a9b69fc49ab693f7f0c2e5cf
RDMA/mlx5: Refactor transport domain checks

Put all relevant checks for transport domain in the
mlx5_ib_alloc/dealloc_transport_domain functions.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c