From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 167551075 for ; Tue, 21 Mar 2017 15:48:02 +0100 (CET) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 21 Mar 2017 07:48:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,198,1486454400"; d="scan'208";a="77779078" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 21 Mar 2017 07:48:01 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 21 Mar 2017 07:48:01 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.175]) by FMSMSX152.amr.corp.intel.com ([169.254.6.218]) with mapi id 14.03.0319.002; Tue, 21 Mar 2017 07:48:01 -0700 From: "Wiles, Keith" To: Julien Castets CC: "dev@dpdk.org" , Julien Castets Thread-Topic: [dpdk-dev] [PATCH] Fix rate computation Thread-Index: AQHSoilAIlwLvm7qiU2WkxeS/aesAaGf1UYA Date: Tue, 21 Mar 2017 14:48:00 +0000 Message-ID: <1797BE66-0EE3-4C9C-83DB-9DB6F2E44200@intel.com> References: <20170321095440.22216-1-castets.j@gmail.com> In-Reply-To: <20170321095440.22216-1-castets.j@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.84.105] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] Fix rate computation 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: Tue, 21 Mar 2017 14:48:03 -0000 > On Mar 21, 2017, at 4:54 AM, Julien Castets wrote: >=20 > From: Julien Castets >=20 > Signed-off-by: Julien Castets > --- > app/pktgen.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/app/pktgen.c b/app/pktgen.c > index e315bff..9a304c0 100644 > --- a/app/pktgen.c > +++ b/app/pktgen.c > @@ -110,7 +110,7 @@ pktgen_packet_rate(port_info_t *info) > uint64_t cpp =3D (pps > 0) ? (pktgen.hz / pps) : (pktgen.hz / 4); >=20 > info->tx_pps =3D pps; > - info->tx_cycles =3D ((cpp * info->tx_burst) / get_port_txcnt(pktgen.l2p= , info->pid)); > + info->tx_cycles =3D ((cpp * info->tx_burst) * get_port_txcnt(pktgen.l2p= , info->pid)); > } I have already made the change, thanks for the patch. I assumed it fixed th= e problem as I have not found an email confirming the fix. Thanks. >=20 > /************************************************************************= **//** > --=20 > 2.11.0 >=20 Regards, Keith