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 20:31:32 +0000 (12:31 -0800)
commit0a8763fcb31bfca0d8d854c235c531005088fcb9
tree6ed301db84dc3df7ee14765723ddc09121b77fb5
parent08d74a962e302b752f53a9c367053a39068104ed
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