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 918C4A04B1; Thu, 27 Aug 2020 10:54:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88A7C1C115; Thu, 27 Aug 2020 10:54:56 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60072.outbound.protection.outlook.com [40.107.6.72]) by dpdk.org (Postfix) with ESMTP id 57A161C0D4; Thu, 27 Aug 2020 10:54:55 +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=CgZzOVLPRIxQ2vbqzv1zgbWRbWRXobSHoFCumQ0zx4E=; b=yJgEduS6HrCp4l+Z7vb08FqoxiLqyySJWAZcT0lEWyVJA2lR5oL8EQ0n+n0ve98sRU+tYvuYL5OwhUIOE8fmygjN4rn2doZ4SV+wcDZy9DZzF1c0P0mPM2O7gc8P9LIirsb9hpajVfO0piN1kHT7Plr+qW8sbf0xj67msQa9O4k= Received: from AM0PR04CA0102.eurprd04.prod.outlook.com (2603:10a6:208:be::43) by AM6PR08MB3255.eurprd08.prod.outlook.com (2603:10a6:209:43::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Thu, 27 Aug 2020 08:54:54 +0000 Received: from AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com (2603:10a6:208:be:cafe::d2) by AM0PR04CA0102.outlook.office365.com (2603:10a6:208:be::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19 via Frontend Transport; Thu, 27 Aug 2020 08:54:54 +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 AM5EUR03FT059.mail.protection.outlook.com (10.152.17.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19 via Frontend Transport; Thu, 27 Aug 2020 08:54:53 +0000 Received: ("Tessian outbound a0bffebca527:v64"); Thu, 27 Aug 2020 08:54:53 +0000 X-CR-MTA-TID: 64aa7808 Received: from 002da3a840a7.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 39592AA6-13B1-4BA7-8B04-DF1CD07DAFDE.1; Thu, 27 Aug 2020 08:54:48 +0000 Received: from EUR02-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 002da3a840a7.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 27 Aug 2020 08:54:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M4nqpNJY8Zj/ZwLnzEhUYhtstumfKerQlypIJK56n516AJrHN+wbekXmoRUll5BuWQoxcemnsell9NA/g1M2dIDNQPJjGvEa25deCyZERATPVXyfCNy3j3eBiMTrjhGYpXt7/LTt4PXFm/Iv07sbYWkBtVSUHtQkE2SuJVlSTTTi/u1zg8DgKdy8ONruFactZBTDRPOloH6Ipvg1e4c2yUeerxxNsMD6r9cc6PN/NDfe0rPKGLRSZ6VOmKTE0y+pRJMCl5R0JNf92yYYfye3jtZ23iW76GoGGIVG694bzVnypfa/7ucQwdsdmGRxkH+hRxEo8AG+XewHvsuIxGv3aQ== 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=CgZzOVLPRIxQ2vbqzv1zgbWRbWRXobSHoFCumQ0zx4E=; b=OYuVaP6IlNwPGfOtRlW7eB/+s/VOsUhWf9ilKTTjr15FLSm3PxBFwROvs+OaF5Rx8GrfW8A50rwaPCh4nQ6opQWB2sYqnKsBXwvXpDEB/nwyTfS9/57jEIlLTqhwgcn2AWozhkCvw07ArOB4GCisOWWNO9SEKyeI9JfTSC3LZ3+Fl665oO4CAJyprtyWvQxQHd/5jA+flLwPs/fE3QtGE1s5hmpF9+mwjm/D3RS8pVl8+q8zBm5nDT2DYqgQEYmuuQ0msKI8xdvdJbRxFZ/l25IhHh7n0GvSD9XyzVhvOgrIyevND4hR8rya2PR80T950zYJJh/YVTLszPQq6nLj2g== 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=CgZzOVLPRIxQ2vbqzv1zgbWRbWRXobSHoFCumQ0zx4E=; b=yJgEduS6HrCp4l+Z7vb08FqoxiLqyySJWAZcT0lEWyVJA2lR5oL8EQ0n+n0ve98sRU+tYvuYL5OwhUIOE8fmygjN4rn2doZ4SV+wcDZy9DZzF1c0P0mPM2O7gc8P9LIirsb9hpajVfO0piN1kHT7Plr+qW8sbf0xj67msQa9O4k= Received: from VE1PR08MB5677.eurprd08.prod.outlook.com (2603:10a6:800:1ab::17) by VI1PR08MB3119.eurprd08.prod.outlook.com (2603:10a6:803:3f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.25; Thu, 27 Aug 2020 08:54:43 +0000 Received: from VE1PR08MB5677.eurprd08.prod.outlook.com ([fe80::c9e4:247f:4472:36ef]) by VE1PR08MB5677.eurprd08.prod.outlook.com ([fe80::c9e4:247f:4472:36ef%6]) with mapi id 15.20.3305.032; Thu, 27 Aug 2020 08:54:43 +0000 From: Feifei Wang To: Honnappa Nagarahalli , Konstantin Ananyev , Olivier Matz , Gavin Hu CC: "dev@dpdk.org" , nd , "stable@dpdk.org" , nd , nd Thread-Topic: [PATCH v2 3/4] test/ring: fix the wrong number of enq/deq elements Thread-Index: AQHWau/QTJqHhtl5kkKqN8VBNkWls6lK/3WAgADItLA= Date: Thu, 27 Aug 2020 08:54:42 +0000 Message-ID: References: <20200729063105.11299-1-feifei.wang2@arm.com> <20200805061421.13037-1-feifei.wang2@arm.com> <20200805061421.13037-4-feifei.wang2@arm.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: E13A1D3513C3D4438165C3F688C0A6A8.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.113] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b997c8e4-6cda-43b2-511f-08d84a66dda3 x-ms-traffictypediagnostic: VI1PR08MB3119:|AM6PR08MB3255: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:353;OLM:353; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 1K9Nrh91Cef1SQfXchsr9uOSHXIJ5Ng8KHNbhUNbuGlr+oMVAKc3lo4qUnNbHie0NzGPFUqM8iTdz2po1c6cydDK3Eg9EZ0IvWb3iWN3tSOBE95YzR8+hc+G+brUOTou6+OFynyc+fewpKJb62UjxPZ1fkMe7LW9Nhu/bsccK/LqP8wcj/3MAaIiO6PUkhFRrQ/QAELLcGT2B6+iyj/bcZRXwIcXyi0N/aSzmLIs9+iC/sSR+UPNdcaYpqBBktoM/jkAQlXs3BL2VA+SNvSij6tySMvyqv4KuQLrN30TurOxHwBUOBL/wy25lnP+KnY9g4YLWpmoqfNdz7UnRTJSsA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB5677.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(346002)(376002)(366004)(136003)(39860400002)(316002)(6636002)(66446008)(76116006)(66476007)(54906003)(110136005)(66946007)(6506007)(33656002)(7696005)(26005)(64756008)(66556008)(5660300002)(186003)(224303003)(2906002)(55016002)(8936002)(86362001)(9686003)(4326008)(478600001)(71200400001)(52536014)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 6qtbqm3e+P8wIP19d0J3EnLbmzhdhgJHkbKDfbUYlsuwsj0Mv8bBxHY9TdAUa0nIrlyG0Q6v54aGOGRwbwqsqw7fQZe52vUAOBAa095SMb45oRP0O8+aBaK+nFIShaVv7orp3vWOydIRKfqtwuAx+3cKXHVWnjnDr3DAajzjowhifisXRMbrwAIzlJdwXOCiNBrp85QuIHJPUT7sz8Dh5Ii7igCaxIm1CXxB+Cs3TCfYz2SkJoyHG2Kp3JBC6AcKbelXSq8tW7PeFwzEtima5v+1AVNQL4cESuQeaC2BSpIqIYARpoNK7EFG0xnIkpA4a3hTsGBWxxomTq3YiP8zujRZJr1oGl5BE1l/WhzJZaOA+D3Y4oSjXkdPmbwkvD4ftS4SgVo3O3ji6cyxaFP7QvgDxXRUKx3L3gk3Xv4Mfaaon3mh2A1pljAcRx6ih9lWSNOhdlM3iXLzjdA0rI+Gnd09Op9Tx/VXDqxIbGPCp66d1McJT+lcmD/2/RQsXqd4XMSumN3Rw27jO7zP9DZ8fGJ+0jdpOItSIh8viqCyeQopQ8ywXKC8/kdANPsMHWZdQECruWxrM0nugZQFbAsg3CNxp7R5y2qgGgZIQ87SrpzCOb0Vjhv9kPCCFvvOgfSRWqxRjzU3cg/2CUY2IEdgIQ== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3119 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: AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 525c3987-05ab-46a0-d373-08d84a66d76b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TLrK9/a+tie74t/R9l9lEfE9Ok8RTLGb7Q79rcdbbszOCXrW1RUIyzbgRS0xr+OzmZy4xuwHzLNIn0ebjXR2XjsrA1AK3piA9ZSnrXiAVhIrTofdLWmqJj6TFPztordkhxvcEkW1+sfuNr+8y2NjUuWrSGF3lgrtGLByWYphaphJrgrDNa/dqYT6XgIPjKwsao7zyZXAnRk5StPDCBRO76zzTMxsqL8rwaTZlmsCtTfn1v71rL2SBCsam4+LaGTyRVkJy63RvkibLW3PFcoRXS9YyxRrvsLE1m8BPQmfiPhJnsK5simsOOAatMqUmfWqCD179SjpyEYY3mjzx2A4Z4gjQd8Z105kEdkxrNj8lu5/i17W6SD7GycoHXGv3qzafZeGjYzVjkiWvHRss3yEVw== 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; SFS:(4636009)(346002)(396003)(39860400002)(376002)(136003)(46966005)(336012)(6506007)(224303003)(478600001)(86362001)(33656002)(9686003)(47076004)(2906002)(54906003)(82740400003)(81166007)(55016002)(26005)(36906005)(316002)(186003)(7696005)(5660300002)(110136005)(4326008)(356005)(450100002)(6636002)(83380400001)(70586007)(82310400002)(8936002)(70206006)(52536014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2020 08:54:53.7792 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b997c8e4-6cda-43b2-511f-08d84a66dda3 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-AuthSource: AM5EUR03FT059.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB3255 Subject: [dpdk-dev] =?utf-8?b?5Zue5aSNOiBbUEFUQ0ggdjIgMy80XSB0ZXN0L3Jpbmc6?= =?utf-8?q?_fix_the_wrong_number_of_enq/deq_elements?= 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" DQoNCj4gLS0tLS3pgq7ku7bljp/ku7YtLS0tLQ0KPiDlj5Hku7bkuro6IEhvbm5hcHBhIE5hZ2Fy YWhhbGxpIDxIb25uYXBwYS5OYWdhcmFoYWxsaUBhcm0uY29tPg0KPiDlj5HpgIHml7bpl7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