| 456 | } |
| 457 | |
| 458 | static int |
| 459 | txgbevf_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 | |
| 479 | static int |
| 480 | txgbevf_dev_info_get(struct rte_eth_dev *dev, |
no test coverage detected