ofproto-dpif-upcall: Hardcode max_idle to 1500ms.
authorEthan Jackson <ethan@nicira.com>
Tue, 28 Jan 2014 00:40:27 +0000 (16:40 -0800)
committerEthan Jackson <ethan@nicira.com>
Wed, 29 Jan 2014 21:44:42 +0000 (13:44 -0800)
commitccf59c9b9a738bcb43ba018768098be665ddb5db
tree542a28b3232e40e14166bc65e77cb95b5825a2b2
parentce7f31f3119565b17615bf6969709aff4bbe66de
ofproto-dpif-upcall: Hardcode max_idle to 1500ms.

Before this patch, OVS tried to guess an optimal max idle time for
datapath flows based on the number of datapath flows relative to the
limit.  This caused instability because the limit was based on the
dump duration which was affected by the max idle time.  This patch
chooses instead to hardcode the max idle time to 1.5s except in
extreme case where the datapath flow limit is exceeded.  1.5s was
chosen to ensure pings occurring at once per second stay cached in the
datapath.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
ofproto/ofproto-dpif-upcall.c
tests/ofproto-dpif.at