RDMA/hns: Store mr len information into mr obj
authorLang Cheng <chenglang@huawei.com>
Fri, 8 May 2020 09:45:56 +0000 (17:45 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:54:58 +0000 (20:54 -0300)
commit7b611d2f6e8b99b699996c52b823454f4a74978f
tree04e123f04b6ed05e853cb76eeb2934ea5fe751c8
parentd4d813874156063eae6542c66da2a6971592e46f
RDMA/hns: Store mr len information into mr obj

The length information should be stored in the struct ib_mr object,
otherwise the length value of a valid mr object would always be 0.

Link: https://lore.kernel.org/r/1588931159-56875-7-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_mr.c