returns the total count of the number of packets handled by the worker * functions given below. */
| 61 | * functions given below. |
| 62 | */ |
| 63 | static inline unsigned |
| 64 | total_packet_count(void) |
| 65 | { |
| 66 | unsigned i, count = 0; |
| 67 | for (i = 0; i < worker_idx; i++) |
| 68 | count += __atomic_load_n(&worker_stats[i].handled_packets, |
| 69 | __ATOMIC_RELAXED); |
| 70 | return count; |
| 71 | } |
| 72 | |
| 73 | /* resets the packet counts for a new test */ |
| 74 | static inline void |
no outgoing calls
no test coverage detected