projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecaaf1e
)
RDMA/hns: Bugfix for rq record db for kernel
author
oulijun
<oulijun@huawei.com>
Fri, 4 May 2018 02:57:04 +0000
(10:57 +0800)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 9 May 2018 14:45:18 +0000
(10:45 -0400)
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>
drivers/infiniband/hw/hns/hns_roce_qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_qp.c
b/drivers/infiniband/hw/hns/hns_roce_qp.c
index d4aad34c21e2ca8a9bc36db6ba1f682ac1f1972f..cdfb774e28ff392f42871839f35dc9344da0bca0 100644
(file)
--- 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 */