ovn-controller: Refactor conntrack zone allocation.
authorGurucharan Shetty <guru@ovn.org>
Tue, 10 May 2016 23:35:05 +0000 (16:35 -0700)
committerGurucharan Shetty <guru@ovn.org>
Fri, 3 Jun 2016 02:46:00 +0000 (19:46 -0700)
commita478c4efef4da7f30bc559818712eeca6e2d00b3
treed8a0d81f5e152ba0ee15c609df1ebe9ae9e270db
parentc1645003c8acd3d28e1cef3597a6e931388e3190
ovn-controller: Refactor conntrack zone allocation.

We currently allocate conntrack zones in binding.c. It fits
in nicely there because we currently only allocate conntrack
zones to logical ports and binding.c is where we figure out
the local ones.

An upcoming commit needs conntrack zone allocation for routers
in a gateway. For that reason, this commit moves conntrack zone
allocation code to ovn-controller.c where it would be easily
accessible for router zone allocation too.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
ovn/controller/binding.c
ovn/controller/binding.h
ovn/controller/ovn-controller.c