]> git.baikalelectronics.ru Git - 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)
commit5b745f81b4b743ac4ebaee1f5b8384445d8b3760
tree2d24c78c7a9507119d28334916686a2043ef32bf
parente2defd4f4c44cbc4e411fa4cc155c49ea92cc8a3
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