ovn-controller: Persist ovn flow tables
authorRyan Moats <rmoats@us.ibm.com>
Mon, 18 Jul 2016 21:21:16 +0000 (16:21 -0500)
committerBen Pfaff <blp@ovn.org>
Tue, 19 Jul 2016 05:45:51 +0000 (22:45 -0700)
commitfdbdb5956f636d2c9077c47662783945a6859c0a
tree3f2f928eb9a1687145996141924df211e2b52336
parent0643a78b74cdada22061168bad5757a7ba523878
ovn-controller: Persist ovn flow tables

Ensure that ovn flow tables are persisted so that changes to
them chan be applied incrementally - this is a prereq for
making lflow_run and physical_run incremental.

As part of this change, add a one-to-many hindex for finding
desired flows by their parent's UUID.  Also extend the mapping
by match from one-to-one to one-to-many.

Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
[blp@ovn.org adjusted style and comments and added
 HINDEX_FOR_EACH_WITH_HASH_SAFE]
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/hindex.h
ovn/controller/lflow.c
ovn/controller/lflow.h
ovn/controller/ofctrl.c
ovn/controller/ofctrl.h
ovn/controller/ovn-controller.c
ovn/controller/physical.c
ovn/controller/physical.h