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

Function ixgbevf_dev_stats_get

dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:3858–3874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3856}
3857
3858static int
3859ixgbevf_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
3876static int
3877ixgbevf_dev_stats_reset(struct rte_eth_dev *dev)

Callers 1

ixgbevf_dev_stats_resetFunction · 0.85

Calls 1

ixgbevf_update_statsFunction · 0.85

Tested by

no test coverage detected