From eb28e2e14e5e957a965686c05247de02a10e61a5 Mon Sep 17 00:00:00 2001 From: Jack Morgenstein Date: Tue, 31 Oct 2006 05:30:54 +0000 Subject: [PATCH] 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 Signed-off-by: Roland Dreier --- ChangeLog | 8 ++++++++ include/infiniband/kern-abi.h | 2 +- src/cmd.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 437fd1f..df54f5e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-10-30 Jack Morgenstein + + * 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 * 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; diff --git a/src/cmd.c b/src/cmd.c index f122ce9..0a40fc3 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -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; -- 2.46.0