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

Function txgbevf_dev_stats_reset

dpdk/drivers/net/txgbe/txgbe_ethdev_vf.c:458–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458static int
459txgbevf_dev_stats_reset(struct rte_eth_dev *dev)
460{
461 struct txgbevf_hw_stats *hw_stats = (struct txgbevf_hw_stats *)
462 TXGBE_DEV_STATS(dev);
463 uint32_t i;
464
465 /* Sync HW register to the last stats */
466 txgbevf_dev_stats_get(dev, NULL);
467
468 /* reset HW current stats*/
469 for (i = 0; i < 8; i++) {
470 hw_stats->qp[i].vfgprc = 0;
471 hw_stats->qp[i].vfgorc = 0;
472 hw_stats->qp[i].vfgptc = 0;
473 hw_stats->qp[i].vfgotc = 0;
474 }
475
476 return 0;
477}
478
479static int
480txgbevf_dev_info_get(struct rte_eth_dev *dev,

Callers 1

eth_txgbevf_dev_initFunction · 0.85

Calls 1

txgbevf_dev_stats_getFunction · 0.85

Tested by

no test coverage detected