Print out statistics for one port. */
| 129 | |
| 130 | /* Print out statistics for one port. */ |
| 131 | static void |
| 132 | print_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. */ |
| 147 | static void |