[ovs-git] Open vSwitch: Make ovs-vswitchd report when it is done configuring; make ovs-vsctl wait. (next)

dev at openvswitch.org dev at openvswitch.org
Thu Dec 17 00:26:31 UTC 2009


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, next has been updated
       via  b54e22e91eee43eb04ad53e2fa919be44f34e731 (commit)
      from  722f63016f302da114e3afb145bd0c1af5aaeb8f (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 b54e22e91eee43eb04ad53e2fa919be44f34e731
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=b54e22e91eee43eb04ad53e2fa919be44f34e731
Author: Ben Pfaff <blp at nicira.com>
		
Make ovs-vswitchd report when it is done configuring; make ovs-vsctl wait.
		
Until now the ovsdb-based vswitch has provided no way to know when it has
finished applying the configuration from the database.  This commit
introduces a way:

  * The client who wants to wait increments the "next_cfg" column of the
    Open_vSwitch record.

  * When ovs-vswitchd finishes reconfiguring, it sets the value of the
    "cur_cfg" column to that of the "next_cfg" column.

  * The client waits until the "cur_cfg" column is at least as great as
    the value it set into "next_cfg".

This allows us to drop the 5-second sleep in interface-reconfigure.


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

Summary of changes:
 lib/ovsdb-idl.c                                    |  142 +++++++++++++++++++-
 lib/ovsdb-idl.h                                    |    7 +
 tests/ovs-vsctl.at                                 |    6 +-
 tests/ovsdb-idl.at                                 |   11 ++
 tests/test-ovsdb.c                                 |   14 ++-
 utilities/ovs-vsctl.c                              |   49 +++++++-
 vswitchd/bridge.c                                  |    2 +
 vswitchd/vswitch-idl.ovsidl                        |    8 +-
 .../opt_xensource_libexec_interface-reconfigure    |    1 -
 9 files changed, 232 insertions(+), 8 deletions(-)


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list