]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Defer freeing of conntrack zone ids until allocation fails
authorBrian Haley <brian.haley@hp.com>
Fri, 21 Aug 2015 21:21:44 +0000 (17:21 -0400)
committerBrian Haley <brian.haley@hp.com>
Mon, 24 Aug 2015 17:11:08 +0000 (13:11 -0400)
commita2f1c69d4cf952e8ed36ef3df139bc216127c9c5
treead40a9b8107ef5d881704808878f4ee2c8ac0a7f
parent6f109bd6423a01d8aadd099652a3909fff89f090
Defer freeing of conntrack zone ids until allocation fails

Instead of freeing the conntrack zone ids from removed ports
right before allocating a new one, wait until there is an
allocation error.  This removes the overhead from the initial
zone id creation.  Since there are 64K zone ids we might not
ever need to clean stale ones anyway.

Change-Id: Ie2d33f8d4650b7798d4ffdeb3ea79cc1092d6c2c
neutron/agent/linux/iptables_firewall.py
neutron/common/exceptions.py
neutron/tests/unit/agent/linux/test_iptables_firewall.py