From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] i40e: fix packet stats getting Date: Thu, 21 Apr 2016 15:14:54 +0100 Message-ID: <20160421141453.GC3808@bricha3-MOBL3> References: <1461046273-16755-1-git-send-email-jingjing.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Wu, Jingjing" , "dev@dpdk.org" To: "Zhang, Helin" Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 55F1E2B8B for ; Thu, 21 Apr 2016 16:14:58 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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@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 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 resetting process will set offset_loaded flag. > > > > Fixes: 4861cde46116 ("i40e: new poll mode driver") > > Signed-off-by: Jingjing Wu > Acked-by: Helin Zhang > Applied to dpdk-next-net/rel_16_07 /Bruce