ofproto-dpif: Set flow-eviction-threshold globally.
[sliver-openvswitch.git] / ofproto / ofproto-provider.h
index b9d6f0d..23d9180 100644 (file)
@@ -48,9 +48,6 @@ struct ofproto {
     /* Settings. */
     uint64_t fallback_dpid;     /* Datapath ID if no better choice found. */
     uint64_t datapath_id;       /* Datapath ID. */
-    unsigned flow_eviction_threshold; /* Threshold at which to begin flow
-                                       * table eviction. Only affects the
-                                       * ofproto-dpif implementation */
     bool forward_bpdu;          /* Option to allow forwarding of BPDU frames
                                  * when NORMAL action is invoked. */
     char *mfr_desc;             /* Manufacturer (NULL for default)b. */
@@ -119,6 +116,7 @@ struct ofport {
     struct ofputil_phy_port pp;
     uint16_t ofp_port;          /* OpenFlow port number. */
     unsigned int change_seq;
+    long long int created;      /* Time created, in msec. */
     int mtu;
 };
 
@@ -232,6 +230,10 @@ struct rule {
                                  * is expirable, otherwise empty. */
 };
 
+/* Threshold at which to begin flow table eviction. Only affects the
+ * ofproto-dpif implementation */
+extern unsigned flow_eviction_threshold;
+
 static inline struct rule *
 rule_from_cls_rule(const struct cls_rule *cls_rule)
 {