fabric: Define FI_PROTO_SOCK_MSG / DGRAM / RDM

The socket provider implements a protocol over TCP, similar
to iWarp.  Capture that a higher-level protocol is in use,
versus the base transport protocol.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
man/mr: Describe local MR in more detail

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fi_ini: Always set init flag after static providers are initialized

Previously any failure in loading dynamic providers would cause the
"init" flag to remain unset. As the result, static providers may be
initialized mulitple times, leading to strange errors. For example,
the following error would be produced by the PSM provider if it's
initilaized more than once:

	psmx_domain_open: psm_ep_open returns 5, errno=2

The error code 5 means "PSM is not initialised".

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merged usd implementation of usd_post_send_iov.

Signed-off-by: Xuyang Wang <xuywang@cisco.com>
man: define FI_THREAD_DOMAIN

Define another threading model - FI_THREAD_DOMAIN.

In this model, the application serializes accesses to all
objects belonging to a particular domain.

This model allows the provider to share resources among
multiple EPs. Example - a shared list receive buffers for
implementing FI_BUFFERED_RECV.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
man: use generic term in place of command

The man page used "command queue", replace it with generic
terms "transmit queue" and "receive queue".

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Merge pull request #434 from sayantansur/pr-man-command

man: use generic term in place of command
Updated nroff-generated man pages
prov/psm: assign a provider errno for error events that lacks one

Some CQ entries are generated manually (not polled from PSM).
Assigning a generic prov_errno makes more sense than having it
set to 0.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: ignored the port number when resolving the address

Always use the UUID (set by SFI_PSM_UUID environment variable) to
calculate the service port. This allow the application to provide
port number (needed by some other providers) without messing up
the name resolution.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: allow fi_ini() be called multiple times

Prevent premature finalization of PSM when the provider cleanup()
function is called multiple times (as the result of fi_ini()
being called multiple times).

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Merge pull request #432 from xuywang/pr/usd_post_iov

Merged usd implementation of usd_post_send_iov
Merge pull request #433 from sayantansur/pr-thread-domain

man: define FI_THREAD_DOMAIN
Merge pull request #435 from shefty/master

Rename socket provider protocol and fix fabric init code
Merge pull request #436 from jithinjosepkl/pr/sockets

- Add av-insert-sym (Fixes #430)
Merge pull request #437 from j-xiong/master

prov/psm: bug fixes
Added implementation of sendmsg/recvmsg/inject for usdf dgram ep.

Currently sendmsg/recvmsg just directly call their counterparts for
sendv/recvv. Code need to be added to handle different flags such
as FI_COMPLETION/FI_INJECT and so on.

Also fixed some whitespace errors.

Signed-off-by: Xuyang Wang <xuywang@cisco.com>
prov/psm: clean up assertions in atomics funcitons

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Updated nroff-generated man pages
prov/psm: add some debug output

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>