RDMA/irdma: Split mr alloc and free into new functions
authorZhu Yanjun <yanjun.zhu@linux.dev>
Mon, 16 Jan 2023 19:35:00 +0000 (14:35 -0500)
committerLeon Romanovsky <leon@kernel.org>
Thu, 26 Jan 2023 10:58:46 +0000 (12:58 +0200)
commit693a5386eff0bad4dd6a1f6f1792a60c222d3c74
tree7523ccea2b403a2de40db389f6a4c28760b1e349
parent01798df19878e87718487046581ef6cdd114f2e0
RDMA/irdma: Split mr alloc and free into new functions

In the function irdma_reg_user_mr, the mr allocation and free
will be used by other functions. As such, the source codes related
with mr allocation and free are split into the new functions.

Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Link: https://lore.kernel.org/r/20230116193502.66540-3-yanjun.zhu@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/verbs.c