From c54c2f836a6cd65169e030316813bf5fa3a2269c Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 1 Aug 2013 16:05:11 -0700 Subject: [PATCH] ofproto-dpif: Hide rule_calculate_tag(). No one uses it except ofproto-dpif. Signed-off-by: Ethan Jackson Acked-by: Ben Pfaff --- 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 66a7b4937..24f66720a 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -86,6 +86,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. */ @@ -5550,7 +5552,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 b22042321..a094aed89 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 *); -- 2.43.0