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 0BA66255; Mon, 16 Jul 2018 05:02:33 +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 fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jul 2018 20:02:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,359,1526367600"; d="scan'208";a="67245401" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 15 Jul 2018 20:02:28 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Jul 2018 20:02:27 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 15 Jul 2018 20:02:26 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.124]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.57]) with mapi id 14.03.0319.002; Mon, 16 Jul 2018 11:02:10 +0800 From: "Lu, Wenzhuo" To: "Li, Xiaoyun" , "Zhang, Qi Z" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH v3] app/testpmd: fix little perf drop Thread-Index: AQHUGbeRemdiwpYvBkimyk4K81Ro5qSRLReQ Date: Mon, 16 Jul 2018 03:02:10 +0000 Message-ID: <6A0DE07E22DDAD4C9103DF62FEBC09093B804DF9@shsmsx102.ccr.corp.intel.com> References: <1531275335-29234-1-git-send-email-xiaoyun.li@intel.com> <1531382146-13819-1-git-send-email-xiaoyun.li@intel.com> In-Reply-To: <1531382146-13819-1-git-send-email-xiaoyun.li@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 v3] app/testpmd: fix little perf drop 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: Mon, 16 Jul 2018 03:02:34 -0000 Hi, > -----Original Message----- > From: Li, Xiaoyun > Sent: Thursday, July 12, 2018 3:56 PM > To: Zhang, Qi Z ; Lu, Wenzhuo > > Cc: dev@dpdk.org; Li, Xiaoyun ; stable@dpdk.org > Subject: [PATCH v3] app/testpmd: fix little perf drop >=20 > There is about 3% perf drop. And it is because of a bitrate calculation i= n the > datapath. So improve it by maintaining an array of port indexes in testpm= d, > which is updated with ethdev events. >=20 > Fixes: 8728ccf37615 ("fix ethdev ports enumeration") > Cc: stable@dpdk.org >=20 > Signed-off-by: Xiaoyun Li Acked-by: Wenzhuo Lu