[ovs-dev] [PATCH] ofproto-dpif: Hide rule_calculate_tag().

Ethan Jackson ethan at nicira.com
Thu Aug 1 23:05:38 UTC 2013


No one uses it except ofproto-dpif.

Signed-off-by: Ethan Jackson <ethan at nicira.com>
---
 ofproto/ofproto-dpif.c |    4 +++-
 ofproto/ofproto-dpif.h |    3 ---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 50163a5..b04ce66 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -87,6 +87,8 @@ static struct rule_dpif *rule_dpif_lookup(struct ofproto_dpif *,
 
 static void rule_get_stats(struct rule *, uint64_t *packets, uint64_t *bytes);
 static void rule_invalidate(const struct rule_dpif *);
+static tag_type rule_calculate_tag(const struct flow *,
+                                   const struct minimask *, uint32_t secret);
 
 struct ofbundle {
     struct hmap_node hmap_node; /* In struct ofproto's "bundles" hmap. */
@@ -5502,7 +5504,7 @@ calculate_flow_tag(struct ofproto_dpif *ofproto, const struct flow *flow,
 
 /* Calculates the tag to use for 'flow' and mask 'mask' when it is inserted
  * into an OpenFlow table with the given 'basis'. */
-tag_type
+static tag_type
 rule_calculate_tag(const struct flow *flow, const struct minimask *mask,
                    uint32_t secret)
 {
diff --git a/ofproto/ofproto-dpif.h b/ofproto/ofproto-dpif.h
index fcaa6eb..0c193ca 100644
--- a/ofproto/ofproto-dpif.h
+++ b/ofproto/ofproto-dpif.h
@@ -59,9 +59,6 @@ struct rule_dpif *rule_dpif_lookup_in_table(struct ofproto_dpif *,
                                             struct flow_wildcards *,
                                             uint8_t table_id);
 
-tag_type rule_calculate_tag(const struct flow *flow, const struct minimask *,
-                            uint32_t secret);
-
 struct rule_dpif *rule_dpif_miss_rule(struct ofproto_dpif *ofproto,
                                       const struct flow *);
 
-- 
1.7.9.5




More information about the dev mailing list