[openib-general] [PATCH][MINOR] OpenSM/osm_sa_path_record.c: In __osm_pr_rcv_get_lid_pair_path, only get reversible path parameters if requested
Hal Rosenstock
halr at voltaire.com
Mon Jul 17 06:46:03 PDT 2006
OpenSM/osm_sa_path_record.c: In __osm_pr_rcv_get_lid_pair_path, only get
reversible path parameters if requested
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_sa_path_record.c
===================================================================
--- opensm/osm_sa_path_record.c (revision 8538)
+++ opensm/osm_sa_path_record.c (working copy)
@@ -694,6 +694,12 @@ __osm_pr_rcv_get_lid_pair_path(
see Vol1 Ver1.2 p900 l16
*/
if( comp_mask & IB_PR_COMPMASK_REVERSIBLE )
+ {
+ /* now try the reversible path */
+ rev_path_status = __osm_pr_rcv_get_path_parms( p_rcv, p_pr, p_dest_port,
+ p_src_port, src_lid_ho,
+ comp_mask, &rev_path_parms );
+ path_parms.reversible = (rev_path_status == IB_SUCCESS);
if( (! path_parms.reversible && ( p_pr->num_path & 0x80 ) ) )
{
osm_log( p_rcv->p_log, OSM_LOG_DEBUG,
@@ -703,7 +709,8 @@ __osm_pr_rcv_get_lid_pair_path(
cl_qlock_pool_put( &p_rcv->pr_pool, &p_pr_item->pool_item );
p_pr_item = NULL;
goto Exit;
- };
+ }
+ }
__osm_pr_rcv_build_pr( p_rcv, p_src_port, p_dest_port, src_lid_ho,
dest_lid_ho, preference, &path_parms,
More information about the general
mailing list