[openib-general] [PATCH] core: query_qp didn't set sq_sig_all with the right value

Dotan Barak dotanb at mellanox.co.il
Thu Mar 2 07:37:16 PST 2006


Fill the attribute sq_sig_all in query QP with the right value.

Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>

Index: latest/src/linux-kernel/infiniband/core/uverbs_cmd.c
===================================================================
--- latest.orig/src/linux-kernel/infiniband/core/uverbs_cmd.c	2006-03-02 
17:21:06.000000000 +0200
+++ latest/src/linux-kernel/infiniband/core/uverbs_cmd.c	2006-03-02 
17:32:47.000000000 +0200
@@ -1084,7 +1084,7 @@ ssize_t ib_uverbs_query_qp(struct ib_uve
 	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))



More information about the general mailing list