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

Function clear_packet_count

dpdk/app/test/test_distributor.c:74–81  ·  view source on GitHub ↗

resets the packet counts for a new test */

Source from the content-addressed store, hash-verified

72
73/* resets the packet counts for a new test */
74static inline void
75clear_packet_count(void)
76{
77 unsigned int i;
78 for (i = 0; i < RTE_MAX_LCORE; i++)
79 __atomic_store_n(&worker_stats[i].handled_packets, 0,
80 __ATOMIC_RELAXED);
81}
82
83/* this is the basic worker function for sanity test
84 * it does nothing but return packets and count them.

Callers 5

sanity_testFunction · 0.70
sanity_mark_testFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected