[ofw] patch: Add transport field to vstat.

Tzachi Dar tzachid at mellanox.co.il
Tue Jan 4 06:18:22 PST 2011


Index: B:/users/tzachid/projinf5/trunk/tools/vstat/user/vstat_main.c
===================================================================
--- B:/users/tzachid/projinf5/trunk/tools/vstat/user/vstat_main.c           (revision 7146)
+++ B:/users/tzachid/projinf5/trunk/tools/vstat/user/vstat_main.c        (working copy)
@@ -318,6 +318,8 @@
                printf("\t\tsm_lid=0x%04x\n", cl_ntoh16(portPtr->sm_lid));
                printf("\t\tport_lid=0x%04x\n", cl_ntoh16(portPtr->lid));
                printf("\t\tport_lmc=0x%x\n", portPtr->lmc);
+             printf("\t\tTransport=%s\n", portPtr->transport == RDMA_TRANSPORT_RDMAOE ? "RoCE" :
+                             portPtr->transport == RDMA_TRANSPORT_IB ? "IB" : "IWrap");
                printPortMTU(portPtr->mtu);
                if(fullPrint){
                                printf("\t\tmax_msg_sz=0x%x  (Max message size)\n", portPtr->max_msg_size);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110104/49b719f6/attachment.html>


More information about the ofw mailing list