FreeBSD/sys/dev/ixgbe/if_ixv.c
/*
** ixv_update_stats - Update the board statistics counters.
*/
Update the board statistics counters.
Update the board statistics counters .
void
ixv_update_stats(struct adapter *adapter)
{
        struct ixgbe_hw *hw = &adapter->hw;
        UPDATE_STAT_32(IXGBE_VFGPRC, adapter->stats.vf.last_vfgprc,
	    adapter->stats.vf.vfgprc);
        UPDATE_STAT_32(IXGBE_VFGPTC, adapter->stats.vf.last_vfgptc,
	    adapter->stats.vf.vfgptc);
        UPDATE_STAT_36(IXGBE_VFGORC_LSB, IXGBE_VFGORC_MSB,
	    adapter->stats.vf.last_vfgorc, adapter->stats.vf.vfgorc);
        UPDATE_STAT_36(IXGBE_VFGOTC_LSB, IXGBE_VFGOTC_MSB,
	    adapter->stats.vf.last_vfgotc, adapter->stats.vf.vfgotc);
        UPDATE_STAT_32(IXGBE_VFMPRC, adapter->stats.vf.last_vfmprc,
	    adapter->stats.vf.vfmprc);
}
void ixv_update_stats ( struct adapter * adapter ) { struct ixgbe_hw * hw = & adapter -> hw ; UPDATE_STAT_32 ( IXGBE_VFGPRC , adapter -> stats . vf . last_vfgprc , adapter -> stats . vf . vfgprc ) ; UPDATE_STAT_32 ( IXGBE_VFGPTC , adapter -> stats . vf . last_vfgptc , adapter -> stats . vf . vfgptc ) ; UPDATE_STAT_36 ( IXGBE_VFGORC_LSB , IXGBE_VFGORC_MSB , adapter -> stats . vf . last_vfgorc , adapter -> stats . vf . vfgorc ) ; UPDATE_STAT_36 ( IXGBE_VFGOTC_LSB , IXGBE_VFGOTC_MSB , adapter -> stats . vf . last_vfgotc , adapter -> stats . vf . vfgotc ) ; UPDATE_STAT_32 ( IXGBE_VFMPRC , adapter -> stats . vf . last_vfmprc , adapter -> stats . vf . vfmprc ) ; }
ixv_update_stats - Update the board statistics counters.
ixv_update_stats - Update the board statistics counters .