| 3856 | } |
| 3857 | |
| 3858 | static int |
| 3859 | ixgbevf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) |
| 3860 | { |
| 3861 | struct ixgbevf_hw_stats *hw_stats = (struct ixgbevf_hw_stats *) |
| 3862 | IXGBE_DEV_PRIVATE_TO_STATS(dev->data->dev_private); |
| 3863 | |
| 3864 | ixgbevf_update_stats(dev); |
| 3865 | |
| 3866 | if (stats == NULL) |
| 3867 | return -EINVAL; |
| 3868 | |
| 3869 | stats->ipackets = hw_stats->vfgprc; |
| 3870 | stats->ibytes = hw_stats->vfgorc; |
| 3871 | stats->opackets = hw_stats->vfgptc; |
| 3872 | stats->obytes = hw_stats->vfgotc; |
| 3873 | return 0; |
| 3874 | } |
| 3875 | |
| 3876 | static int |
| 3877 | ixgbevf_dev_stats_reset(struct rte_eth_dev *dev) |
no test coverage detected