Here is a patch that I used in my backport to 2.6.9 for RedHat EL4 - U3 svn 8841 openib fixups patch. It also applies to svn9006 and will likely work fine on the OFED 1.1 code if you replace the current patch that removes the creation of the abi_version with this one that creates it under /sys/class/infiniband_uma
and modify the library to check either place (Ira's patch below), it should work. woody -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ira Weiny Sent: Thursday, August 24, 2006 9:58 AM To: Sean Hefty Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; openib-general@openib.org Subject: Re: [openfabrics-ewg] [openib-general] librdmacm ABI issues with OFED 1.1 On Thu, 24 Aug 2006 09:18:50 -0700 "Sean Hefty" <[EMAIL PROTECTED]> wrote: > Michael S. Tsirkin wrote: > > Maybe the librdmacm part should be merged to svn? > > So librdmacm could try to read from misc, then from > > /sys/class/infiniband/rdma_cm, and then assume latest. > > It's good to have userspace code portable across distros ... > > I can go with that. > > - Sean > Something like this? Ira Index: openib/src/userspace/librdmacm/src/cma.c =================================================================== --- openib/src/userspace/librdmacm/src/cma.c (revision 213) +++ openib/src/userspace/librdmacm/src/cma.c (revision 220) @@ -141,9 +141,13 @@ { char value[8]; - if (ibv_read_sysfs_file(ibv_get_sysfs_path(), + if ((ibv_read_sysfs_file(ibv_get_sysfs_path(), "class/misc/rdma_cm/abi_version", - value, sizeof value) < 0) { + value, sizeof value) < 0) + && + (ibv_read_sysfs_file(ibv_get_sysfs_path(), + "class/infiniband_ucma/abi_version", + value, sizeof value) < 0)) { /* * Older version of Linux do not have class/misc. To support * backports, assume the most recent version of the ABI. If _______________________________________________ openfabrics-ewg mailing list [EMAIL PROTECTED] http://openib.org/mailman/listinfo/openfabrics-ewg
ucma_abi_version_backport_to_2.6.9.patch
Description: ucma_abi_version_backport_to_2.6.9.patch
_______________________________________________ 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