[dpdk-dev] [PATCH v2] i40e: fix corruption of VF stats via port representor

Zhang, Helin helin.zhang at intel.com
Mon May 21 03:17:03 CEST 2018



> -----Original Message-----
> From: Zhang, Qi Z
> Sent: Saturday, May 19, 2018 10:18 AM
> To: Horton, Remy; dev at dpdk.org
> Cc: Yigit, Ferruh; Xing, Beilei; Zhang, Helin; Wu, Jingjing
> Subject: RE: [PATCH v2] i40e: fix corruption of VF stats via port representor
> 
> 
> 
> > -----Original Message-----
> > From: Horton, Remy
> > Sent: Friday, May 18, 2018 7:50 PM
> > To: dev at dpdk.org
> > Cc: Yigit, Ferruh <ferruh.yigit at intel.com>; Zhang, Qi Z
> > <qi.z.zhang at intel.com>; Xing, Beilei <beilei.xing at intel.com>; Zhang,
> > Helin <helin.zhang at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>
> > Subject: [PATCH v2] i40e: fix corruption of VF stats via port
> > representor
> >
> > The resetting of stats on a VF involves the setting of an offset that
> > is subtracted from future calls, rather zeroing of counters.
> > However doing a stats reset on the port representor was also adjusting
> > the values forwarded to the VF, which had the effect of corrupting the
> > VF's counters. The fix is for the port representor to maintain its own
> > stats offset, so the port representor and VF maintain independently-
> resettable counters.
> >
> > Fixes: e0cb96204b71 ("net/i40e: add support for representor ports")
> >
> > Signed-off-by: Remy Horton <remy.horton at intel.com>
> 
> Title prefix should be "net/i40e", could be fix during apply
> 
> Acked-by: Qi Zhang <qi.z.zhang at intel.com>
Applied to dpdk-next-net-intel, thanks!

/Helin


More information about the dev mailing list