src/sys/dev/ixgbe/if_ixv.c
/************************************************************************
 * ixv_save_stats
 *
 *   The VF stats registers never have a truly virgin
 *   starting point, so this routine tries to make an
 *   artificial one, marking ground zero on attach as
 *   it were.
 ************************************************************************/
ixv_save_stats
The VF stats registers never have a truly virgin
starting point, so this routine tries to make an
artificial one, marking ground zero on attach as
it were.
ixv_save_stats The VF stats registers never have a truly virgin starting point so this routine tries to make an artificial one marking ground zero on attach as it were .
static void
ixv_save_stats(struct adapter *adapter)
{
	if (adapter->stats.vf.vfgprc || adapter->stats.vf.vfgptc) {
		adapter->stats.vf.saved_reset_vfgprc +=
		    adapter->stats.vf.vfgprc - adapter->stats.vf.base_vfgprc;
		adapter->stats.vf.saved_reset_vfgptc +=
		    adapter->stats.vf.vfgptc - adapter->stats.vf.base_vfgptc;
		adapter->stats.vf.saved_reset_vfgorc +=
		    adapter->stats.vf.vfgorc - adapter->stats.vf.base_vfgorc;
		adapter->stats.vf.saved_reset_vfgotc +=
		    adapter->stats.vf.vfgotc - adapter->stats.vf.base_vfgotc;
		adapter->stats.vf.saved_reset_vfmprc +=
		    adapter->stats.vf.vfmprc - adapter->stats.vf.base_vfmprc;
	}
}
static void ixv_save_stats ( struct adapter * adapter ) { if ( adapter -> stats . vf . vfgprc || adapter -> stats . vf . vfgptc ) { adapter -> stats . vf . saved_reset_vfgprc += adapter -> stats . vf . vfgprc - adapter -> stats . vf . base_vfgprc ; adapter -> stats . vf . saved_reset_vfgptc += adapter -> stats . vf . vfgptc - adapter -> stats . vf . base_vfgptc ; adapter -> stats . vf . saved_reset_vfgorc += adapter -> stats . vf . vfgorc - adapter -> stats . vf . base_vfgorc ; adapter -> stats . vf . saved_reset_vfgotc += adapter -> stats . vf . vfgotc - adapter -> stats . vf . base_vfgotc ; adapter -> stats . vf . saved_reset_vfmprc += adapter -> stats . vf . vfmprc - adapter -> stats . vf . base_vfmprc ; } }
ixv_save_stats
   The VF stats registers never have a truly virgin
   starting point, so this routine tries to make an
   artificial one, marking ground zero on attach as
   it were.
ixv_save_stats The VF stats registers never have a truly virgin starting point so this routine tries to make an artificial one marking ground zero on attach as it were .