SL2VL maps are only programmed if QoS is enabled. Require this to be the case if torus-2QoS is configured, and print a message otherwise.
Signed-off-by: Jim Schutt <jasc...@sandia.gov> --- opensm/opensm/osm_torus.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/opensm/opensm/osm_torus.c b/opensm/opensm/osm_torus.c index 3b67f16..aeb4fe6 100644 --- a/opensm/opensm/osm_torus.c +++ b/opensm/opensm/osm_torus.c @@ -9045,6 +9045,14 @@ int torus_build_lfts(void *context) struct fabric *fabric; struct torus *torus; + if (!ctx->osm->subn.opt.qos) { + OSM_LOG(&ctx->osm->log, OSM_LOG_ERROR, + "Error: Routing engine list contains torus-2QoS. " + "Enable QoS for correct operation " + "(-Q or 'qos TRUE' in opensm.conf).\n"); + return status; + } + fabric = &ctx->fabric; teardown_fabric(fabric); -- 1.6.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html