patch: Refactor to better support new kinds of patches.
authorBen Pfaff <blp@nicira.com>
Fri, 16 Oct 2015 20:08:21 +0000 (13:08 -0700)
committerBen Pfaff <blp@nicira.com>
Sat, 17 Oct 2015 06:52:29 +0000 (23:52 -0700)
commit58bcc67cd136bd1734d108c50b2f91c530d2cb1b
tree51e3aa3d9c8c7801ec476b4a84e122a4b10d016f
parentcb08edc691d863dbac4327fc6c85c6fc2a408e1c
patch: Refactor to better support new kinds of patches.

Until now, the code here lumped together what was necessary to create and
destroy patch ports, with what was necessary to identify the patch ports
that were needed.  An upcoming patch will add new reasons to create patch
ports, so this commit more cleanly separates those two functions.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ovn/controller/patch.c