[openib-general] [PATCH] Osmtest - Byte Swapping issue and re source cleanup

Yael Kalka yael at mellanox.co.il
Mon Aug 9 05:33:47 PDT 2004


Committed to OpenSM - gen1.
Thanks,
Yael


-----Original Message-----
From: Jan Daley [mailto:jdaley at systemfabricworks.com]
Sent: Saturday, August 07, 2004 12:10 AM
To: openib-general at openib.org
Subject: [openib-general] [PATCH] Osmtest - Byte Swapping issue and
resource cleanup


Hi,

1) In osmtest_stress_port_recs_small, the lid passed into the call to
osmtest_get_port_rec wasn't being byte swapped.  This caused all
portinfo records to be retrieved instead of just one.

2) I added a couple of calls to cleanup qpools that were created.





Index: osmtest/osmtest.c
===================================================================
--- osmtest/osmtest.c	(revision 590)
+++ osmtest/osmtest.c	(working copy)
@@ -479,6 +479,8 @@
       osm_vendor_delete( &p_osmt->p_vendor );
     }
 
+  cl_qpool_destroy(&p_osmt->port_pool);
+  cl_qpool_destroy(&p_osmt->node_pool);
   osm_log_destroy( &p_osmt->log );
 }
 
@@ -1308,7 +1310,7 @@
   /*
    * Do a blocking query for our own PortRecord in the subnet.
    */
-  status = osmtest_get_port_rec( p_osmt, p_osmt->local_port.lid,
&context );
+  status = osmtest_get_port_rec( p_osmt,
cl_hton16(p_osmt->local_port.lid), &context );
 
   if( status != IB_SUCCESS )
     {



Jan Daley
System Fabric Works
(512) 343-6101 x 13




_______________________________________________
openib-general mailing list
openib-general at openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit
http://openib.org/mailman/listinfo/openib-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20040809/ce8a774f/attachment.html>


More information about the general mailing list