Re: [openib-general] [PATCH] librdmacm abi version

2006-05-10 Thread Sean Hefty

Thanks - committed.

- Sean
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

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


[openib-general] [PATCH] librdmacm abi version

2006-05-10 Thread Michael S. Tsirkin
Sean, could you take a look please? I think it makes sense to make
same librdmacm work on as many kernels as possible, so that it's
seamless for people to switch kernels.

And since backport users install kernel modules or patches anyway,
I think it's reasonable to ask them to always install the latest
version.

---

On kernels 2.6.9 and back, we didn't find a way to add sysfs attributes to
misc devices. If the abi version file does not exist, assume latest ABI to
make it possible to use librdmacm on such systems.

Signed-off-by: Jack Morgenstein <[EMAIL PROTECTED]>
Signed-off-by: Michael S. Tsirkin <[EMAIL PROTECTED]>

Index: latest/src/userspace/librdmacm/src/cma.c
===
--- latest.orig/src/userspace/librdmacm/src/cma.c   (revision 7031)
+++ latest/src/userspace/librdmacm/src/cma.c(working copy)
@@ -119,7 +119,7 @@ static struct ibv_device **dev_list;
 static struct dlist *cma_dev_list;
 static pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
 static int ucma_initialized;
-static int abi_ver;
+static int abi_ver = RDMA_USER_CM_MAX_ABI_VERSION;
 
 #define container_of(ptr, type, field) \
((type *) ((void *)ptr - offsetof(type, field)))

- End forwarded message -

-- 
MST
___
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

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