diff options
author | Chengchang Tang <tangchengchang@huawei.com> | 2024-04-12 12:16:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-30 10:49:43 +0300 |
commit | 151762e07935b0ed283ee81a842eda9f5f5c58f1 (patch) | |
tree | 4c023161e164190fa1246fb232eefd306f9b3ad8 /rust/helpers.c | |
parent | 39d26cf46306bdc7ae809ecfdbfeff5aa1098911 (diff) | |
download | linux-151762e07935b0ed283ee81a842eda9f5f5c58f1.tar.xz |
RDMA/hns: Fix GMV table pagesize
[ Upstream commit ee045493283403969591087bd405fa280103282a ]
GMV's BA table only supports 4K pages. Currently, PAGESIZE is used to
calculate gmv_bt_num, which will cause an abnormal number of gmv_bt_num
in a 64K OS.
Fixes: d6d91e46210f ("RDMA/hns: Add support for configuring GMV table")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240412091616.370789-8-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions