]> git.proxmox.com Git - ovs.git/commit - vswitchd/bridge.c
bridge: Rate limit port creations and deletions.
authorEthan Jackson <ethan@nicira.com>
Sat, 7 Apr 2012 01:38:48 +0000 (18:38 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 11 Apr 2012 20:46:04 +0000 (13:46 -0700)
commitc7e7bb21ff20f6fb2ca6509d9cffeca895fcbc78
treea430b6b1802b84ce4997497b6f30d072bfad089e
parent7e041ba51410125ec74cba2b5f0b6f1b0481baa9
bridge: Rate limit port creations and deletions.

In some datapaths, adding or deleting OpenFlow ports can take quite
a bit of time.  If there are lots of OpenFlow ports which needed to
be added in a run loop, this can cause Open vSwitch to lock up and
stop setting up flows while trying to catch up.  This patch lessons
the severity of the problem by only doing a few OpenFlow port adds
or deletions per run loop allowing other work to be done in
between.

Bug #10672.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
vswitchd/bridge.c