]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
16 years agoRemove period from end of Summary in RPM spec file
Roland Dreier [Wed, 20 Feb 2008 16:52:26 +0000 (08:52 -0800)]
Remove period from end of Summary in RPM spec file

rpmlint says:

    W: summary-ended-with-dot Userspace RDMA Connection Manager.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agoTake empty ChangeLog out of RPM packages
Roland Dreier [Wed, 20 Feb 2008 16:52:06 +0000 (08:52 -0800)]
Take empty ChangeLog out of RPM packages

rpmlint says:

    E: zero-length /usr/share/doc/librdmacm-1.0.6/ChangeLog

and there's really no point in shipping an empty file, so just don't
package it.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agoFix Source URL in RPM spec file
Roland Dreier [Wed, 20 Feb 2008 16:51:44 +0000 (08:51 -0800)]
Fix Source URL in RPM spec file

Source packages are now in downloads/rdmacm/, not just downloads/.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/cm: set status correctly for rejects
Sean Hefty [Mon, 11 Feb 2008 23:17:30 +0000 (15:17 -0800)]
librdmacm/cm: set status correctly for rejects

The status is not being set for rejected connection requests.
Set it by moving common initialization outside of the switch.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm: release 1.0.6 ofed_1_3 v1.0.6
Sean Hefty [Mon, 21 Jan 2008 18:21:47 +0000 (10:21 -0800)]
librdmacm: release 1.0.6

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agoUpdate %install secion of librdmacm spec file
Roland Dreier [Mon, 21 Jan 2008 18:21:44 +0000 (10:21 -0800)]
Update %install secion of librdmacm spec file

Change from using the %makeinstall macro to using "make install"
directly.  The page <http://fedoraproject.org/wiki/Packaging/Guidelines>
has this to say:

  "Fedora's RPM includes a %makeinstall macro but it must NOT be used
   when make install DESTDIR=%{buildroot} works. %makeinstall is a
   kludge....
   It is error-prone and can have unexpected effects....
   It can trigger unnecessary and wrong rebuilds....
   ....it can cause broken *.la files to be installed....
   Instead, Fedora packages should use: make DESTDIR=%{buildroot}
   install or make DESTDIR=$RPM_BUILD_ROOT install"

The librdmacm package uses automake, which means that the "make
DESTDIR=... install" method works fine, so we should use it.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agoUpdated License: field in librdmacm spec file
Roland Dreier [Mon, 21 Jan 2008 18:21:41 +0000 (10:21 -0800)]
Updated License: field in librdmacm spec file

Update License: field to match the exact format given in
http://fedoraproject.org/wiki/Packaging/LicensingGuidelines
for a package available under a choice of GPL or BSD license.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/cm: override default responder_resources with user value
Sean Hefty [Thu, 3 Jan 2008 23:36:14 +0000 (15:36 -0800)]
librdmacm/cm: override default responder_resources with user value

By default, the responder_resources parameter is set to that received
in a connection request.  The passive side may override this value
when accepting the connection.  Use the value provided by the passive
side when transitioning the QP to RTR state, rather than the value
given in the connect request.  Without this change, the RTR transition
may fail if the passive side supports fewer responder_resources than
that in the request.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm: release 1.0.5 v1.0.5
Sean Hefty [Wed, 2 Jan 2008 20:16:42 +0000 (12:16 -0800)]
librdmacm: release 1.0.5

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/man: more updates to man pages
Sean Hefty [Wed, 2 Jan 2008 20:16:33 +0000 (12:16 -0800)]
librdmacm/man: more updates to man pages

Updates to rdma_disconnect, rdma_join_multicast, and return codes.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm: document retry count limits
Sean Hefty [Thu, 29 Nov 2007 18:04:33 +0000 (10:04 -0800)]
librdmacm: document retry count limits

Clarify retry count and RNR retry count limits.  These are 3-bit values.

Response based on customer feedback.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/man: fix-up man pages
Sean Hefty [Tue, 6 Nov 2007 19:07:55 +0000 (11:07 -0800)]
librdmacm/man: fix-up man pages

Fix a couple of errors in the man page documentation and add
infiniband specific text about QP configuration settings.  This
is in response to user questions about various settings based
on feedback from Or.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm: release 1.0.4 v1.0.4
Sean Hefty [Thu, 18 Oct 2007 17:22:37 +0000 (10:22 -0700)]
librdmacm: release 1.0.4

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/cma: provide wrapper functions to extract src/dst addresses
Sean Hefty [Thu, 18 Oct 2007 17:18:47 +0000 (10:18 -0700)]
librdmacm/cma: provide wrapper functions to extract src/dst addresses

Provide wrapper functions to retrieve the source and destination
addresses.  This is based on feedback from Doug Ledford.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/cma: provide sanity checks for max outstanding rdma ops
Sean Hefty [Tue, 16 Oct 2007 21:59:21 +0000 (14:59 -0700)]
librdmacm/cma: provide sanity checks for max outstanding rdma ops

Ensure that the responder_resources and initiator_depth values
provided by the user are supported by the local hardware.  This
traps errors sooner during connection establishment (when calling
rdma_connect), rather than waiting until the modify QP fails
(after calling rdma_accept).

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/man: update man pages to clarify connection request params
Sean Hefty [Tue, 16 Oct 2007 16:47:22 +0000 (09:47 -0700)]
librdmacm/man: update man pages to clarify connection request params

Document connection requests parameters in rdma_connect(),
rdma_accept(), and rdma_get_cm_event(), specifically regarding
initiator_depth and responder_resources.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm: prepare new release v1.0.3
Sean Hefty [Mon, 1 Oct 2007 17:37:35 +0000 (10:37 -0700)]
librdmacm: prepare new release

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/man: update documentation regarding private_data_len
Sean Hefty [Mon, 24 Sep 2007 21:32:46 +0000 (14:32 -0700)]
librdmacm/man: update documentation regarding private_data_len

The private_data_len on the receive side is the size of the data
buffer, and not the size of the private data sent by the remote side.
For IB, the size of the sent data is not known, so private_data_len
is the size of the private data field carried in the CM message.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/examples: Add option to set TOS.
Sean Hefty [Mon, 10 Sep 2007 19:20:36 +0000 (12:20 -0700)]
librdmacm/examples: Add option to set TOS.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agordma/cm: Add ability to specify the type of service
Sean Hefty [Fri, 7 Sep 2007 18:20:50 +0000 (11:20 -0700)]
rdma/cm: Add ability to specify the type of service

Add rdma_set_option, similar to setsockopt, to allow the user to
specify the quality of service provided by a connection.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/rping: Persistent rping server.
Steve Wise [Fri, 7 Sep 2007 18:12:57 +0000 (11:12 -0700)]
librdmacm/rping: Persistent rping server.

Support a rping server mode where the server handles many incoming
connections by creating threads to process each new rping session.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
16 years agolibrdmacm: add valgrind support.
Sean Hefty [Thu, 6 Sep 2007 16:54:03 +0000 (09:54 -0700)]
librdmacm: add valgrind support.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm/build: minor tweak to build settings for consistency
Sean Hefty [Wed, 5 Sep 2007 18:15:35 +0000 (11:15 -0700)]
librdmacm/build: minor tweak to build settings for consistency

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
16 years agolibrdmacm: Fix memory leak reported by valgrind
Dotan Barak [Tue, 14 Aug 2007 16:04:05 +0000 (09:04 -0700)]
librdmacm: Fix memory leak reported by valgrind

Fix memory leak reported by valgrind:
==6239== 16 bytes in 1 blocks are definitely lost in loss record 2 of 10
==6239==    at 0x4A04CBF: calloc (vg_replace_malloc.c:279)
==6239==    by 0x4E386C4: ibv_get_device_list@@IBVERBS_1.1 (device.c:65)
==6239==    by 0x4C2D868: ucma_init (cma.c:221)
==6239==    by 0x4C2F831: rdma_create_event_channel (cma.c:299)
==6239==    by 0x4018A5: main (cmatose.c:650)

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: update for release 1.0.2. v1.0.2
Sean Hefty [Mon, 9 Jul 2007 17:32:43 +0000 (10:32 -0700)]
librdmacm: update for release 1.0.2.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm/man: install rdma_event_str man page
Sean Hefty [Mon, 9 Jul 2007 17:50:11 +0000 (10:50 -0700)]
librdmacm/man: install rdma_event_str man page

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm/README: Update readme file to describe two interface problem
Sean Hefty [Fri, 6 Jul 2007 17:20:26 +0000 (10:20 -0700)]
librdmacm/README: Update readme file to describe two interface problem

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm/rping: return failure if address/route resolution fails
Sean Hefty [Thu, 28 Jun 2007 21:32:57 +0000 (14:32 -0700)]
librdmacm/rping: return failure if address/route resolution fails

If address or route resolution fails, we still return success (0)
from rping_bind_client.  Return a failure instead.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm/examples: have sample code display event string
Sean Hefty [Thu, 21 Jun 2007 22:36:42 +0000 (15:36 -0700)]
librdmacm/examples: have sample code display event string

Have sample code display event strings when an error occurs, rather
than only displaying the event code.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm/cma: add routine to convert rdma cm events to strings
Sean Hefty [Thu, 21 Jun 2007 22:36:38 +0000 (15:36 -0700)]
librdmacm/cma: add routine to convert rdma cm events to strings

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm/udaddy: remove confusing code from udaddy
Or Gerlitz [Thu, 21 Jun 2007 17:21:04 +0000 (10:21 -0700)]
librdmacm/udaddy: remove confusing code from udaddy

as the man page of rdma_connect, the qp_num and retry_count
params are relevant only to RDMA_PS_TCP call.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agorping: remove need for server to bind to a specific address
Sean Hefty [Tue, 22 May 2007 22:53:14 +0000 (15:53 -0700)]
rping: remove need for server to bind to a specific address

Allow server to listen across all RDMA devices.  Remove -a option
requirement.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agorping: set default for -p options
Sean Hefty [Tue, 22 May 2007 22:49:10 +0000 (15:49 -0700)]
rping: set default for -p options

If a port number is not given, use a default, rather than silently failing.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoRelease 1.0.1 v1.0.1
Sean Hefty [Wed, 16 May 2007 23:30:00 +0000 (16:30 -0700)]
Release 1.0.1

17 years agoman: tweak man page format to match other OFED code
Sean Hefty [Wed, 16 May 2007 23:02:25 +0000 (16:02 -0700)]
man: tweak man page format to match other OFED code

17 years agolibrdmacm: fixup .map file
Sean Hefty [Thu, 10 May 2007 20:17:26 +0000 (13:17 -0700)]
librdmacm: fixup .map file

A couple of APIs listed in the include file are not exposed in the
.map file, and a couple of older APIs that no longer exist are.  Fix this.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: Update build to 1.0.2-rc.
Sean Hefty [Fri, 4 May 2007 22:09:25 +0000 (15:09 -0700)]
librdmacm: Update build to 1.0.2-rc.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: add man pages
Sean Hefty [Fri, 4 May 2007 22:08:25 +0000 (15:08 -0700)]
librdmacm: add man pages

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: fix typo in comment
Sean Hefty [Fri, 4 May 2007 21:57:00 +0000 (14:57 -0700)]
librdmacm: fix typo in comment

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agorping: Transfer rkey/addr/leninformation in network byte order.
on behalf of Steve Wise [Thu, 3 May 2007 17:43:02 +0000 (10:43 -0700)]
rping: Transfer rkey/addr/leninformation in network byte order.

Fix regression introduced by 88fc0cb21698dfb5d7660eecf7dddd0531fc8021.

- swizzle memory info when sending it to peer.
- fixed printf format

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
17 years agoRelease 1.0 v1.0
Sean Hefty [Fri, 27 Apr 2007 18:02:02 +0000 (11:02 -0700)]
Release 1.0

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: set source port after calling rdma_bind_addr.
Sean Hefty [Wed, 25 Apr 2007 23:17:25 +0000 (16:17 -0700)]
librdmacm: set source port after calling rdma_bind_addr.

If a user specified port 0 when binding, the actual port number
assigned was being overwritten before returning from rdma_bind_addr.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: update mailing list info
Sean Hefty [Wed, 25 Apr 2007 17:27:53 +0000 (10:27 -0700)]
librdmacm: update mailing list info

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agorping: Transfer rkey/addr/len information in network byte order.
Steve Wise [Wed, 25 Apr 2007 15:34:31 +0000 (10:34 -0500)]
rping: Transfer rkey/addr/len information in network byte order.

Transfer rkey/addr/len information in network byte order.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
17 years agolibrdmacm: update datagram tests to abort if msg size > MTU
Sean Hefty [Fri, 20 Apr 2007 22:16:07 +0000 (15:16 -0700)]
librdmacm: update datagram tests to abort if msg size > MTU

If the user specifies a message size for mckey or udaddy tests that's
larger than the active MTU of the bound port, the sends will fail.
Detect this condition and abort the test if the message size is >
the active MTU of the port.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoRDMA/librdmacm: update to rc2 v1.0-rc2
Sean Hefty [Fri, 6 Apr 2007 19:10:27 +0000 (12:10 -0700)]
RDMA/librdmacm: update to rc2

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoRDMA/cma: fix 32-bit user / 64-bit kernel mismatch issue
Sean Hefty [Fri, 6 Apr 2007 17:14:02 +0000 (10:14 -0700)]
RDMA/cma: fix 32-bit user / 64-bit kernel mismatch issue

A 64-bit kernel will pad the size of the event structure to a
multiple of 8-bytes.  When using a 32-bit kernel, the structure is left
aligned to a 4-byte boundary.  This results in the userspace event structure
being too small because of the padding.  Fix this by increasing the padding
at the end of the userspace event structure.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoFix build when version script is supported.
Sean Hefty [Mon, 5 Mar 2007 17:58:57 +0000 (09:58 -0800)]
Fix build when version script is supported.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoAdd some documentation references to libibverbs calls. v1.0-rc1
Sean Hefty [Wed, 28 Feb 2007 22:58:00 +0000 (14:58 -0800)]
Add some documentation references to libibverbs calls.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoEnhance API documentation.
Sean Hefty [Wed, 28 Feb 2007 01:41:55 +0000 (17:41 -0800)]
Enhance API documentation.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoFix RPM release name.
Sean Hefty [Fri, 23 Feb 2007 22:57:24 +0000 (14:57 -0800)]
Fix RPM release name.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoUpdate autotools info for 1.0-rc1 release.
Sean Hefty [Fri, 23 Feb 2007 21:16:02 +0000 (13:16 -0800)]
Update autotools info for 1.0-rc1 release.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoWorkaround kernel crash when running with ABI 3.
Sean Hefty [Wed, 31 Jan 2007 19:55:24 +0000 (11:55 -0800)]
Workaround kernel crash when running with ABI 3.

There's a bug in kernel version ABI 3 that leads to a system crash.
Avoid calling rdma_init_qp_attr which causes this crash when working with
ABI 3.

17 years agoUpdate mckey test program to join specific multicast groups.
Sean Hefty [Wed, 31 Jan 2007 01:37:12 +0000 (17:37 -0800)]
Update mckey test program to join specific multicast groups.

Add options to mckey to allow a user to specify a given multicast group.
This allows the user to join a group using IP address 0, get back the
actual group MGID that was created for the user, and join that group from
a separate copy of mckey.

17 years agoAllow unicast traffic over IPOIB port space.
Sean Hefty [Fri, 26 Jan 2007 18:21:17 +0000 (10:21 -0800)]
Allow unicast traffic over IPOIB port space.

Adjust the RMDA_PS_IPOIB to allow unicast traffic.  This requires
changing how QPs are initialized in order to get the correct qkey
to use.  We need to call into the kernel to get the initial QP
attributes.

Update the udaddy unicast test program to test this capability.

17 years agoAdd support to join IPOIB multicast groups
Sean Hefty [Wed, 24 Jan 2007 00:11:45 +0000 (16:11 -0800)]
Add support to join IPOIB multicast groups

Add to the librdmacm an IPOIB port space that allows interoperability with
IPOIB multicast traffic.  Use of the RDMA_PS_IPOIB is limited to multicast
join/leave.

Rename the RDMA_UD_QKEY to RDMA_UDP_QKEY to signify that the qkey is only
used with the RDMA_PS_IPOIB port space.  Update mckey test program based on
patch from Or Gerlitz.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agolibrdmacm: return 0 if rdma_leave_multicast is successful.
Sean Hefty [Mon, 8 Jan 2007 22:27:43 +0000 (14:27 -0800)]
librdmacm: return 0 if rdma_leave_multicast is successful.

Return 0 if leave multicast succeeds, rather than the size of the write.
Update mckey test program to call rdma_leave_multicast to verify its
operation.

17 years agoMerge branch 'master' into multicast
Sean Hefty [Mon, 8 Jan 2007 20:19:03 +0000 (12:19 -0800)]
Merge branch 'master' into multicast

17 years agolibrdmacm Pass back the status or errno in RDMA CM events.
Steve Wise [Fri, 15 Dec 2006 22:56:06 +0000 (16:56 -0600)]
librdmacm Pass back the status or errno in RDMA CM events.

The librdmacm code isn't passing back the errno in all events.

For example, if a connection request times out the kernel CMA will pass
up event RDMA_CM_EVENT_UNREACHABLE with the status set to -ETIMEDOUT.
This errno isn't currently passed back to the librdmacm user in the event.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoMerge branch 'rdma_ucm-abi3'
Sean Hefty [Fri, 15 Dec 2006 01:18:40 +0000 (17:18 -0800)]
Merge branch 'rdma_ucm-abi3'

17 years agoAuto-create config directory during build.
Sean Hefty [Fri, 15 Dec 2006 01:17:14 +0000 (17:17 -0800)]
Auto-create config directory during build.

17 years agordma_leave_multicast does not return zero on success
Or Gerlitz [Mon, 11 Dec 2006 23:55:34 +0000 (15:55 -0800)]
rdma_leave_multicast does not return zero on success

rdma_leave_multicast does not return zero on success, but rather the size
of the leave multicast message.

Signed-off-by: Or Gerlitz <orgerlitz@voltaire.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agoAdd multicast support to librdmacm
Sean Hefty [Tue, 5 Dec 2006 03:38:08 +0000 (19:38 -0800)]
Add multicast support to librdmacm

Add support for multicast QPs through the rdma cm library.

17 years agoUpdate librdmacm to support ABI version 3
Sean Hefty [Tue, 5 Dec 2006 03:17:44 +0000 (19:17 -0800)]
Update librdmacm to support ABI version 3

rdma_ucm ABI 3 adds support for reporting connection information with
connect events and UDP port space support.  Update the librdmacm to
take advantage of these features, and update test programs as well.

17 years agor9898: Compilation warning on 64 bit machines was fixed.
Dotan Barak [Thu, 19 Oct 2006 13:08:19 +0000 (13:08 +0000)]
r9898: Compilation warning on 64 bit machines was fixed.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
17 years agor9696: Add support for iwarp to librdmacm.
Steve Wise [Tue, 3 Oct 2006 21:35:30 +0000 (21:35 +0000)]
r9696: Add support for iwarp to librdmacm.

Signed-off-by: Steve Wise <swise@opengidcomputing.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9420: Identify declarations as C, to support C++.
Sean Hefty [Mon, 11 Sep 2006 17:37:48 +0000 (17:37 +0000)]
r9420: Identify declarations as C, to support C++.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9272: Update documentation for rdma_destroy_id to call out that it will cancel
Sean Hefty [Tue, 5 Sep 2006 19:32:38 +0000 (19:32 +0000)]
r9272: Update documentation for rdma_destroy_id to call out that it will cancel
any oustanding asynchronous operation on the id.  Suggested clarification
by Or.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9208: Remove inlining of sends and set send size = message_size, rather than
Sean Hefty [Thu, 31 Aug 2006 19:34:38 +0000 (19:34 +0000)]
r9208: Remove inlining of sends and set send size = message_size, rather than
subtracting the length of the GRH.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9183: Need to poll both send and receive completions from the CQ on the passive...
Sean Hefty [Tue, 29 Aug 2006 22:03:47 +0000 (22:03 +0000)]
r9183: Need to poll both send and receive completions from the CQ on the passive side
of the connection.  Without polling the sends first, we exit before receiving
all replies.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9105: Older versions of Linux do not have the misc device. Backport patches create
Sean Hefty [Thu, 24 Aug 2006 17:36:24 +0000 (17:36 +0000)]
r9105: Older versions of Linux do not have the misc device.  Backport patches create
the RDMA CM abi_version file under /sys/class/infiniband_ucma, so we'll auto-
matically look there for the abi_version if we don't find it in its normal
location.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9104: Command structure is already initialized to zeroes. No need to set
Sean Hefty [Thu, 24 Aug 2006 17:07:34 +0000 (17:07 +0000)]
r9104: Command structure is already initialized to zeroes.  No need to set
private_data_len field to 0 separately.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor9008: Set the QKEY to a common global value for all UD QPs and multicast groups
Steve Wise [Fri, 18 Aug 2006 21:06:41 +0000 (21:06 +0000)]
r9008: Set the QKEY to a common global value for all UD QPs and multicast groups
created by the RDMA CM.  This lets a UD QP be used for datagram communication,
as well as multicast group communication over any number of groups.

Signed-off-by: Steve Wise <swise@opengridcomputer.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor8851: Set dst->private_data_len to 0, not src.
Sean Hefty [Tue, 8 Aug 2006 16:10:49 +0000 (16:10 +0000)]
r8851: Set dst->private_data_len to 0, not src.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor8825: Do not type the characters "dst_ip=" explicitly, just the IP address, in both
Pete Wyckoff [Fri, 4 Aug 2006 20:45:10 +0000 (20:45 +0000)]
r8825: Do not type the characters "dst_ip=" explicitly, just the IP address, in both
the trunk and iwarp branch.

Signed-off-by: Pete Wyckoff <pw@osc.edu>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor8824: Fix RDMA CM event declaration.
Pete Wyckoff [Fri, 4 Aug 2006 20:40:48 +0000 (20:40 +0000)]
r8824: Fix RDMA CM event declaration.

Signed-off-by: Pete Wyckoff <pw@osc.edu>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
17 years agor8647: Re-instate fix from svn 7079, which was removed in svn 7497.
Sean Hefty [Mon, 24 Jul 2006 17:29:56 +0000 (17:29 +0000)]
r8647: Re-instate fix from svn 7079, which was removed in svn 7497.

On kernels 2.6.9 an older, class/misc does not exist.  To support kernel
backports, if we are unable to locate rdma_cm/abi_version, assume the
latest version.  If we're wrong, we'll fail later in the code calling into
the ABI.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor8548: Offsetof macro needs stddef.h to pull in the definition.
Michael S. Tsirkin [Mon, 17 Jul 2006 16:41:29 +0000 (16:41 +0000)]
r8548: Offsetof macro needs stddef.h to pull in the definition.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor8523: Add calls to the RDMA CM to return its list of RDMA devices. The calls are
Sean Hefty [Fri, 14 Jul 2006 16:19:16 +0000 (16:19 +0000)]
r8523: Add calls to the RDMA CM to return its list of RDMA devices.  The calls are
similar to ibv_get_device_list() / ibv_free_device_list().

Without this patch, RDMA device contexts are handed to the user only after
they create an rdma_cm_id and bind it to a local device.  By exposing the
device list to the user, it makes it easier for the user to allocate device
specific resources (such as PDs, CQs, etc.) that are shared among multiple
rdma_cm_id's.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor8517: Remove dependency on libsysfs.
Sean Hefty [Thu, 13 Jul 2006 22:44:45 +0000 (22:44 +0000)]
r8517: Remove dependency on libsysfs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor8215: Enable svn ID on files.
Sean Hefty [Mon, 26 Jun 2006 20:53:22 +0000 (20:53 +0000)]
r8215: Enable svn ID on files.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor8187: librdmacm/examples/udaddy.c: Fix example name in messages
Hal Rosenstock [Fri, 23 Jun 2006 12:15:45 +0000 (12:15 +0000)]
r8187: librdmacm/examples/udaddy.c: Fix example name in messages

Signed-off-by: Hal Rosenstock <halr@voltaire.com>
18 years agor8170: librdmacm/examples/mckey.c: Fix example name in messages
Hal Rosenstock [Thu, 22 Jun 2006 09:50:53 +0000 (09:50 +0000)]
r8170: librdmacm/examples/mckey.c: Fix example name in messages

Signed-off-by: Hal Rosenstock <halr@voltaire.com>
18 years agor8159: Added checks to the return values of all of the functions that may fail
Dotan Barak [Wed, 21 Jun 2006 14:11:52 +0000 (14:11 +0000)]
r8159: Added checks to the return values of all of the functions that may fail
(in order to add this test to the regression system).

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
18 years agor8084: Add support to the userspace RDMA CM library for joining and leaving multicast
Sean Hefty [Fri, 16 Jun 2006 19:31:02 +0000 (19:31 +0000)]
r8084: Add support to the userspace RDMA CM library for joining and leaving multicast
groups based on IP addressing.  Add a goofy test program for this.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor8077: Add support for UD QPs to the RDMA CM library, along with a goofy test program
Sean Hefty [Fri, 16 Jun 2006 18:30:49 +0000 (18:30 +0000)]
r8077: Add support for UD QPs to the RDMA CM library, along with a goofy test program

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7968: Ensure that the rping buffer is big enough for the minimum
Pradipta Kumar Banerjee [Tue, 13 Jun 2006 17:30:36 +0000 (17:30 +0000)]
r7968: Ensure that the rping buffer is big enough for the minimum
string transmitted.

Signed-off-by: Pradipta Kumar Banerjee <bpradipt@in.ibm.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
18 years agor7966: This patch resolves a race condition between the receipt of
Boyd Faulkner [Tue, 13 Jun 2006 17:26:11 +0000 (17:26 +0000)]
r7966: This patch resolves a race condition between the receipt of
a connection established event and a receive completion from
the client.  The server no longer goes to connected state but
merely waits for the READ_ADV state to begin its looping.  This
keeps the server from going back to CONNECTED from the later
states if the connection established event comes in after the
receive completion (i.e. the loop starts).

Signed-off-by: Boyd Faulkner <faulkner@opengridcomputing.com>
18 years agor7743: Userspace support to allow overriding the default timeout and retry used by
Sean Hefty [Tue, 6 Jun 2006 18:42:56 +0000 (18:42 +0000)]
r7743: Userspace support to allow overriding the default timeout and retry used by
the RDMA CM when connecting over Infiniband.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7620: We need to ack discarded events to avoid hanging during destruction.
Sean Hefty [Thu, 1 Jun 2006 17:50:42 +0000 (17:50 +0000)]
r7620: We need to ack discarded events to avoid hanging during destruction.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7497: Development versions of libibverbs don't include libsysfs headers or
Roland Dreier [Thu, 25 May 2006 16:38:11 +0000 (16:38 +0000)]
r7497: Development versions of libibverbs don't include libsysfs headers or
link with libsysfs implicitly any more.  So libibcm and librdmacm
need to explicitly include and link libsysfs.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
18 years agor7341: Fixed usage statement.
Steve Wise [Thu, 18 May 2006 17:06:41 +0000 (17:06 +0000)]
r7341: Fixed usage statement.

Signed-off-by: Steve Wise <swise@opengricomputing.com>
18 years agor7298: Added checks to the return values of all functions that may fail - in order
Dotan Barak [Wed, 17 May 2006 18:36:29 +0000 (18:36 +0000)]
r7298: Added checks to the return values of all functions that may fail - in order
to add the test to the regression system.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7079: On kernels 2.6.9 and back, we didn't find a way to add sysfs attributes to
Jack Morgenstein [Wed, 10 May 2006 17:06:53 +0000 (17:06 +0000)]
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 <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7077: rdma_destroy_event_channel() should be a void, not return an int.
Sean Hefty [Wed, 10 May 2006 17:01:09 +0000 (17:01 +0000)]
r7077: rdma_destroy_event_channel() should be a void, not return an int.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7021: Replace deprecated function and structure names with updated names.
Sean Hefty [Tue, 9 May 2006 18:31:13 +0000 (18:31 +0000)]
r7021: Replace deprecated function and structure names with updated names.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor7019: Introduce event channels. Event channels allow the application to direct
Sean Hefty [Tue, 9 May 2006 18:25:10 +0000 (18:25 +0000)]
r7019: Introduce event channels.  Event channels allow the application to direct
how RDMA CM events are reported, by directing events on different rdma_cm_id's
to different event channels.  These are similar to completion channels used
in verbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6950: Add routines to the user RDMA CM library to get/set transport specific options.
Sean Hefty [Fri, 5 May 2006 18:05:03 +0000 (18:05 +0000)]
r6950: Add routines to the user RDMA CM library to get/set transport specific options.

Add an option to retrieve possible path records for a connection, and set
which path a connection will be established on.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6787: Move the state to ERROR if rdma_resolve_route() fails.
Steve Wise [Sun, 30 Apr 2006 17:37:04 +0000 (17:37 +0000)]
r6787: Move the state to ERROR if rdma_resolve_route() fails.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
18 years agor6674: If librdmacm has an error processing an ESTABLISHED event, it will report a
Sean Hefty [Wed, 26 Apr 2006 22:54:45 +0000 (22:54 +0000)]
r6674: If librdmacm has an error processing an ESTABLISHED event, it will report a
CONNECT_ERROR event to the user.  However, the kernel will list the cm_id
state as connected.  This can result in librdmacm receiving a DISCONNECTED
event on a cm_id that it failed to fully connect from userspace.  This event
should not be reported to the user.

This condition can occur when the remote side establishes a connection, then
disconnects before the local side processes the ESTABLISHED event.  When the
ESTABLISHED event is finally processed, the local side will get a failure
transitioning the QP, causing librdmacm to report CONNECT_ERROR.  Since the
connection was never reported as ESTABLISHED to the user, do not report the
DISCONNECTED event.

A similar situation exists between the CONNECT_RESPONSE and REJECTED events.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>