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

Function nic_xstats_clear

dpdk/app/proc-info/main.c:878–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878static void
879nic_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
895static void

Callers 1

mainFunction · 0.70

Calls 2

rte_eth_xstats_resetFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected