diff options
author | Lijun Ou <oulijun@huawei.com> | 2018-09-30 17:00:31 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-24 08:20:04 +0100 |
commit | d5d78049b7a4fbd5ec0399388030038938937ec0 (patch) | |
tree | df8bb98408f431c37c2f514fe4feed5e248e028b /include | |
parent | 010af7a8d0aee6c3d75e82a896f00540bc27fa45 (diff) | |
download | linux-stable-d5d78049b7a4fbd5ec0399388030038938937ec0.tar.gz linux-stable-d5d78049b7a4fbd5ec0399388030038938937ec0.tar.bz2 linux-stable-d5d78049b7a4fbd5ec0399388030038938937ec0.zip |
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')
0 files changed, 0 insertions, 0 deletions