commit 7a3934d982ef29d8851450b5586319201baa0122
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.
Reviewed: https:/ /review. openstack. org/184318 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=7a3934d982e f29d8851450b558 6319201baa0122
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7a3934d982ef29d 8851450b5586319 201baa0122
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 066c966c252cadc 8ed1d08f686
Closes-Bug: #1455675
Change-Id: I1e6fe5e50b9c13