@@ -8484,7 +8484,7 @@ bool torus_lft(struct torus *t, struct t_switch *sw)
struct port_grp *pgrp;
struct t_switch *dsw;
osm_switch_t *osm_sw;
- unsigned order[IB_NODE_NUM_PORTS_MAX+1];
+ unsigned char order[IB_NODE_NUM_PORTS_MAX+1];
if (!(sw->osm_switch && sw->osm_switch->priv == sw)) {
OSM_LOG(&t->osm->log, OSM_LOG_ERROR,
@@ -8506,7 +8506,7 @@ bool torus_lft(struct torus *t, struct t_switch *sw)
for (p = 0; p < ARRAY_SIZE(order); p++) {
- unsigned px = order[t->port_order[p]];
+ unsigned char px = order[t->port_order[p]];
if (px == IB_INVALID_PORT_NUM)
continue;
Commit 1c2a298b295eba7e24205519abc24e47106d15df broke port order configuration for torus routing engine. order was incorrectly initiated, causing setting LFTs to fail. Signed-off-by: Alex Netes <alexne@mellanox.com> --- opensm/osm_torus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)