]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
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>
18 years agor6628: Update to support calling listen without having previously bound. After
Sean Hefty [Tue, 25 Apr 2006 17:02:48 +0000 (17:02 +0000)]
r6628: Update to support calling listen without having previously bound.  After
listen is called, we need to query for the route information to know which
port has been assigned.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6593: Fixed X86_64 compile warnings.
Steve Wise [Mon, 24 Apr 2006 21:45:02 +0000 (21:45 +0000)]
r6593: Fixed X86_64 compile warnings.

18 years agor6503: Remove ABI check surrounding call to query route information after performing
Sean Hefty [Mon, 17 Apr 2006 22:35:31 +0000 (22:35 +0000)]
r6503: Remove ABI check surrounding call to query route information after performing
a local bind.  We always need to get the route information in order to bind
to the local device, or DAPL breaks.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6335: Reset ABI version to 1. We will not maintain backwards compatibility until
Sean Hefty [Fri, 7 Apr 2006 23:49:48 +0000 (23:49 +0000)]
r6335: Reset ABI version to 1.  We will not maintain backwards compatibility until
the RDMA CM has been merged upstream.  This removes the ABI version hack that
tried to handle the case where the ABI version was not exported into userspace.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6319: Handle the case on the server side where the first RECV completion
Steve Wise [Fri, 7 Apr 2006 17:59:35 +0000 (17:59 +0000)]
r6319: Handle the case on the server side where the first RECV completion
happens before the connect ESTABLISHED event.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
18 years agor6297: update librdmacm.spec.in from 1.0 branch.
Bryan O'Sullivan [Thu, 6 Apr 2006 16:52:09 +0000 (16:52 +0000)]
r6297: update librdmacm.spec.in from 1.0 branch.

18 years agor6296: update librdmacm.
Bryan O'Sullivan [Thu, 6 Apr 2006 16:51:32 +0000 (16:51 +0000)]
r6296: update librdmacm.

18 years agor6183: Added a print if post send fails.
Dotan Barak [Mon, 3 Apr 2006 17:32:13 +0000 (17:32 +0000)]
r6183: Added a print if post send fails.

Signed-off-by: Dotan Barak <dotanb@mellanox.co.il>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6171: merge cmatose example from main trunk
Tziporet Koren [Mon, 3 Apr 2006 14:30:35 +0000 (14:30 +0000)]
r6171: merge cmatose example from main trunk

18 years agor6135: If the user calls rdma_bind_addr(), but specifies either a zero IP address
Sean Hefty [Fri, 31 Mar 2006 20:07:25 +0000 (20:07 +0000)]
r6135: If the user calls rdma_bind_addr(), but specifies either a zero IP address
or the loopback address, bind will succeed, but the cm_id will not be
attached to an RDMA device.  This will result in a failure if rdma_resolve_addr
is called.  Fix rdma_resolve_addr(), so that it handles this condition
properly.

Also fix the userspace interface to allow querying for address information
after binding to the zero or loopback address.  This breaks the behavior of
the current ABI, so bump the ABI version, and add the proper support to
allow checking the kernel ABI version from the userspace library.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor6087: Permit specifying the source address of a connection as a command line
Sean Hefty [Wed, 29 Mar 2006 19:57:28 +0000 (19:57 +0000)]
r6087: Permit specifying the source address of a connection as a command line
parameter.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor5906: Fix dev name. Should be 'rdma_cm' instead of 'ucma'.
Sean Hefty [Mon, 20 Mar 2006 16:55:50 +0000 (16:55 +0000)]
r5906: Fix dev name.  Should be 'rdma_cm' instead of 'ucma'.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor5663: first cut at packaging fun for 1.0-rc1.
Bryan O'Sullivan [Tue, 7 Mar 2006 22:26:55 +0000 (22:26 +0000)]
r5663: first cut at packaging fun for 1.0-rc1.

18 years agor5492: Branching for 1.0 release
Bryan O'Sullivan [Fri, 24 Feb 2006 18:29:52 +0000 (18:29 +0000)]
r5492: Branching for 1.0 release

18 years agor5368: Implement an RDMA ping-ping test over an RC connection. This program
Steve Wise [Sat, 11 Feb 2006 00:12:10 +0000 (00:12 +0000)]
r5368: Implement an RDMA ping-ping test over an RC connection.  This program
uses send, recv, RDMA read, and RDMA write operations, as well as CQ
channels to get CQ events.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4579: Add 'void' to function prototypes to make gcc happy.
Sean Hefty [Thu, 22 Dec 2005 01:12:35 +0000 (01:12 +0000)]
r4579: Add 'void' to function prototypes to make gcc happy.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4466: Change libibverbs API for listing all known devices from
Roland Dreier [Wed, 14 Dec 2005 20:44:36 +0000 (20:44 +0000)]
r4466: Change libibverbs API for listing all known devices from
ibv_get_devices() to ibv_get_device_list(), and update all
in-tree uses of this API.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
18 years agor4186: Initialize file operations if user tries to get events or retrieve the fd
Sean Hefty [Mon, 28 Nov 2005 23:00:19 +0000 (23:00 +0000)]
r4186: Initialize file operations if user tries to get events or retrieve the fd
before creating a cm_id.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4128: Fix setting source/destination addresses.
Sean Hefty [Wed, 23 Nov 2005 23:16:26 +0000 (23:16 +0000)]
r4128: Fix setting source/destination addresses.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4074: Defer initialization from library load until user allocates their first
Sean Hefty [Thu, 17 Nov 2005 22:45:53 +0000 (22:45 +0000)]
r4074: Defer initialization from library load until user allocates their first
rdma_cm_id.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4067: And now export the rdma_get_fd function...
Sean Hefty [Wed, 16 Nov 2005 22:25:10 +0000 (22:25 +0000)]
r4067: And now export the rdma_get_fd function...

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4065: Provide call to retrieve fd.
Sean Hefty [Wed, 16 Nov 2005 18:46:29 +0000 (18:46 +0000)]
r4065: Provide call to retrieve fd.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4050: Fix wildcard bind_addr call. No device is associated with a wildcard bind,
Sean Hefty [Tue, 15 Nov 2005 18:51:31 +0000 (18:51 +0000)]
r4050: Fix wildcard bind_addr call.  No device is associated with a wildcard bind,
so no route is available.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4022: Add port_num field to struct rdma_cm_id to make it easier for clients to
Sean Hefty [Fri, 11 Nov 2005 19:45:42 +0000 (19:45 +0000)]
r4022: Add port_num field to struct rdma_cm_id to make it easier for clients to
identify which port they are currently using.

Remove a few unneeded variable initializations, and fix a bug where the
IB address was not set after calling rdma_bind_addr() in userspace.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
18 years agor4019: Add support for userspace RDMA connection management abstraction (CMA).
Sean Hefty [Fri, 11 Nov 2005 00:33:09 +0000 (00:33 +0000)]
r4019: Add support for userspace RDMA connection management abstraction (CMA).

- Adds common user/kernel data structures and copy routines in ib_uverbs and
  libibverbs.
- Update ib_ucm and libibcm to use common structures and copy routines.
- Add new kernel module, rdma_ucm, to support userspace CMA.
- Add userspace CMA library, librdmacm.
- Add userspace CMA test program.
- Update kernel CMA to support userspace CMA library.
- Add support for users to transition QP states.
- Add backlog parameter to rdma_listen API.

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