]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA/hns: Unify the calculation for hem index in hip08
authoroulijun <oulijun@huawei.com>
Fri, 10 Nov 2017 08:55:52 +0000 (16:55 +0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 10 Nov 2017 17:32:18 +0000 (12:32 -0500)
commit0203b14c4f32b9b6e526db910844222705fc6e5f
tree2d24c78c7a9507119d28334916686a2043ef32bf
parente8d1853357d237e6af69e384d6b05a23e3a70b93
RDMA/hns: Unify the calculation for hem index in hip08

The calculation of hem index are different between hns_roce_table_get
and hns_roce_table_find. When the table chunk size of TRRL is not
divisible by object size, it will faile to find the trrl table.

This patch is to update the calculation of the hem index in the
hns_roce_table_find to the same as which in the hns_roce_table_get.

Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hem.c