]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
r7079: On kernels 2.6.9 and back, we didn't find a way to add sysfs attributes to
authorJack Morgenstein <jackm@mellanox.co.il>
Wed, 10 May 2006 17:06:53 +0000 (17:06 +0000)
committerSean Hefty <sean.hefty@intel.com>
Wed, 10 May 2006 17:06:53 +0000 (17:06 +0000)
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@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c

index c84479df5f3d67204486ee63011eee48ec772d68..9db04f1645b6d72c76f328a76c472df2cb793d56 100644 (file)
--- a/src/cma.c
+++ b/src/cma.c
@@ -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)))