[dpdk-dev] [PATCH] i40e: fix packet stats getting

2016-04-21 Thread Bruce Richardson
On Tue, Apr 19, 2016 at 07:21:16AM +0100, Zhang, Helin wrote: > > > > -Original Message- > > From: Wu, Jingjing > > Sent: Tuesday, April 19, 2016 2:11 PM > > To: Richardson, Bruce > > Cc: dev at dpdk.org; Wu, Jingjing ; Zhang, Helin > > > > Subject: [PATCH] i40e: fix packet stats gettin

[dpdk-dev] [PATCH] i40e: fix packet stats getting

2016-04-19 Thread Jingjing Wu
The statistics queried by calling rte_eth_stats_get are zero when the API is first called on the port. The root cause is because of offset_loaded flag is not set correctly after device started. This patch fixes this issue by resetting statistics at initialization time, at the meanwhile the resettin

[dpdk-dev] [PATCH] i40e: fix packet stats getting

2016-04-19 Thread Zhang, Helin
> -Original Message- > From: Wu, Jingjing > Sent: Tuesday, April 19, 2016 2:11 PM > To: Richardson, Bruce > Cc: dev at dpdk.org; Wu, Jingjing ; Zhang, Helin > > Subject: [PATCH] i40e: fix packet stats getting > > The statistics queried by calling rte_eth_stats_get are zero when the API