Renaming static find_prtn_by_name() to non-static
osm_prtn_find_by_name() - this function is used by
QoS policy functions.

Signed-off-by: Yevgeny Kliteynik <[EMAIL PROTECTED]>
---
 opensm/include/opensm/osm_partition.h |   29 +++++++++++++++++++++++++++++
 opensm/opensm/osm_prtn.c              |    4 ++--
 2 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/opensm/include/opensm/osm_partition.h 
b/opensm/include/opensm/osm_partition.h
index f00034f..e88da40 100644
--- a/opensm/include/opensm/osm_partition.h
+++ b/opensm/include/opensm/osm_partition.h
@@ -243,5 +243,34 @@ ib_api_status_t osm_prtn_make_partitions(IN osm_log_t * 
const p_log,
 * SEE ALSO
 *********/

+/****f* OpenSM: Partition/osm_prtn_find_by_name
+* NAME
+*      osm_prtn_find_by_name
+*
+* DESCRIPTION
+*      Fides partition by name.
+*
+* SYNOPSIS
+*/
+osm_prtn_t *
+osm_prtn_find_by_name(
+       IN osm_subn_t *p_subn,
+       IN const char *name);
+/*
+* PARAMETERS
+*      p_subn
+*              [in] Pointer to a subnet object.
+*
+*      name
+*              [in] Required partition name.
+*
+* RETURN VALUES
+*      Pointer to the partition object on success.
+*
+* NOTES
+*
+* SEE ALSO
+*********/
+
 END_C_DECLS
 #endif                         /* _OSM_PARTITION_H_ */
diff --git a/opensm/opensm/osm_prtn.c b/opensm/opensm/osm_prtn.c
index 5dabae9..46ee429 100644
--- a/opensm/opensm/osm_prtn.c
+++ b/opensm/opensm/osm_prtn.c
@@ -265,7 +265,7 @@ static uint16_t __generate_pkey(osm_subn_t * p_subn)
        return 0;
 }

-static osm_prtn_t *find_prtn_by_name(osm_subn_t * p_subn, const char *name)
+osm_prtn_t *osm_prtn_find_by_name(osm_subn_t * p_subn, const char *name)
 {
        cl_map_item_t *p_next;
        osm_prtn_t *p;
@@ -289,7 +289,7 @@ osm_prtn_t *osm_prtn_make_new(osm_log_t * p_log, osm_subn_t 
* p_subn,
        pkey &= cl_hton16((uint16_t) ~ 0x8000);

        if (!pkey) {
-               if (name && (p = find_prtn_by_name(p_subn, name)))
+               if (name && (p = osm_prtn_find_by_name(p_subn, name)))
                        return p;
                if (!(pkey = __generate_pkey(p_subn)))
                        return NULL;
-- 
1.5.1.4

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to