diff options
author | oulijun <oulijun@huawei.com> | 2018-05-04 10:57:04 +0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-05-09 10:45:18 -0400 |
commit | 3a39bbecc88fa9a99a80de588c8f1fe16aba3446 (patch) | |
tree | 3c3da4858c1450373c092e6088158874c2ee406c /drivers/infiniband/hw | |
parent | ecaaf1e26a37ddf7cba4e425cf68ae7ce1869bc0 (diff) | |
download | op-kernel-dev-3a39bbecc88fa9a99a80de588c8f1fe16aba3446.zip op-kernel-dev-3a39bbecc88fa9a99a80de588c8f1fe16aba3446.tar.gz |
RDMA/hns: Bugfix for rq record db for kernel
When used rq record db for kernel, it needs to set the rdb_en of
hr_qp to 1 and configures the dma address of record rq db of qp
context.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_qp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c index d4aad34..cdfb774 100644 --- a/drivers/infiniband/hw/hns/hns_roce_qp.c +++ b/drivers/infiniband/hw/hns/hns_roce_qp.c @@ -660,6 +660,7 @@ static int hns_roce_create_qp_common(struct hns_roce_dev *hr_dev, goto err_rq_sge_list; } *hr_qp->rdb.db_record = 0; + hr_qp->rdb_en = 1; } /* Allocate QP buf */ |