ofproto: Log when learn limit reached.
This commit provides more visibility into conditions where learn limits
are reached when the functionality from patch
("ofp-actions: Add limit to learn action.") is used.
VMWare-BZ:
Acked-by: Ben Pfaff
@@ -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) {
