[Openib-windows] Using Netperf with WSD

Tzachi Dar tzachid at mellanox.co.il
Sun Aug 13 10:12:22 PDT 2006


Hi Fab,
 
I have been trying to run netperf with WSD and the call to duplicate
socket fails there.
The main reason is probably the fact that the switch calls
IBSPDuplicateSocket with a process id of a wrong process (usually one of
the svchosts).
 
Still (ignoring this issue) it seems that there is a call to
IBSPCloseSocket that calls shutdown_and_destroy_socket_info. In this
call, we have old_state == IBSP_DUPLICATING_OLD which causes us to not
do anything at the QP level, and therefore the code:
 while( socket_info->send_cnt || socket_info->recv_cnt )
  ib_cq_comp( socket_info->cq_tinfo );

keeps looping for ever. (recv_cnt is not 0)
 
I have created a small patch that solves this problem (see bellow).
 
Please check if we can apply it so we can start worknig with microsoft
on the first problem (wrong process id).
 
Thanks
Tzachi
 
Index: Q:/projinf4/trunk/ulp/wsd/user/ibsp_iblow.c
===================================================================
--- Q:/projinf4/trunk/ulp/wsd/user/ibsp_iblow.c (revision 1587)
+++ Q:/projinf4/trunk/ulp/wsd/user/ibsp_iblow.c (working copy)
@@ -1160,6 +1160,15 @@
   /* Nothing to do. */
   break;
 
+ case IBSP_DUPLICATING_OLD:
+  {
+   struct disconnect_reason reason;
+   memset( &reason, 0, sizeof(reason) );
+   reason.type = DISC_SHUTDOWN;
+   ib_disconnect( socket_info, &reason );
+  }
+  break;
+
  case IBSP_CONNECTED:
   {
    struct disconnect_reason reason;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060813/f8e68321/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: wsd_duplicate.txt
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060813/f8e68321/attachment.txt>


More information about the ofw mailing list