From: Hal Rosenstock <hnrose-Wuw85uim5zDR7s880joybQ@public.gmane.org>
To: sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] opensm/osm_lid_mgr.c: Cosmetic commentary changes
Date: Thu, 15 Oct 2009 14:43:07 -0400 [thread overview]
Message-ID: <20091015184307.GA9771@comcast.net> (raw)
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/opensm/opensm/osm_lid_mgr.c b/opensm/opensm/osm_lid_mgr.c
index 74b5e39..990c26e 100644
--- a/opensm/opensm/osm_lid_mgr.c
+++ b/opensm/opensm/osm_lid_mgr.c
@@ -175,8 +175,8 @@ static void lid_mgr_validate_db(IN osm_lid_mgr_t * p_mgr)
lids_ok = FALSE;
} else if (min_lid != max_lid
&& (min_lid & lmc_mask) != min_lid) {
- /* check that if the lids define a range that is valid
- for the current LMC mask */
+ /* check that if the lids define a range that is
+ valid for the current LMC mask */
OSM_LOG(p_mgr->p_log, OSM_LOG_ERROR,
"ERR 0313: "
"LID range [%u:%u] for guid:0x%016"
@@ -210,7 +210,7 @@ static void lid_mgr_validate_db(IN osm_lid_mgr_t * p_mgr)
"guid:0x%016" PRIx64 "\n",
p_item->guid);
} else {
- /* mark it was visited */
+ /* mark that it was visited */
for (lid = min_lid; lid <= max_lid; lid++)
p_mgr->used_lids[lid] = 1;
}
@@ -412,8 +412,8 @@ static int lid_mgr_init_sweep(IN osm_lid_mgr_t * p_mgr)
Our task is to find free lid ranges.
A lid can be used if
1. a persistent assignment exists
- 2. the lid is used by a discovered port that does not have a persistent
- assignment.
+ 2. the lid is used by a discovered port that does not have a
+ persistent assignment.
scan through all lid values of both the persistent table and
discovered table.
@@ -454,15 +454,15 @@ static int lid_mgr_init_sweep(IN osm_lid_mgr_t * p_mgr)
lid))) {
/* we have a port. Now lets see if we can preserve its lid range. */
/* For that, we need to make sure:
- 1. The port has a (legal) persistency entry. Then the local lid
- is free (we will use the persistency value).
+ 1. The port has a (legal) persistency entry. Then the
+ local lid is free (we will use the persistency value).
2. Can the port keep its local assignment?
a. Make sure the lid a aligned.
- b. Make sure all needed lids (for the lmc) are free according
- to persistency table.
+ b. Make sure all needed lids (for the lmc) are free
+ according to persistency table.
*/
- /* qualify the guid of the port is not persistently mapped to
- another range */
+ /* qualify the guid of the port is not persistently
+ mapped to another range */
if (!osm_db_guid2lid_get(p_mgr->p_g2l,
cl_ntoh64
(osm_port_get_guid(p_port)),
@@ -474,8 +474,9 @@ static int lid_mgr_init_sweep(IN osm_lid_mgr_t * p_mgr)
lid, db_min_lid, db_max_lid);
} else {
/* can the port keep its assignment ? */
- /* get the lid range of that port, and the required number
- of lids we are about to assign to it */
+ /* get the lid range of that port, and the
+ required number of lids we are about to
+ assign to it */
osm_port_get_lid_range_ho(p_port,
&disc_min_lid,
&disc_max_lid);
--
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
next reply other threads:[~2009-10-15 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-15 18:43 Hal Rosenstock [this message]
[not found] ` <20091015184307.GA9771-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2009-10-15 20:59 ` [PATCH] opensm/osm_lid_mgr.c: Cosmetic commentary changes Sasha Khapyorsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091015184307.GA9771@comcast.net \
--to=hnrose-wuw85uim5zdr7s880joybq@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox