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

Function print_port_stats

dpdk/examples/dma/dmafwd.c:131–144  ·  view source on GitHub ↗

Print out statistics for one port. */

Source from the content-addressed store, hash-verified

129
130/* Print out statistics for one port. */
131static void
132print_port_stats(uint16_t port_id)
133{
134 printf("\nStatistics for port %u ------------------------------"
135 "\nPackets sent: %34"PRIu64
136 "\nPackets received: %30"PRIu64
137 "\nPackets dropped on tx: %25"PRIu64
138 "\nPackets dropped on copy: %23"PRIu64,
139 port_id,
140 port_statistics.tx[port_id],
141 port_statistics.rx[port_id],
142 port_statistics.tx_dropped[port_id],
143 port_statistics.copy_dropped[port_id]);
144}
145
146/* Print out statistics for one dmadev device. */
147static void

Callers 1

print_statsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected