diff options
author | Lijun Ou <oulijun@huawei.com> | 2018-09-30 12:00:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-24 10:20:04 +0300 |
commit | d5d78049b7a4fbd5ec0399388030038938937ec0 (patch) | |
tree | df8bb98408f431c37c2f514fe4feed5e248e028b /include/rdma | |
parent | 010af7a8d0aee6c3d75e82a896f00540bc27fa45 (diff) | |
download | linux-d5d78049b7a4fbd5ec0399388030038938937ec0.tar.xz |
RDMA/hns: Limit the size of extend sge of sq
[ Upstream commit 05ad5482a5904c416bcfd74afd7193e206e563ce ]
The hip08 split two hardware version. The version id are 0x20 and 0x21
according to the PCI revison. The max size of extend sge of sq is limited
to 2M for 0x20 version and 8M for 0x21 version. It may be exceeded to 2M
according to the algorithm that compute the product of wqe count and
extend sge number of every wqe. But the product always less than 8M.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions