hw/pvrdma: Fill error code in command's response
commit091782171fa0d339f3af3c0f3a4aeb7a2e8c39fc
authorYuval Shaia <yuval.shaia@oracle.com>
Fri, 21 Dec 2018 14:40:31 +0000 (21 16:40 +0200)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 22 Dec 2018 09:09:56 +0000 (22 11:09 +0200)
tree5d26f468493ef0b22c647aa701d63b1ac67c99e9
parenteaac01005d7536122d5869fa809dee7ced0c5e19
hw/pvrdma: Fill error code in command's response

Driver checks error code let's set it.
In addition, for code simplification purposes, set response's fields
ack, response and err outside of the scope of command handlers.

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_cmd.c