]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rdma_client: handle IBV_SEND_INLINE correctly
authorDoug Ledford <dledford@redhat.com>
Wed, 18 Jun 2014 17:44:49 +0000 (10:44 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 18 Jun 2014 17:44:49 +0000 (10:44 -0700)
commit9fe390a793203a13b0507472848e1e7da8c75bed
tree3c374149dc43dd63cbfda16b151381c36d912259
parent2c2e44e144f17c2cef4af052ec91a680c9a81fb9
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>
examples/rdma_client.c