From: Ben Pfaff Date: Thu, 14 Apr 2011 20:17:09 +0000 (-0700) Subject: ofproto: Make ofproto_send_packet() static. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0356b074db2436b713e9f91761da8ef16eeb2a9;p=openvswitch ofproto: Make ofproto_send_packet() static. It's not used outside of ofproto.c any longer. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 6745a49b..f44ffa8a 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -940,7 +940,7 @@ ofproto_port_is_floodable(struct ofproto *ofproto, uint16_t odp_port) * will be sent with the VLAN TCI specified by 'vlan_tci & ~VLAN_CFI'. * * Returns 0 if successful, otherwise a positive errno value. */ -int +static int ofproto_send_packet(struct ofproto *ofproto, uint32_t port_no, uint16_t vlan_tci, const struct ofpbuf *packet) diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index d999b8de..e3bce2ea 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -141,8 +141,6 @@ void ofproto_get_snoops(const struct ofproto *, struct sset *); void ofproto_get_all_flows(struct ofproto *p, struct ds *); /* Functions for use by ofproto implementation modules, not by clients. */ -int ofproto_send_packet(struct ofproto *, uint32_t port_no, uint16_t vlan_tci, - const struct ofpbuf *); void ofproto_add_flow(struct ofproto *, const struct cls_rule *, const union ofp_action *, size_t n_actions); void ofproto_delete_flow(struct ofproto *, const struct cls_rule *);