commit e6a0e7d27054d5d179c513b3c826a5eaef2077dd
Author: Kevin Benton <email address hidden>
Date: Fri May 15 17:10:15 2015 -0700
Switch to dictionary for iptables find
The code to find the matching entry was scanning through a
list of all rules for every rule. This became extremely slow
as the number of rules became large, leading to long delays
waiting for firewall rules to be applied.
This patch switches to the use of a dictionary so the cost
becomes a hash lookup instead of a list scan.
Closes-Bug: #1453264
Closes-Bug: #1455675
(cherry picked from commit 7a3934d982ef29d8851450b5586319201baa0122)
Reviewed: https:/ /review. openstack. org/224900 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=e6a0e7d2705 4d5d179c513b3c8 26a5eaef2077dd
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit e6a0e7d27054d5d 179c513b3c826a5 eaef2077dd
Author: Kevin Benton <email address hidden>
Date: Fri May 15 17:10:15 2015 -0700
Switch to dictionary for iptables find
The code to find the matching entry was scanning through a
list of all rules for every rule. This became extremely slow
as the number of rules became large, leading to long delays
waiting for firewall rules to be applied.
This patch switches to the use of a dictionary so the cost
becomes a hash lookup instead of a list scan.
Closes-Bug: #1453264 8851450b5586319 201baa0122)
Closes-Bug: #1455675
(cherry picked from commit 7a3934d982ef29d
Conflicts:
neutron/ agent/linux/ iptables_ manager. py
Change-Id: I1e6fe5e50b9c13 066c966c252cadc 8ed1d08f686