Fix an issue in ringbuffer sread
    - Use rbused() instead of rbavail() for correctness

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
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 #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>
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>
prov/psm: check timeout in fi_cntr_wait()

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: match source address in AM based unexpected messages

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Merge branch 'master' of ssh://github.com/ofiwg/libfabric