[ofw] svn.1936 commits

Smith, Stan stan.smith at intel.com
Mon Feb 9 18:19:00 PST 2009


OFED IB diags - ibroute & ibtracert

Signed off by stan.smith at intel.com

Trunk\tools\infiniband_diags\src\
        ibroute\
        ibtracert\

Trunk\tools\infiniband_diags\dirs
        added ibroute & ibtracert

diff U3 C:/Documents and Settings/scsmith/Local Settings/Temp/ibroute.c-revBASE.svn000.tmp.c C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/tools/infiniband_diags/src/ibroute.c
--- C:/Documents and Settings/scsmith/Local Settings/Temp/ibroute.c-revBASE.svn000.tmp.c        Mon Feb 09 16:38:36 2009
+++ C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/tools/infiniband_diags/src/ibroute.c   Mon Feb 09 15:54:28 2009
@@ -41,12 +41,14 @@
 #include <stdarg.h>
 #include <time.h>
 #include <string.h>
+#if defined(_WIN32)
+#else
 #include <inttypes.h>
-#include <getopt.h>
 #include <netinet/in.h>
+#endif
+#include <getopt.h>
 #include <ctype.h>

-#include <infiniband/common.h>
 #include <infiniband/umad.h>
 #include <infiniband/mad.h>
 #include <infiniband/complib/cl_nodenamemap.h>
@@ -336,7 +338,7 @@

                for (;i < e; i++) {
                        unsigned outport = lft[i % IB_SMP_DATA_SIZE];
-                       unsigned valid = (outport <= nports);
+                       unsigned valid = (outport <= (unsigned)nports);

                        if (!valid && !dump_all)
                                continue;
@@ -379,7 +381,7 @@
        exit(-1);
 }

-int
+int _CDECL
 main(int argc, char **argv)
 {
        int mgmt_classes[3] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS};
@@ -407,7 +409,7 @@
                { "Version", 0, 0, 'V'},
                { "help", 0, 0, 'h'},
                { "usage", 0, 0, 'u'},
-               { }
+               { 0 }
        };

        argv0 = argv[0];

diff U3 C:/Documents and Settings/scsmith/Local Settings/Temp/ibtracert.c-revBASE.svn000.tmp.c C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/tools/infiniband_diags/src/ibtracert.c
--- C:/Documents and Settings/scsmith/Local Settings/Temp/ibtracert.c-revBASE.svn000.tmp.c      Mon Feb 09 16:39:02 2009
+++ C:/Documents and Settings/scsmith/My Documents/openIB-windows/SVN/gen1/trunk/tools/infiniband_diags/src/ibtracert.c Mon Feb 09 15:17:50 2009
@@ -42,11 +42,13 @@
 #include <stdarg.h>
 #include <ctype.h>
 #include <getopt.h>
+#if defined(_WIN32)
+#else
 #include <netinet/in.h>
 #include <inttypes.h>
+#endif
 #include <errno.h>

-#include <infiniband/common.h>
 #include <infiniband/umad.h>
 #include <infiniband/mad.h>
 #include <infiniband/complib/cl_nodenamemap.h>
@@ -186,7 +188,7 @@
        if (path->cnt+2 >= sizeof(path->p))
                return -1;
        ++path->cnt;
-       path->p[path->cnt] = nextport;
+       path->p[path->cnt] = (uint8_t)nextport;
        return path->cnt;
 }

@@ -710,7 +712,7 @@
        exit(-1);
 }

-int
+int _CDECL
 main(int argc, char **argv)
 {
        int mgmt_classes[3] = {IB_SMI_CLASS, IB_SMI_DIRECT_CLASS, IB_SA_CLASS};
@@ -741,7 +743,7 @@
                { "help", 0, 0, 'h'},
                { "usage", 0, 0, 'u'},
                { "node-name-map", 1, 0, 1},
-               { }
+               { 0 }
        };

        argv0 = argv[0];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibroute.c.patch
Type: application/octet-stream
Size: 1415 bytes
Desc: ibroute.c.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090209/3c63f6d4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ibtracert.c.patch
Type: application/octet-stream
Size: 1336 bytes
Desc: ibtracert.c.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090209/3c63f6d4/attachment-0001.obj>


More information about the ofw mailing list