Rename cls_rule_zero_wildcards() to cls_rule_zero_wildcarded_fields().
authorBen Pfaff <blp@nicira.com>
Mon, 8 Nov 2010 18:36:26 +0000 (10:36 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 8 Nov 2010 18:36:26 +0000 (10:36 -0800)
Justin said that he found the shorter name confusing.

lib/classifier.c
lib/classifier.h

index 42f026f..3e0e215 100644 (file)
@@ -105,7 +105,7 @@ cls_rule_init__(struct cls_rule *rule,
 {
     rule->flow = *flow;
     flow_wildcards_init(&rule->wc, wildcards);
-    cls_rule_zero_wildcards(rule);
+    cls_rule_zero_wildcarded_fields(rule);
 }
 
 /* Converts the flow in 'flow' into a cls_rule in 'rule', with the given
@@ -143,7 +143,7 @@ cls_rule_from_match(const struct ofp_match *match, unsigned int priority,
  * restore the invariant in a cls_rule whose 'wc' member is modified by hand.
  */
 void
-cls_rule_zero_wildcards(struct cls_rule *rule)
+cls_rule_zero_wildcarded_fields(struct cls_rule *rule)
 {
     zero_wildcards(&rule->flow, &rule->wc);
 }
index e178703..64f5e31 100644 (file)
@@ -55,8 +55,9 @@ struct cls_table {
  * invariant that the classifier depends on:
  *
  *   - If a bit or a field is wildcarded in 'wc', then the corresponding bit or
- *     field in 'flow' is set to all-0-bits.  (The cls_rule_zero_wildcards()
- *     function can be used to restore this invariant after adding wildcards.)
+ *     field in 'flow' is set to all-0-bits.  (The
+ *     cls_rule_zero_wildcarded_fields() function can be used to restore this
+ *     invariant after adding wildcards.)
  */
 struct cls_rule {
     struct hmap_node hmap_node; /* Within struct cls_table 'rules'. */
@@ -77,7 +78,7 @@ void cls_rule_from_flow(const struct flow *, uint32_t wildcards,
 void cls_rule_from_match(const struct ofp_match *, unsigned int priority,
                          int flow_format, uint64_t cookie, struct cls_rule *);
 
-void cls_rule_zero_wildcards(struct cls_rule *);
+void cls_rule_zero_wildcarded_fields(struct cls_rule *);
 
 char *cls_rule_to_string(const struct cls_rule *);
 void cls_rule_print(const struct cls_rule *);