projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vlog: Apply rate-limiting everywhere it seems warranted.
[openvswitch]
/
lib
/
mac-learning.c
diff --git
a/lib/mac-learning.c
b/lib/mac-learning.c
index ad3a0b8dd050c822a4853a8e469e3f8f436ff5a4..8b79dc6f8c585468a0ffb4164927948e87e1f671 100644
(file)
--- a/
lib/mac-learning.c
+++ b/
lib/mac-learning.c
@@
-129,8
+129,9
@@
mac_learning_learn(struct mac_learning *ml,
struct list *bucket;
if (eth_addr_is_multicast(src_mac)) {
struct list *bucket;
if (eth_addr_is_multicast(src_mac)) {
- VLOG_DBG("multicast packet source "ETH_ADDR_FMT,
- ETH_ADDR_ARGS(src_mac));
+ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(30, 30);
+ VLOG_DBG_RL(&rl, "multicast packet source "ETH_ADDR_FMT,
+ ETH_ADDR_ARGS(src_mac));
return false;
}
return false;
}