[ovs-dev] [PATCH 1/2] ofproto: Log when learn limit reached.
Joe Stringer
joe at ovn.org
Fri Mar 17 18:38:34 UTC 2017
This commit provides more visibility into conditions where learn limits
are reached when the functionality from patch 4c71600d2256
("ofp-actions: Add limit to learn action.") is used.
VMWare-BZ: #1832142
Signed-off-by: Joe Stringer <joe at ovn.org>
---
ofproto/ofproto.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 09594f1010e1..c6d83d4e6b29 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -5129,6 +5129,12 @@ ofproto_flow_mod_learn(struct ofproto_flow_mod *ofm, bool keep_ref,
ofproto_flow_mod_uninit(ofm);
}
ovs_mutex_unlock(&ofproto_mutex);
+
+ if (limited) {
+ static struct vlog_rate_limit learn_rl = VLOG_RATE_LIMIT_INIT(1, 5);
+ VLOG_INFO_RL(&learn_rl, "Learn limit for flow %"PRIu64" reached.",
+ rule->flow_cookie);
+ }
}
if (!keep_ref && !limited) {
--
2.11.1
More information about the dev
mailing list