projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef846e0
)
hw/pvrdma: Clean CQE before use
author
Yuval Shaia
<yuval.shaia@oracle.com>
Sun, 5 Aug 2018 15:35:09 +0000
(18:35 +0300)
committer
Marcel Apfelbaum
<marcel.apfelbaum@gmail.com>
Sat, 18 Aug 2018 14:59:50 +0000
(17:59 +0300)
Next CQE is fetched from CQ ring, clean it before usage as it still
carries old CQE values.
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <
20180805153518
.2983-5-yuval.shaia@oracle.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/vmw/pvrdma_qp_ops.c
patch
|
blob
|
history
diff --git
a/hw/rdma/vmw/pvrdma_qp_ops.c
b/hw/rdma/vmw/pvrdma_qp_ops.c
index 99bb51111e7369a0be19217e04428b7722fc6a14..a8664f40c8901c18d3541cd705979cbe51708a4a 100644
(file)
--- a/
hw/rdma/vmw/pvrdma_qp_ops.c
+++ b/
hw/rdma/vmw/pvrdma_qp_ops.c
@@
-69,6
+69,7
@@
static int pvrdma_post_cqe(PVRDMADev *dev, uint32_t cq_handle,
return -EINVAL;
}
+ memset(cqe1, 0, sizeof(*cqe1));
cqe1->wr_id = cqe->wr_id;
cqe1->qp = cqe->qp;
cqe1->opcode = cqe->opcode;