[openib-general] [PATCH] SRPTOOLS : print out the target io_class in ibsrpdm

Kuchimanchi, Ramachandra rkuchimanchi at silverstorm.com
Fri May 26 10:31:44 PDT 2006


Hi Roland,

This patch prints out the target io_class value in ibsrpdm while displaying
the target information and also with the -c switch.

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 7475)
+++ userspace/srptools/src/srp-dm.c	(working copy)
@@ -398,6 +398,7 @@
 				 (unsigned long long) ntohll(ioc_prof.guid));
 			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("        IO class : %hx\n", ntohs(ioc_prof.io_class));
 			pr_human("        ID:        %s\n", ioc_prof.id);
 			pr_human("        service entries: %d\n", ioc_prof.service_entries);
 
@@ -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,
+					       (unsigned short) ntohs(ioc_prof.io_class),
 					       (unsigned long long) ntohll(svc_entries.service[k].id));
 				}
 			}



More information about the general mailing list