* [PATCH] [RESEND] opensm/osm_trap_rcv.c: No need for heavy sweep when just NodeDescription changes
@ 2010-06-14 11:11 Hal Rosenstock
[not found] ` <20100614111148.GA25056-Wuw85uim5zDR7s880joybQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2010-06-14 11:11 UTC (permalink / raw)
To: sashak-smomgflXvOZWk0Htik3J/w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
For trap 144s which indicate NodeDescription changed, there is no need for
a heavy sweep if that is the only change indicated by the trap. Determine that
by checking that there are no other change flags set and that the
capability mask is unchanged. Still sweep if this is not the case (there
is some other change).
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/opensm/opensm/osm_trap_rcv.c b/opensm/opensm/osm_trap_rcv.c
index 52f8832..9024a1f 100644
--- a/opensm/opensm/osm_trap_rcv.c
+++ b/opensm/opensm/osm_trap_rcv.c
@@ -509,6 +509,9 @@ static void trap_rcv_process_request(IN osm_sm_t * sm,
CL_PLOCK_ACQUIRE(sm->p_lock);
osm_req_get_node_desc(sm, p_physp);
CL_PLOCK_RELEASE(sm->p_lock);
+ if (!(p_ntci->data_details.ntc_144.change_flgs & ~TRAP_144_MASK_NODE_DESCRIPTION_CHANGE) &&
+ p_ntci->data_details.ntc_144.new_cap_mask == p_physp->port_info.capability_mask)
+ goto check_report;
} else
OSM_LOG(sm->p_log, OSM_LOG_ERROR,
"ERR 3812: No physical port found for "
@@ -547,6 +550,7 @@ check_sweep:
if (physp_change_trap == TRUE)
goto Exit;
+check_report:
/* Add a call to osm_report_notice */
/* We are going to report the notice - so need to fix the IssuerGID
accordingly. See IBA 1.2 p.739 or IBA 1.1 p.653 for details. */
--
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] 2+ messages in thread
end of thread, other threads:[~2010-06-17 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-14 11:11 [PATCH] [RESEND] opensm/osm_trap_rcv.c: No need for heavy sweep when just NodeDescription changes Hal Rosenstock
[not found] ` <20100614111148.GA25056-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2010-06-17 14:01 ` Sasha Khapyorsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.