linux-stable/drivers/infiniband
Sirong Wang 223767740e RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN
[ Upstream commit 531eb45b3d ]

Size of pointer to buf field of struct hns_roce_hem_chunk should be
considered when calculating HNS_ROCE_HEM_CHUNK_LEN, or sg table size will
be larger than expected when allocating hem.

Fixes: 9a4435375c ("IB/hns: Add driver files for hns RoCE driver")
Link: https://lore.kernel.org/r/1572575610-52530-2-git-send-email-liweihang@hisilicon.com
Signed-off-by: Sirong Wang <wangsirong@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-17 20:37:25 +01:00
..
core RDMA/core: Follow correct unregister order between sysfs and cgroup 2019-11-20 17:59:48 +01:00
hw RDMA/hns: Correct the value of HNS_ROCE_HEM_CHUNK_LEN 2019-12-17 20:37:25 +01:00
sw IB/rxe: Make counters thread safe 2019-12-05 15:37:46 +01:00
ulp RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer 2019-12-05 15:37:38 +01:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-07-17 11:39:33 +02:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00