Terminate receive processing when SMP status is not 0
Signed-off-by: Hal Rosenstock <[email protected]>
Signed-off-by: Alex Netes <[email protected]>
---
opensm/osm_sminfo_rcv.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/opensm/osm_sminfo_rcv.c b/opensm/osm_sminfo_rcv.c
index 6f0b099..ff4d209 100644
--- a/opensm/osm_sminfo_rcv.c
+++ b/opensm/osm_sminfo_rcv.c
@@ -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. */
--
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