Adding connection teardown event.
Upoon close/disconnect application get connection closed /disconnected
notification after message flush complete the application shall get
"connection teardown" event. this is the last connection oriented event.

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Removing page alignment requirement from buffers.

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
return error upon releasing response on the responder side

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
don't add/del the wakeup fd to the event_loop registered fd list.
this fixes the unsafe list which causes a core in list_del() if
xio_ev_loop_stop() is called different thread then the one running that
event_loop.
wakeup_event is now a ONESHOT event so it saves the DELete system call once woken up
ADD the wakeup fd on event_loop init and DEL on close
MOD with ONESHOT to stop
hint event_loop that xio_ev_loop_stop(is_self_thread=1) is called from
within the event_loop callback to do a thread fae notification which is
quicker
requests received in out of order sequence on responder when "rdma read" and
"send" operation were mixed. need to put fence when rdma read requests is
pending and "send" requests arrive

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Merge pull request #5 from rosenbaumalex/master

don't add/del the wakeup fd to the event_loop registered fd list
missing parameter

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
pretty printings

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
renaming enumeration

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
pretty print

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
fixing ubuntu compilation errors
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
Changing functions name:
 xio_session_open => xio_session_create
 xio_session_close => xio_session_destroy
 xio_ctx_open => xio_ctx_create
 xio_ctx_close => xio_ctx_destroy
 xio_ev_loop_init => xio_ev_loop_create

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
observavble optimization if one contain one observer.
use a pointer instead of list

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
rdma transport related source files moved to ./src/usr/rdma
all other source files moved to ./src/usr/xio

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
more ubuntu compile warn fixes

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
xio_session_destroy should return EBUSY if connections are still pending

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
sending fin on connection upon before forwarding/redirecting connection

Signed-off-by: Eyal Salomon <esalomon@mellanox.com>
invalid serial number print

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