* returns the total count of the number of packets handled by the worker * functions given below. */
| 96 | * functions given below. |
| 97 | */ |
| 98 | static unsigned |
| 99 | total_packet_count(void) |
| 100 | { |
| 101 | unsigned i, count = 0; |
| 102 | for (i = 0; i < worker_idx; i++) |
| 103 | count += worker_stats[i].handled_packets; |
| 104 | return count; |
| 105 | } |
| 106 | |
| 107 | /* resets the packet counts for a new test */ |
| 108 | static void |