IB/uverbs: Fix query QP return of sq_sig_all
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>
This commit is contained in:
committed by
Roland Dreier
parent
4546d31d84
commit
27d5630064
@@ -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_send_sge = init_attr->cap.max_send_sge;
|
||||||
resp.max_recv_sge = init_attr->cap.max_recv_sge;
|
resp.max_recv_sge = init_attr->cap.max_recv_sge;
|
||||||
resp.max_inline_data = init_attr->cap.max_inline_data;
|
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,
|
if (copy_to_user((void __user *) (unsigned long) cmd.response,
|
||||||
&resp, sizeof resp))
|
&resp, sizeof resp))
|
||||||
|
Reference in New Issue
Block a user