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 00:25:17 +0000 (17:25 -0700)
commit40358701d5d7c8994b36260ed539a4d9c6d20cfe
treee6895e41125cc1a3bd0eae87b7533fb0bd158eb8
parent787f3d590be50599387d2ce24d4d26953c1185b0
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