RDMA/mlx5: Reorganize mlx5_ib_reg_user_mr()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 30 Nov 2020 07:58:38 +0000 (09:58 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Dec 2020 18:06:23 +0000 (14:06 -0400)
commit38f8ff5b4438876a7d5b2f8b54eb46c7d5154457
tree755c66fcf271fe19f560cb809c2ca3bf19056872
parent6e0954b11c056570cb29676a84e2f8dc4d1dd05e
RDMA/mlx5: Reorganize mlx5_ib_reg_user_mr()

This function handles an ODP and regular MR flow all mushed together, even
though the two flows are quite different. Split them into two dedicated
functions.

Link: https://lore.kernel.org/r/20201130075839.278575-5-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c