Update fi_av man page
Specify behavior of fi_av_insert on FI_AV_TABLE across successive calls
and also behavior of failed insertions when in synchronous mode.

Fixes #274

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Makefile: install fi_direct_eq.h with HAVE_DIRECT

fi_direct_eq.h should also be installed when HAVE_DIRECT is
enabled.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
fi_ep_bind: correct fi_ep_bind type

Correct manpage fi_ep_bind ignature:

int fi_ep_bind(struct fid *ep, struct fid *fid, uint64_t flags);

TO:

int fi_ep_bind(struct fid_ep *ep, struct fid *fid, uint64_t flags);

Provide static inline implementation of fi_ep_bind that does
type-checking.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Fix an issue in ringbuffer sread
    - Use rbused() instead of rbavail() for correctness

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
Merge pull request #283 from sayantansur/fi-direct-eq

Makefile: install fi_direct_eq.h with HAVE_DIRECT
fi_trigger: direct include for trigger context

The trigger context can be overriden by the provider in
with --enable-direct, similar to fi_context.

Install fi_direct_trigger.h file.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Merge pull request #288 from pmmccorm/master

fi_poll_fd never returns success (> 0)
Merge pull request #281 from rfaucett/pr/sync_table

Update fi_av man page
Merge pull request #279 from sayantansur/fi-ep-bind

fi_ep_bind: call fi_bind with correct field
Merge pull request #292 from sayantansur/fi-direct-trigger

fi_trigger: direct include for trigger context
prov/psm: bug fix for av_insert with "any source" address

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: adjust the handling of the flags in av_insert

Now that the only valid flag is FI_MORE, it is safe to ignore
instead of returning an error.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Merge pull request #290 from jithinjosepkl/pr/rbuf

Fix ringbuffer sread()
prov/psm: clean up the status of iov support

(1) the iov_count==1 case is always supported;
(2) add iov_count==0 support for message;
(3) the iov_count==0 case doesn't make sense for rma and atomics
    operations because it serves no purpose -- even the immediate
    data can't be delivered since the target mr info is missing
    and thus there is not cq to report event to;
(4) there is no plan to support the iov_count>1 case.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: change FIXME to TODO for consistency

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
man: choose default value of CQ size

Apps wanting to just pick a default value of CQ size
can pass in '0' as the size, and let the provider pick
a sensible value.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Dlist abstraction with blocking wait-until-avail support

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
prov/psm: use the "service" filed as the port for name resolution

the provider has a built-in simple name server that is enabled
by the SFI_PSM_NAME_SERVER environment variable. It allows a
client to get the remote side PSM epaddr by the node name and
port number. The port number is calculated from the job uuid (by
adding up all the bytes of the uuid and adding 4096 when needed
to make the value greater then 4096). When the service field is
absent, the port number is calculated automatically from the
current job uuid.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: protect the trigger list of a counter object with a lock

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: protect the unexpected message queue with a lock

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