IB/uverbs: Return sq_draining value in query_qp response

Return the sq_draining value back to user space for query_qp instead
of the en_sqd_async notify value, which is valid only for
modify_qp. For query_qp, the draining status should returned.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by Jack Morgenstein and committed by Roland Dreier 0b26c88f d7b748d6

+2 -2
+1 -1
drivers/infiniband/core/uverbs_cmd.c
··· 1214 1214 resp.qp_access_flags = attr->qp_access_flags; 1215 1215 resp.pkey_index = attr->pkey_index; 1216 1216 resp.alt_pkey_index = attr->alt_pkey_index; 1217 - resp.en_sqd_async_notify = attr->en_sqd_async_notify; 1217 + resp.sq_draining = attr->sq_draining; 1218 1218 resp.max_rd_atomic = attr->max_rd_atomic; 1219 1219 resp.max_dest_rd_atomic = attr->max_dest_rd_atomic; 1220 1220 resp.min_rnr_timer = attr->min_rnr_timer;
+1 -1
include/rdma/ib_user_verbs.h
··· 458 458 __u8 cur_qp_state; 459 459 __u8 path_mtu; 460 460 __u8 path_mig_state; 461 - __u8 en_sqd_async_notify; 461 + __u8 sq_draining; 462 462 __u8 max_rd_atomic; 463 463 __u8 max_dest_rd_atomic; 464 464 __u8 min_rnr_timer;