Skip to contentSkip to conversation

opensm: Change osm_routing_engine struct to not use C++ reserved word

PATCH In review Hal Rosenstock 2 participants 2 messages Dec 27, 2011 – Jan 10, 2012 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm: Change osm_routing_engine struct to not use C++ reserved word

Change delete to destroy in osm_routing_engine struct

---

include/opensm/osm_opensm.h +1 -1
index 3ebf533..fbf60e3 100644
@@ -136,7 +136,7 @@ struct osm_routing_engine {
 			   IN const osm_port_t *dst_port);
 	ib_api_status_t (*mcast_build_stree)(void *context,
 					     IN OUT osm_mgrp_box_t *mgb);
-	void (*delete) (void *context);
+	void (*destroy) (void *context);
 	struct osm_routing_engine *next;
 };
 /*
opensm/osm_opensm.c +2 -2
index 1784388..e895b17 100644
@@ -243,8 +243,8 @@ static void destroy_routing_engines(osm_opensm_t *osm)
 	while (next) {
 		r = next;
 		next = r->next;
-		if (r->delete)
-			r->delete(r->context);
+		if (r->destroy)
+			r->destroy(r->context);
 		free(r);
 	}
 }
opensm/osm_torus.c +1 -1
index df46fb8..80d1ca8 100644
@@ -9307,6 +9307,6 @@ int osm_ucast_torus2QoS_setup(struct osm_routing_engine *r,
 	r->update_sl2vl = torus_update_osm_sl2vl;
 	r->path_sl = torus_path_sl;
 	r->mcast_build_stree = torus_mcast_stree;
-	r->delete = torus_context_delete;
+	r->destroy = torus_context_delete;
 	return 0;
 }
opensm/osm_ucast_dnup.c +1 -1
index b2f5c62..740de8b 100644
@@ -489,7 +489,7 @@ int osm_ucast_dnup_setup(struct osm_routing_engine *r, osm_opensm_t *osm)
 	dnup->p_osm = osm;
 
 	r->context = dnup;
-	r->delete = dnup_delete;
+	r->destroy = dnup_delete;
 	r->build_lid_matrices = dnup_lid_matrices;
 
         OSM_LOG_EXIT(&osm->log);
opensm/osm_ucast_ftree.c +1 -1
index 06508c8..5828e8f 100644
@@ -4134,7 +4134,7 @@ int osm_ucast_ftree_setup(struct osm_routing_engine *r, osm_opensm_t * p_osm)
 	r->context = (void *)p_ftree;
 	r->build_lid_matrices = construct_fabric;
 	r->ucast_build_fwd_tables = do_routing;
-	r->delete = delete;
+	r->destroy = delete;
 
 	return 0;
 }
opensm/osm_ucast_lash.c +1 -1
index 8cc84b3..e751971 100644
@@ -1314,7 +1314,7 @@ int osm_ucast_lash_setup(struct osm_routing_engine *r, osm_opensm_t *p_osm)
 	r->context = p_lash;
 	r->ucast_build_fwd_tables = lash_process;
 	r->path_sl = get_lash_sl;
-	r->delete = lash_delete;
+	r->destroy = lash_delete;
 
 	return 0;
 }
opensm/osm_ucast_updn.c +1 -1
index 164c6f4..6e828c4 100644
@@ -661,7 +661,7 @@ int osm_ucast_updn_setup(struct osm_routing_engine *r, osm_opensm_t *osm)
 	updn->p_osm = osm;
 
 	r->context = updn;
-	r->delete = updn_delete;
+	r->destroy = updn_delete;
 	r->build_lid_matrices = updn_lid_matrices;
 
 	return 0;

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