Hi Wei,

On Thu, 9 Feb 2017 14:50:05 +0000, "Dai, Wei" <wei....@intel.com> wrote:
> > -----Original Message-----
> > From: Dai, Wei
> > Sent: Thursday, February 9, 2017 10:38 PM
> > To: 'Olivier Matz' <olivier.m...@6wind.com>; dev@dpdk.org; Zhang,
> > Helin <helin.zh...@intel.com>; Ananyev, Konstantin
> > <konstantin.anan...@intel.com>
> > Cc: Guo Fengtian <fengtian....@6wind.com>; sta...@dpdk.org
> > Subject: RE: [dpdk-dev] [PATCH] net/ixgbevf: fix stats update after
> > a PF reset
> > 
> > The stats register can rewind to zero when the port is running for
> > a long period. So I am afraid that this check is not always correct.
> > Why not introduce a variable to directly indicate whether the
> > resulted stats should be updated or not.
>
> Another way is to clear
> hw_stats->last_vfgprc/last_vfgorc/last_vfgptc/last_vfmprc at the same
> time PF is set down.
> 

Can we know easily in VF if the PF was set down?

Thanks,
Olivier

Reply via email to