ovs-vswitchd: An option to wait for userspace flow restore to complete.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 28 May 2013 12:52:36 +0000 (12:52 +0000)
committerGurucharan Shetty <gshetty@nicira.com>
Fri, 31 May 2013 16:55:42 +0000 (09:55 -0700)
commit80618629008bd9ab8b9fa428b16def9d9134c6b2
tree16f749456634d3034c4e37bc7a48171f073d84b4
parent21a647f72908090793dab9a842476be07b2c3ee2
ovs-vswitchd: An option to wait for userspace flow restore to complete.

While upgrading openvswitch, it helps to restore openflow flows before
starting packet processing.  Typically we want to restart openvswitch,
add the openflow flows and then start packet processing.

To do this, we look for the other_config:flow-restore-wait column
in the Open_vSwitch table during startup. If set as true, we disable
receiving packets from the datapath, expiring or flushing flows and
running any periodic ofproto activities. This option does not prevent
the addition and deletion of ports. Once this option is set to false,
we return to normal processing.

An upcoming commit will use this feature in Open vSwitch startup scripts.

Bug #16086.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
ofproto/ofproto-dpif.c
ofproto/ofproto.c
ofproto/ofproto.h
vswitchd/bridge.c
vswitchd/vswitch.xml