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

dev at openvswitch.org dev at openvswitch.org
Tue Apr 24 02:03:00 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, master has been updated
       via  bae7208e91a08e355d24eb6173170f12dd458776 (commit)
       via  f5787280d41df592a62fe10c42a61c60f077388c (commit)
      from  56e9c3b9982bd616e88b84ee77a41278f73642a9 (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 bae7208e91a08e355d24eb6173170f12dd458776
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=bae7208e91a08e355d24eb6173170f12dd458776
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 f5787280d41df592a62fe10c42a61c60f077388c
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f5787280d41df592a62fe10c42a61c60f077388c
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 |  815 +++++++++++++++++++++++++++++------------------------
 1 files changed, 442 insertions(+), 373 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list