]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
9 years agorefresh
Sean Hefty [Tue, 2 Jun 2015 16:26:05 +0000 (09:26 -0700)]
refresh

9 years agorefresh
Sean Hefty [Tue, 2 Jun 2015 16:26:05 +0000 (09:26 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 2 Jun 2015 16:26:05 +0000 (09:26 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 2 Jun 2015 16:26:05 +0000 (09:26 -0700)]
refresh (create temporary patch)

9 years agoRefresh of v1.0.21
Sean Hefty [Tue, 2 Jun 2015 16:26:04 +0000 (09:26 -0700)]
Refresh of v1.0.21

9 years agorefresh
Sean Hefty [Tue, 2 Jun 2015 16:25:25 +0000 (09:25 -0700)]
refresh

9 years agorefresh
Sean Hefty [Tue, 2 Jun 2015 16:25:25 +0000 (09:25 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 2 Jun 2015 16:25:25 +0000 (09:25 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 2 Jun 2015 16:25:25 +0000 (09:25 -0700)]
refresh (create temporary patch)

9 years agoRefresh of v1.0.21
Sean Hefty [Tue, 2 Jun 2015 16:25:25 +0000 (09:25 -0700)]
Refresh of v1.0.21

9 years agov1.0.21 v1.0.21
Sean Hefty [Tue, 2 Jun 2015 16:25:21 +0000 (09:25 -0700)]
v1.0.21

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agov1.0.21
Sean Hefty [Tue, 2 Jun 2015 16:25:21 +0000 (09:25 -0700)]
v1.0.21

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agonew
Sean Hefty [Tue, 2 Jun 2015 16:25:21 +0000 (09:25 -0700)]
new

9 years agonew
Sean Hefty [Tue, 2 Jun 2015 16:25:21 +0000 (09:25 -0700)]
new

9 years agov1.0.21
Sean Hefty [Tue, 2 Jun 2015 16:25:21 +0000 (09:25 -0700)]
v1.0.21

9 years agocommit
Sean Hefty [Tue, 2 Jun 2015 16:24:24 +0000 (09:24 -0700)]
commit

9 years agocommit
Sean Hefty [Tue, 2 Jun 2015 16:24:24 +0000 (09:24 -0700)]
commit

9 years agorefresh
Sean Hefty [Fri, 29 May 2015 18:25:15 +0000 (11:25 -0700)]
refresh

9 years agorefresh
Sean Hefty [Fri, 29 May 2015 18:25:15 +0000 (11:25 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 29 May 2015 18:25:15 +0000 (11:25 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 29 May 2015 18:25:15 +0000 (11:25 -0700)]
refresh (create temporary patch)

9 years agoRefresh of rs-initbufs
Sean Hefty [Fri, 29 May 2015 18:25:14 +0000 (11:25 -0700)]
Refresh of rs-initbufs

9 years agorefresh
Sean Hefty [Fri, 29 May 2015 18:24:30 +0000 (11:24 -0700)]
refresh

9 years agorefresh
Sean Hefty [Fri, 29 May 2015 18:24:30 +0000 (11:24 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 29 May 2015 18:24:30 +0000 (11:24 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Fri, 29 May 2015 18:24:30 +0000 (11:24 -0700)]
refresh (create temporary patch)

9 years agoRefresh of rs-initbufs
Sean Hefty [Fri, 29 May 2015 18:24:30 +0000 (11:24 -0700)]
Refresh of rs-initbufs

9 years agorsockets: Delay initializing buffers until the inline size is known
Sean Hefty [Fri, 29 May 2015 18:24:26 +0000 (11:24 -0700)]
rsockets: Delay initializing buffers until the inline size is known

The qib HCA ignores the requested max_inline_size on input and
instead returns the supported value on output.  As a result,
the default inline size requested by rsockets is ignored, with 0
being returned.  The code catches this after it creates the QP, but
has already initialized its data buffers prior to creating the QP.

The result is that the inline size used in rs_init_bufs() is larger
than that supported by the qib device.  This causes a failure when
attempting to update available receive buffer space.  The registered
data buffer for the credit message is smaller than what is needed.

Work-around this issue by delaying the initialization of the data
buffers until after the QP has been created and the real size of
the inline data is known.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agorsockets: Delay initializing buffers until the inline size is known
Sean Hefty [Fri, 29 May 2015 18:24:26 +0000 (11:24 -0700)]
rsockets: Delay initializing buffers until the inline size is known

The qib HCA ignores the requested max_inline_size on input and
instead returns the supported value on output.  As a result,
the default inline size requested by rsockets is ignored, with 0
being returned.  The code catches this after it creates the QP, but
has already initialized its data buffers prior to creating the QP.

The result is that the inline size used in rs_init_bufs() is larger
than that supported by the qib device.  This causes a failure when
attempting to update available receive buffer space.  The registered
data buffer for the credit message is smaller than what is needed.

Work-around this issue by delaying the initialization of the data
buffers until after the QP has been created and the real size of
the inline data is known.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agonew
Sean Hefty [Fri, 29 May 2015 18:24:26 +0000 (11:24 -0700)]
new

9 years agonew
Sean Hefty [Fri, 29 May 2015 18:24:26 +0000 (11:24 -0700)]
new

9 years agorsockets: Delay initializing buffers until the inline size is known
Sean Hefty [Fri, 29 May 2015 18:24:26 +0000 (11:24 -0700)]
rsockets: Delay initializing buffers until the inline size is known

The qib HCA ignores the requested max_inline_size on input and
instead returns the supported value on output.  As a result,
the default inline size requested by rsockets is ignored, with 0
being returned.  The code catches this after it creates the QP, but
has already initialized its data buffers prior to creating the QP.

The result is that the inline size used in rs_init_bufs() is larger
than that supported by the qib device.  This causes a failure when
attempting to update available receive buffer space.  The registered
data buffer for the credit message is smaller than what is needed.

Work-around this issue by delaying the initialization of the data
buffers until after the QP has been created and the real size of
the inline data is known.

9 years agocommit
Sean Hefty [Tue, 28 Apr 2015 21:33:02 +0000 (14:33 -0700)]
commit

9 years agocommit
Sean Hefty [Tue, 28 Apr 2015 21:33:02 +0000 (14:33 -0700)]
commit

9 years agorefresh
Sean Hefty [Tue, 28 Apr 2015 21:32:25 +0000 (14:32 -0700)]
refresh

9 years agorefresh
Sean Hefty [Tue, 28 Apr 2015 21:32:25 +0000 (14:32 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 28 Apr 2015 21:32:25 +0000 (14:32 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 28 Apr 2015 21:32:25 +0000 (14:32 -0700)]
refresh (create temporary patch)

9 years agoRefresh of prints
Sean Hefty [Tue, 28 Apr 2015 21:32:25 +0000 (14:32 -0700)]
Refresh of prints

9 years agorefresh
Sean Hefty [Tue, 28 Apr 2015 21:31:18 +0000 (14:31 -0700)]
refresh

9 years agorefresh
Sean Hefty [Tue, 28 Apr 2015 21:31:18 +0000 (14:31 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 28 Apr 2015 21:31:18 +0000 (14:31 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Tue, 28 Apr 2015 21:31:18 +0000 (14:31 -0700)]
refresh (create temporary patch)

9 years agoRefresh of prints
Sean Hefty [Tue, 28 Apr 2015 21:31:18 +0000 (14:31 -0700)]
Refresh of prints

9 years agoRemove prints to stderr
Sean Hefty [Tue, 28 Apr 2015 21:31:15 +0000 (14:31 -0700)]
Remove prints to stderr

The library should just fail operations with ENODEV, rather than
printing to stderr.  Printing can result in applications failing,
or displaying incorrect error messages when no verb devices are
actually present.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agoRemove prints to stderr
Sean Hefty [Tue, 28 Apr 2015 21:31:15 +0000 (14:31 -0700)]
Remove prints to stderr

The library should just fail operations with ENODEV, rather than
printing to stderr.  Printing can result in applications failing,
or displaying incorrect error messages when no verb devices are
actually present.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agonew
Sean Hefty [Tue, 28 Apr 2015 21:31:15 +0000 (14:31 -0700)]
new

9 years agonew
Sean Hefty [Tue, 28 Apr 2015 21:31:15 +0000 (14:31 -0700)]
new

9 years agoRemove prints to stderr
Sean Hefty [Tue, 28 Apr 2015 21:31:15 +0000 (14:31 -0700)]
Remove prints to stderr

The library should just fail operations with ENODEV, rather than
printing to stderr.  Printing can result in applications failing,
or displaying incorrect error messages when no verb devices are
actually present.

9 years agocommit
Sean Hefty [Thu, 9 Apr 2015 00:09:26 +0000 (17:09 -0700)]
commit

9 years agocommit
Sean Hefty [Thu, 9 Apr 2015 00:09:26 +0000 (17:09 -0700)]
commit

9 years agorefresh
Sean Hefty [Wed, 8 Apr 2015 22:28:17 +0000 (15:28 -0700)]
refresh

9 years agorefresh
Sean Hefty [Wed, 8 Apr 2015 22:28:17 +0000 (15:28 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 8 Apr 2015 22:28:16 +0000 (15:28 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 8 Apr 2015 22:28:16 +0000 (15:28 -0700)]
refresh (create temporary patch)

9 years agoRefresh of v1.0.20
Sean Hefty [Wed, 8 Apr 2015 22:28:16 +0000 (15:28 -0700)]
Refresh of v1.0.20

9 years agorefresh
Sean Hefty [Wed, 8 Apr 2015 22:27:42 +0000 (15:27 -0700)]
refresh

9 years agorefresh
Sean Hefty [Wed, 8 Apr 2015 22:27:42 +0000 (15:27 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 8 Apr 2015 22:27:42 +0000 (15:27 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 8 Apr 2015 22:27:42 +0000 (15:27 -0700)]
refresh (create temporary patch)

9 years agoRefresh of v1.0.20
Sean Hefty [Wed, 8 Apr 2015 22:27:42 +0000 (15:27 -0700)]
Refresh of v1.0.20

9 years agov1.0.20 v1.0.20
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
v1.0.20

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agov1.0.20
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
v1.0.20

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agonew
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
new

9 years agonew
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
new

9 years agov1.0.20
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
v1.0.20

9 years agoexternal modifications
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
external modifications

Modifications by tools other than StGit (e.g. git).

9 years agoexternal modifications
Sean Hefty [Wed, 8 Apr 2015 22:27:38 +0000 (15:27 -0700)]
external modifications

Modifications by tools other than StGit (e.g. git).

9 years agocma: Workaround for rdma_ucm kernel bug
Ilya Nelkenbaum [Thu, 26 Mar 2015 19:41:11 +0000 (12:41 -0700)]
cma: Workaround for rdma_ucm kernel bug

For certain new kernels, IB_QP_SMAC bit is erroneously
set in QP attribute mask. This workaround turns
off that bit. It allows SSA connections (AF_IB)
to work. Without this workaround, there are issues
on the client side.

Kernel patch which caused issue is commit dd5f03b
IB/core: Ethernet L2 attributes in verbs/cm structures

Kernel patch to fix this in upstream:

commit c2be9dc0e0fa59cc43c2c7084fc42b430809a0fe
Author: Ilya Nelkenbaum <ilyan@mellanox.com>
Date:   Thu Feb 5 13:53:48 2015 +0200

    IB/core: When marshaling ucma path from user-space, clear unused fields

    When marshaling a user path to the kernel struct ib_sa_path, we need
    to zero smac and dmac and set the vlan id to the "no vlan" value.

    This is to ensure that Ethernet attributes are not used with
    InfiniBand QPs.

Fixes: dd5f03beb4f7 ("IB/core: Ethernet L2 attributes in verbs/cm structures")
Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
The fix was pushed to stable 3.14, 3.18 and 3.19 versions.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agorsocket; Set POLLERR bit in revent in case of rs_connect_error
Sasha Kotchubievsky [Wed, 25 Mar 2015 22:27:01 +0000 (15:27 -0700)]
rsocket; Set POLLERR bit in revent in case of rs_connect_error

In non-blocking mode, on server side accept returns a new data
socket and select/poll should indicate when the socket is ready
for reading/writing.

This fix allows an application to receive an error in case of
connection failure.

Signed-off-by: Sasha Kotchubievsky <sashakot@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agocommit
Sean Hefty [Wed, 25 Mar 2015 22:46:28 +0000 (15:46 -0700)]
commit

9 years agocommit
Sean Hefty [Wed, 25 Mar 2015 22:46:28 +0000 (15:46 -0700)]
commit

9 years agorefresh
Sean Hefty [Wed, 25 Mar 2015 22:45:38 +0000 (15:45 -0700)]
refresh

9 years agorefresh
Sean Hefty [Wed, 25 Mar 2015 22:45:38 +0000 (15:45 -0700)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 25 Mar 2015 22:45:38 +0000 (15:45 -0700)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 25 Mar 2015 22:45:38 +0000 (15:45 -0700)]
refresh (create temporary patch)

9 years agoRefresh of librdmacm-rstream-c-add-missin
Sean Hefty [Wed, 25 Mar 2015 22:45:37 +0000 (15:45 -0700)]
Refresh of librdmacm-rstream-c-add-missin

9 years agoimport
Sean Hefty [Wed, 25 Mar 2015 22:45:34 +0000 (15:45 -0700)]
import

9 years agoimport
Sean Hefty [Wed, 25 Mar 2015 22:45:34 +0000 (15:45 -0700)]
import

9 years ago[librdmacm] rstream.c: Add missing binding to source address in client_connect
Hal Rosenstock [Fri, 6 Mar 2015 14:58:45 +0000 (09:58 -0500)]
[librdmacm] rstream.c: Add missing binding to source address in client_connect

This is needed for IPv6 connections.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years ago[librdmacm] rstream.c: Add missing binding to source address in client_connect
Hal Rosenstock [Fri, 6 Mar 2015 14:58:45 +0000 (09:58 -0500)]
[librdmacm] rstream.c: Add missing binding to source address in client_connect

This is needed for IPv6 connections.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
9 years agocommit
Sean Hefty [Fri, 13 Feb 2015 17:44:49 +0000 (09:44 -0800)]
commit

9 years agocommit
Sean Hefty [Fri, 13 Feb 2015 17:44:49 +0000 (09:44 -0800)]
commit

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 01:01:38 +0000 (17:01 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 01:01:38 +0000 (17:01 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 01:01:35 +0000 (17:01 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 01:01:35 +0000 (17:01 -0800)]
refresh (create temporary patch)

9 years agoRefresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 01:01:33 +0000 (17:01 -0800)]
Refresh of rs-idm

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:52:48 +0000 (16:52 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:52:48 +0000 (16:52 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agoRefresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 00:51:35 +0000 (16:51 -0800)]
Refresh of rs-idm

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:51:30 +0000 (16:51 -0800)]
refresh

9 years agorefresh
Sean Hefty [Wed, 11 Feb 2015 00:51:30 +0000 (16:51 -0800)]
refresh

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:20 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agorefresh (create temporary patch)
Sean Hefty [Wed, 11 Feb 2015 00:51:20 +0000 (16:51 -0800)]
refresh (create temporary patch)

9 years agoRefresh of rs-idm
Sean Hefty [Wed, 11 Feb 2015 00:51:19 +0000 (16:51 -0800)]
Refresh of rs-idm

9 years agorsocket: Fix race in indexer map
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
rsocket: Fix race in indexer map

Although insertions and removals of rsockets are protected
against accesses to the index map, when reading the map using
a non-rsocket (i.e. normal fd), the reading of the map may
overlap with the removal of an rsocket.  This can result in
accessing freed memory.

We can avoid this by not freeing the memory when rsockets
no longer reference an index array.  This ensures that the
memory is valid, and protects against reading the memory without
adding locking into the read path.

Problem reported by: Sasha Kotchubievsky <sashakot@mellanox.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agorsocket: Fix race in indexer map
Sean Hefty [Wed, 11 Feb 2015 00:50:08 +0000 (16:50 -0800)]
rsocket: Fix race in indexer map

Although insertions and removals of rsockets are protected
against accesses to the index map, when reading the map using
a non-rsocket (i.e. normal fd), the reading of the map may
overlap with the removal of an rsocket.  This can result in
accessing freed memory.

We can avoid this by not freeing the memory when rsockets
no longer reference an index array.  This ensures that the
memory is valid, and protects against reading the memory without
adding locking into the read path.

Problem reported by: Sasha Kotchubievsky <sashakot@mellanox.com>

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