[ofa-general] [PATCH] opensm/osm_mcast_mgr.c: Only send MCG delete notice if not previously done

Hal Rosenstock hrosenstock at xsigo.com
Thu Jun 26 14:36:43 PDT 2008


opensm/osm_mcast_mgr.c: Only send MCG delete notice if not previously
done

This eliminates duplicated MCG delete notices when MCG is removed

Signed-off-by: Hal Rosenstock <hal at xsigo.com>

diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
index c3167a8..bb78c50 100644
--- a/opensm/opensm/osm_mcast_mgr.c
+++ b/opensm/opensm/osm_mcast_mgr.c
@@ -1152,9 +1152,13 @@ mcast_mgr_process_mgrp(osm_sm_t * sm,
 		OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
 			"Destroying mgrp with lid:0x%X\n",
 			cl_ntoh16(p_mgrp->mlid));
-		/* Send a Report to any InformInfo registered for
-		   Trap 67 : MCGroup delete */
-		osm_mgrp_send_delete_notice(sm->p_subn, sm->p_log, p_mgrp);
+		if (p_mgrp->to_be_deleted == FALSE) {
+			p_mgrp->to_be_deleted = TRUE;
+			/* Send a Report to any InformInfo registered for
+			   Trap 67 : MCGroup delete */
+			osm_mgrp_send_delete_notice(sm->p_subn, sm->p_log,
+						    p_mgrp);
+		}
 		sm->p_subn->mgroups[cl_ntoh16(p_mgrp->mlid) - IB_LID_MCAST_START_HO] = NULL;
 		osm_mgrp_delete(p_mgrp);
 	}





More information about the general mailing list