From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 242F81B21F for ; Wed, 16 May 2018 13:10:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 04:09:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,404,1520924400"; d="scan'208";a="46854156" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by fmsmga002.fm.intel.com with ESMTP; 16 May 2018 04:09:59 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX107.ger.corp.intel.com ([169.254.10.141]) with mapi id 14.03.0319.002; Wed, 16 May 2018 12:09:58 +0100 From: "Iremonger, Bernard" To: Daniel Shelepov , "Lu, Wenzhuo" , "Wu, Jingjing" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] app/testpmd: fix burst stat reporting Thread-Index: AQHT68hB/qmwFbbl3Ui4Qv5bVEhboKQyNPTw Date: Wed, 16 May 2018 11:09:58 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C24E0CD2C8@IRSMSX108.ger.corp.intel.com> References: <20180504201209.2964-1-dashel@microsoft.com> <20180514211147.19784-1-dashel@microsoft.com> In-Reply-To: <20180514211147.19784-1-dashel@microsoft.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzJhZTY0MzEtNDg0NS00MDRiLThiMDMtZTlmMWVmNDk2MTlkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSzJRRlQwME5xV1dpdkVkcEZZcjdzV0ZXNGd0OGx2SXNcL09NXC85NHMwSTFmRVBBVHhRNms0dVRJdThackJGc1pNIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: fix burst stat reporting X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 11:10:01 -0000 > -----Original Message----- > From: Daniel Shelepov [mailto:dashel@microsoft.com] > Sent: Monday, May 14, 2018 10:12 PM > To: Lu, Wenzhuo ; Wu, Jingjing > ; Iremonger, Bernard > > Cc: dev@dpdk.org; Daniel Shelepov > Subject: [PATCH v2] app/testpmd: fix burst stat reporting >=20 > When RTE_TEST_PMD_RECORD_BURST_STATS is enabled, testpmd collects > burst statistics and includes them in the port stats report. The summary > should include top 2 most frequent burst sizes, but there is a bug in fin= ding > the top-2. During the scan of burst size counts, the > top-2 can change only if top-1 also changes. >=20 > Added logic to update the top-2 if current burst size is larger than exis= ting > top-2, but smaller than existing top-1. >=20 > Fixes: af75078fece3 ("first public release") >=20 > Signed-off-by: Daniel Shelepov Acked-by: Bernard Iremonger