diff options
author | Yuval Shaia | 2018-08-05 17:35:09 +0200 |
---|---|---|
committer | Marcel Apfelbaum | 2018-08-18 16:59:50 +0200 |
commit | eca0f2a6be86602a82edcd90ecd8f4a57b0c8007 (patch) | |
tree | 9c12294f5e356e7a8990e50e5f0fc281af15c82a /hw/rdma | |
parent | hw/rdma: Modify debug macros (diff) | |
download | qemu-eca0f2a6be86602a82edcd90ecd8f4a57b0c8007.tar.gz qemu-eca0f2a6be86602a82edcd90ecd8f4a57b0c8007.tar.xz qemu-eca0f2a6be86602a82edcd90ecd8f4a57b0c8007.zip |
hw/pvrdma: Clean CQE before use
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>
Diffstat (limited to 'hw/rdma')
-rw-r--r-- | hw/rdma/vmw/pvrdma_qp_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/rdma/vmw/pvrdma_qp_ops.c b/hw/rdma/vmw/pvrdma_qp_ops.c index 99bb51111e..a8664f40c8 100644 --- 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; |