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

Function clear_stats

dpdk/examples/server_node_efd/efd_server/main.c:204–211  ·  view source on GitHub ↗

* Function to set all the node statistic values to zero. * Called at program startup. */

Source from the content-addressed store, hash-verified

202 * Called at program startup.
203 */
204static void
205clear_stats(void)
206{
207 unsigned int i;
208
209 for (i = 0; i < num_nodes; i++)
210 nodes[i].stats.rx = nodes[i].stats.rx_drop = 0;
211}
212
213/*
214 * send a burst of traffic to a node, assuming there are packets

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected