[openib-general] [PATCH] OpenSM/osm_sa_multipath_record.c: Support SL in MultiPathRecord requests based on whether or not QoS is enabled
Hal Rosenstock
halr at voltaire.com
Mon Jul 10 09:02:01 PDT 2006
OpenSM/osm_sa_multipath_record.c: Support SL in MultiPathRecord requests
based on whether or not QoS is enabled
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_sa_multipath_record.c
===================================================================
--- opensm/osm_sa_multipath_record.c (revision 8475)
+++ opensm/osm_sa_multipath_record.c (working copy)
@@ -198,6 +198,18 @@ __osm_mpr_rcv_get_path_parms(
else
required_sl = OSM_DEFAULT_SL;
+ /* Check for default SL only if QoS not enabled */
+ if ( p_rcv->p_subn->opt.no_qos ) {
+ if ( required_sl != OSM_DEFAULT_SL) {
+ osm_log( p_rcv->p_log, OSM_LOG_ERROR,
+ "__osm_mpr_rcv_get_path_parms: ERR 4511: "
+ "Requested SL %d not default SL %d and QoS not enabled\n",
+ required_sl, OSM_DEFAULT_SL);
+ status = IB_NOT_FOUND;
+ goto Exit;
+ }
+ }
+
if ( comp_mask & IB_MPR_COMPMASK_PKEY ) {
required_pkey = p_mpr->pkey;
if ( !osm_physp_has_pkey( p_rcv->p_log, required_pkey, p_physp ) ||
More information about the general
mailing list