MCPcopy Create free account
hub / github.com/F-Stack/f-stack / total_packet_count

Function total_packet_count

dpdk/app/test/test_distributor.c:63–71  ·  view source on GitHub ↗

returns the total count of the number of packets handled by the worker * functions given below. */

Source from the content-addressed store, hash-verified

61 * functions given below.
62 */
63static inline unsigned
64total_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 */
74static inline void

Callers 4

sanity_testFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected