Hi Wei,

On Thu, 9 Feb 2017 14:50:05 +0000, "Dai, Wei" <[email protected]> wrote:
> > -----Original Message-----
> > From: Dai, Wei
> > Sent: Thursday, February 9, 2017 10:38 PM
> > To: 'Olivier Matz' <[email protected]>; [email protected]; Zhang,
> > Helin <[email protected]>; Ananyev, Konstantin
> > <[email protected]>
> > Cc: Guo Fengtian <[email protected]>; [email protected]
> > 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