[ovs-git] [openvswitch/ovs] c9fa41: ifnotifier: do not wake up when there is no db con...
GitHub
noreply at github.com
Mon Oct 31 18:30:43 UTC 2016
Branch: refs/heads/branch-2.6
Home: https://github.com/openvswitch/ovs
Commit: c9fa4119aea93cc2b9c5719ccd9ab80d632e3131
https://github.com/openvswitch/ovs/commit/c9fa4119aea93cc2b9c5719ccd9ab80d632e3131
Author: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
Date: 2016-10-31 (Mon, 31 Oct 2016)
Changed paths:
M vswitchd/bridge.c
Log Message:
-----------
ifnotifier: do not wake up when there is no db connection
When bridge uses the interface notifier, it wakes up until a reconfiguration
takes place. However, if there is no connection or a lock contention to the
database, the check for reconfiguration will not take place.
This uses a seq and only seq_wait when checking for the interfaces change.
This is easily reproduced by starting ovs-vswitchd without starting
ovsdb-server, and then creating a new system interface, like using
'ip link add type veth'. ovs-vswitchd will then consume 100% CPU.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
More information about the git
mailing list