The init attributes are being updated with the actual SRQ values in the core for the uverbs.

Signed-off-by: Dotan Barak <[EMAIL PROTECTED]>

Index: last_stable/drivers/infiniband/core/uverbs_cmd.c
===================================================================
--- last_stable.orig/drivers/infiniband/core/uverbs_cmd.c 2006-02-21 17:04:10.000000000 +0200 +++ last_stable/drivers/infiniband/core/uverbs_cmd.c 2006-02-22 16:16:48.000000000 +0200
@@ -1864,6 +1864,8 @@ retry:
               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)) {
Index: last_stable/drivers/infiniband/include/rdma/ib_user_verbs.h
===================================================================
--- last_stable.orig/drivers/infiniband/include/rdma/ib_user_verbs.h 2006-02-21 17:04:07.000000000 +0200 +++ last_stable/drivers/infiniband/include/rdma/ib_user_verbs.h 2006-02-22 16:17:22.000000000 +0200
@@ -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,
@@ -643,6 +643,8 @@ struct ib_uverbs_create_srq {

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

struct ib_uverbs_modify_srq {
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to