ovn-controller: Move local_datapaths calculation.
authorRussell Bryant <russell@ovn.org>
Fri, 15 Jan 2016 19:30:41 +0000 (14:30 -0500)
committerRussell Bryant <russell@ovn.org>
Wed, 3 Feb 2016 14:22:30 +0000 (09:22 -0500)
commitbda5a056ba652c4e399412a0853313af46b35379
tree47f8b0251aadfedf635af6676c33be91f4867c0a
parentd916785ce98ccdaab4f4f0676d564852fb7c9451
ovn-controller: Move local_datapaths calculation.

Before this patch, physical.c build up the set of local datapaths for
its own use.  I'd like to use it in another module in a later patch, so
pull it out of physical.  It's now populated by the bindings module,
since that seems like a more appropriate place to do it, and it's also
done much earlier in the main loop, making it easier to re-use.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Han Zhou <zhouhan@gmail.com>
Acked-by: Ben Pfaff <blp@ovn.org>
ovn/controller/binding.c
ovn/controller/binding.h
ovn/controller/ovn-controller.c
ovn/controller/physical.c
ovn/controller/physical.h