OSDN Git Service

hw/pvrdma: Bugfix - provide the correct attr_mask to query_qp
authorYuval Shaia <yuval.shaia@oracle.com>
Sun, 5 Aug 2018 15:35:07 +0000 (18:35 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 18 Aug 2018 14:59:33 +0000 (17:59 +0300)
commitb462a1348031e4731b25abd615529f56cc524bc1
tree9be60b9c746a3b0d5bfaede7f18c934d17c782b4
parent751522275a800c0d1c215b386a17f537bc76cd37
hw/pvrdma: Bugfix - provide the correct attr_mask to query_qp

Calling rdma_rm_query_qp with attr_mask equals to -1 leads to error
where backend query_qp fails to retrieve the needed QP attributes.
Fix it by providing the attr_mask we got from driver.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Message-Id: <20180805153518.2983-3-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