[ovs-dev] [next 09/35] ofproto: Make ofproto_send_packet() static.

Ben Pfaff blp at nicira.com
Tue Apr 26 16:24:35 UTC 2011


It's not used outside of ofproto.c any longer.
---
 ofproto/ofproto.c |    2 +-
 ofproto/ofproto.h |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 6745a49..f44ffa8 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 d999b8d..e3bce2e 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 *);
-- 
1.7.4.4




More information about the dev mailing list