]> git.proxmox.com Git - mirror_ovs.git/commit
vswitch: ratelimit the device add log
authorAaron Conole <aconole@redhat.com>
Mon, 16 Sep 2019 15:16:57 +0000 (11:16 -0400)
committerBen Pfaff <blp@ovn.org>
Mon, 23 Sep 2019 22:22:22 +0000 (15:22 -0700)
commit45bd8c563273fb914ff1960a53cfdcfddb0a5588
treef48380fce44d9d1cda68fe8b7cb12bc8503360f8
parent8720575c7dc998300b03c8c6cd36b4ce682f8fbf
vswitch: ratelimit the device add log

It's possible that a port added to the system with certain kinds
of invalid parameters will cause the 'could not add' log to be
triggered.  When this happens, the vswitch run loop can continually
re-attempt adding the port.  While the parameters remain invalid
the vswitch run loop will re-trigger the warning, flooding the
syslog.

This patch adds a simple rate limit to the log.

Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
vswitchd/bridge.c