remove wrong sg table assignement in tbl_copy

In tbl_copy the number on destination nents was wrongly set
to the number of source nents. With xnbd a copy was done from
one buffer of 8k to two buffers of 4k each. Since the number of
nents was set to 1 than one scatter element of 4K was missing,
which caused the next iterator to return a NULL pointer.

Issue: 418468

Change-Id: I230d484b824bd21ab1a49f408c829671cd2edd4d
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
removing duplicate error message

Change-Id: Ibe082b2e018463ef557906b52368046e13899b11
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
[Issue #401086] NULL pointer dereference when unloading rdma module
after xnbd module
kernel did not implement request send completion callback

Change-Id: I4aafd61a56b74c6a716d4f9063d09ae8159e957b
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
code pretty printing

Change-Id: Ie275cbc4aee3b32c8e4a6fb2bd6a01de52310a54
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
setting environment variables to prefer contig pages allocations for in cq and qp
setting the RDMAV_HUGEPAGES_SAFE environment variable to disable page size check
on every reg_mr() call.

Change-Id: I361921babd38ef7484c730b91f188f018964b2a3
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Lower log level from info to debug on kernel module

Change-Id: Ifcd4b1ae8525645edbb3e88c819ce4abd7e1e72e
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
test delayed work existence before add or delete to workqueue

Change-Id: Ifb68904d11f4ed7d2827bb544f36b1e89e28cb7d
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
test work existence before add or delete to workqueue

Change-Id: I513eedd0e0b0d4a45ac8ebef38beaeed776055ef
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
no need to check if work or delayed work is pending

Change-Id: I09790b29372f5f996a539854d3e2ae8d3d7de704
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
EXPORT_SYMBOL defined after function body

Change-Id: I4eee212e5d79da67ee1e43918877cb933054e5b1
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
pretty prints for kernel code

Change-Id: Iee7db2d1c917cd14746f7868723a754a8572c921
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
fix coverity errors

Change-Id: I0bcdbd27e29e1e6256e0d93639a24cff1eb82ef8
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
refactoring kernel and user apis. putting the common code in xio_base.h
user specific api in xio_user.h and kernel specific api in  xio_kernel.h

Change-Id: I8560b3f739c3da0a14bd859069f675db3c821a34
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
removing include files from includes.
include directive is now allowed only in source files

Change-Id: I4d9da3f39c295f0bb28f5a937d3f6197a303ef55
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
[Bug SW #427886] - missing "signed/unsigned mismatch" check in our gcc
compilation

Change-Id: Idc1dea4fc611c0bd3a26b3286d0c7eb94a284c37
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Fix coverity errors

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

Change-Id: Ia699d64cbbde41424e93890e5a3b23bb2b5c07d5
Signed-off-by: Or Kehati <ork@mellanox.com>
support for rdma_notify - This routine forces the connection
into an established state in this case in order to handle  the rare situation
where the connection never forms on its own.
Events that should be reported to the CM are: IB_EVENT_COMM_EST.

Change-Id: I8adc2ba93c77e98f65dded16a49f672bf3977b66
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
removing more_in_batch flag from rx path

Change-Id: I5bd385369042fcb56a768ba6406d53429ba2de7b
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
removing more_in_batch bit from tests

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