static void nic_xstats_clear(uint8_t port_id) { printf("\n Clearing NIC xstats for port %d\n", port_id); rte_eth_xstats_reset(port_id); printf("\n NIC extended statistics for port %d cleared\n", port_id); }
void nic_xstats_clear(struct cmdline *cl, portid_t port_id) { rte_eth_xstats_reset(port_id); cmdline_printf(cl, "\n NIC extra statistics for port %d cleared\n", port_id); }
void rw_piot_reset_link_stats(rw_piot_api_handle_t api_handle) { rw_piot_device_t *rw_piot_dev = RWPIOT_GET_DEVICE(api_handle); ASSERT(RWPIOT_VALID_DEVICE(rw_piot_dev)); if (NULL == rw_piot_dev) { RW_PIOT_LOG(RTE_LOG_ERR, "PIOT Could not find device by handle or invalid input param\n"); return; } rte_eth_stats_reset(rw_piot_dev->rte_port_id); rte_eth_xstats_reset(rw_piot_dev->rte_port_id); return; }