RDMA/mlx5: Separate restrack callbacks initialization from main.c
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 2 Jul 2020 08:18:05 +0000 (11:18 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 7 Jul 2020 17:05:51 +0000 (14:05 -0300)
commitb572ebe6675526be5d3b0e831e9d567c4fc0fd5d
treee8a2758594ee5401a5398f93667ae06e1613800d
parentac47bf5ef122591aa561fc16176ef0d1c7d24726
RDMA/mlx5: Separate restrack callbacks initialization from main.c

The restrack code has separate .c, so move callbacks initialization to
that file to improve code locality.

Link: https://lore.kernel.org/r/20200702081809.423482-3-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/restrack.c
drivers/infiniband/hw/mlx5/restrack.h [new file with mode: 0644]