[openib-general] [PATCH] OpenSM: Change routine name from ib_gid_is_link_local to ib_gid_is_default_prefix

Hal Rosenstock halr at voltaire.com
Tue Jan 2 12:06:18 PST 2007


OpenSM: Change routine name from ib_gid_is_link_local to
ib_gid_is_default_prefix

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

diff --git a/osm/include/iba/ib_types.h b/osm/include/iba/ib_types.h
index 573b294..90044a1 100644
--- a/osm/include/iba/ib_types.h
+++ b/osm/include/iba/ib_types.h
@@ -2154,18 +2154,18 @@ ib_gid_get_subnet_prefix(
 *	ib_gid_t
 *********/
 
-/****f* IBA Base: Types/ib_gid_is_link_local
+/****f* IBA Base: Types/ib_gid_is_default_prefix
 * NAME
-*	ib_gid_is_link_local
+*	ib_gid_is_default_prefix
 *
 * DESCRIPTION
-*	Returns TRUE if the unicast GID scoping indicates link local,
+*	Returns TRUE if the unicast GID prefix is the default prefix,
 *	FALSE otherwise.
 *
 * SYNOPSIS
 */
 static inline boolean_t	OSM_API
-ib_gid_is_link_local(
+ib_gid_is_default_prefix(
 	IN	const	ib_gid_t* const		p_gid )
 {
 	return( ib_gid_get_subnet_prefix( p_gid ) == IB_DEFAULT_SUBNET_PREFIX );
@@ -2176,7 +2176,7 @@ ib_gid_is_link_local(
 *		[in] Pointer to the GID object.
 *
 * RETURN VALUES
-*	Returns TRUE if the unicast GID scoping indicates link local,
+*	Returns TRUE if the unicast GID prefix is the default prefix,
 *	FALSE otherwise.
 *
 * NOTES
diff --git a/osm/opensm/osm_sa_multipath_record.c b/osm/opensm/osm_sa_multipath_record.c
index 1d2d203..7ca44a6 100644
--- a/osm/opensm/osm_sa_multipath_record.c
+++ b/osm/opensm/osm_sa_multipath_record.c
@@ -1208,7 +1208,7 @@ __osm_mpr_rcv_get_gids(
   OSM_LOG_ENTER( p_rcv->p_log, __osm_mpr_rcv_get_gids );
 
   for ( i = 0; i < ngids; i++, gids++ ) {
-    if ( !ib_gid_is_link_local ( gids ) ) {
+    if ( !ib_gid_is_default_prefix ( gids ) ) {
       if ( ( is_sgid && ib_gid_is_multicast( gids ) ) || 
            ( ib_gid_get_subnet_prefix ( gids ) != p_rcv->p_subn->opt.subnet_prefix ) ) {
         /*
diff --git a/osm/opensm/osm_sa_path_record.c b/osm/opensm/osm_sa_path_record.c
index 0500a74..467144b 100644
--- a/osm/opensm/osm_sa_path_record.c
+++ b/osm/opensm/osm_sa_path_record.c
@@ -1166,7 +1166,7 @@ __osm_pr_rcv_get_end_points(
 
   if( comp_mask & IB_PR_COMPMASK_SGID )
   {
-    if ( ! ib_gid_is_link_local ( &p_pr->sgid ) )
+    if ( ! ib_gid_is_default_prefix ( &p_pr->sgid ) )
     {
       if ( ib_gid_get_subnet_prefix ( &p_pr->sgid ) != p_rcv->p_subn->opt.subnet_prefix )
       {
@@ -1234,7 +1234,7 @@ __osm_pr_rcv_get_end_points(
 
   if( comp_mask & IB_PR_COMPMASK_DGID )
   {
-    if ( ! ib_gid_is_link_local ( &p_pr->dgid ) )
+    if ( ! ib_gid_is_default_prefix ( &p_pr->dgid ) )
     {
       if ( ! ib_gid_is_multicast ( &p_pr->dgid ) &&
              ib_gid_get_subnet_prefix ( &p_pr->dgid ) != p_rcv->p_subn->opt.subnet_prefix )








More information about the general mailing list