libibumad: update umad_recv man page.

Document the umad_recv length parameter better.

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Alex Netes <alexne@mellanox.com>
libibumad: update shared library versions

Update shared library version in accordance with recent changes.

Signed-off-by: Alex Netes <alexne@mellanox.com>
management: packages versions update

Management packages versions update.

Signed-off-by: Alex Netes <alexne@mellanox.com>
libibumad: fix umad_register man page

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Alex Netes <alexne@mellanox.com>
libibumad: Provide MAD definitions with libibumad

The only definitions for MAD data types are in ib_types.h, which
is an opensm file.  The libibumad interface is essentially useless
without these data types.  Add new header files to libibumad
with basic MAD data types.

The definitions and structures are based on those defined in
the linux kernel.  Only an initial framework is given, basically
the values for various methods, attributes, etc. along with
structure definitions for the common, rmpp, and vendor specific
headers.  Other data structures are left for future development.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Add SA MAD definitions to umad

Add a new header file, umad_sa.h, to libibumad that contains
basic SA MAD definitions.

Only the SA attributes values, new methods, and base SA MAD
format are given.  SA attribute structure definitions are
left for future development.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Add basic SM definitions to umad

Add a new header file, umad_sm.h, to libibumad that contains
basic SM MAD definitions.

Only the SM attributes values, new methods, and base SM MAD
format are given.  SM attribute structure definitions are
left for future development.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Add CM definitions to umad

To support the madeye diag and ibacm, add CM MAD definitions
to umad.  Only minimal definitions are added for now.  Additional
structure definitions will be added later.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Add new umad header files to release

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Define ntohll/htonll

Users of umad require ntohll/htonll to set/extract data from
MADs.  Include the definition with umad, not just libibmad.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Define data type to indicate values are in big-endian

The ib management interfaces require that the user specify
certain values in network-byte order.  To clarify which values
should be in big endian format, introduce a new data type
at the libibumad level.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Fix memory leak in resolve_ca_port

Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad/sa: Add SA specific status values

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: update umad_[send|recv] man pages to document how rmpp is handled

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Add UMAD_RMPP_FLAG_ACTIVE into umad_types.h

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: Define well known QKEY

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: change UMAD_METHOD_RESP to UMAD_METHOD_RESP_MASK

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad: add UMAD_SA_STATUS_PRI_SUGGESTED to SA status.

Per: A13.5.2 Subnet Administration Status Values (QoS)

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libibumad/umad.c: In resolve_ca_port, skip ethernet link layer ports

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>