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>
Thu, 12 Apr 2012 01:03:40 +0000 (18:03 -0700)
commitff54de17978989a2d39cfcd2bdef516be93cf9cd
tree91c1423de5d844a3ca1a4e4d32341a857510032c
parent708bffaa6f20809251e07ba28afbebe7c14f9e39
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