Applied on 3063.

Thanks
Tzachi

From: [email protected] 
[mailto:[email protected]] On Behalf Of Tzachi Dar
Sent: Tuesday, January 04, 2011 4:10 PM
To: [email protected]
Subject: [ofw] patch: [send_bw] minor changes to allow the program to run on 
RoCE.

Index: B:/users/tzachid/projinf5/trunk/tools/perftests/user/send_bw/send_bw.c
===================================================================
--- B:/users/tzachid/projinf5/trunk/tools/perftests/user/send_bw/send_bw.c 
(revision 7160)
+++ B:/users/tzachid/projinf5/trunk/tools/perftests/user/send_bw/send_bw.c      
        (revision 7161)
@@ -596,7 +596,7 @@

                                my_dest[i].lid = 
ctx->ca_attr->p_port_attr[ib_port-1].lid;
                                my_dest[i].psn = cl_hton32(rand() & 0xffffff);
-                              if (!my_dest[i].lid) {
+                             if 
(ctx->ca_attr->p_port_attr[ib_port-1].transport == RDMA_TRANSPORT_IB &&    
!my_dest[i].lid) {
                                                fprintf(stderr, "Local lid 0x0 
detected. Is an SM running?\n");
                                                return 1;
                                }
@@ -620,6 +620,11 @@
                                rem_dest[i].lid, rem_dest[i].qpn, 
rem_dest[i].psn,
                                rem_dest[i].rkey, rem_dest[i].vaddr);

+                             if(ctx->ca_attr->p_port_attr[ib_port-1].transport 
== RDMA_TRANSPORT_RDMAOE && user_parm->use_grh == 0) {
+                                             printf("Using grh is forced due 
to the use of RoCE\n");
+                                             user_parm->use_grh = 1;
+                             }
+
                                if (pp_connect_ctx(ctx, ib_port, 
my_dest[i].psn, &rem_dest[i], user_parm, i))
                                                return INVALID_SOCKET;
                                /* An additional handshake is required *after* 
moving qp to RTR.
_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to