[openib-general] svn 6829 version issue with rdma_ucm and userspace?
Bob Woodruff
robert.j.woodruff at intel.com
Tue May 9 16:00:06 PDT 2006
Ira wrote,
># odev1 /root > simple_rdma -S
>librdmacm: kernel ABI version 0 doesn't match library version 1.
>Failed to create rdma_cm_id
Sean is correct, the backport puts the abi_version in a different
place to be consistent with how the other kernel modules do it.
Try appying this patch to your userspace code and rebuilding
the librdmacm usermode library. I forgot to put this patch into SVN
put will do so.
diff -Naurp userspace/librdmacm/src/cma.c
userspace-fixups/librdmacm/src/cma.c
--- userspace/librdmacm/src/cma.c 2006-04-27 09:34:16.000000000 -0700
+++ userspace-fixups/librdmacm/src/cma.c 2006-05-01
14:46:34.000000000 -0700
@@ -151,7 +151,7 @@ static int check_abi_version(void)
return -ENODEV;
}
- strncat(path, "/class/misc/rdma_cm/abi_version", sizeof path);
+ strncat(path, "/class/infiniband_ucma/abi_version", sizeof path);
if (!sysfs_read_attribute_value(path, val, sizeof val))
abi_ver = strtol(val, NULL, 10);
More information about the general
mailing list