]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
dtest, dtestx: remove IB verb definitions
authorArlin Davis <arlin.r.davis@intel.com>
Wed, 30 Sep 2009 17:44:14 +0000 (10:44 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Wed, 30 Sep 2009 17:44:14 +0000 (10:44 -0700)
remove gid and qp_type checking from test suite.
Print address infomation in sockaddr and
ucm provider format with qpn and lid.

Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>
test/dtest/dtest.c
test/dtest/dtestx.c

index 75cbe4ce485f846a287a00435430323bcef92532..5ac16c4440a14e1d44651390d30be60ee019af62 100755 (executable)
 #define MAX_PROCS      1000
 
 /* Header files needed for DAT/uDAPL */
-#include "infiniband/verbs.h"
 #include "dat2/udat.h"
 
 /* definitions */
@@ -219,7 +218,7 @@ union dcm_addr {
                uint8_t         port_num;
                uint16_t        lid;
                uint32_t        qpn;
-               union ibv_gid   gid;
+               uint8_t         gid[16];
        } ib;
 };
 
@@ -447,15 +446,13 @@ int main(int argc, char **argv)
                (void*)ia_attr.ia_address_ptr,
                sizeof(DAT_SOCK_ADDR6));
 
-       if (local.ib.qp_type == IBV_QPT_UD) {
-               ucm = 1;
-               printf("%d Local uCM Address = QPN=0x%x, LID=0x%x\n",
-                       getpid(), ntohl(local.ib.qpn),
-                       ntohs(local.ib.lid));
-               printf("%d Remote uCM Address = QPN=0x%x, LID=0x%x\n",
-                       getpid(), ntohl(remote.ib.qpn),
-                       ntohs(remote.ib.lid));
-       }
+       printf("%d Local Address %s port %d\n", getpid(),
+              inet_ntoa(((struct sockaddr_in *)&local)->sin_addr), 
+              SERVER_CONN_QUAL);
+
+       printf("%d Local Address QPN=0x%x, LID=0x%x  <<< ucm provider\n",
+               getpid(), ntohl(local.ib.qpn),
+               ntohs(local.ib.lid));
 
        /* Create Protection Zone */
        start = get_time();
index 6e17b6d07d967f5ff9c8e87c803687bc0aafce06..2132f31e2281941f4c464057b4a8827a854a7e6f 100755 (executable)
@@ -65,7 +65,6 @@
 
 #endif
 
-#include "infiniband/verbs.h"
 #include "dat2/udat.h"
 #include "dat2/dat_ib_extensions.h"
 
@@ -189,7 +188,7 @@ union dcm_addr {
                uint8_t         port_num;
                uint16_t        lid;
                uint32_t        qpn;
-               union ibv_gid   gid;
+               uint8_t         gid[16];
        } ib;
 };
 
@@ -444,24 +443,20 @@ int connect_ep(char *hostname)
                (void*)ia_attr.ia_address_ptr,
                sizeof(DAT_SOCK_ADDR6));
 
-       if (local.ib.qp_type == IBV_QPT_UD) {
-               ucm = 1;
+        printf("%d Local Address %s port %d\n", getpid(),
+               inet_ntoa(((struct sockaddr_in *)&local)->sin_addr),
+               SERVER_ID);
 
-               if (ud_test) {
-                       printf("%d UD test over UCM provider not supported\n",
-                               getpid());
-                       exit(1);
-               }
+        printf("%d Local Address QPN=0x%x, LID=0x%x <<< ucm provider\n",
+                getpid(), ntohl(local.ib.qpn),
+                ntohs(local.ib.lid));
 
-               printf("%d Local uCM Address = QPN=0x%x, LID=0x%x\n",
-                       getpid(), ntohl(local.ib.qpn),
-                       ntohs(local.ib.lid));
-               printf("%d Remote uCM Address = QPN=0x%x, LID=0x%x\n",
-                       getpid(), ntohl(remote.ib.qpn),
-                       ntohs(remote.ib.lid));
+       if (ucm && ud_test) {
+               printf("%d UD test over UCM provider not supported\n",
+                       getpid());
+               exit(1);
        }
 
-
        /* Print provider specific attributes */
        for (i = 0; i < prov_attrs.num_provider_specific_attr; i++) {
                LOGPRINTF(" Provider Specific Attribute[%d] %s=%s\n",