[ovs-git] [openvswitch/ovs] fd1d92: bridge: Prohibit "default" and "all" bridge name.

GitHub noreply at github.com
Mon May 1 17:21:19 UTC 2017


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: fd1d9276b2a3ed906816f576ee78c4452904e38e
      https://github.com/openvswitch/ovs/commit/fd1d9276b2a3ed906816f576ee78c4452904e38e
  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