From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 8C6C52C5A for ; Tue, 19 Apr 2016 08:22:19 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 18 Apr 2016 23:22:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,505,1455004800"; d="scan'208";a="87758846" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 18 Apr 2016 23:22:18 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 18 Apr 2016 23:22:18 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.229]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.155]) with mapi id 14.03.0248.002; Tue, 19 Apr 2016 14:21:16 +0800 From: "Zhang, Helin" To: "Wu, Jingjing" , "Richardson, Bruce" CC: "dev@dpdk.org" Thread-Topic: [PATCH] i40e: fix packet stats getting Thread-Index: AQHRmgJbyX5YqswnXU++p6KJn1qC/Z+Q0zmQ Date: Tue, 19 Apr 2016 06:21:16 +0000 Message-ID: References: <1461046273-16755-1-git-send-email-jingjing.wu@intel.com> In-Reply-To: <1461046273-16755-1-git-send-email-jingjing.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmZlYmMyMWItYjY0MS00MzkwLTg1MzktODg3ZjJjYjM4MWYxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IlIxR0E2Smx1UmxsS3dlalp2WHAyN2NUelwvdGpYV0JrQlI2MXdyMnBVQjJFPSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: Tue, 19 Apr 2016 06:22:20 -0000 > -----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 >=20 > 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 no= t set > correctly after device started. > This patch fixes this issue by resetting statistics at initialization tim= e, at the > meanwhile the resetting process will set offset_loaded flag. >=20 > Fixes: 4861cde46116 ("i40e: new poll mode driver") > Signed-off-by: Jingjing Wu Acked-by: Helin Zhang