Skip to contentSkip to conversation

opensm/osm_sminfo_rcv.c: Handle SMP status

PATCH New Hal Rosenstock 1 participant 1 message May 24, 2012 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_sminfo_rcv.c: Handle SMP status

Terminate receive processing when SMP status is not 0

---
 opensm/osm_sminfo_rcv.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
opensm/osm_sminfo_rcv.c +6 -0
index 6f0b099..ff4d209 100644
@@ -561,6 +561,12 @@ void osm_sminfo_rcv_process(IN void *context, IN void *data)
 	CL_ASSERT(p_madw);
 
 	p_smp = osm_madw_get_smp_ptr(p_madw);
+	if (ib_smp_get_status(p_smp)) {
+		OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
+			"MAD status 0x%x received\n",
+			cl_ntoh16(ib_smp_get_status(p_smp)));
+		goto Exit;
+	}
 
 	/* Determine if this is a request for our own SMInfo or if
 	   this is a response to our request for another SM's SMInfo. */
Signature · 6 lines
1.7.8.2

--
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