The init attributes are being updated with the actual SRQ values in the
uverbs.
Signed-off-by: Dotan Barak <[EMAIL PROTECTED]>
Index: last_stable/src/userspace/libibverbs/include/infiniband/kern-abi.h
===================================================================
---
last_stable.orig/src/userspace/libibverbs/include/infiniband/kern-abi.h
2006-02-21 17:00:25.000000000 +0200
+++ last_stable/src/userspace/libibverbs/include/infiniband/kern-abi.h
2006-02-22 16:19:34.000000000 +0200
@@ -48,7 +48,7 @@
* The minimum and maximum kernel ABI that we can handle.
*/
#define IB_USER_VERBS_MIN_ABI_VERSION 1
-#define IB_USER_VERBS_MAX_ABI_VERSION 5
+#define IB_USER_VERBS_MAX_ABI_VERSION 6
enum {
IB_USER_VERBS_CMD_GET_CONTEXT,
@@ -708,6 +708,8 @@ struct ibv_create_srq {
struct ibv_create_srq_resp {
__u32 srq_handle;
+ __u32 max_wr;
+ __u32 max_sge;
};
struct ibv_modify_srq {
Index: last_stable/src/userspace/libibverbs/src/cmd.c
===================================================================
--- last_stable.orig/src/userspace/libibverbs/src/cmd.c 2006-02-21
17:00:25.000000000 +0200
+++ last_stable/src/userspace/libibverbs/src/cmd.c 2006-02-22
16:08:25.000000000 +0200
@@ -435,6 +435,11 @@ int ibv_cmd_create_srq(struct ibv_pd *pd
srq->handle = resp->srq_handle;
+ if (abi_ver > 5) {
+ attr->attr.max_wr = resp->max_wr;
+ attr->attr.max_sge = resp->max_sge;
+ }
+
return 0;
}
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general