IB/uverbs: Fix query QP return of sq_sig_all
authorDotan Barak <dotanb@mellanox.co.il>
Thu, 2 Mar 2006 19:25:27 +0000 (11:25 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:21 +0000 (10:08 -0800)
The old code didn't convert from the kernel's enum correctly.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/uverbs_cmd.c

index b157e5ff7dad216f98c0e50d3488bf4fffa3be1f..0e0dbc9421bf52961cdfe90f0480009fd6537766 100644 (file)
@@ -1084,7 +1084,7 @@ ssize_t ib_uverbs_query_qp(struct ib_uverbs_file *file,
        resp.max_send_sge           = init_attr->cap.max_send_sge;
        resp.max_recv_sge           = init_attr->cap.max_recv_sge;
        resp.max_inline_data        = init_attr->cap.max_inline_data;
-       resp.sq_sig_all             = !!init_attr->sq_sig_type;
+       resp.sq_sig_all             = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR;
 
        if (copy_to_user((void __user *) (unsigned long) cmd.response,
                         &resp, sizeof resp))