[openib-general] [PATCH] Osmtest - Byte Swapping issue and resource cleanup
Jan Daley
jdaley at systemfabricworks.com
Fri Aug 6 14:09:34 PDT 2004
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
More information about the general
mailing list