From: Ben Pfaff Date: Mon, 12 Mar 2012 21:27:44 +0000 (-0700) Subject: connmgr: Remove now-unused function connmgr_broadcast(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076f4c1ea3f551a6a9bf383ddc689f9cbc07b25b;p=openvswitch connmgr: Remove now-unused function connmgr_broadcast(). Signed-off-by: Ben Pfaff --- diff --git a/ofproto/connmgr.c b/ofproto/connmgr.c index 1f5fbed9..ed1aac2e 100644 --- a/ofproto/connmgr.c +++ b/ofproto/connmgr.c @@ -1438,29 +1438,6 @@ connmgr_is_any_controller_admitted(const struct connmgr *mgr) } return false; } - -/* Sends 'packet' to each controller connected to 'mgr'. Takes ownership of - * 'packet'. */ -void -connmgr_broadcast(struct connmgr *mgr, struct ofpbuf *packet) -{ - struct ofconn *ofconn, *prev; - - prev = NULL; - LIST_FOR_EACH (ofconn, node, &mgr->all_conns) { - if (prev) { - ofconn_send_reply(ofconn, ofpbuf_clone(packet)); - } - if (rconn_is_connected(ofconn->rconn)) { - prev = ofconn; - } - } - if (prev) { - ofconn_send_reply(prev, packet); - } else { - ofpbuf_delete(packet); - } -} /* In-band configuration. */ diff --git a/ofproto/connmgr.h b/ofproto/connmgr.h index 6d404cf9..81ca51b7 100644 --- a/ofproto/connmgr.h +++ b/ofproto/connmgr.h @@ -140,7 +140,6 @@ int connmgr_get_max_probe_interval(const struct connmgr *); bool connmgr_is_any_controller_connected(const struct connmgr *); bool connmgr_is_any_controller_admitted(const struct connmgr *); int connmgr_failure_duration(const struct connmgr *); -void connmgr_broadcast(struct connmgr *, struct ofpbuf *); /* In-band configuration. */ void connmgr_set_extra_in_band_remotes(struct connmgr *,