};
#define PTL_NALFMT_SIZE 32 /* %u:%u.%u.%u.%u,%u (10+4+4+4+3+5+1) */
+#ifndef CRAY_PORTALS
+#define NALID_FROM_IFACE(nal) (nal)
+#endif
#define NAL_MAX_NR (NAL_ENUM_END_MARKER - 1)
return str;
}
- switch(nal){
+ switch(NALID_FROM_IFACE(nal)){
/* XXX this could be a nal method of some sort, 'cept it's config
* dependent whether (say) socknal NIDs are actually IP addresses... */
#if !CRAY_PORTALS
snprintf(str, PTL_NALFMT_SIZE, "%u:%u",
(__u32)(nid >> 32), (__u32)nid);
break;
+#else
+ case PTL_IFACE_SS:
+ case PTL_IFACE_SS_ACCEL:
+ snprintf(str, PTL_NALFMT_SIZE, "%u", (__u32)nid);
+ break;
#endif
default:
snprintf(str, PTL_NALFMT_SIZE, "?%x? %llx",