prov/psm: Rename PFX to avoid conflict with fi.h

Both the framework and psm provider defines PFX.  Rename the PSM
define to avoid a conflict.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Move fabric definition into provider

The fabric definition needs to be part of the provider
code and not the framework.  Otherwise the framework
would need full knowledge of all possible fabrics - IB,
iWarp, vendor specific (e.g. Cray or IBM), etc.  There
is no standard mechanism defined for how a provider
discovers devices or communicates with drivers, which
makes fabric support difficult except at the provider
level.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
prov/sock: Implement open fabric call

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
prov/psm: Add fabric interface support

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
prov/ibv: Move fabric implementation into ibv provider

Move the fabric implementation from the framework code into
the ibverbs provider code.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Remove provider open domain call

Open domain can now be reached directly from an opened
fabric object.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Reference ep_attr and domain_attr from struct fi_info

Create a link from struct fi_info to struct fi_domain_attr,
similar to fi_ep_attr.  Applications can use the domain attributes
to restrict access to a domain with specific capabilities.

Move domain specific attributes from fi_info into the domain_attr
structure.  Move endpoint specific attributes from fi_info into
ep_attr.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Remove size parameter from query domain call

The size is determined by the version of the data structures
passed into fi_getinfo by the application.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Modify open domain to take domain attributes

Open domain only needs to take domain attributes as input, versus
the fi_info structure.  This simplifies the interface for the user
by more clearly indicating that the specified attributes will be
associated with the newly opened domain.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fabric: Eliminate fi_attr structure

The fi_query and struct fi_attr are somewhat confusing and unnecessary.
The fi_query call requires an fi_info structure as input, which
restricts when it can be used.  The prov_version field is a better fit
with a fabric attribute, and the hw_version and oui are better matches
with domain attributes.  I.e. a provider may support multiple types and
versions of hardware, including supporting hardware from multiple
vendors (e.g. verbs provider).

Rename fi_query to return only the base library version.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #74 from shefty/master

Expand endpoint and domain attributes