diff mbox

[opensm] osm_sw_info_rcv.c: Fix sending PortInfo during lightsweep

Message ID 530CDD71.20705@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock Feb. 25, 2014, 6:14 p.m. UTC
From: Alex Netes <alexne@mellanox.com>

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

Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_sw_info_rcv.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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: