]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
MLNX Agent: Process port_update notifications in the main agent loop
authorRoey Chen <roeyc@mellanox.com>
Sun, 18 May 2014 08:44:00 +0000 (11:44 +0300)
committerroeyc <roeyc@mellanox.com>
Sat, 9 Aug 2014 08:43:57 +0000 (11:43 +0300)
commitfa5eb301dc83f15a30bc40344caca26183147f59
treede2ab7b6148cd9a4474c7829c4c1e1cb71319bd6
parent4d92aa0b5904dbfced76a2bdd92c9e8688cf9984
MLNX Agent: Process port_update notifications in the main agent loop

This patch changes the way mlnx agent process port_update notifications.
It does the same for the mlnx agent as was done for the ovs-agent in
I219c6bdf63b0b5e945b655677f9e28fa591f03cd.
Processing a port_update notification directly in the RPC
call may cause competition with the main RPC loop.
To prevent this problem, the actual process of ports updates is done
in the main RPC loop, whereas the RPC call merely adds the updated
port MAC address to a set of updated ports.
port_update notifications received within a single main loop iteration
will be coalesced and processed only once.

Closes-Bug: 1279655
Change-Id: I63dda60cb3cf171e5e9111a1ecf95e45e1d86362
Signed-off-by: Roey Chen <roeyc@mellanox.com>
neutron/plugins/mlnx/agent/eswitch_neutron_agent.py
neutron/tests/unit/mlnx/test_mlnx_neutron_agent.py