]> git.proxmox.com Git - mirror_ovs.git/commit - ofproto/bundles.c
ofproto: Add a fixed bundle idle timeout of 10 seconds.
authorJarno Rajahalme <jarno@ovn.org>
Tue, 13 Sep 2016 21:46:16 +0000 (14:46 -0700)
committerJarno Rajahalme <jarno@ovn.org>
Tue, 13 Sep 2016 21:47:22 +0000 (14:47 -0700)
commit51bb26fae190519451b1e95569d7425bef7fec84
tree5a3a1450f7e2f4a310c7b2a94a5cb2e42c6728a4
parent68030e16f6b8f91c5e3da676797d4c3dcc498b2d
ofproto: Add a fixed bundle idle timeout of 10 seconds.

Timing out idle bundles frees memory that would effectively be leaked
if a long standing OpenFlow connection would fail to commit or discard
a bundle.

OpenFlow specification mandates the timeout to be at least one second,
if the switch implements such a timeout.  This patch makes the bundle
idle timeout to be 10 seconds.

We do not limit the number of messages in a bundle, so it does not
make sense to limit the number of bundles either, especially now that
idle bundles are timed out.

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
NEWS
ofproto/bundles.c
ofproto/bundles.h
ofproto/connmgr.c
ofproto/ofproto.c
tests/ofproto.at
vswitchd/ovs-vswitchd.8.in