flow: Rename flow_set_vlan_vid() to flow_set_dl_vlan().
authorBen Pfaff <blp@nicira.com>
Mon, 23 Jul 2012 05:42:55 +0000 (22:42 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 23 Jul 2012 16:21:34 +0000 (09:21 -0700)
This function is specific to the OF1.0 dl_vlan field, so name it
consistently.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Simon Horman <horms@verge.net.au>
lib/classifier.c
lib/flow.c
lib/flow.h
lib/meta-flow.c

index 33245ae..42e200d 100644 (file)
@@ -266,7 +266,7 @@ cls_rule_set_any_vid(struct cls_rule *rule)
 void
 cls_rule_set_dl_vlan(struct cls_rule *rule, ovs_be16 dl_vlan)
 {
-    flow_set_vlan_vid(&rule->flow, dl_vlan);
+    flow_set_dl_vlan(&rule->flow, dl_vlan);
     if (dl_vlan == htons(OFP10_VLAN_NONE)) {
         rule->wc.vlan_tci_mask = htons(UINT16_MAX);
     } else {
index 5ba3e10..984f5d9 100644 (file)
@@ -968,7 +968,7 @@ flow_hash_fields_valid(enum nx_hash_fields fields)
  *
  *      - Other values of 'vid' should not be used. */
 void
-flow_set_vlan_vid(struct flow *flow, ovs_be16 vid)
+flow_set_dl_vlan(struct flow *flow, ovs_be16 vid)
 {
     if (vid == htons(OFP10_VLAN_NONE)) {
         flow->vlan_tci = htons(0);
index 0cec1c9..315ca36 100644 (file)
@@ -117,7 +117,7 @@ static inline int flow_compare_3way(const struct flow *, const struct flow *);
 static inline bool flow_equal(const struct flow *, const struct flow *);
 static inline size_t flow_hash(const struct flow *, uint32_t basis);
 
-void flow_set_vlan_vid(struct flow *, ovs_be16 vid);
+void flow_set_dl_vlan(struct flow *, ovs_be16 vid);
 void flow_set_vlan_pcp(struct flow *, uint8_t pcp);
 
 void flow_compose(struct ofpbuf *, const struct flow *);
index f575443..27f3bca 100644 (file)
@@ -1218,7 +1218,7 @@ mf_set_flow_value(const struct mf_field *mf,
         break;
 
     case MFF_DL_VLAN:
-        flow_set_vlan_vid(flow, value->be16);
+        flow_set_dl_vlan(flow, value->be16);
         break;
 
     case MFF_DL_VLAN_PCP: