aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_learn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/l2/l2_learn.c')
-rw-r--r--src/vnet/l2/l2_learn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_learn.c b/src/vnet/l2/l2_learn.c
index 47c036b0..623c2de2 100644
--- a/src/vnet/l2/l2_learn.c
+++ b/src/vnet/l2/l2_learn.c
@@ -131,6 +131,8 @@ l2learn_process (vlib_node_runtime_t * node,
if (PREDICT_TRUE (!update))
return;
+ else if (msm->global_learn_count > msm->global_learn_limit)
+ return; /* Above learn limit - do not update */
}
else if (result0->raw == ~0)
{