diff options
author | Zhengchao Shao <shaozhengchao@huawei.com> | 2024-04-11 06:38:51 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-04-16 14:59:08 +0300 |
commit | 203b70fda63425a4eb29f03f9074859afe821a39 (patch) | |
tree | 61151fc07e7895d708d61238bfd9c6d33052608d /drivers/infiniband/hw/hns/hns_roce_hw_v2.c | |
parent | 8859f009ace237ffc165c95edcc113d3824b9bf3 (diff) | |
download | linux-203b70fda63425a4eb29f03f9074859afe821a39.tar.xz |
RDMA/hns: Fix return value in hns_roce_map_mr_sg
As described in the ib_map_mr_sg function comment, it returns the number
of sg elements that were mapped to the memory region. However,
hns_roce_map_mr_sg returns the number of pages required for mapping the
DMA area. Fix it.
Fixes: 9b2cf76c9f05 ("RDMA/hns: Optimize PBL buffer allocation process")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Link: https://lore.kernel.org/r/20240411033851.2884771-1-shaozhengchao@huawei.com
Reviewed-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_hw_v2.c')
0 files changed, 0 insertions, 0 deletions