From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 21 Apr 2016 07:14:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,513,1455004800"; d="scan'208";a="789392698" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.132]) by orsmga003.jf.intel.com with SMTP; 21 Apr 2016 07:14:56 -0700 Received: by (sSMTP sendmail emulation); Thu, 21 Apr 2016 15:14:54 +0025 Date: Thu, 21 Apr 2016 15:14:54 +0100 From: Bruce Richardson To: "Zhang, Helin" Cc: "Wu, Jingjing" , "dev@dpdk.org" 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 Content-Disposition: inline In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] i40e: fix packet stats getting X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2016 14:14:58 -0000 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