RDMA/mlx5: Refactor transport domain bookkeeping logic
authorMark Bloch <markb@mellanox.com>
Mon, 17 Sep 2018 10:30:47 +0000 (13:30 +0300)
committerDoug Ledford <dledford@redhat.com>
Sat, 22 Sep 2018 00:20:59 +0000 (20:20 -0400)
commita560f1d9af4be84ee91d1a47382cacf620eb4a79
tree5bc2c60e7dd210d0a1751a027ae0473a16bc7b1d
parent5d773ff41a7cdf0ef6cc6647435d59f0cf53e7b1
RDMA/mlx5: Refactor transport domain bookkeeping logic

In preparation to enable loopback on a single user context move the logic
that enables/disables loopback to separate functions and group variables
under a single struct.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h