opensm/ib_types.h: Add missing IB_PR_COMPMASK_SERVICEID define

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_torus.c: Cosmetic formatting changes

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/perfmgr: mark/report time of last counter update

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/perfmgr: skip data counters when only printing errors

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/perfmgr: update node name when Node Description is received from node

Changes since V1:
	Fix use of parens nit from Hal

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/ib_types.h: Add missing IB_MPR_COMPMASK_SERVICEID define

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
libvendor/osm_vendor_ibumad.c: fix mad validation in case of multipath record response

o15-0.2-1.11: SA response to a SubnAdmGetMulti() containing
MultiPathRecord shall have PathRecord attribute ID.

Signed-off-by: Daniel Klein <danielk@mellanox.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_qos_policy.c: Fix source & destination GUID policy check

in __qos_policy_get_match_rule_by_params

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_dump.c: Fix enhanced switch port 0 handling in print_node_report

Enhanced switch port 0 has port state, link speed, link width, and MTU.
Only base (original) switch port 0 doesn't.

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
osm_dump.c: Fix typo in dump_lid_matrix

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
opensm/osm_sa_multipath_record.c: Fix commentary typo

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_sa_multipath_record.c: Fix seg fault in mpr_rcv_get_apm_paths

When routing fails, mpr_rcv_get_apm_port_pair_paths returns NULL
and this is not handled in mpr_rcv_get_apm_paths

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_sa_path_record.c: Make sure either none or both ServiceID parameters are supplied

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_sa_multipath_record.c: Make sure either none or both ServiceID parameters are supplied

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_sa_multipath_record.c: Validate required components are indicated

Both SGIDCount and DGIDCount are required components

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_qos_policy.c: fix memory leak when parsing policy file

We need to free the pkey_range_arr before parsing the qos file.

Signed-off-by: Dan Ben Yosef <danby@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
osmtest/osmt_multicast.c: Fix commentary typo

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
osmtest/osmt_multicast.c: Fix IPoIB MC group recognition

Recognize IPoIB groups by signature in MGID

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/libibvendor: osm_vendor_get_all_port_attr include sm_sl value in port attribute struct

Signed-off-by: Ira Weiny <weiny2@llnl.gov>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
opensm/osm_req.c: Better implementation of req_determine_mkey

Eliminate compile warning:
osm_req.c: In function #req_determine_mkey#:
osm_req.c:69: warning: #p_node# may be used uninitialized in this function

Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>