From: Alex Netes <[email protected]>

OpenSM shouldn't send PortInfo MADs when receiving SWInfo during
lightsweep or as a response to SET.

Signed-off-by: Alex Netes <[email protected]>
Signed-off-by: Hal Rosenstock <[email protected]>
---
 opensm/osm_sw_info_rcv.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opensm/osm_sw_info_rcv.c b/opensm/osm_sw_info_rcv.c
index 910e8f0..bcd13a9 100644
--- a/opensm/osm_sw_info_rcv.c
+++ b/opensm/osm_sw_info_rcv.c
@@ -439,6 +439,9 @@ void osm_si_rcv_process(IN void *context, IN void *data)
                /* we might get back a request for signaling change was 
detected */
                sm->p_subn->force_heavy_sweep = TRUE;
 
+       if (p_context->light_sweep || p_context->set_method)
+               goto Exit;
+
        si_rcv_get_sp0_info(sm, p_node);
 
 Exit:
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to