X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fnat%2Fin2out_ed.c;h=f8cd89fb8dea8a9203a85783120cc8ba135608f4;hb=e6eaa24f156e908dcbb92209c4f50f8da8066d79;hp=2d2be5c3812332b61cb1ffdba7fa94e5b571bcdb;hpb=b644eb54f268b7cd321bdd35632b31112c6783c6;p=vpp.git diff --git a/src/plugins/nat/in2out_ed.c b/src/plugins/nat/in2out_ed.c index 2d2be5c3812..f8cd89fb8de 100644 --- a/src/plugins/nat/in2out_ed.c +++ b/src/plugins/nat/in2out_ed.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -210,6 +211,8 @@ slow_path_ed (snat_main_t * sm, }; nat44_is_idle_session_ctx_t ctx; + nat44_session_try_cleanup (&key->l_addr, rx_fib_index, thread_index, now); + if (PREDICT_FALSE (maximum_sessions_exceeded (sm, thread_index))) { b->error = node->errors[NAT_IN2OUT_ED_ERROR_MAX_SESSIONS_EXCEEDED];