[ovs-git] [openvswitch/ovs] 7dc44a: bridge: Prohibit "default" and "all" bridge name.
GitHub
noreply at github.com
Mon May 1 17:17:21 UTC 2017
Branch: refs/heads/branch-2.7
Home: https://github.com/openvswitch/ovs
Commit: 7dc44a43be69a60196cfd18890dca676a43145a0
https://github.com/openvswitch/ovs/commit/7dc44a43be69a60196cfd18890dca676a43145a0
Author: William Tu <u9012063 at gmail.com>
Date: 2017-05-01 (Mon, 01 May 2017)
Changed paths:
M lib/netdev-linux.c
Log Message:
-----------
bridge: Prohibit "default" and "all" bridge name.
Under Linux, when users create bridge named "default" or "all", although
ovs-vsctl fails but vswitchd in the background will keep retrying it,
causing the systemd-udev to reach 100% cpu utilization. The patch prevents
any attempt to create or open a netdev named "default" or "all" because
these two names are reserved on Linux due to
/proc/sys/net/ipv4/conf/ always contains directories by these names.
The reason for high CPU utilization is due to frequent calls into kernel's
register_netdevice function, which will invoke several kernel elements who
has registered on the netdevice notifier chain. And due to creation failed,
OVS wakes up and re-recreate the device, which ends up as a high CPU loop.
VMWare-BZ: #1842388
Signed-off-by: William Tu <u9012063 at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Greg Rose <gvrose8192 at gmail.com>
More information about the git
mailing list