RDMA/hns: Fix page size cap from firmware
[ Upstream commit
1974df0294b638fb45a64e14a512d8ca0691fd22 ]
Add verification to make sure the roce page size cap is supported by the
system page size.
Fixes: 21164eed7dd9 ("RDMA/hns: Add interfaces to get pf capabilities from firmware")
Link: https://lore.kernel.org/r/20221126102911.2921820-5-xuhaoyue1@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>