hw/pvrdma: Set the correct opcode for recv completion
authorYuval Shaia <yuval.shaia@oracle.com>
Fri, 21 Dec 2018 14:40:22 +0000 (16:40 +0200)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 22 Dec 2018 09:09:56 +0000 (11:09 +0200)
commit2bff59e699212960838ddf99ab4ee238d0e276f5
tree68a8a156b0b807963b5bccd291f100271f349e74
parent536692ca1db66f5b428299b3401735a113b39bd3
hw/pvrdma: Set the correct opcode for recv completion

The function pvrdma_post_cqe populates CQE entry with opcode from the
given completion element. For receive operation value was not set. Fix
it by setting it to IBV_WC_RECV.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/vmw/pvrdma_qp_ops.c