Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21937
b: refs/heads/master
c: ea88fd1
h: refs/heads/master
i:
  21935: a038764
v: v3
  • Loading branch information
Dotan Barak authored and Roland Dreier committed Mar 20, 2006
1 parent 3bc9012 commit 13c8dc8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abb6e9ba17eb133ab385d0f9017fa8afa809d52a
refs/heads/master: ea88fd16d6e85f4bc71b6053180b64f04be1ff14
2 changes: 2 additions & 0 deletions trunk/drivers/infiniband/core/uverbs_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,8 @@ ssize_t ib_uverbs_create_srq(struct ib_uverbs_file *file,
goto err_destroy;

resp.srq_handle = uobj->uobject.id;
resp.max_wr = attr.attr.max_wr;
resp.max_sge = attr.attr.max_sge;

if (copy_to_user((void __user *) (unsigned long) cmd.response,
&resp, sizeof resp)) {
Expand Down
5 changes: 4 additions & 1 deletion trunk/include/rdma/ib_user_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* Increment this value if any changes that break userspace ABI
* compatibility are made.
*/
#define IB_USER_VERBS_ABI_VERSION 5
#define IB_USER_VERBS_ABI_VERSION 6

enum {
IB_USER_VERBS_CMD_GET_CONTEXT,
Expand Down Expand Up @@ -605,6 +605,9 @@ struct ib_uverbs_create_srq {

struct ib_uverbs_create_srq_resp {
__u32 srq_handle;
__u32 max_wr;
__u32 max_sge;
__u32 reserved;
};

struct ib_uverbs_modify_srq {
Expand Down

0 comments on commit 13c8dc8

Please sign in to comment.