[openib-general] [PATCH] librdmacm abi version

Michael S. Tsirkin mst at mellanox.co.il
Wed May 10 04:23:03 PDT 2006


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 <jackm at mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

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



More information about the general mailing list