[ovs-git] Open vSwitch: bridge: Refactor bridge_reconfigure(). (branch-1.6)

dev at openvswitch.org dev at openvswitch.org
Tue Apr 24 02:13:15 UTC 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, branch-1.6 has been updated
       via  f9bb81ec3c306f968c668ad87783420377a1753f (commit)
       via  0cbc096648c18dd6c374a0f1eb11f9b3a604e634 (commit)
      from  c698e3b1e14025ce067d7e15e4530a86a3895b6c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f9bb81ec3c306f968c668ad87783420377a1753f
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f9bb81ec3c306f968c668ad87783420377a1753f
Author: Ethan Jackson <ethan at nicira.com>
		
bridge: Refactor bridge_reconfigure().
		
The existing bridge_reconfigure() implementation is suboptimal.
When adding lots of new ports, on every pass through the run loop
it allocates a bunch of "struct iface"s and "struct port"s, only to
destroy them when out of time.  Additionally, when there are errors
adding or deleting ports, it can fail to converge.  Instead it will
attempt and fail to add the same set of ports forever.

This patch rewrites bridge_reconfigure() using a new strategy.
Whenever the database changes, some initial bookkeeping is done,
and a list of future work is compiled.  The bridge begins whittling
down this list, and stops processing database changes until
finished.

Bug #10902.
Signed-off-by: Ethan Jackson <ethan at nicira.com>


commit 0cbc096648c18dd6c374a0f1eb11f9b3a604e634
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0cbc096648c18dd6c374a0f1eb11f9b3a604e634
Author: Ethan Jackson <ethan at nicira.com>
		
vswitchd: Remove unused 'tag' from 'struct iface'.
		
Signed-off-by: Ethan Jackson <ethan at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 vswitchd/bridge.c |  811 +++++++++++++++++++++++++++++------------------------
 1 files changed, 440 insertions(+), 371 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list