ofproto: Increase default datapath max_idle time.
authorJoe Stringer <joestringer@nicira.com>
Fri, 12 Sep 2014 06:03:56 +0000 (06:03 +0000)
committerJoe Stringer <joestringer@nicira.com>
Sun, 14 Sep 2014 22:07:34 +0000 (10:07 +1200)
The datapath max_idle value determines how long to wait before deleting
an idle datapath flow when operating below the flow_limit. This patch
increases the max_idle to 10 seconds, which allows datapath flows to be
remain cached even if they are used less consistently, and provides a
small improvement in the supported number of flows when operating around
the flow_limit.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto.h

index 1b8709a..d60b198 100644 (file)
@@ -267,7 +267,7 @@ int ofproto_port_dump_done(struct ofproto_port_dump *);
         )
 
 #define OFPROTO_FLOW_LIMIT_DEFAULT 200000
-#define OFPROTO_MAX_IDLE_DEFAULT 1500
+#define OFPROTO_MAX_IDLE_DEFAULT 10000 /* ms */
 
 const char *ofproto_port_open_type(const char *datapath_type,
                                    const char *port_type);