Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/ofed/infiniband-diags/src/ibroute.c
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | for (j = 0; j < chunks; j++) { | ||||
DEBUG("reading block %x chunk %d mod %x", block, j, | DEBUG("reading block %x chunk %d mod %x", block, j, | ||||
mod); | mod); | ||||
if (!smp_query_status_via | if (!smp_query_status_via | ||||
(mft + j, portid, IB_ATTR_MULTICASTFORWTBL, mod, 0, | (mft + j, portid, IB_ATTR_MULTICASTFORWTBL, mod, 0, | ||||
&status, srcport)) { | &status, srcport)) { | ||||
fprintf(stderr, "SubnGet() failed" | fprintf(stderr, "SubnGet() failed" | ||||
"; MAD status 0x%x AM 0x%x\n", | "; MAD status 0x%x AM 0x%x\n", | ||||
status, mod); | status, mod); | ||||
free(mapnd); | |||||
return NULL; | return NULL; | ||||
} | } | ||||
} | } | ||||
i = block * IB_MLIDS_IN_BLOCK; | i = block * IB_MLIDS_IN_BLOCK; | ||||
e = i + IB_MLIDS_IN_BLOCK; | e = i + IB_MLIDS_IN_BLOCK; | ||||
if (i < startlid) | if (i < startlid) | ||||
i = startlid; | i = startlid; | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |