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 6FAD2A051C; Sat, 18 Jan 2020 17:28:19 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5B0E1BEA9; Sat, 18 Jan 2020 17:28:18 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80082.outbound.protection.outlook.com [40.107.8.82]) by dpdk.org (Postfix) with ESMTP id 60CFA1BE81 for ; Sat, 18 Jan 2020 17:28:17 +0100 (CET) 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=+x4xjTv0Rr3suuXsyOJzsFgcCQtSzBojzM8HtHL1BK0=; b=px03iakfd1X3vfrIGeQgYiys1ZFw/0Wu3nNGkosSG9JWWaxXMU1PFKaQ9eGU+p0LuOCsr+OHYfvk0e4gRNRSIghHwGPBW+JljsK/8gg5423eibaTbgoU6U3VzLGMHDrq4dgs2IbWJKAnXmxpZCtX+4+2TQzmfBlfGKZ7nCqWr28= Received: from VI1PR08CA0205.eurprd08.prod.outlook.com (2603:10a6:802:15::14) by DB6PR0801MB1639.eurprd08.prod.outlook.com (2603:10a6:4:3b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.20; Sat, 18 Jan 2020 16:28:15 +0000 Received: from VE1EUR03FT034.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by VI1PR08CA0205.outlook.office365.com (2603:10a6:802:15::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.20 via Frontend Transport; Sat, 18 Jan 2020 16:28:15 +0000 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 VE1EUR03FT034.mail.protection.outlook.com (10.152.18.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 18 Jan 2020 16:28:15 +0000 Received: ("Tessian outbound 28955e0c1ca8:v40"); Sat, 18 Jan 2020 16:28:14 +0000 X-CR-MTA-TID: 64aa7808 Received: from 09d590f69efb.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 18F7A5BC-F470-4672-BD64-A3238574FA95.1; Sat, 18 Jan 2020 16:28:09 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 09d590f69efb.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 18 Jan 2020 16:28:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2Rfwpu/xDc0GlQK5h1aUTMzNdXx3tVe0sWuwb8FdWbOS9748GSfzktbmlBwcrXuia7FYktJ56Ihv0duoKkYUbRFYk4e72bmX2EmIKbLz68WK0ZCLZh80UPuGiovNFyGAdiCjak2g+4Ej4ihhPnbKhibYGOqfeqLx9/f1j/ademnLRJnOf8IGZd+VklZbU0Yt8tIbk1aj6msyjQUuq9r4m84gMpYs+vzC18pd91rAm/eFUKHC1czKZogTG8dvxkQZ43J7oGd+a7UL/fC1R5Y85P+QmvM64wyw6H6gXM+5N29wJOuHzaWRDWHgdXmvpkgGhX240TQEIi44Za7SgQJ1Q== 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=+x4xjTv0Rr3suuXsyOJzsFgcCQtSzBojzM8HtHL1BK0=; b=H/7utdLH3lLFhtgWqwVL8SVu8NnRJku8HYb1CKmG52cSHzUGkizmY8fpBHZNKE1tECfGdYow6w7f42w2Zv5aodqQM15sxK0oyvfd2cbPS6u8qtpH36zBdAeesL2YYgkvAQzAu8r7lzjH0a4tLNtFwFj5a08CtwA5Tag9d97YlI7CvfA4ETrD3DZy7ge6mx07KR0cQcGYl/6TZrtHlHq+EJ5rr+RExiTQCzS9ytePohJNUYv2n4iCnTS0itfk64Mb95wIDqg/4aEA40aCL4WYWqi4Yci17MYz9ex54ei97Rcz9nL7rO+wnz++2w/Vx4ZfbO8zYWIwgPTcsRoICrXn7Q== 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=+x4xjTv0Rr3suuXsyOJzsFgcCQtSzBojzM8HtHL1BK0=; b=px03iakfd1X3vfrIGeQgYiys1ZFw/0Wu3nNGkosSG9JWWaxXMU1PFKaQ9eGU+p0LuOCsr+OHYfvk0e4gRNRSIghHwGPBW+JljsK/8gg5423eibaTbgoU6U3VzLGMHDrq4dgs2IbWJKAnXmxpZCtX+4+2TQzmfBlfGKZ7nCqWr28= Received: from VE1PR08MB5149.eurprd08.prod.outlook.com (20.179.30.27) by VE1PR08MB4672.eurprd08.prod.outlook.com (10.255.112.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.23; Sat, 18 Jan 2020 16:28:07 +0000 Received: from VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::29eb:a1be:8f8f:fae2]) by VE1PR08MB5149.eurprd08.prod.outlook.com ([fe80::29eb:a1be:8f8f:fae2%7]) with mapi id 15.20.2644.024; Sat, 18 Jan 2020 16:28:07 +0000 From: Honnappa Nagarahalli To: Olivier Matz CC: "sthemmin@microsoft.com" , "jerinj@marvell.com" , "bruce.richardson@intel.com" , "david.marchand@redhat.com" , "pbhagavatula@marvell.com" , "konstantin.ananyev@intel.com" , "yipeng1.wang@intel.com" , "dev@dpdk.org" , Dharmik Thakkar , Ruifeng Wang , Gavin Hu , nd , Honnappa Nagarahalli , nd Thread-Topic: [PATCH v9 4/6] test/ring: modify perf test cases to use rte_ring_xxx_elem APIs Thread-Index: AQHVzVlYNzyTPAeqoECR1DOyDENjAqfwnLYg Date: Sat, 18 Jan 2020 16:28:07 +0000 Message-ID: References: <20190906190510.11146-1-honnappa.nagarahalli@arm.com> <20200116052511.8557-1-honnappa.nagarahalli@arm.com> <20200116052511.8557-5-honnappa.nagarahalli@arm.com> <20200117171245.GA22738@platinum> In-Reply-To: <20200117171245.GA22738@platinum> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 3b59cfef-5339-4a49-8bcf-aa35902d0d91.0 x-checkrecipientchecked: true Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; x-originating-ip: [217.140.111.135] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 722c1458-5393-4cd2-77d7-08d79c336b3f X-MS-TrafficTypeDiagnostic: VE1PR08MB4672:|VE1PR08MB4672:|DB6PR0801MB1639: 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:6790;OLM:6790; x-forefront-prvs: 0286D7B531 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(346002)(376002)(396003)(136003)(199004)(189003)(9686003)(55016002)(6916009)(66476007)(4326008)(66556008)(64756008)(52536014)(66446008)(76116006)(5660300002)(66946007)(71200400001)(8936002)(478600001)(7696005)(8676002)(86362001)(186003)(6506007)(33656002)(81156014)(81166006)(26005)(2906002)(316002)(54906003)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR08MB4672; H:VE1PR08MB5149.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: OggtLbnMXUPTbri1b+41QFKUsMYTML0IQ5Fhtl2gAMXwd5EC6ZLl6GQ2WAADHruNgzxOYlOJycmCRswDW2KKrvmeVBdcLUD3Y9TGGwZboPruJEkBpFJ5huROCv4Sk6r2pO5br393Etk5b8O+oJvt2O7W+BpWad5SwcElhYcxBJZqlSHiJE0Ks+QH2xWlqRbxdSuzTswjk/MTtItdXZj2dTq6NmWPHUueaKgj4+I5rYddcTt46JGp67PF/iW6cwzG8ZA2qhsYHU/Nq4JLL75Q53ijL/Caotcmkn2H2cMxpNOZPPCkKf08Zm+Awvj7xlbLxZgMGlLImXdoWr84i7PVTTzakE5bdadgISRbomfzSBfsbakMfuAvS8G2/lIfZTpVVwgo71KNCQjvJm4j68tAeJYMU4eK22RPAEHiWqJ1CP+b7EbZuQTENGISmpuMk4Ict3zQJ3cdVUDBESsRxtfV9taxkEHqlKonQCZPF+v+PlRIlOqbqsFih0VOuSdQ4gN3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4672 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Honnappa.Nagarahalli@arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT034.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; IPV:CAL; SCL:-1; CTRY:IE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(136003)(39860400002)(376002)(199004)(189003)(6862004)(4326008)(81156014)(186003)(81166006)(2906002)(8676002)(356004)(478600001)(26826003)(52536014)(336012)(26005)(5660300002)(9686003)(70586007)(86362001)(55016002)(70206006)(33656002)(8936002)(6506007)(54906003)(7696005)(316002)(36906005)(21314003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0801MB1639; H:64aa7808-outbound-1.mta.getcheckrecipient.com; FPR:; SPF:Pass; LANG:en; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; A:1; MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: c9b7294b-9660-4fdc-3dad-08d79c3366d2 X-Forefront-PRVS: 0286D7B531 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0SOnvqgKSOqIEzrXzuRmeP09RoShc4pLhOmyTAUrNwCOv75oCn361OrwCX3fgwLNqkR6JT5/vbpHy61vSDnq5Nvl+pQgoHxL/GNoETvg/voIGey6YWTiwHkkXE2oIyEuRkHQg0pyaZM3XrumTnGaOzKcwb3sgk4JQZrUQDrNQ8XMPpvnn26SG6mNjn+zmfXosX2Aou0qnDRmQI3J0SYWuz+/DOUK4OVx3Gk85qy5ieR+25Jv6sHicI4O9HZTzC2UiiK1oms/C5iBAmuo7eVvNdktBjfkDFrhoG/bZBavJbL+ONLasnmGoIv2Dxq3I+zRsBYRKIFvoKggzr6ygq/aSsemUOr8rdksFKjuTTjLJNFO4WtMUCmNRNt4ZTNrkLy+PuPaVCMIuh6Lul9r+cQZSXInJC2ix/VKocwImWKaON+k+7ZWhrxRt45lU4ycG94gqE9v4dJCbL+TVZxYCb/pVVTeRGSU6pBAS+bVPFFL8rw6uItalM1dTAu4vVXBQvzh X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2020 16:28:15.1730 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 722c1458-5393-4cd2-77d7-08d79c336b3f 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: DB6PR0801MB1639 Subject: Re: [dpdk-dev] [PATCH v9 4/6] test/ring: modify perf test cases to use rte_ring_xxx_elem APIs 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" >=20 > On Wed, Jan 15, 2020 at 11:25:09PM -0600, Honnappa Nagarahalli wrote: > > Adjust the performance test cases to test rte_ring_xxx_elem APIs. > > > > Signed-off-by: Honnappa Nagarahalli > > Reviewed-by: Gavin Hu > > --- > > app/test/test_ring_perf.c | 454 > > +++++++++++++++++++++++--------------- > > 1 file changed, 273 insertions(+), 181 deletions(-) > > > > diff --git a/app/test/test_ring_perf.c b/app/test/test_ring_perf.c > > index 6c2aca483..8d1217951 100644 > > --- a/app/test/test_ring_perf.c > > +++ b/app/test/test_ring_perf.c >=20 > [...] >=20 > > -static int > > -test_ring_perf(void) > > +/* Run all tests for a given element size */ static > > +__rte_always_inline int test_ring_perf_esize(const int esize) > > { > > struct lcore_pair cores; > > struct rte_ring *r =3D NULL; > > > > - r =3D rte_ring_create(RING_NAME, RING_SIZE, rte_socket_id(), 0); > > + /* > > + * Performance test for legacy/_elem APIs > > + * SP-SC/MP-MC, single > > + */ > > + r =3D test_ring_create(RING_NAME, esize, RING_SIZE, rte_socket_id(), > > +0); > > if (r =3D=3D NULL) > > return -1; > > > > - printf("### Testing single element and burst enq/deq ###\n"); > > - test_single_enqueue_dequeue(r); > > - test_burst_enqueue_dequeue(r); > > + printf("\n### Testing single element enq/deq ###\n"); > > + if (test_single_enqueue_dequeue(r, esize, > > + TEST_RING_THREAD_SPSC | > TEST_RING_ELEM_SINGLE) < 0) > > + return -1; >=20 > the ring is not freed on error (same below) Will fix.