RDMA/hns: Alloc MTR memory before alloc_mtt()
authorChengchang Tang <tangchengchang@huawei.com>
Sat, 13 Jan 2024 08:59:32 +0000 (16:59 +0800)
committerLeon Romanovsky <leon@kernel.org>
Thu, 25 Jan 2024 09:54:38 +0000 (11:54 +0200)
commit6afc859518319d78164ec616e736af45acbf1cec
treee8aac1438c1460ee1848d2f01d066918921e84a0
parent4f5731b1fb2246719513dfb918bf71b6818aa5f5
RDMA/hns: Alloc MTR memory before alloc_mtt()

MTR memory allocation do not depend on allocation of mtt.

This patch moves the allocation of mtr before mtt in preparation for
the following optimization.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240113085935.2838701-4-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_mr.c