]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
9 years agoexternal modifications
Sean Hefty [Mon, 4 Aug 2014 17:01:31 +0000 (10:01 -0700)]
external modifications

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

9 years agoexternal modifications
Sean Hefty [Mon, 4 Aug 2014 17:01:31 +0000 (10:01 -0700)]
external modifications

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

9 years agorsocket: Segmentation fault fix in case of multiple connections
Ilya Nelkenbaum [Mon, 28 Jul 2014 12:48:09 +0000 (15:48 +0300)]
rsocket: Segmentation fault fix in case of multiple connections

In case of more than 16 rsocket connections
are established, "svc->rss" buffer is reallocated
with more memory. Index 0 is reserved for the service's
communication socket, and this is not taken in count
when data is copied from old buffer location to
new one.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
9 years agoudpong: Fix client_recv error check
Sean Hefty [Wed, 23 Jul 2014 06:24:53 +0000 (23:24 -0700)]
udpong: Fix client_recv error check

We only want to report an error if it's not EGAIN.  The if
statement is reversed.  Correct it.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agocommit
Sean Hefty [Wed, 16 Jul 2014 22:50:21 +0000 (15:50 -0700)]
commit

10 years agocommit
Sean Hefty [Wed, 16 Jul 2014 22:50:21 +0000 (15:50 -0700)]
commit

10 years agorefresh
Sean Hefty [Wed, 16 Jul 2014 22:49:59 +0000 (15:49 -0700)]
refresh

10 years agorefresh
Sean Hefty [Wed, 16 Jul 2014 22:49:59 +0000 (15:49 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 16 Jul 2014 22:49:59 +0000 (15:49 -0700)]
refresh (create temporary patch)

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 16 Jul 2014 22:49:59 +0000 (15:49 -0700)]
refresh (create temporary patch)

10 years agoRefresh of v1.0.19
Sean Hefty [Wed, 16 Jul 2014 22:49:59 +0000 (15:49 -0700)]
Refresh of v1.0.19

10 years agoRelease 1.0.19 v1.0.19
Sean Hefty [Wed, 16 Jul 2014 22:49:16 +0000 (15:49 -0700)]
Release 1.0.19

10 years agonew
Sean Hefty [Wed, 16 Jul 2014 22:49:16 +0000 (15:49 -0700)]
new

10 years agonew
Sean Hefty [Wed, 16 Jul 2014 22:49:16 +0000 (15:49 -0700)]
new

10 years agoRelease 1.0.19
Sean Hefty [Wed, 16 Jul 2014 22:49:16 +0000 (15:49 -0700)]
Release 1.0.19

10 years agoexternal modifications
Sean Hefty [Wed, 16 Jul 2014 22:49:16 +0000 (15:49 -0700)]
external modifications

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

10 years agoexternal modifications
Sean Hefty [Wed, 16 Jul 2014 22:49:16 +0000 (15:49 -0700)]
external modifications

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

10 years agoriostream: Only verify last data transfer
Sean Hefty [Wed, 16 Jul 2014 20:44:56 +0000 (13:44 -0700)]
riostream: Only verify last data transfer

Data verification will fail when running the bandwidth
tests or the transfer count is > 1.  The issue is that
subsequent writes by the initiator side will overwrite
the data in the target buffer before the receiver can
verify that it is correct.

To fix this, only verify that the data in the buffer
is correct after the last transfer has completed.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agoRevert "Revert "rsocket: Change keepalive to 0-byte RDMA write""
Sean Hefty [Mon, 7 Jul 2014 15:40:44 +0000 (08:40 -0700)]
Revert "Revert "rsocket: Change keepalive to 0-byte RDMA write""

This reverts commit a34703c53259845dd20450a87eb6747030e23e8b.

0-byte RDMA writes appears to be working correctly with
HCAs from 2 different vendors.  The original problem that
was reported turned out to be a user error.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agorsocket: Update correct rsocket keepalive time
Sean Hefty [Thu, 3 Jul 2014 20:45:52 +0000 (13:45 -0700)]
rsocket: Update correct rsocket keepalive time

When the keepalive time of an rsocket is updated, the
updated information is forwarded to the keepalive service
thread.  However, the thread updates the time for the
wrong service as shown:

tcp_svc_timeouts[svc->cnt] = rs_get_time() + msg.rs->keepalive_time;

The index into tcp_svc_timeouts should correspond to the
rsocket being updated, not the last one in the list.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agorsocket: Fix removing rsocket from service thread
Sean Hefty [Thu, 3 Jul 2014 20:55:39 +0000 (13:55 -0700)]
rsocket: Fix removing rsocket from service thread

When removing an rsocket from a service thread, we replace
the removed service with the one at the end of the service list.
This keeps the array tightly packed.  However, rs_svc_rm_rs
decrements the rsocket count before doing the swap.  The result
is that the entry at the end of the list gets dropped off.
Defer decrementing the count until the swap has been made.

In this case, the cnt value is a valid index into the array,
because we start at index 1.  Index 0 is used internally by
the service thread.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agorsocket: Fix crash resulting from keepalive timeout
Sean Hefty [Wed, 2 Jul 2014 22:37:10 +0000 (15:37 -0700)]
rsocket: Fix crash resulting from keepalive timeout

The following crash was reported by Hal Rosenstock,
<hal@mellanox.com>, with keepalive enabled.  The crash
occurs in the keepalive thread attempting to send a
keepalive message.

report:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffecf08700 (LWP 6013)]
rs_post_write (rs=<value optimized out>, sgl=0x0, nsge=0, wr_data=3758096385,
    flags=0, addr=0, rkey=0) at src/rsocket.c:1660
1660            return rdma_seterrno(ibv_post_send(rs->cm_id->qp, &wr, &bad));
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.x86_64
(gdb)
(gdb) p/x rs
$1 = value has been optimized out

So I added in the following to debug:
1660    if (rs == NULL)
1661    abort();
1662    if (rs->cm_id == NULL)
1663    abort();
1664    if (rs->cm_id->qp == NULL)
1665    abort();
1666            return rdma_seterrno(ibv_post_send(rs->cm_id->qp, &wr, &bad));
1667    }

And saw in gdb:

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffecf08700 (LWP 8096)]
0x00000030d50328a5 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.x86_64
(gdb)
(gdb) bt
#0  0x00000030d50328a5 in raise () from /lib64/libc.so.6
#1  0x00000030d5034085 in abort () from /lib64/libc.so.6
#2  0x00007ffff057fe23 in rs_post_write (rs=<value optimized out>, sgl=0x1fa0,
    nsge=6, wr_data=4294967295, flags=0, addr=0, rkey=0) at src/rsocket.c:1665
#3  0x00007ffff058193d in tcp_svc_send_keepalive (arg=0x7ffff0789f20)
    at src/rsocket.c:4245
#4  tcp_svc_run (arg=0x7ffff0789f20) at src/rsocket.c:4279
#5  0x00000030d5807851 in start_thread () from /lib64/libpthread.so.0
#6  0x00000030d50e890d in clone () from /lib64/libc.so.6
(gdb) fr 2
#2  0x00007ffff057fe23 in rs_post_write (rs=<value optimized out>, sgl=0x1fa0,
    nsge=6, wr_data=4294967295, flags=0, addr=0, rkey=0) at src/rsocket.c:1665
1665    abort();

So qp is NULL somehow...
:end report

There is an issue if an rsocket is closed without going through
the rshutdown.

int rshutdown(int socket, int how)
{
...
if (rs->opts & RS_OPT_SVC_ACTIVE)
rs_notify_svc(&tcp_svc, rs, RS_SVC_REM_KEEPALIVE);

We remove the rsocket from the keepalive thread in rshutdown.

int rclose(int socket)
{
...
if (rs->state & rs_connected)
rshutdown(socket, SHUT_RDWR);
...
rs_free(rs);

rclose will call shutdown only if we're connected.  However, if the
keepalive failed, the socket will be in an error state.  So,
no call to rshutdown, which will leave the freed rsocket on
the keepalive thread's list.

The fix is to to have rclose remove an rsocket from being processed
by a service thread if it is still active.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agoexample/rdma_xclient/server: Update XRC support in sample programs
Sean Hefty [Wed, 2 Jul 2014 05:52:40 +0000 (22:52 -0700)]
example/rdma_xclient/server: Update XRC support in sample programs

Update rdma_xclient and rdma_xserver sample programs to test
XRC data transfers.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agordmacm: Update addrinfo with XRC support
Sean Hefty [Wed, 2 Jul 2014 05:56:43 +0000 (22:56 -0700)]
rdmacm: Update addrinfo with XRC support

Remove internal defines, and use libibverbs exported values
instead.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agordmacm: Add support for XRC QPs
Sean Hefty [Wed, 2 Jul 2014 00:47:22 +0000 (17:47 -0700)]
rdmacm: Add support for XRC QPs

Export a new extended create QP call.  Add support for XRC
QPs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agordmacm: Add support for allocating XRC SRQs
Sean Hefty [Wed, 2 Jul 2014 00:14:13 +0000 (17:14 -0700)]
rdmacm: Add support for allocating XRC SRQs

Add extended SRQ creation call, to support allocating
XRC SRQs.  Use the rdma_cm_id qp type field to
determine which type of SRQ should be allocated.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agordmacm: Add functionality to allocate an XRCD
Sean Hefty [Tue, 1 Jul 2014 23:46:34 +0000 (16:46 -0700)]
rdmacm: Add functionality to allocate an XRCD

XRC QPs and SRQs are associated by an XRC domain.  Provide a
call to allocate an XRCD, similar to how the rdmacm allocates
a PD for the user.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agobuild: Add build support for XRC
Sean Hefty [Tue, 1 Jul 2014 23:17:30 +0000 (16:17 -0700)]
build: Add build support for XRC

Modify autotools to check for and require a libibverbs
version that includes XRC and extension support.

Remove any code used to support older versions of
libibverbs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agolibrdmacm: Use SRQ in rdma_create_qp
Sean Hefty [Tue, 1 Jul 2014 20:30:42 +0000 (13:30 -0700)]
librdmacm: Use SRQ in rdma_create_qp

If an application has allocated an SRQ on an rdma_cm_id, use
it when creating a QP.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agolibrdmacm: Remove NULL checks after calling alloca
Sean Hefty [Wed, 25 Jun 2014 19:56:18 +0000 (12:56 -0700)]
librdmacm: Remove NULL checks after calling alloca

alloca doesn't return a NULL pointer on failure.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agoRevert "rsocket: Change keepalive to 0-byte RDMA write"
Sean Hefty [Sat, 21 Jun 2014 00:44:26 +0000 (17:44 -0700)]
Revert "rsocket: Change keepalive to 0-byte RDMA write"

This reverts commit 0f2c76e81ecf1470cf152600c08c421e7e82b00e.

Testing has shown that this does not always result in the
keep-alive message working correctly, such that a broken
connection is reported as having failed.  The reason for this
behavior is unknown, but revert the patch until the issue has
been resolved.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agocommit
Sean Hefty [Fri, 20 Jun 2014 17:50:33 +0000 (10:50 -0700)]
commit

10 years agocommit
Sean Hefty [Fri, 20 Jun 2014 17:50:32 +0000 (10:50 -0700)]
commit

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:50:20 +0000 (10:50 -0700)]
pop

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:50:20 +0000 (10:50 -0700)]
pop

10 years agorefresh
Sean Hefty [Fri, 20 Jun 2014 17:50:19 +0000 (10:50 -0700)]
refresh

10 years agorefresh
Sean Hefty [Fri, 20 Jun 2014 17:50:19 +0000 (10:50 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Fri, 20 Jun 2014 17:50:16 +0000 (10:50 -0700)]
refresh (create temporary patch)

10 years agorefresh (create temporary patch)
Sean Hefty [Fri, 20 Jun 2014 17:50:16 +0000 (10:50 -0700)]
refresh (create temporary patch)

10 years agoRefresh of rsocket-add-support-for-rdma_r
Sean Hefty [Fri, 20 Jun 2014 17:50:16 +0000 (10:50 -0700)]
Refresh of rsocket-add-support-for-rdma_r

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:50:15 +0000 (10:50 -0700)]
pop

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:50:15 +0000 (10:50 -0700)]
pop

10 years agorefresh
Sean Hefty [Fri, 20 Jun 2014 17:50:12 +0000 (10:50 -0700)]
refresh

10 years agorefresh
Sean Hefty [Fri, 20 Jun 2014 17:50:12 +0000 (10:50 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Fri, 20 Jun 2014 17:49:59 +0000 (10:49 -0700)]
refresh (create temporary patch)

10 years agorefresh (create temporary patch)
Sean Hefty [Fri, 20 Jun 2014 17:49:59 +0000 (10:49 -0700)]
refresh (create temporary patch)

10 years agoRefresh of librdmacm-trivial-cma-in-ucma_
Sean Hefty [Fri, 20 Jun 2014 17:49:59 +0000 (10:49 -0700)]
Refresh of librdmacm-trivial-cma-in-ucma_

10 years agolibrdmacm: In ucma_convert_path, fix selector values
Hal Rosenstock [Thu, 19 Jun 2014 17:08:02 +0000 (13:08 -0400)]
librdmacm: In ucma_convert_path, fix selector values

Intent is for the selectors to be equal to (exactly) rather than less than.
Selector for exactly is value of 2 rather than 1.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:49:57 +0000 (10:49 -0700)]
pop

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:49:57 +0000 (10:49 -0700)]
pop

10 years ago[librdmacm,TRIVIAL] cma: In ucma_convert_path, fix selector values
Hal Rosenstock [Thu, 19 Jun 2014 17:08:02 +0000 (13:08 -0400)]
[librdmacm,TRIVIAL] cma: In ucma_convert_path, fix selector values

Intent is for the selectors to be equal to (exactly) rather than less than.
Selector for exactly is value of 2 rather than 1.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
10 years agorefresh
Sean Hefty [Fri, 20 Jun 2014 17:49:35 +0000 (10:49 -0700)]
refresh

10 years agorefresh
Sean Hefty [Fri, 20 Jun 2014 17:49:35 +0000 (10:49 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Fri, 20 Jun 2014 17:49:31 +0000 (10:49 -0700)]
refresh (create temporary patch)

10 years agorefresh (create temporary patch)
Sean Hefty [Fri, 20 Jun 2014 17:49:31 +0000 (10:49 -0700)]
refresh (create temporary patch)

10 years agoRefresh of rsocket-add-support-for-rdma_r
Sean Hefty [Fri, 20 Jun 2014 17:49:31 +0000 (10:49 -0700)]
Refresh of rsocket-add-support-for-rdma_r

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:49:28 +0000 (10:49 -0700)]
pop

10 years agopop
Sean Hefty [Fri, 20 Jun 2014 17:49:28 +0000 (10:49 -0700)]
pop

10 years agorsocket: Add support for RDMA_ROUTE option in rgetsockopt
Hal Rosenstock [Thu, 19 Jun 2014 15:54:11 +0000 (11:54 -0400)]
rsocket: Add support for RDMA_ROUTE option in rgetsockopt

Create as many ibv_path_data structs from the RDMA route
ibv_sa_path_rec struct for the rsocket based on how
many fit into the supplied buffer.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agorsocket: Add support for RDMA_ROUTE option in rgetsockopt
Hal Rosenstock [Thu, 19 Jun 2014 15:54:11 +0000 (11:54 -0400)]
rsocket: Add support for RDMA_ROUTE option in rgetsockopt

Create as many ibv_path_data structs from the RDMA route
ibv_sa_path_rec struct for the rsocket based on how
many fit into the supplied buffer.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
10 years agoimport
Sean Hefty [Fri, 20 Jun 2014 17:49:24 +0000 (10:49 -0700)]
import

10 years agoimport
Sean Hefty [Fri, 20 Jun 2014 17:49:24 +0000 (10:49 -0700)]
import

10 years ago[librdmacm,TRIVIAL] cma: In ucma_convert_path, fix selector values
Hal Rosenstock [Thu, 19 Jun 2014 17:08:02 +0000 (13:08 -0400)]
[librdmacm,TRIVIAL] cma: In ucma_convert_path, fix selector values

Intent is for the selectors to be equal to (exactly) rather than less than.
Selector for exactly is value of 2 rather than 1.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
10 years agoexternal modifications
Sean Hefty [Fri, 20 Jun 2014 17:47:40 +0000 (10:47 -0700)]
external modifications

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

10 years agoexternal modifications
Sean Hefty [Fri, 20 Jun 2014 17:47:40 +0000 (10:47 -0700)]
external modifications

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

10 years agoMerge branch 'dev'
Sean Hefty [Wed, 18 Jun 2014 18:56:42 +0000 (11:56 -0700)]
Merge branch 'dev'

10 years agorsocket: Change keepalive to 0-byte RDMA write
Susan K. Coulter [Mon, 16 Jun 2014 17:28:08 +0000 (10:28 -0700)]
rsocket: Change keepalive to 0-byte RDMA write

Signed-off-by: Susan K. Coulter <markus@cj-fe1.lanl.gov>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agocommit
Sean Hefty [Wed, 18 Jun 2014 17:48:07 +0000 (10:48 -0700)]
commit

10 years agocommit
Sean Hefty [Wed, 18 Jun 2014 17:48:07 +0000 (10:48 -0700)]
commit

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:41 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:41 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:39 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:39 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:37 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:37 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:23 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:47:23 +0000 (10:47 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:45:42 +0000 (10:45 -0700)]
pop

10 years agopop
Sean Hefty [Wed, 18 Jun 2014 17:45:42 +0000 (10:45 -0700)]
pop

10 years agorefresh
Sean Hefty [Wed, 18 Jun 2014 17:45:24 +0000 (10:45 -0700)]
refresh

10 years agorefresh
Sean Hefty [Wed, 18 Jun 2014 17:45:24 +0000 (10:45 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 18 Jun 2014 17:45:24 +0000 (10:45 -0700)]
refresh (create temporary patch)

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 18 Jun 2014 17:45:24 +0000 (10:45 -0700)]
refresh (create temporary patch)

10 years agoRefresh of rdma_server-handle-ibv_send_in
Sean Hefty [Wed, 18 Jun 2014 17:45:24 +0000 (10:45 -0700)]
Refresh of rdma_server-handle-ibv_send_in

10 years agordma_server: handle IBV_SEND_INLINE correctly
Doug Ledford [Wed, 18 Jun 2014 17:45:23 +0000 (10:45 -0700)]
rdma_server: handle IBV_SEND_INLINE correctly

Not all RDMA devices support IBV_SEND_INLINE.  At least some of those
that don't will ignore the flag passed to rdma_post_send and attempt to
send the command by using an sge entry instead.  Because we don't
register the send memory, this fails.  The proper way to deal with the
fact that IBV_SEND_INLINE is not guaranteed is to check the returned
value in our cap struct to see if we have support for inline data, and
if not, fall back to non-inline sends and to register the send memory
region.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agopick
Sean Hefty [Wed, 18 Jun 2014 17:45:23 +0000 (10:45 -0700)]
pick

10 years agopick
Sean Hefty [Wed, 18 Jun 2014 17:45:23 +0000 (10:45 -0700)]
pick

10 years agordma_server: handle IBV_SEND_INLINE correctly
Doug Ledford [Wed, 18 Jun 2014 17:45:23 +0000 (10:45 -0700)]
rdma_server: handle IBV_SEND_INLINE correctly

Not all RDMA devices support IBV_SEND_INLINE.  At least some of those
that don't will ignore the flag passed to rdma_post_send and attempt to
send the command by using an sge entry instead.  Because we don't
register the send memory, this fails.  The proper way to deal with the
fact that IBV_SEND_INLINE is not guaranteed is to check the returned
value in our cap struct to see if we have support for inline data, and
if not, fall back to non-inline sends and to register the send memory
region.

Signed-off-by: Doug Ledford <dledford@redhat.com>
10 years agorefresh
Sean Hefty [Wed, 18 Jun 2014 17:44:51 +0000 (10:44 -0700)]
refresh

10 years agorefresh
Sean Hefty [Wed, 18 Jun 2014 17:44:51 +0000 (10:44 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 18 Jun 2014 17:44:51 +0000 (10:44 -0700)]
refresh (create temporary patch)

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 18 Jun 2014 17:44:51 +0000 (10:44 -0700)]
refresh (create temporary patch)

10 years agoRefresh of rdma_client-handle-ibv_send_in
Sean Hefty [Wed, 18 Jun 2014 17:44:51 +0000 (10:44 -0700)]
Refresh of rdma_client-handle-ibv_send_in

10 years agordma_client: handle IBV_SEND_INLINE correctly
Doug Ledford [Wed, 18 Jun 2014 17:44:49 +0000 (10:44 -0700)]
rdma_client: handle IBV_SEND_INLINE correctly

Not all RDMA devices support IBV_SEND_INLINE.  At least some of those
that don't will ignore the flag passed to rdma_post_send and attempt to
send the command by using an sge entry instead.  Because we don't
register the send memory, this fails.  The proper way to deal with the
fact that IBV_SEND_INLINE is not guaranteed is to check the returned
value in our cap struct to see if we have support for inline data, and
if not, fall back to non-inline sends and to register the send memory
region.

Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
10 years agopick
Sean Hefty [Wed, 18 Jun 2014 17:44:49 +0000 (10:44 -0700)]
pick

10 years agopick
Sean Hefty [Wed, 18 Jun 2014 17:44:49 +0000 (10:44 -0700)]
pick

10 years agordma_client: handle IBV_SEND_INLINE correctly
Doug Ledford [Wed, 18 Jun 2014 17:44:49 +0000 (10:44 -0700)]
rdma_client: handle IBV_SEND_INLINE correctly

Not all RDMA devices support IBV_SEND_INLINE.  At least some of those
that don't will ignore the flag passed to rdma_post_send and attempt to
send the command by using an sge entry instead.  Because we don't
register the send memory, this fails.  The proper way to deal with the
fact that IBV_SEND_INLINE is not guaranteed is to check the returned
value in our cap struct to see if we have support for inline data, and
if not, fall back to non-inline sends and to register the send memory
region.

Signed-off-by: Doug Ledford <dledford@redhat.com>
10 years agorefresh
Sean Hefty [Wed, 18 Jun 2014 17:44:29 +0000 (10:44 -0700)]
refresh

10 years agorefresh
Sean Hefty [Wed, 18 Jun 2014 17:44:29 +0000 (10:44 -0700)]
refresh

10 years agorefresh (create temporary patch)
Sean Hefty [Wed, 18 Jun 2014 17:44:29 +0000 (10:44 -0700)]
refresh (create temporary patch)