]> git.proxmox.com Git - ovs.git/commit - tests/ovn.at
ovn-controller: Change strategy for gateway conntrack zone allocation.
authorGurucharan Shetty <guru@ovn.org>
Fri, 8 Jul 2016 07:15:49 +0000 (00:15 -0700)
committerGurucharan Shetty <guru@ovn.org>
Sat, 9 Jul 2016 16:36:15 +0000 (09:36 -0700)
commit34114cf8165b6134a556d07ed22d03e9eac2fe4f
treed64b1eb5507a64bcc41e43522ddc77bbfd1fbf91
parent50c61d46c49756ef7474951ee586fd7ae252484c
ovn-controller: Change strategy for gateway conntrack zone allocation.

Commit 263064aeaa31e7 (Convert binding_run to incremental processing.)
changed the way patched_datapaths were handled. Previously we would
destroy the datastructure in every run and re-create it fresh. The new
way causes problems with the way conntrack zones are allocated as now
we can have stale port_binding entries causing segmentation faults.

With this commit, we simply don't depend on port_binding records in
conntrack zone allocation and instead store the UUID as a string in
the patch_datapath datastructure.

(The test enhanced with this commit would fail without the changes
in the commit. i.e. ovn-controller would crash. )

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
ovn/controller/ovn-controller.c
ovn/controller/ovn-controller.h
ovn/controller/patch.c
ovn/controller/physical.c
ovn/lib/ovn-util.c
ovn/lib/ovn-util.h
tests/ovn.at