> -----Original Message----- > From: Zhang, Qi Z > Sent: Saturday, May 19, 2018 10:18 AM > To: Horton, Remy; dev@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@dpdk.org > > Cc: Yigit, Ferruh <ferruh.yi...@intel.com>; Zhang, Qi Z > > <qi.z.zh...@intel.com>; Xing, Beilei <beilei.x...@intel.com>; Zhang, > > Helin <helin.zh...@intel.com>; Wu, Jingjing <jingjing...@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.hor...@intel.com> > > Title prefix should be "net/i40e", could be fix during apply > > Acked-by: Qi Zhang <qi.z.zh...@intel.com> Applied to dpdk-next-net-intel, thanks!
/Helin