[dpdk-dev] [PATCH] net/ixgbevf: fix stats update after a PF reset

Olivier Matz olivier.matz at 6wind.com
Tue Mar 14 10:46:40 CET 2017


Hi Wei,

On Thu, 16 Feb 2017 17:49:22 +0100, Olivier Matz <olivier.matz at 6wind.com> wrote:
> Hi Wei,
> 
> On Thu, 9 Feb 2017 14:50:05 +0000, "Dai, Wei" <wei.dai at intel.com> wrote:
> > > -----Original Message-----
> > > From: Dai, Wei
> > > Sent: Thursday, February 9, 2017 10:38 PM
> > > To: 'Olivier Matz' <olivier.matz at 6wind.com>; dev at dpdk.org; Zhang,
> > > Helin <helin.zhang at intel.com>; Ananyev, Konstantin
> > > <konstantin.ananyev at intel.com>
> > > Cc: Guo Fengtian <fengtian.guo at 6wind.com>; stable at 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?

Any guideline for this? Or is it something we cannot fix?

Thanks,
Olivier


More information about the dev mailing list