prov/psm: remove FI_EVENT from counter binding flag

Counters should always count. The FI_EVENT (FI_COMPLETION) flag
only affects CQ.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Sockets Provider - RDM EP implementation

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
Merge pull request #328 from jithinjosepkl/pr/rdm-ep

Sockets Provider - RDM EP
Updated Sockets Provider Logger
	- Updated sock_debug to use macros
	- avoids extra check
	- prefix function name

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
Updated Counters
	- Added error counter
	- Added internal function for incrementing on completion

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
Updated MR
	- check for valid registration/privilege
	- Event queues

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
Bugfixes in ringbuffer-fd

Signed-off-by: Jithin Jose <jithin.jose@intel.com>
Merge pull request #334 from jithinjosepkl/pr/devel

Sockets Provider -devel
prov/psm: keep track the info of active endpoints in domain

The provider supports at most one endpoint per API set. This change
allows (1) close an endpoint and open another with similar or less
API sets; (2) locate the endpoint at the RMA target side in order to
update the counters with REMOTE_READ/REMOTE_WRITE flag. Previously
the RMA target can only identify the domain (or the PSM endpoint)
and such update can only be performed on countered bound to the MR.

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: support binding counters to ep to track RMA target access

Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
prov/psm: only update MR bound CQ/CNTR when the memory is written

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