Increase default MAC learn limit and check it in learn-update path
[vpp.git] / src / vnet / l2 / l2_api.c
index c81cbad..7e79d6f 100644 (file)
@@ -284,7 +284,10 @@ vl_api_want_l2_macs_events_t_handler (vl_api_want_l2_macs_events_t * mp)
     {
       lm->client_pid = 0;
       lm->client_index = 0;
-      lm->global_learn_limit = L2LEARN_DEFAULT_LIMIT;
+      if (learn_limit)
+       lm->global_learn_limit = learn_limit;
+      else
+       lm->global_learn_limit = L2LEARN_DEFAULT_LIMIT;
     }
 
 exit: