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 59F5FA04A5; Thu, 18 Jun 2020 17:01:50 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED0391BF92; Thu, 18 Jun 2020 17:01:49 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150075.outbound.protection.outlook.com [40.107.15.75]) by dpdk.org (Postfix) with ESMTP id 24DBE1BF72; Thu, 18 Jun 2020 17:01:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uO7pcXkq3KmHtS/wpRLHVV1bxg2tNkww8dfbIuO14Ew=; b=jG0E1kJFo7Ml+guNoQqs5/aI7vI92ePoFbrw+hpvt6PB00zp19ya4SLTHUmdjmymtcfvAGXHb1mOfD41QNMtDfguvOM/gD+EPRPz/FXmLTlIx7ZnHRSPW2eQSMNs4wM2RJ3J+j9JoRg7sZQ8ls9jqEuDOSnj/43tSG7F8S5ZHzA= Received: from DB6PR07CA0099.eurprd07.prod.outlook.com (2603:10a6:6:2c::13) by HE1PR0802MB2201.eurprd08.prod.outlook.com (2603:10a6:3:cc::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.21; Thu, 18 Jun 2020 15:01:47 +0000 Received: from DB5EUR03FT009.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2c:cafe::bb) by DB6PR07CA0099.outlook.office365.com (2603:10a6:6:2c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.12 via Frontend Transport; Thu, 18 Jun 2020 15:01:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dpdk.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dpdk.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT009.mail.protection.outlook.com (10.152.20.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22 via Frontend Transport; Thu, 18 Jun 2020 15:01:46 +0000 Received: ("Tessian outbound 866352848bb9:v59"); Thu, 18 Jun 2020 15:01:46 +0000 X-CR-MTA-TID: 64aa7808 Received: from 3c69510130c6.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 5FF69538-FFCA-4CAE-99B4-D5A15C413177.1; Thu, 18 Jun 2020 15:01:41 +0000 Received: from FRA01-PR2-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 3c69510130c6.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 18 Jun 2020 15:01:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zk3hWBGi3fqYMuMxf9B7WUoZFtw8j9HayOjoUjjxd8VZg2SB3Hr5lnhhUCXfZLKbeG0NaaGWcyTnF6bhjE73emEf8zWlUZ3ZjYkvZEF24nSfeP/twv/KzTt0mYMdzlTEiJMAqmaC3cItrnG9RTHoZ6Ih1jUpqB64PHqSCv44DZGlv9LMZrFmytm4Ahz0y1nCYW1NTinjUNFL8U7hqDpc+fWa06WpDHOFTdSce80IZjXV+j8W//fABDOLMztKdQCWuijDFeh+rhIz/bPiWluEJTwMJ4l3T5aNuM8AKcUHrgBzEg7YA8dk7LKZVZ+OtnjPPr/fBIWNnAyfIY6ELRTPog== 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=uO7pcXkq3KmHtS/wpRLHVV1bxg2tNkww8dfbIuO14Ew=; b=WECeE2Hi3K3a0wmxSHAKnTdvS7nkeY3hH3AxKz7GD5WHYgXJYh6Srba578Lzzu8uYp+k9JEajrb1+MH5Hj49hy4DQ7T3cZiRPOH8NLjh5JVyQRQ5aV93wUQuyN1neuOqd8ufLg5NM7xIPxRI6RSMAdCbxS51L8utwm/P1pjm7MDKNfUPlZ6cdayxLhWk+o/KWKNeURg5KYcoUaUhJSq71SAYrWuwxnOqBPRGDTObRpICa1q2mb3gwUkEnN0pJtsAJH988eGgE8okcBXPkmZQxOZ3G5TABtkIPXf7YRcqtcpT1dsU2fRq0R5yppP7QNzRi+hUXPX4n+NeXyoYubTJjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uO7pcXkq3KmHtS/wpRLHVV1bxg2tNkww8dfbIuO14Ew=; b=jG0E1kJFo7Ml+guNoQqs5/aI7vI92ePoFbrw+hpvt6PB00zp19ya4SLTHUmdjmymtcfvAGXHb1mOfD41QNMtDfguvOM/gD+EPRPz/FXmLTlIx7ZnHRSPW2eQSMNs4wM2RJ3J+j9JoRg7sZQ8ls9jqEuDOSnj/43tSG7F8S5ZHzA= Received: from PR2PR08MB4635.eurprd08.prod.outlook.com (2603:10a6:101:18::23) by PR2PR08MB4777.eurprd08.prod.outlook.com (2603:10a6:101:26::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Thu, 18 Jun 2020 15:01:40 +0000 Received: from PR2PR08MB4635.eurprd08.prod.outlook.com ([fe80::893:518:bade:fb79]) by PR2PR08MB4635.eurprd08.prod.outlook.com ([fe80::893:518:bade:fb79%3]) with mapi id 15.20.3088.029; Thu, 18 Jun 2020 15:01:40 +0000 From: Phil Yang To: Honnappa Nagarahalli , "dev@dpdk.org" , Honnappa Nagarahalli , "alialnu@mellanox.com" , "orgerlitz@mellanox.com" , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" CC: "hemant.agrawal@nxp.com" , "jerinj@marvell.com" , "viacheslavo@mellanox.com" , "thomas@monjalon.net" , Ruifeng Wang , nd , "stable@dpdk.org" , nd Thread-Topic: [PATCH 4/5] app/testpmd: fix burst percentage calculation Thread-Index: AQHWRLW8adMARGnUs0m4+aTJbwWo66jeeKQg Date: Thu, 18 Jun 2020 15:01:39 +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: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 6068641f-c705-45a1-9111-2d243b36a472.0 x-checkrecipientchecked: true Authentication-Results-Original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; x-originating-ip: [203.126.0.111] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bc41c0f9-bd46-495f-71fa-08d813988589 x-ms-traffictypediagnostic: PR2PR08MB4777:|HE1PR0802MB2201: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2512;OLM:2512; x-forefront-prvs: 0438F90F17 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 8ogWjpd5TSkkF05zBwj7fN5uJxWKCwHnuC0SQcsgUrgfAwQBJAalVesrsSa4TcjfIjj9Xx/K3SacsgdNbT13gZgpWrKhz+aySbEJJo0WidWsjez6+Ur47L9oy6w18XNind4zKiw7tRRiY1Ssc89nCyNbAJGZbgzO3t/UVUTilTeQ8wOf09c4WddNR0LG2fHw8nvGaSivjjP64Abznb6BrZJlK412IVu7dkR3yVpUsP85lHV8yP9tzvTmxHOHEXspawV6N980ZwlI82k4rri4NJTLBBBu+gGgz6bi5yUJsJnmF0XAUBiNadNmQhLJJIKnJNAIZGHTFNBmTlBnAYIDUA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR2PR08MB4635.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(366004)(376002)(136003)(396003)(346002)(86362001)(55016002)(9686003)(7696005)(4744005)(4326008)(5660300002)(71200400001)(53546011)(478600001)(7416002)(33656002)(8936002)(76116006)(186003)(316002)(66946007)(54906003)(66476007)(26005)(110136005)(64756008)(66556008)(2906002)(66446008)(6506007)(52536014)(83380400001)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Q0WCuLv4AZJsYMd3lGVpVq6gGt7Aq1g0BP4nTrA6TtIf0aop5PycEfzRi2Nlxh6fnPNE4m43wUeFq6VjAxZkTfc6F2j5l9i4BEb4eMMfIeUypgLDLWEK9Ecbw7lZjNtoMAG/Xc61knkBRNV4U5odYVjj6ZaJf4yG1PWKUTXFUYsknIoCa22UsCMi4jMM0K6P1a+jk2zLMXS1iCY9yndmOJzjFN61Ot4qTqha1VuwZx1BdI14YulL9GS2BdMzuQNXAfctSgj5jlsiy+JrLTzogMIVlXEYW2lDkQU3MNCNZg35Ceoq/XmCMDBB07VbR2Mf/nJeX8DJ1tRC/zwNlhWCH1omfvPoTWSVQKR+z9G8CnR958Ax9LB9dE42GoHbwUHAA2V+G5ef2Px8FxMqZt6c8Q9Kt6c8p6V0bROsVhUGtp9AlkCuvbzQTFC4Pdh1rMV2a+siIOALci4SpUpNkdFTNHBr5XMS3izyv4cq1xtKPxA= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4777 Original-Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT009.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(396003)(39860400002)(136003)(376002)(346002)(46966005)(70206006)(70586007)(5660300002)(86362001)(7696005)(55016002)(9686003)(186003)(336012)(8676002)(2906002)(33656002)(450100002)(53546011)(47076004)(26005)(83380400001)(52536014)(82310400002)(82740400003)(54906003)(356005)(8936002)(316002)(478600001)(6506007)(4326008)(110136005)(81166007); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 2d976ad9-e728-420c-0aec-08d813988171 X-Forefront-PRVS: 0438F90F17 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OpSJxWZ82owar0VSJvGP5R7qzM83DKeETWjYvTCpWamcdTMvGWzoM1izchdxWbjU0fXXYg9TbRq8gVMFm4GKkmzutrx+NwQwEuQ5ByZkqBL+k0VtkLbL/+WU1mM8N7oaniiogP6snYS9ubqHaspG+mIBoMQmvZBJiyVkxZfU2NGNNRjHdzJkH0jZfO7LR+lAzj27MtPsXpw2GIlpinkN7wJu/qeeVNgKuln/EA+HsDpzcso3/gz+O0eVmYNrzQlh+uidi81zrZV8pDLy5ObuhbpGpJtEMAGynxggrkh5VbT5PcJJqJdvYzywdIploQ1WI1FaHUVzmLiXZSIsF+l37ScsarxkViEXnID7VahV39tdXAekxxJPbsJv0czbK6ZjDRvJVYHQJrYtgexTliz4xQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2020 15:01:46.9079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc41c0f9-bd46-495f-71fa-08d813988589 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2201 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 10:43 PM > To: dev@dpdk.org; Honnappa Nagarahalli > ; alialnu@mellanox.com; > orgerlitz@mellanox.com; wenzhuo.lu@intel.com; beilei.xing@intel.com; > bernard.iremonger@intel.com > Cc: hemant.agrawal@nxp.com; jerinj@marvell.com; > viacheslavo@mellanox.com; thomas@monjalon.net; Ruifeng Wang > ; Phil Yang ; nd > ; 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: Phil Yang