| 298 | |
| 299 | #ifndef RTE_EXEC_ENV_WINDOWS |
| 300 | static void |
| 301 | stats_display(uint16_t port_id) |
| 302 | { |
| 303 | struct rte_eth_stats stats; |
| 304 | rte_eth_stats_get(port_id, &stats); |
| 305 | |
| 306 | printf(" RX-packets: %-10"PRIu64" RX-missed: %-10"PRIu64" RX-bytes: " |
| 307 | "%-"PRIu64"\n", |
| 308 | stats.ipackets, stats.imissed, stats.ibytes); |
| 309 | printf(" RX-errors: %-10"PRIu64" RX-nombuf: %-10"PRIu64"\n", |
| 310 | stats.ierrors, stats.rx_nombuf); |
| 311 | printf(" TX-packets: %-10"PRIu64" TX-errors: %-10"PRIu64" TX-bytes: " |
| 312 | "%-"PRIu64"\n", |
| 313 | stats.opackets, stats.oerrors, stats.obytes); |
| 314 | } |
| 315 | |
| 316 | static void |
| 317 | signal_handler(int signum) |
no test coverage detected