[ofa-general] ***SPAM*** [PATCH] opensm/osm_trap_rcv.c disable the port with the least hop count
Eli Dorfman
dorfman.eli at gmail.com
Thu Nov 20 00:00:38 PST 2008
disable the port with the least hop count.
this will address the case of inter switch link where the
most remote port (from opensm) is sending traps.
in that case we would like to disable the nearest switch port (from opensm).
Signed-off-by: Eli Dorfman <elid at voltaire.com>
---
opensm/opensm/osm_trap_rcv.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensm/opensm/osm_trap_rcv.c b/opensm/opensm/osm_trap_rcv.c
index 07c5183..d1dfbd4 100644
--- a/opensm/opensm/osm_trap_rcv.c
+++ b/opensm/opensm/osm_trap_rcv.c
@@ -239,8 +239,8 @@ static int disable_port(osm_sm_t *sm, osm_physp_t *p)
ib_port_info_t *pi = (ib_port_info_t *)payload;
int ret;
- /* in case of endport - disable switch's peer port */
- if (osm_node_get_type(p->p_node) != IB_NODE_TYPE_SWITCH)
+ /* select the nearest port to master opensm */
+ if (p->dr_path.hop_count > p->p_remote_physp->dr_path.hop_count)
p = p->p_remote_physp;
/* If trap 131, might want to disable peer port if available */
--
1.5.5
More information about the general
mailing list