| 876 | } |
| 877 | |
| 878 | static void |
| 879 | nic_xstats_clear(uint16_t port_id) |
| 880 | { |
| 881 | int ret; |
| 882 | |
| 883 | printf("\n Clearing NIC xstats for port %d\n", port_id); |
| 884 | ret = rte_eth_xstats_reset(port_id); |
| 885 | if (ret != 0) { |
| 886 | printf("\n Error clearing xstats for port %d: %s\n", port_id, |
| 887 | strerror(-ret)); |
| 888 | return; |
| 889 | } |
| 890 | |
| 891 | printf("\n NIC extended statistics for port %d cleared\n", port_id); |
| 892 | } |
| 893 | |
| 894 | #ifdef RTE_LIB_METRICS |
| 895 | static void |
no test coverage detected