ofproto: Make some functions for rules private to ofproto.c.
authorBen Pfaff <blp@nicira.com>
Wed, 11 Sep 2013 04:01:34 +0000 (21:01 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Sep 2013 04:28:02 +0000 (21:28 -0700)
These aren't used outside this file.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-provider.h
ofproto/ofproto.c

index c645973..6c9af0e 100644 (file)
@@ -337,14 +337,10 @@ void ofproto_rule_reduce_timeouts(struct rule *rule, uint16_t idle_timeout,
                                   uint16_t hard_timeout)
     OVS_EXCLUDED(ofproto_mutex, rule->mutex);
 
-bool ofproto_rule_has_out_port(const struct rule *, ofp_port_t out_port);
-
 void ofoperation_complete(struct ofoperation *, enum ofperr);
 
 bool ofoperation_has_out_port(const struct ofoperation *, ofp_port_t out_port);
 
-bool ofproto_rule_is_hidden(const struct rule *);
-
 /* ofproto class structure, to be defined by each ofproto implementation.
  *
  *
index 2d8f6b0..14aa441 100644 (file)
@@ -2419,7 +2419,7 @@ rule_actions_unref(struct rule_actions *actions)
 
 /* Returns true if 'rule' has an OpenFlow OFPAT_OUTPUT or OFPAT_ENQUEUE action
  * that outputs to 'port' (output to OFPP_FLOOD and OFPP_ALL doesn't count). */
-bool
+static bool
 ofproto_rule_has_out_port(const struct rule *rule, ofp_port_t port)
 {
     return (port == OFPP_ANY
@@ -2499,7 +2499,7 @@ destroy_rule_executes(struct ofproto *ofproto)
  * Rules with priority higher than UINT16_MAX are set up by ofproto itself
  * (e.g. by in-band control) and are intentionally hidden from the
  * controller. */
-bool
+static bool
 ofproto_rule_is_hidden(const struct rule *rule)
 {
     return rule->cr.priority > UINT16_MAX;