From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9324A0350; Tue, 23 Jun 2020 15:33:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A98DE1D66B; Tue, 23 Jun 2020 15:33:33 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140080.outbound.protection.outlook.com [40.107.14.80]) by dpdk.org (Postfix) with ESMTP id C7F931D64A; Tue, 23 Jun 2020 15:33:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gVIZTDL7YowWzXoqDEnzzh6Dp2NFDSo1IRaHzRxfXija+nRW9SMPXTiNeorNtU9IBTRm3MH1srwU69csiLwkOcBX2Zoi449E3MmO+DaTy0T9IQg4Asrs2nlTO+n13O4LtwVHeBh1Mzqjh2kU1GTe5Boe213Aozz++m6C+AdLKZIGX23eGtsA2pbY1bjGZOOxDPFFPDcBMWXl9GEkvA9GegryMsUJywc7yN0T74IWki6fbSlb1cT7gwiEZ+MU/Q74tugdShwwW0VvvLFhXCjm6MPJWhDPdLy8DVlBZsPHDBPOkv2Xe7E6VHxMPH3mt6Gg6+1n4Aq6cIZKVQkq6zD3CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G7GJbJ0WkKZp1SU9uURW6SgEEELEV1kE+vTWiEeYigY=; b=dSo+a8J9EDLKCX57Bd7rfFFwpZpvz3jdIVSXw3eui6HwSVb+QfZ8OrDip5G2eyVx1pFrLMrcdQHwj8HJNSBF2jzZj7UaBHqyet24k21ifXhS8BDx3PNsnsi4kpY0DDOOc/YOoaxAGIrNzjeYwVNagrhgC/rlUZAT1Ht3oQJf0eBEEBUfoQC61rk6DLmfdqvc1EKYIi4hB8QyWyZ1AliAl3cH6H02WQgk8UOyJM5k54BzxQCpU5OOetsOKCqZ4s8H/dtFrrwl7qR0cd+cDmw2cI5YSpx+BvZGqS4eiFKvRAKsnWqXa7wXmB2f/tYj1Tw5Qtz+jMIhVT+iheeKF020BA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G7GJbJ0WkKZp1SU9uURW6SgEEELEV1kE+vTWiEeYigY=; b=fHgpa8B5Bgy+pSUVeSAidTAWxA0UH+E2P14/wczFrk2Ef9Ukoly/JcJ9JxJRGb2oZu6dDMbDLK/cWQ90b1wqrq7SlIuLLbZC1XYyyX1h/UcD5VqmMjcY8iLgqvE3YDlr5iWjv6oaLEgaeM9n5UWzNb6IYwZTxIqWFg/5OrffrAs= Received: from AM0PR05MB4401.eurprd05.prod.outlook.com (2603:10a6:208:62::20) by AM0PR05MB5219.eurprd05.prod.outlook.com (2603:10a6:208:ef::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Tue, 23 Jun 2020 13:33:30 +0000 Received: from AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::50d8:317c:f079:9c86]) by AM0PR05MB4401.eurprd05.prod.outlook.com ([fe80::50d8:317c:f079:9c86%6]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 13:33:29 +0000 From: Ali Alnubani To: Honnappa Nagarahalli , "dev@dpdk.org" , "orgerlitz@mellanox.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" CC: "hemant.agrawal@nxp.com" , "jerinj@marvell.com" , Slava Ovsiienko , Thomas Monjalon , "ruifeng.wang@arm.com" , "phil.yang@arm.com" , "nd@arm.com" , "stable@dpdk.org" Thread-Topic: [PATCH 4/5] app/testpmd: fix burst percentage calculation Thread-Index: AQHWRLW39j+1NpRgtEqhB57Vq1Bj+KjmPDFw Date: Tue, 23 Jun 2020 13:33:29 +0000 Message-ID: References: <20200617144307.9961-1-honnappa.nagarahalli@arm.com> <20200617144307.9961-4-honnappa.nagarahalli@arm.com> In-Reply-To: <20200617144307.9961-4-honnappa.nagarahalli@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [84.242.49.134] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0513099d-a58e-4adc-9aed-08d8177a0462 x-ms-traffictypediagnostic: AM0PR05MB5219: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2512; x-forefront-prvs: 04433051BF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5EIJuI2jNt7lp+DDQWlYLW+ktW+eKVXBRR/w5Cx1GLrcIJD2glhdiAf0whub2XULp1eYR+63fFtwB0k2EiMQ8wD/D4R2Y2x0tn28HiIywjwr49GzDT5eRDSTM7/a44i4yMJtjJEFHMYPeE+Cn5MnL6WM91NKYI5FriJtOnKnOumGNJ38x5jyadvVY+g2TcZgwbEQwxzeQNqxTKE5dRCVrlSZOG7r6O3GaPguO5Eiyf81p8dIW2GBAFL83/EHlzZyZThOroP+5hGqKLllXah2cVu2tsemC3tTWEdRgnWPIGbjh8EyOeINQQ0fAMiLvBnZZgTHhl3G2XyVo9YVsKJAag== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4401.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(71200400001)(4326008)(498600001)(9686003)(7416002)(55016002)(83380400001)(86362001)(2906002)(5660300002)(54906003)(53546011)(52536014)(26005)(6506007)(186003)(7696005)(110136005)(4744005)(33656002)(8676002)(76116006)(66476007)(66946007)(8936002)(64756008)(66446008)(66556008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 7jQwZSOuJuM5WIWbhgoiG4tN1VDC6zCHM49OrO1nUrP1vvXe3+B77902HrCnu2JWmH4KUSiU10s5ofnKH3+ewC8V5LdfX2G4jiedgW9wnHGE8rnL2wlc/u7zqDB5tixayXgWsKh5mit8xPJqo90anNPx4UDJYn6CLgpZaW/EATjQh1e9GGZPEobYT5xtpBD2izOBf+KX+dxqbxJZZn6VHQ7pvwltOJSu2CZawYNyJAIo/Zna28cVfCCeQND329iLrenSVp9mpPKDugmdRNydKaNCkR7rcwvAY+3R7ewMKRZr9ywlGUbF2OM3t91sOir26jeJAOVOV2FRv+xGVEOu5iXqmVv4wggOGg9ZKtn7bV11qBIFHiez1GVQ1c8k0u/sQ2HLHUpRHjYwR/mHHKavW3QP5o1GYBTKTRO78u5oOI0S4WomWy6QSokWz02seu32DRDJn7VdrIsM15+ju/+VnFJof7bpd89Q2nVfE6CAYxQ= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB4401.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0513099d-a58e-4adc-9aed-08d8177a0462 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2020 13:33:29.9135 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Z1GeKPMaAeZBiONbexRc7sJ7k8rW6SQTT1LJYOCmmKQsq1mtRGM5D8nzMmCDNXw6ewD9uvn+JFcnwC25pyQBoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5219 Subject: Re: [dpdk-dev] [PATCH 4/5] app/testpmd: fix burst percentage calculation 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Honnappa Nagarahalli > Sent: Wednesday, June 17, 2020 5:43 PM > To: dev@dpdk.org; honnappa.nagarahalli@arm.com; Ali Alnubani > ; orgerlitz@mellanox.com; wenzhuo.lu@intel.com; > beilei.xing@intel.com; bernard.iremonger@intel.com > Cc: hemant.agrawal@nxp.com; jerinj@marvell.com; Slava Ovsiienko > ; Thomas Monjalon ; > ruifeng.wang@arm.com; phil.yang@arm.com; nd@arm.com; > stable@dpdk.org > Subject: [PATCH 4/5] app/testpmd: fix burst percentage calculation >=20 > The burst % calculation can over flow due to multiplication. > Fix the multiplication and increase the size of variables to 64b. >=20 > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org >=20 > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Phil Yang > Reviewed-by: Ruifeng Wang Tested-by: Ali Alnubani