tcp: consume incoming buffers instead of reusing
[vpp.git] / src / vnet / session / session_node.c
index edc518e..64c873c 100644 (file)
@@ -751,10 +751,9 @@ static void
 session_update_dispatch_period (session_manager_worker_t * wrk, f64 now,
                                u32 thread_index)
 {
-  if (wrk->last_tx_packets > 8)
+  if (wrk->last_tx_packets > 1)
     {
       f64 sample = now - wrk->last_vlib_time;
-      sample = (sample * wrk->last_tx_packets) / VLIB_FRAME_SIZE;
       wrk->dispatch_period = (wrk->dispatch_period + sample) * 0.5;
     }
   wrk->last_vlib_time = now;