ofproto: Fix typo in macro name.
authorBen Pfaff <blp@nicira.com>
Fri, 12 Oct 2012 20:18:41 +0000 (13:18 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 12 Oct 2012 20:18:41 +0000 (13:18 -0700)
I like the sound of "evicton" but it isn't a real word.

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

index 9d25a13f0a97be1415d8b420c3a6d5daf90f2af8..9003a2d0ebf498ca714219598c7ff82a73ba7908 100644 (file)
@@ -379,7 +379,7 @@ ofproto_create(const char *datapath_name, const char *datapath_type,
                 hash_string(ofproto->name, 0));
     ofproto->datapath_id = 0;
     ofproto_set_flow_eviction_threshold(ofproto,
-                                        OFPROTO_FLOW_EVICTON_THRESHOLD_DEFAULT);
+                                        OFPROTO_FLOW_EVICTION_THRESHOLD_DEFAULT);
     ofproto->forward_bpdu = false;
     ofproto->fallback_dpid = pick_fallback_dpid();
     ofproto->mfr_desc = xstrdup(DEFAULT_MFR_DESC);
index 32a00f232b1ff9b6a646555bd1d1f8fe52da2a58..5599cd6a1750af59be7707a7508f1f948440019b 100644 (file)
@@ -190,7 +190,7 @@ int ofproto_port_dump_done(struct ofproto_port_dump *);
           : (ofproto_port_dump_done(DUMP), false));         \
         )
 
-#define OFPROTO_FLOW_EVICTON_THRESHOLD_DEFAULT  1000
+#define OFPROTO_FLOW_EVICTION_THRESHOLD_DEFAULT  1000
 #define OFPROTO_FLOW_EVICTION_THRESHOLD_MIN 100
 
 int ofproto_port_add(struct ofproto *, struct netdev *, uint16_t *ofp_portp);
index d161c4c14c6a5113d5a5f8f43406bb0c53b7c105..b9df794d8c550394e4b43a5a9211d0bdf8655ba7 100644 (file)
@@ -1417,7 +1417,7 @@ bridge_configure_flow_eviction_threshold(struct bridge *br)
     if (threshold_str) {
         threshold = strtoul(threshold_str, NULL, 10);
     } else {
-        threshold = OFPROTO_FLOW_EVICTON_THRESHOLD_DEFAULT;
+        threshold = OFPROTO_FLOW_EVICTION_THRESHOLD_DEFAULT;
     }
     ofproto_set_flow_eviction_threshold(br->ofproto, threshold);
 }