diff options
-rw-r--r-- | drivers/infiniband/core/uverbs_cmd.c | 2 | ||||
-rw-r--r-- | include/rdma/ib_user_verbs.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 38a66fbef36d..b157e5ff7dad 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c | |||
@@ -1864,6 +1864,8 @@ retry: | |||
1864 | goto err_destroy; | 1864 | goto err_destroy; |
1865 | 1865 | ||
1866 | resp.srq_handle = uobj->uobject.id; | 1866 | resp.srq_handle = uobj->uobject.id; |
1867 | resp.max_wr = attr.attr.max_wr; | ||
1868 | resp.max_sge = attr.attr.max_sge; | ||
1867 | 1869 | ||
1868 | if (copy_to_user((void __user *) (unsigned long) cmd.response, | 1870 | if (copy_to_user((void __user *) (unsigned long) cmd.response, |
1869 | &resp, sizeof resp)) { | 1871 | &resp, sizeof resp)) { |
diff --git a/include/rdma/ib_user_verbs.h b/include/rdma/ib_user_verbs.h index 3bf4402f466a..338ed4333063 100644 --- a/include/rdma/ib_user_verbs.h +++ b/include/rdma/ib_user_verbs.h | |||
@@ -44,7 +44,7 @@ | |||
44 | * Increment this value if any changes that break userspace ABI | 44 | * Increment this value if any changes that break userspace ABI |
45 | * compatibility are made. | 45 | * compatibility are made. |
46 | */ | 46 | */ |
47 | #define IB_USER_VERBS_ABI_VERSION 5 | 47 | #define IB_USER_VERBS_ABI_VERSION 6 |
48 | 48 | ||
49 | enum { | 49 | enum { |
50 | IB_USER_VERBS_CMD_GET_CONTEXT, | 50 | IB_USER_VERBS_CMD_GET_CONTEXT, |
@@ -605,6 +605,9 @@ struct ib_uverbs_create_srq { | |||
605 | 605 | ||
606 | struct ib_uverbs_create_srq_resp { | 606 | struct ib_uverbs_create_srq_resp { |
607 | __u32 srq_handle; | 607 | __u32 srq_handle; |
608 | __u32 max_wr; | ||
609 | __u32 max_sge; | ||
610 | __u32 reserved; | ||
608 | }; | 611 | }; |
609 | 612 | ||
610 | struct ib_uverbs_modify_srq { | 613 | struct ib_uverbs_modify_srq { |