IB/uverbs: Return sq_draining value in query_qp response
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Wed, 25 Oct 2006 10:54:20 +0000 (12:54 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 31 Oct 2006 05:19:35 +0000 (21:19 -0800)
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>
drivers/infiniband/core/uverbs_cmd.c
include/rdma/ib_user_verbs.h

index b72c7f69ca906b0e9931a4b5b53a270e58dd765e..743247ec065e152ce9d7237cfe136e24e7be41e4 100644 (file)
@@ -1214,7 +1214,7 @@ ssize_t ib_uverbs_query_qp(struct ib_uverbs_file *file,
        resp.qp_access_flags        = attr->qp_access_flags;
        resp.pkey_index             = attr->pkey_index;
        resp.alt_pkey_index         = attr->alt_pkey_index;
-       resp.en_sqd_async_notify    = attr->en_sqd_async_notify;
+       resp.sq_draining            = attr->sq_draining;
        resp.max_rd_atomic          = attr->max_rd_atomic;
        resp.max_dest_rd_atomic     = attr->max_dest_rd_atomic;
        resp.min_rnr_timer          = attr->min_rnr_timer;
index db1b814b62cca06583b9d3f53dd96194ec653d90..64a721fcbc1c4db215cc949816bf58ac08fbe3b2 100644 (file)
@@ -458,7 +458,7 @@ struct ib_uverbs_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;