* [PATCH] opensm/osm_mcast_mgr.c: Cosmetic changes
@ 2009-10-14 20:01 Hal Rosenstock
[not found] ` <20091014200124.GA18516-Wuw85uim5zDR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Hal Rosenstock @ 2009-10-14 20:01 UTC (permalink / raw)
To: sashak-smomgflXvOZWk0Htik3J/w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
index 77e0b94..0ee689c 100644
--- a/opensm/opensm/osm_mcast_mgr.c
+++ b/opensm/opensm/osm_mcast_mgr.c
@@ -351,7 +351,7 @@ static int mcast_mgr_set_mft_block(osm_sm_t * sm, IN osm_switch_t * p_sw,
/**********************************************************************
This is part of the recursive function to compute the paths in the
- spanning tree that eminate from this switch. On input, the p_list
+ spanning tree that emanate from this switch. On input, the p_list
contains the group members that must be routed from this switch.
**********************************************************************/
static void mcast_mgr_subdivide(osm_sm_t * sm, osm_mgrp_t * p_mgrp,
@@ -368,7 +368,7 @@ static void mcast_mgr_subdivide(osm_sm_t * sm, osm_mgrp_t * p_mgrp,
mlid_ho = cl_ntoh16(osm_mgrp_get_mlid(p_mgrp));
/*
- For Multicast Groups, we want not to count on previous
+ For Multicast Groups, we don't want to count on previous
configurations - since we can easily generate a storm
by loops.
*/
@@ -396,8 +396,8 @@ static void mcast_mgr_subdivide(osm_sm_t * sm, osm_mgrp_t * p_mgrp,
OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 0A03: "
"Error routing MLID 0x%X through switch 0x%"
PRIx64 "\n"
- "\t\t\t\tNo multicast paths from this switch for port "
- "with LID %u\n", mlid_ho, node_guid_ho,
+ "\t\t\t\tNo multicast paths from this switch "
+ "for port with LID %u\n", mlid_ho, node_guid_ho,
cl_ntoh16(osm_port_get_base_lid
(p_wobj->p_port)));
@@ -411,8 +411,8 @@ static void mcast_mgr_subdivide(osm_sm_t * sm, osm_mgrp_t * p_mgrp,
OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 0A04: "
"Error routing MLID 0x%X through switch 0x%"
PRIx64 "\n"
- "\t\t\t\tNo multicast paths from this switch to port "
- "with LID %u\n", mlid_ho, node_guid_ho,
+ "\t\t\t\tNo multicast paths from this switch "
+ "to port with LID %u\n", mlid_ho, node_guid_ho,
cl_ntoh16(osm_port_get_base_lid
(p_wobj->p_port)));
@@ -613,8 +613,8 @@ static osm_mtree_node_t *mcast_mgr_branch(osm_sm_t * sm, osm_mgrp_t * p_mgrp,
osm_mcast_tbl_set(p_tbl, mlid_ho, i);
if (i == 0) {
/* This means we are adding the switch to the MC group.
- We do not need to continue looking at the remote port, just
- needed to add the port to the table */
+ We do not need to continue looking at the remote
+ port, just needed to add the port to the table */
CL_ASSERT(count == 1);
p_wobj = (osm_mcast_work_obj_t *)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] opensm/osm_mcast_mgr.c: Cosmetic changes
@ 2010-02-04 14:27 Hal Rosenstock
[not found] ` <20100204142728.GA14122-Wuw85uim5zDR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Hal Rosenstock @ 2010-02-04 14:27 UTC (permalink / raw)
To: sashak-smomgflXvOZWk0Htik3J/w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Fix some commentary typos
Remove osm_ from static routine names
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
index 19d0593..37ff120 100644
--- a/opensm/opensm/osm_mcast_mgr.c
+++ b/opensm/opensm/osm_mcast_mgr.c
@@ -195,7 +195,7 @@ static void mcast_mgr_build_switch_map(osm_sm_t * sm,
cl_qmap_insert(p_mcast_member_sw_tbl, port_guid, &remote_sw->mgrp_item);
/* New element in the table */
if (p_port->p_node->sw)
- /* the switch is MC memeber */
+ /* the switch is MC member */
remote_sw->is_mc_member = 1;
else
/* for others - update MC count */
@@ -229,8 +229,8 @@ static void mcast_mgr_destroy_switch_map(osm_sm_t * sm,
of the group HCAs
**********************************************************************/
#ifdef OSM_VENDOR_INTF_ANAFA
-static float osm_mcast_mgr_compute_avg_hops(osm_sm_t * sm, cl_qmap_t * m,
- const osm_switch_t * this_sw)
+static float mcast_mgr_compute_avg_hops(osm_sm_t * sm, cl_qmap_t * m,
+ const osm_switch_t * this_sw)
{
float avg_hops = 0;
uint32_t hops = 0;
@@ -254,7 +254,7 @@ static float osm_mcast_mgr_compute_avg_hops(osm_sm_t * sm, cl_qmap_t * m,
num_ports += sw->num_of_mcm + sw->is_mc_member;
}
- /* We should be here if there aren't any ports in the group. */
+ /* We shouldn't be here if there aren't any ports in the group. */
CL_ASSERT(num_ports);
avg_hops = (float)(hops / num_ports);
@@ -263,8 +263,8 @@ static float osm_mcast_mgr_compute_avg_hops(osm_sm_t * sm, cl_qmap_t * m,
return avg_hops;
}
#else
-static float osm_mcast_mgr_compute_max_hops(osm_sm_t * sm, cl_qmap_t * m,
- const osm_switch_t * this_sw)
+static float mcast_mgr_compute_max_hops(osm_sm_t * sm, cl_qmap_t * m,
+ const osm_switch_t * this_sw)
{
uint32_t max_hops = 0, hops;
uint16_t lid;
@@ -322,9 +322,9 @@ static osm_switch_t *mcast_mgr_find_optimal_switch(osm_sm_t * sm,
continue;
#ifdef OSM_VENDOR_INTF_ANAFA
- hops = osm_mcast_mgr_compute_avg_hops(sm, &mgrp_sw_map, p_sw);
+ hops = mcast_mgr_compute_avg_hops(sm, &mgrp_sw_map, p_sw);
#else
- hops = osm_mcast_mgr_compute_max_hops(sm, &mgrp_sw_map, p_sw);
+ hops = mcast_mgr_compute_max_hops(sm, &mgrp_sw_map, p_sw);
#endif
OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
@@ -352,7 +352,7 @@ static osm_switch_t *mcast_mgr_find_optimal_switch(osm_sm_t * sm,
}
/**********************************************************************
- This function returns the existing or optimal root swtich for the tree.
+ This function returns the existing or optimal root switch for the tree.
**********************************************************************/
static osm_switch_t *mcast_mgr_find_root_switch(osm_sm_t * sm, cl_qlist_t *list)
{
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-04 20:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 20:01 [PATCH] opensm/osm_mcast_mgr.c: Cosmetic changes Hal Rosenstock
[not found] ` <20091014200124.GA18516-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2009-10-14 20:37 ` Sasha Khapyorsky
-- strict thread matches above, loose matches on Subject: below --
2010-02-04 14:27 Hal Rosenstock
[not found] ` <20100204142728.GA14122-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2010-02-04 20:37 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).