+
+ /* *INDENT-OFF* */
+ pool_foreach (sp, tm->sessions,
+ ({
+ rx_total += sp->bytes_received;
+ sp->bytes_received = 0;
+ sp->bytes_to_send = tm->bytes_to_send;
+ }));
+ /* *INDENT-ON* */
+ }
+ after = clib_time_now (&ttime);
+
+ clib_warning ("Done %d iterations, %lld bytes in %.2f secs",
+ tm->n_iterations, rx_total, (after - before));
+ if ((after - before) != 0.0)
+ {
+ clib_warning ("%.2f bytes/second full-duplex",
+ ((f64) rx_total) / (after - before));
+ clib_warning ("%.4f gbit/second full-duplex",
+ (((f64) rx_total * 8.0) / (after - before)) / 1e9);