neutron/neutron
Rodolfo Alonso Hernandez ae1d36fa9d 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
2019-07-12 15:58:50 +00:00
..
agent Improve "OVSFirewallDriver.process_trusted_ports" 2019-07-12 15:58:50 +00:00
api Add base support for update_port_bulk 2019-07-05 21:07:29 +00:00
cmd Implement "ip route" commands using Pyroute2 2019-06-27 10:07:52 +00:00
common use AuthenticIPNetwork and AuthenticEUI from neutron-lib 2019-06-25 08:47:48 -06:00
conf Implement subnetpool prefix operations 2019-07-01 14:22:51 +00:00
core_extensions Switch to new engine facade for QoS 2019-05-28 08:11:35 +00:00
db Merge "Fix bulk port binding" 2019-07-08 20:38:25 +00:00
debug Remove deprecated 'external_network_bridge' option 2019-03-09 22:07:38 +00:00
extensions Implement subnetpool prefix operations 2019-07-01 14:22:51 +00:00
hacking remove neutron.db.api references 2019-03-05 09:14:50 -07:00
ipam Allow first address in an IPv6 subnet as valid unicast 2019-05-21 16:31:18 +00:00
locale Imported Translations from Zanata 2018-03-03 06:08:46 +00:00
notifiers Notify ironic on port status changes 2019-05-27 13:38:42 +02:00
objects Merge "Fix list security groups performance with RBAC" 2019-07-10 03:37:17 +00:00
pecan_wsgi Use list instead of six.viewkeys to avoid py2 to py3 problems 2019-05-30 14:39:39 -04:00
plugins Merge "Ignore first local port update notification" 2019-07-10 12:27:11 +00:00
privileged Merge "Implement "ip route delete" command using Pyroute2" 2019-07-09 05:18:45 +00:00
quota Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
scheduler Switch to new engine facade for BaseResourceFilter 2019-06-22 15:24:43 +00:00
server Allow neutron-api load config from WSGI process 2018-07-25 15:22:14 +07:00
services Improve "QoSPlugin._validate_create_port_callback" 2019-07-09 16:54:03 +00:00
tests Improve "OVSFirewallDriver.process_trusted_ports" 2019-07-12 15:58:50 +00:00
__init__.py Fix incorrect usage of '# flake8: noqa' 2018-10-29 15:27:50 -04:00
_i18n.py Make code follow log translation guideline 2017-08-14 02:01:48 +00:00
auth.py Use oslo.context class method to construct context object 2017-03-23 09:02:46 +00:00
manager.py Define dhcp_agents_per_network with min=1 2019-05-15 14:08:21 -04:00
neutron_plugin_base_v2.py Do not load default service plugins if core plugin is not DB based 2017-11-09 20:34:52 +00:00
opts.py Add fwaas_v2 log optional configuration in l3_agent.ini 2019-06-14 21:43:24 -04:00
policy.py Treat networks shared by RBAC in same way as shared with all tenants 2019-06-26 22:04:36 +00:00
service.py Merge "Change process name of neutron-server to match worker role" 2019-03-02 14:18:49 +00:00
version.py
worker.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00
wsgi.py Change process name of neutron-server to match worker role 2019-03-01 14:18:09 -05:00