From: Jack Morgenstein Date: Wed, 10 May 2006 17:06:53 +0000 (+0000) Subject: r7079: On kernels 2.6.9 and back, we didn't find a way to add sysfs attributes to X-Git-Tag: v1.0-rc1~42 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=425e75032d2da9f04721fddcea529ef9c2aca999;p=~shefty%2Flibrdmacm.git r7079: 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 Signed-off-by: Michael S. Tsirkin Signed-off-by: Sean Hefty --- diff --git a/src/cma.c b/src/cma.c index c84479df..9db04f16 100644 --- 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)))