linux_dsm_epyc7002/drivers/infiniband
Weihang Li e8a07de57e RDMA/hns: Fix wrong parameters when initial mtt of srq->idx_que
The parameters npages used to initial mtt of srq->idx_que shouldn't be
same with srq's. And page_shift should be calculated from idx_buf_pg_sz.
This patch fixes above issues and use field named npage and page_shift
in hns_roce_buf instead of two temporary variables to let us use them
anywhere.

Fixes: 18df508c79 ("RDMA/hns: Remove if-else judgment statements for creating srq")
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Link: https://lore.kernel.org/r/1567566885-23088-3-git-send-email-liweihang@hisilicon.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
2019-10-21 15:29:37 -04:00
..
core IB/cm: Use container_of() instead of typecast 2019-10-04 15:38:16 -03:00
hw RDMA/hns: Fix wrong parameters when initial mtt of srq->idx_que 2019-10-21 15:29:37 -04:00
sw RDMA/siw: Make node GUIDs valid EUI-64 identifiers 2019-10-04 15:35:05 -03:00
ulp RDMA/iser: Use iser_err instead of pr_err for logging 2019-10-08 16:35:52 -03:00
Kconfig RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00