neutron/neutron/tests/unit/agent
Rodolfo Alonso Hernandez 843eccb9ee Improve "OVSFirewallDriver.process_trusted_ports"
FirewallDriver.process_trusted_ports" is called with many ports,
"_initialize_egress_no_port_security" retrieves the VIF ports
("Interface" registers in OVS DB), one per iteration, based in the
port_id. Instead of this procedure, if the DB is called only once to
retrieve all the VIF ports, the performance increase is noticeable.
E.g.: bridge with 1000 ports and interfaces.

Retrieving 100 ports:
- Bulk operation: 0.08 secs
- Loop operation: 5.6 secs

Retrieving 1000 ports:
- Bulk operation: 0.08 secs
- Loop operation: 59 secs

Closes-Bug: #1836095
Related-Bug: #1836023

Change-Id: I5b259717c0fdb8991f1df86b1ef4fb8ad0f18e70
(cherry picked from commit ae1d36fa9d)
2020-01-31 10:34:56 +00:00
..
common Merge "Locate RP-tree parent by hypervisor name" into stable/stein 2020-01-20 02:06:13 +00:00
dhcp Switch to use cast method in dhcp_ready_on_ports method 2019-11-15 15:51:49 +01:00
l2 Add QoS minimum egress bandwidth rule into ovs-agent 2019-02-26 11:05:04 +00:00
l3 Stop verifying unique external_net_id 2020-01-24 10:01:53 +00:00
linux Improve "OVSFirewallDriver.process_trusted_ports" 2020-01-31 10:34:56 +00:00
metadata Revert iptables TCP checksum-fill code 2019-04-29 15:34:15 +00:00
ovsdb Add native OVSDB implementation for bridge monitor 2018-12-03 16:09:06 +00:00
windows remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agent_extensions_manager.py Refactoring config options for l2 agent ext opts 2016-11-21 19:45:04 +00:00
test_resource_cache.py Merge "Fix race condition with enabling SG on many ports at once" 2018-01-27 10:36:37 +00:00
test_rpc.py remove neutron.common.rpc 2019-02-06 11:05:55 -07:00
test_securitygroups_rpc.py Divide-and-conquer security group beasts 2019-04-02 14:30:25 +00:00