]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rdma_server: handle IBV_SEND_INLINE correctly
authorDoug Ledford <dledford@redhat.com>
Wed, 18 Jun 2014 17:45:23 +0000 (10:45 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 18 Jun 2014 17:45:23 +0000 (10:45 -0700)
commit2e9262502a82e7c5ff6e8ee597e7a14c4b5fe1b9
tree9ae3b5be84001aad21beaa018d680978a03434ee
parent9fe390a793203a13b0507472848e1e7da8c75bed
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>
examples/rdma_server.c