ip: reassembly: LRU algorithm should eliminate the longest unused nodes
[vpp.git] / src / vnet / ip / reass / ip6_sv_reass.c
index 6d707af..7c13f4b 100644 (file)
@@ -329,7 +329,7 @@ ip6_sv_reass_find_or_create (vlib_main_t * vm, vlib_node_runtime_t * node,
 
   if (rt->reass_n >= rm->max_reass_n)
     {
-      reass = pool_elt_at_index (rt->pool, rt->lru_last);
+      reass = pool_elt_at_index (rt->pool, rt->lru_first);
       ip6_sv_reass_free (vm, rm, rt, reass);
     }