compiler: do not use symbols with beginning with __

Symbols beginning with double underscore are in the namespace of the
compiler.  Rename:

* __fi_allocinfo --> fi_allocinfo_internal
* __fi_freeinfo --> fi_freeinfo_internal
* __fi_datatype_size --> fi_datatype_size_table
prov/psm: remove the now unused constant PSMX_OUI_INTEL

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: use a global structure for environment settings

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: rework the tag bit reservation algorithm

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Merge pull request #186 from jsquyres/topic/compiler-namespace-fixes

compiler: do not use symbols with beginning with __
Merge pull request #188 from shefty/master

Updates to CQ APIs
Merge branch 'master' of ssh://github.com/ofiwg/libfabric
prov/psm: getname() should return addresss size if the input is too small.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: handle src_addr in recvfrom() when AV table is used

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: allow cq_read to bypass event alloc/enqueue/dequeue

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
add usnic provider
adds usnic provider, Makefile and configure updated to build usnic,
FI_PROTO_UDP added

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #193 from j-xiong/master

prov/psm: cq_read optimization, tag bit reservation rework, and a few bug fixes
Merge pull request #197 from rfaucett/usdf

add usnic provider
man/av: Minor wording update for fi_rx_addr

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Cleanup AUTHORS file

Names are left over from when verbs was integrated.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric/common: Remove dlist_entry_t type

The typedef is left-over from ported OFA windows code.  Remove
the typedef, as they should be avoided on Linux.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
common: Add implementation for single-linked list

Move list implementations into list.h include file, and
add an implementation for a single-linked list.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
common: Define find last set macro

Define fls macro equivalent for ffs

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
common: Provide ring buffer implementation

Add a simple ring buffer to the common code.  The ring buffer
requires serialization by the caller and that the caller check
for available data and handle any overruns.  The ring buffer
simply reads and writes data without checking that there is any
data to read or ensure that the write won't overwrite unread
data.

The implemetation does support parallel read and write
operations.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
common: Add blocking ring buffer abstraction

Define an abstraction around the ring buffer that supports
a blocking read operation using an fd for blocking/notification.

The same restrictions apply as with the ring buffer.  The
caller must provider serialization and check for overflow.  It
must also ensure that there is data to be read before attempting
to read from the buffer, with the exception of the blocking
sread call.  That call will return the number of bytes read
from the ring.

The implementation supports parallel read and write operations

Signed-off-by: Sean Hefty <sean.hefty@intel.com>