message "in" and "out" data sections support for different types of iovecs
current message is supporting iovec array and iovec pointer
this change reduce the memory consumption and will also enable to utilize future types
such as scatterlist (in kernel)

Change-Id: Ic3e8f9755ef7db45d16967939b8896cdc7375cbe
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Add cancel support for TCP transport

Change-Id: I87015b7ee1d90cf9e532f39ea93633b55649b754
Signed-off-by: Or Kehati <ork@mellanox.com>
Allow compilation without infiniband verbs

Change-Id: I13c5a76cc788d397fa57cbc56f16f679ac7e735d
Signed-off-by: Or Kehati <ork@mellanox.com>
complete fix cleanup in kernel code

The atomic inc on tcq->refcnt in on_cm_connect_request
was wrong since the parent (listner) rdma_hndl has no tcq.
Actually the assignment of the child tcq is wrong (also in
user space), remove it.

Issue: 399577

Change-Id: I7d173d8705a429282c5ffd7d6fec387d40119f96
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Fixing kernel compilation errors

Change-Id: I08f7fc88509490d53daa25101f43c0fe43486a64
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Allow connection query of both peer and local addresses

Change-Id: I2f491c2e53e3cb745c8be6f3143a382f3edb6397
Signed-off-by: Or Kehati <ork@mellanox.com>
fix inline send in kernel

Check for inline in the kernel was done against a constant
fix it with the fix that was already in user space.

When using inline don't dma map the memory, this cause
crashes with Blue Flame (OFED).

Issue: 396547

Change-Id: Ie8e286504f770b785d7d9432dc4c9d6082012d9d
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
"DEBUG" flag is defined if "--enable-debug" is passed to configure. That conflicts with the DEBUG defined in this file. So, this change is to do the ifdef/undef dance when including this file to avoid errors.

Change-Id: I3afbb3435e85573991ee28a403f831c6477cafbc
Signed-off-by: Marcus Watts <mdw@cohortfs.com>
When doing an "out of tree" build, it is not sufficient to
use "-I../common" to reference headers in the source tree.
Fix that to use -I$(top_srcdir)/.../common instead.

Change-Id: Ie72e6ab71f5a8d5b07ea3c88ef5adef2ac602272
Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Signed-off-by: Or Kehati <ork@mellanox.com>
Fix linkage without infiniband verbs

Change-Id: I628f976e7241c05bd855fd5e1ec7ba00ede6d065
Signed-off-by: Or Kehati <ork@mellanox.com>
server crashed upon disconnection

Change-Id: Id2f9cec29dbdd10db08fd42b1057aa98034a510f
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
server may crash upon disconnection

Change-Id: I08fe528bc43b210bacd16db63efc7e7f6f8c7460
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
fix reconnect

Fix reconnect errors

Reconnect is still disabled be default, need to add option
to enable it.

Issue: 398508

Change-Id: Ib5a7b6ea635eede1ac7f6375c9b52e797ea9bd10
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
add counter to count free entries in pool

Change-Id: Ie26d3429c5bb62e82084d1ecb627706eb24936a3
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
removing one way responses that carry delivery receipt from message queue

Change-Id: I8b65157a065c92fc1f51131c1da5b0396f10705e
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Ask for receipt as default
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>

Change-Id: I236ba3085836983f20e9cb318822021da3436e30
TCP TX batching and sendmmsg support

Change-Id: I09da95ff8287c44152bfd653f41a1a17f6bb8f8b
Signed-off-by: Or Kehati <ork@mellanox.com>
Removing unused parameter

Change-Id: I1dccf03d3f509fbd5da7c70f455b470b068c42ce
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
code optimization

Change-Id: I5d1d7592b74ded54e5e8d0343c2732b3837d607a
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
optimization for tests

Change-Id: If6513770150ac63ae99c4b0325efd5528e870aa0
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>