Skip to contentSkip to conversation

osm_sw_info_rcv.c: Fix sending PortInfo during lightsweep

PATCH New Hal Rosenstock 1 participant 1 message Feb 25, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osm_sw_info_rcv.c: Fix sending PortInfo during lightsweep

From: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/[email protected]>

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

---
 opensm/osm_sw_info_rcv.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
opensm/osm_sw_info_rcv.c +3 -0
index 910e8f0..bcd13a9 100644
@@ -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