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

Function ixgbevf_update_stats

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

Source from the content-addressed store, hash-verified

3802}
3803
3804static void
3805ixgbevf_update_stats(struct rte_eth_dev *dev)
3806{
3807 struct ixgbe_hw *hw = IXGBE_DEV_PRIVATE_TO_HW(dev->data->dev_private);
3808 struct ixgbevf_hw_stats *hw_stats = (struct ixgbevf_hw_stats *)
3809 IXGBE_DEV_PRIVATE_TO_STATS(dev->data->dev_private);
3810
3811 /* Good Rx packet, include VF loopback */
3812 UPDATE_VF_STAT(IXGBE_VFGPRC,
3813 hw_stats->last_vfgprc, hw_stats->vfgprc);
3814
3815 /* Good Rx octets, include VF loopback */
3816 UPDATE_VF_STAT_36BIT(IXGBE_VFGORC_LSB, IXGBE_VFGORC_MSB,
3817 hw_stats->last_vfgorc, hw_stats->vfgorc);
3818
3819 /* Good Tx packet, include VF loopback */
3820 UPDATE_VF_STAT(IXGBE_VFGPTC,
3821 hw_stats->last_vfgptc, hw_stats->vfgptc);
3822
3823 /* Good Tx octets, include VF loopback */
3824 UPDATE_VF_STAT_36BIT(IXGBE_VFGOTC_LSB, IXGBE_VFGOTC_MSB,
3825 hw_stats->last_vfgotc, hw_stats->vfgotc);
3826
3827 /* Rx Multicst Packet */
3828 UPDATE_VF_STAT(IXGBE_VFMPRC,
3829 hw_stats->last_vfmprc, hw_stats->vfmprc);
3830}
3831
3832static int
3833ixgbevf_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats,

Callers 2

ixgbevf_dev_xstats_getFunction · 0.85
ixgbevf_dev_stats_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected