]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
OVS agent: flush firewall rules for all deleted ports at once
authorOleg Bondarev <obondarev@mirantis.com>
Thu, 3 Sep 2015 12:13:25 +0000 (15:13 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Fri, 4 Sep 2015 11:50:45 +0000 (14:50 +0300)
commitda81ae88929c389f0ba8660c4c8dfb79eec7c0fd
tree161ab11f55286923d9637541cd75b5edecae091a
parent3ce9473bab1c054aa027ca9f84e8a2586e297958
OVS agent: flush firewall rules for all deleted ports at once

In some cases, under high load OVS agent has to delete a big amount of
ports during rpc_loop. remove_devices_filter() does iptables-save/restore
for IPv4 and IPv6 which is 4 system calls. It is very expensive and
inefficient to call it for each port individually.

Closes-Bug: #1491922
Change-Id: I4cfb2dfcef5088436c7aaae22c8f66e1ea052311
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py