diff options
author | Jack Morgenstein <jackm@mellanox.co.il> | 2006-10-31 05:30:54 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-09 11:36:34 -0800 |
commit | eb28e2e14e5e957a965686c05247de02a10e61a5 (patch) | |
tree | 9b409c4f627aa49af915d9e9dad6be3e009b3328 | |
parent | 8260bab13b8856338ab73ee5c7833d5f0d762842 (diff) | |
download | libibverbs-eb28e2e14e5e957a965686c05247de02a10e61a5.tar.gz |
Return sq_draining properly from query_qp
Return the sq_draining value back to user space for query_qp instead
of the en_sqd_async notify value. This last is valid only for
modify_qp. For query_qp (according to the IB Spec V1.2), the draining
status should returned.
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | include/infiniband/kern-abi.h | 2 | ||||
-rw-r--r-- | src/cmd.c | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2006-10-30 Jack Morgenstein <jackm@mellanox.co.il> + + * src/cmd.c (ibv_cmd_query_qp): Unmarshall sq_draining instead of + en_sqd_async_notify. + + * include/infiniband/kern-abi.h: Change en_sqd_async_notify member + of struct ibv_query_qp_resp to sq_draining. + 2006-10-30 Roland Dreier <rdreier@cisco.com> * src/init.c (add_device): Fix two operator precedence bugs in the diff --git a/include/infiniband/kern-abi.h b/include/infiniband/kern-abi.h index 85389f4..796e6fa 100644 --- a/include/infiniband/kern-abi.h +++ b/include/infiniband/kern-abi.h @@ -506,7 +506,7 @@ struct ibv_query_qp_resp { __u8 cur_qp_state; __u8 path_mtu; __u8 path_mig_state; - __u8 en_sqd_async_notify; + __u8 sq_draining; __u8 max_rd_atomic; __u8 max_dest_rd_atomic; __u8 min_rnr_timer; @@ -661,7 +661,7 @@ int ibv_cmd_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr, attr->cur_qp_state = resp.cur_qp_state; attr->path_mtu = resp.path_mtu; attr->path_mig_state = resp.path_mig_state; - attr->en_sqd_async_notify = resp.en_sqd_async_notify; + attr->sq_draining = resp.en_sqd_async_notify; attr->max_rd_atomic = resp.max_rd_atomic; attr->max_dest_rd_atomic = resp.max_dest_rd_atomic; attr->min_rnr_timer = resp.min_rnr_timer; |