The ovs l2 agent was previously calling get_vif_port_set() on the
integration bridge once per rpc_loop() iteration and then again in
the periodic _report_state() call that returns the current device
count to the neutron service. Since get_vif_port_set() is an
expensive call (relying on shell commands) and since there
is minimal risk associated with reporting stats that are a few
seconds old, this patch caches the device count for reuse by
_report_state().
Reviewed: https:/ /review. openstack. org/43256 github. com/openstack/ neutron/ commit/ 1f9b4e77d93b165 a0aeeaae0de6103 89debd5198
Committed: http://
Submitter: Jenkins
Branch: master
commit 1f9b4e77d93b165 a0aeeaae0de6103 89debd5198
Author: Maru Newby <email address hidden>
Date: Thu Aug 22 07:57:00 2013 +0000
Minimize ovs l2 agent calls to get_vif_port_set()
The ovs l2 agent was previously calling get_vif_port_set() on the state() .
integration bridge once per rpc_loop() iteration and then again in
the periodic _report_state() call that returns the current device
count to the neutron service. Since get_vif_port_set() is an
expensive call (relying on shell commands) and since there
is minimal risk associated with reporting stats that are a few
seconds old, this patch caches the device count for reuse by
_report_
Partial-Bug: 1177973
Change-Id: Ice73384ed1ba1e 97120028cd0a9bf f94a62a41a4