]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix assignment to ba_pg_sz of eqe
authorWenpeng Liang <liangwenpeng@huawei.com>
Fri, 8 May 2020 09:45:53 +0000 (17:45 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 May 2020 23:54:57 +0000 (20:54 -0300)
commiteabaca6f8435c2bb0bced7c4ba737a454525e924
tree246ab024f993c12630f41cd3aca34d2c3cc679ab
parente6bbcbae035b965789c35309d254ed0276506d20
RDMA/hns: Fix assignment to ba_pg_sz of eqe

When allocating eq buffer, the size of base address page should be defined
by eqe_ba_pg_sz instead of srqwqe_ba_pg_sz.

Fixes: b55ff07451ea ("RDMA/hns: Optimize 0 hop addressing for EQE buffer")
Link: https://lore.kernel.org/r/1588931159-56875-4-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c