* [PATCH] opensm: Change osm_routing_engine struct to not use C++ reserved word
@ 2011-12-27 19:28 Hal Rosenstock
[not found] ` <4EFA1C6A.8020009-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2011-12-27 19:28 UTC (permalink / raw)
To: Alex Netes
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Change delete to destroy in osm_routing_engine struct
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/include/opensm/osm_opensm.h b/include/opensm/osm_opensm.h
index 3ebf533..fbf60e3 100644
--- a/include/opensm/osm_opensm.h
+++ b/include/opensm/osm_opensm.h
@@ -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;
};
/*
diff --git a/opensm/osm_opensm.c b/opensm/osm_opensm.c
index 1784388..e895b17 100644
--- a/opensm/osm_opensm.c
+++ b/opensm/osm_opensm.c
@@ -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);
}
}
diff --git a/opensm/osm_torus.c b/opensm/osm_torus.c
index df46fb8..80d1ca8 100644
--- a/opensm/osm_torus.c
+++ b/opensm/osm_torus.c
@@ -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;
}
diff --git a/opensm/osm_ucast_dnup.c b/opensm/osm_ucast_dnup.c
index b2f5c62..740de8b 100644
--- a/opensm/osm_ucast_dnup.c
+++ b/opensm/osm_ucast_dnup.c
@@ -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);
diff --git a/opensm/osm_ucast_ftree.c b/opensm/osm_ucast_ftree.c
index 06508c8..5828e8f 100644
--- a/opensm/osm_ucast_ftree.c
+++ b/opensm/osm_ucast_ftree.c
@@ -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;
}
diff --git a/opensm/osm_ucast_lash.c b/opensm/osm_ucast_lash.c
index 8cc84b3..e751971 100644
--- a/opensm/osm_ucast_lash.c
+++ b/opensm/osm_ucast_lash.c
@@ -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;
}
diff --git a/opensm/osm_ucast_updn.c b/opensm/osm_ucast_updn.c
index 164c6f4..6e828c4 100644
--- a/opensm/osm_ucast_updn.c
+++ b/opensm/osm_ucast_updn.c
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] opensm: Change osm_routing_engine struct to not use C++ reserved word
[not found] ` <4EFA1C6A.8020009-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2012-01-10 9:24 ` Alex Netes
0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2012-01-10 9:24 UTC (permalink / raw)
To: Hal Rosenstock
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Hi Hal,
On 14:28 Tue 27 Dec , Hal Rosenstock wrote:
>
> Change delete to destroy in osm_routing_engine struct
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-10 9:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-27 19:28 [PATCH] opensm: Change osm_routing_engine struct to not use C++ reserved word Hal Rosenstock
[not found] ` <4EFA1C6A.8020009-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-01-10 9:24 ` Alex Netes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox