usnic provider: suppress unused var warning

Fixes #265

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #267 from rfaucett/pr/nl_warn

usnic provider: suppress unused var warning
Merge pull request #266 from shefty/master

fabric: Clean up mutex abstraction and atomic getter-setters in fi.h
usnic: return 0 from eq_sread upon timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
fi_eq: specify that sread returns 0 upon timeout

This seems to be the intended behavior, judging from the verbs and
sockets providers.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Merge pull request #268 from jsquyres/pr/man-fi-eq-timeout-updates

Clarify fi_eq.3 that fi_eq_sread() returns 0 upon timeout
usdf_getinfo: only free addrinfo if actually allocated

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #271 from rfaucett/pr/usnic_freeai

usdf_getinfo: only free addrinfo if actually allocated
fi_eq.3: per #268, return -FI_ETIMEDOUT on timeout instead of 0.

Also specify that a negative timeout means an infinite timeout.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
usnic: return -FI_ETIMEDOUT from eq_sread upon timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
sockets: return -FI_TIMEDOUT upon timeout, and honor inifite timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
verbs: return -FI_TIMEDOUT upon timeout

Simplify the loop a bit by using while(1) and returning from directly
inside the loop.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
usnic provider update, merge various recent changes

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #272 from rfaucett/pr/usnic_update

usnic provider update, merge various recent changes
Makefile.am: ensure to EXTRA_DIST distscript.pl

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Merge pull request #273 from jsquyres/pr/make-distcheck-fix

Makefile.am: ensure to EXTRA_DIST distscript.pl
fi_dupinfo - jumping to fail with dup = NULL is bug, so much for
"future-proofing" !!

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fi_av_insert in async mode with no EQ specified should return -FI_ENOEQ,
not -FI_EINVAL

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fi_tostr has wrong size for protocol

Is val64, should be val32 as fi_ep_attr::protocol is uint32_t

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fi.h: typedef _Atomic to atomic_int

Intel compiler likes this better.

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