diff options
author | Lijun Ou <oulijun@huawei.com> | 2019-04-23 17:30:26 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-25 10:40:04 -0300 |
commit | 2557fabd6e29f349bfa0ac13f38ac98aa5eafc74 (patch) | |
tree | d24a5600944458223a3ba2b50a8c2371322a53eb /include | |
parent | 67f269b37f9b4d52c5e7f97acea26c0852e9b8a1 (diff) | |
download | linux-2557fabd6e29f349bfa0ac13f38ac98aa5eafc74.tar.bz2 |
RDMA/hns: Bugfix for mapping user db
When the maximum send wr delivered by the user is zero, the qp does not
have a sq.
When allocating the sq db buffer to store the user sq pi pointer and map
it to the kernel mode, max_send_wr is used as the trigger condition, while
the kernel does not consider the max_send_wr trigger condition when
mapmping db. It will cause sq record doorbell map fail and create qp fail.
The failed print information as follows:
hns3 0000:7d:00.1: Send cmd: tail - 418, opcode - 0x8504, flag - 0x0011, retval - 0x0000
hns3 0000:7d:00.1: Send cmd: 0xe59dc000 0x00000000 0x00000000 0x00000000 0x00000116 0x0000ffff
hns3 0000:7d:00.1: sq record doorbell map failed!
hns3 0000:7d:00.1: Create RC QP failed
Fixes: 0425e3e6e0c7 ("RDMA/hns: Support flush cqe for hip08 in kernel space")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions