[ofa-general] [PATCH] opensm/osm_pkey_mgr.c: setting full member pkey on switch ports
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Sun Dec 23 23:42:20 PST 2007
OpenSM was failing to set pkeys with full membership on external
switch ports - fixing the wrong condition.
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
opensm/opensm/osm_pkey_mgr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_pkey_mgr.c b/opensm/opensm/osm_pkey_mgr.c
index 58eed04..f5c277f 100644
--- a/opensm/opensm/osm_pkey_mgr.c
+++ b/opensm/opensm/osm_pkey_mgr.c
@@ -212,7 +212,7 @@ pkey_mgr_enforce_partition(IN osm_log_t * p_log,
p_pi = &p_physp->port_info;
- if ((p_pi->vl_enforce & 0xc) == (0xc) * (enforce == TRUE)) {
+ if (!enforce || ((p_pi->vl_enforce & 0xc) != 0xc)) {
osm_log(p_log, OSM_LOG_DEBUG,
"pkey_mgr_enforce_partition: "
"No need to update PortInfo for "
--
1.5.1.4
More information about the general
mailing list