[openib-general] [PATCH 2/5] opensm: trivial indentation fixes in osm_switch.h

Sasha Khapyorsky sashak at voltaire.com
Sun Nov 26 14:30:01 PST 2006


Couple of trivial indentation fixes in osm_switch.h.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 osm/include/opensm/osm_switch.h |   81 ++++++++++++++++++++-------------------
 1 files changed, 42 insertions(+), 39 deletions(-)

diff --git a/osm/include/opensm/osm_switch.h b/osm/include/opensm/osm_switch.h
index 72b87a6..daba8ea 100644
--- a/osm/include/opensm/osm_switch.h
+++ b/osm/include/opensm/osm_switch.h
@@ -586,25 +586,25 @@ osm_switch_get_physp_ptr(
 */
 static inline osm_physp_t*
 osm_switch_get_route_by_lid(
-  IN const osm_switch_t* const p_sw,
-  IN const ib_net16_t lid )
+	IN const osm_switch_t* const p_sw,
+	IN const ib_net16_t lid )
 {
-  uint8_t port_num;
-  CL_ASSERT( p_sw );
-  CL_ASSERT( lid );
+	uint8_t port_num;
+	CL_ASSERT( p_sw );
+	CL_ASSERT( lid );
 
-  port_num = osm_fwd_tbl_get( &p_sw->fwd_tbl, cl_ntoh16( lid ) );
-  /* 
-     In order to avoid holes in the subnet (usually happens when
-     running UPDN alogrithm ), i.e. cases where port is
-     unreachable through a switch (we put a OSM_NO_PATH value at 
-     the port entry , we do not assert on unreachable lids entries
-     at the fwd table but return NULL 
-  */
-  if (port_num != OSM_NO_PATH)
-    return( osm_node_get_physp_ptr( p_sw->p_node, port_num ) );
-  else
-    return NULL;
+	port_num = osm_fwd_tbl_get( &p_sw->fwd_tbl, cl_ntoh16( lid ) );
+	/*
+	   In order to avoid holes in the subnet (usually happens when
+	   running UPDN alogrithm ), i.e. cases where port is
+	   unreachable through a switch (we put a OSM_NO_PATH value at
+	   the port entry , we do not assert on unreachable lids entries
+	   at the fwd table but return NULL
+	*/
+	if (port_num != OSM_NO_PATH)
+		return( osm_node_get_physp_ptr( p_sw->p_node, port_num ) );
+	else
+		return NULL;
 }
 /*
 * PARAMETERS
@@ -704,7 +704,7 @@ osm_switch_get_max_block_id(
 	IN const osm_switch_t* const p_sw )
 {
 	return( (uint32_t)(osm_fwd_tbl_get_size( &p_sw->fwd_tbl ) /
-			osm_fwd_tbl_get_lids_per_block( &p_sw->fwd_tbl ) ) );
+		osm_fwd_tbl_get_lids_per_block( &p_sw->fwd_tbl ) ) );
 }
 /*
 * PARAMETERS
@@ -1063,10 +1063,10 @@ osm_switch_set_mft_block(
 *
 * DESCRIPTION
 *	Returns the recommended port on which to route this LID.
-*  In cases where LMC > 0, the remote side system and node 
-*  used for the routing are tracked in the provided arrays 
-*  (and counts) such that other lid for the same port will
-*  try and avoid going through the same remote system/node.
+*	In cases where LMC > 0, the remote side system and node
+*	used for the routing are tracked in the provided arrays
+*	(and counts) such that other lid for the same port will
+*	try and avoid going through the same remote system/node.
 *
 * SYNOPSIS
 */
@@ -1092,29 +1092,32 @@ osm_switch_recommend_path(
 *	ignore_existing
 *		[in] Set to cause the switch to choose the optimal route
 *		regardless of existing paths.
-*		If false, the switch will choose an existing route if one exists,
-*		otherwise will choose the optimal route.
+*		If false, the switch will choose an existing route if one
+*		exists, otherwise will choose the optimal route.
 *
 *	remote_sys_guids
-*     [in out] The array of remote system guids already used to route 
-*     the other lids of the same target port (if LMC > 0).
+*		[in out] The array of remote system guids already used to
+*		route the other lids of the same target port (if LMC > 0).
 *  
-*  p_num_used_sys
-*     [in out] The number of remote systems used for routing to the port.
+*	p_num_used_sys
+*		[in out] The number of remote systems used for routing to
+*		the port.
 *
 *	remote_node_guids
-*     [in out] The array of remote node guids already used to route 
-*     the other lids of the same target port (if LMC > 0).
+*		[in out] The array of remote node guids already used to route
+*		the other lids of the same target port (if LMC > 0).
 *  
-*  p_num_used_nodes
-*     [in out] The number of remote nodes used for routing to the port.
-*
-*  ui_ucast_fdb_assign_func_defined
-*     [in] If TRUE - this means that there is a ui ucast_fdb_assign table
-*     function defined (in pfn_ui_ucast_fdb_assign in subnet opts). This
-*     means that all current entries in the fdbs will be used.
-*     If FALSE - such function isn't defined. Do the minimum hop checks 
-*     before accepting the current fdbs.
+*	p_num_used_nodes
+*		[in out] The number of remote nodes used for routing to
+*		the port.
+*
+*	ui_ucast_fdb_assign_func_defined
+*		[in] If TRUE - this means that there is a ui ucast_fdb_assign
+*		table function defined (in pfn_ui_ucast_fdb_assign in subnet
+*		opts). This means that all current entries in the fdbs will
+*		be used.
+* 		If FALSE - such function isn't defined. Do the minimum hop
+* 		checks before accepting the current fdbs.
 *
 * RETURN VALUE
 *	Returns the recommended port on which to route this LID.
-- 
1.4.4





More information about the general mailing list