components/open-fabrics/qperf/patches/base.patch
changeset 741 83cb76377624
parent 715 eed3ed08f692
child 1144 b219ca1112b6
child 2761 91830550729b
equal deleted inserted replaced
740:80e91c717db8 741:83cb76377624
   414      rd_rdma_write_poll_lat(IBV_QPT_UC);
   414      rd_rdma_write_poll_lat(IBV_QPT_UC);
   415 +#endif
   415 +#endif
   416  }
   416  }
   417  
   417  
   418  
   418  
   419 @@ -1856,7 +1909,18 @@
   419 @@ -1864,10 +1917,16 @@
   420      struct sockaddr_in saddr ={
       
   421          .sin_family      = AF_INET,
       
   422          .sin_addr.s_addr = htonl(INADDR_ANY),
       
   423 +#if (defined(__SVR4) && defined(__sun))
       
   424 +/*
       
   425 + * Use the default listen port for right now to
       
   426 + * workaround CR 7099964 sol_ofs needs to support allocation
       
   427 + * of dynamic ports on rdma_bind_addr()
       
   428 + * need to remove when this is fix
       
   429 + */
       
   430 +#define DEF_RDMA_LISTEN_PORT 19785           /* Listen port */
       
   431 +        .sin_port        = htons(DEF_RDMA_LISTEN_PORT)
       
   432 +#else
       
   433          .sin_port        = htons(0)
       
   434 +#endif
       
   435      };
       
   436      CMINFO *cm = &dev->cm;
       
   437  
       
   438 @@ -1864,10 +1928,16 @@
       
   439          error(0, "rdma_bind_addr failed");
   420          error(0, "rdma_bind_addr failed");
   440      port = ntohs(rdma_get_src_port(cm->id));
   421      port = ntohs(rdma_get_src_port(cm->id));
   441      encode_uint32(&port, port);
   422      encode_uint32(&port, port);
   442 +#if !(defined(__SVR4) && defined(__sun))
   423 +#if !(defined(__SVR4) && defined(__sun))
   443      send_mesg(&port, sizeof(port), "RDMA CM TCP IPv4 server port");
   424      send_mesg(&port, sizeof(port), "RDMA CM TCP IPv4 server port");