[openib-general] Re: [PATCH] SRP : Use correct port identifier format according to target io_class

Ramachandra K rkuchimanchi at silverstorm.com
Tue Jun 6 11:17:34 PDT 2006


> Thanks, I applied this.

Thanks a lot Roland. But there was also a patch for ibsrpdm to
display the IO class of the target. I am including it below for
your convenience.

Regards,
Ram

Signed-off-by: Ramachandra K <rkuchimanchi at silverstorm.com>

Index: userspace/srptools/src/srp-dm.c
===================================================================
--- userspace/srptools/src/srp-dm.c	(revision 7738)
+++ userspace/srptools/src/srp-dm.c	(working copy)
@@ -399,6 +399,7 @@
 			pr_human("        vendor ID: %06x\n", ntohl(ioc_prof.vendor_id) >> 8);
 			pr_human("        device ID: %06x\n", ntohl(ioc_prof.device_id));
 			pr_human("        ID:        %s\n", ioc_prof.id);
+			pr_human("        IO class : %hx\n", ntohs(ioc_prof.io_class));
 			pr_human("        service entries: %d\n", ioc_prof.service_entries);
 
 			for (j = 0; j < ioc_prof.service_entries; j += 4) {
@@ -429,11 +430,13 @@
 					       "ioc_guid=%016llx,"
 					       "dgid=%016llx%016llx,"
 					       "pkey=ffff,"
+					       "io_class=%hx,"	
 					       "service_id=%016llx\n",
 					       id_ext,
 					       (unsigned long long) ntohll(ioc_prof.guid),
 					       (unsigned long long) subnet_prefix,
 					       (unsigned long long) guid,
+					       ntohs(ioc_prof.io_class),
 					       (unsigned long long) ntohll(svc_entries.service[k].id));
 				}
 			}





More information about the general mailing list