ofproto: Make ofproto_send_packet() static.
authorBen Pfaff <blp@nicira.com>
Thu, 14 Apr 2011 20:17:09 +0000 (13:17 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 May 2011 17:12:05 +0000 (10:12 -0700)
It's not used outside of ofproto.c any longer.

ofproto/ofproto.c
ofproto/ofproto.h

index 6745a49..f44ffa8 100644 (file)
@@ -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)
index d999b8d..e3bce2e 100644 (file)
@@ -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 *);