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 2C53BA04B0; Sat, 24 Oct 2020 02:31:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DCA776CAD; Sat, 24 Oct 2020 02:31:46 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00055.outbound.protection.outlook.com [40.107.0.55]) by dpdk.org (Postfix) with ESMTP id 7863D6CAA for ; Sat, 24 Oct 2020 02:31:45 +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=gjHKQ32ceZq6iNQfd3sG/QHrOOOqKXwggjdPHGzy5K0=; b=H3Zqp7rEwyMxRh/jeB2NJsftFqg+mt+XoFukqJYa0vurDH6mOBhlUfsKVkkJ9P5rCq5pTqtRgdrx06hjvBR6lAriuevQYRdKrnGTuK6Kle14DFH67flfP0gCr6GAU9nkQ2wr2CMvFGnK46HpNdunPrGjf4R2nw7EW5JCu6j7FYU= Received: from DB7PR05CA0071.eurprd05.prod.outlook.com (2603:10a6:10:2e::48) by AM0PR08MB3233.eurprd08.prod.outlook.com (2603:10a6:208:60::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Sat, 24 Oct 2020 00:31:43 +0000 Received: from DB5EUR03FT050.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:2e:cafe::88) by DB7PR05CA0071.outlook.office365.com (2603:10a6:10:2e::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Sat, 24 Oct 2020 00:31:43 +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=pass 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 DB5EUR03FT050.mail.protection.outlook.com (10.152.21.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Sat, 24 Oct 2020 00:31:42 +0000 Received: ("Tessian outbound a64c3afb6fc9:v64"); Sat, 24 Oct 2020 00:31:42 +0000 X-CR-MTA-TID: 64aa7808 Received: from b6e2b1003261.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 764E8E27-D2D1-4B6E-B105-AD660CE8AB92.1; Sat, 24 Oct 2020 00:31:36 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b6e2b1003261.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sat, 24 Oct 2020 00:31:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GHM99isDqwnH3msqMboF9XOI80q7nAi+oHdrz3P6jCY9K0wIpR2JheNWl3KR6IzNUO2WG6Lf7fCI5joB/DuNgPCu87priwjPjEZCvZNvQzQdCqN9DAlvDK9LUTt9Ycf+D9gI8GY2w6ULSiLVi7j8yDVW54L2jSrfWv+hbd+6V2+NUfJ7UHQRzSxA950mb5H+x0pvn2FA3qpruVM8Th1yiYyBtmyAY97hxPEb1Ts/vOLTfFAF7/eH6SA12xw0Ofk/fh10gGY/iSepE1hcOG2KcBEhsMmYU0ns1Z5Dp+S2YW/H7RPoY7rjJhxjrT0x/XqL2uMKd9FdlMQwFUSpH2yRtQ== 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=gjHKQ32ceZq6iNQfd3sG/QHrOOOqKXwggjdPHGzy5K0=; b=azPDZYL8GXroZvcy7hn+zl54zWbpBTAvwJKiMzQpMQ4J2ODl7oQESdHASklvPBQASzMs+m3I0Lqx/CMdI2K1LxeIqmqZ7o0Hujqdyri0xB9DsoXItKDxUDe4/7tYu5DdP51aL0QdVwiy4diR4gzLfFtc/b+hEDyrKHg/e4nGHvP2Ju/O8J9rL42VI4+/PHakY12eeWtM6VWyO7WSScyPY9xt8zn9mdEN6m666ufZRpwrNy74vjY2BUYZFqHfTmaZa3Ej8DDL27ZGXzbL4RJ/8hrYVwaODrgUj6o4VIw04rnqTGBv1kd2nS6b6eY1hNBSotxSGqhx2rpN8zT+pPNjOw== 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=gjHKQ32ceZq6iNQfd3sG/QHrOOOqKXwggjdPHGzy5K0=; b=H3Zqp7rEwyMxRh/jeB2NJsftFqg+mt+XoFukqJYa0vurDH6mOBhlUfsKVkkJ9P5rCq5pTqtRgdrx06hjvBR6lAriuevQYRdKrnGTuK6Kle14DFH67flfP0gCr6GAU9nkQ2wr2CMvFGnK46HpNdunPrGjf4R2nw7EW5JCu6j7FYU= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DBBPR08MB4630.eurprd08.prod.outlook.com (2603:10a6:10:d6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Sat, 24 Oct 2020 00:31:35 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7814:9c1:781f:475d]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::7814:9c1:781f:475d%4]) with mapi id 15.20.3499.018; Sat, 24 Oct 2020 00:31:34 +0000 From: Honnappa Nagarahalli To: Stephen Hemminger CC: "Ananyev, Konstantin" , "dev@dpdk.org" , "olivier.matz@6wind.com" , "david.marchand@redhat.com" , Dharmik Thakkar , Ruifeng Wang , nd , Honnappa Nagarahalli , nd Thread-Topic: [dpdk-dev] [PATCH v3 3/5] test/ring: move common function to header file Thread-Index: AQHWqUfxvfoMUsTy8UiHxGyvyyDqYKml3FYQgAAKgACAAABk4A== Date: Sat, 24 Oct 2020 00:31:34 +0000 Message-ID: References: <20200224203931.21256-1-honnappa.nagarahalli@arm.com> <20201023044343.13462-1-honnappa.nagarahalli@arm.com> <20201023044343.13462-4-honnappa.nagarahalli@arm.com> <20201023172914.63484d9f@hermes.local> In-Reply-To: <20201023172914.63484d9f@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 2DACDF5F4148194C90C74245A54E5B59.0 x-checkrecipientchecked: true Authentication-Results-Original: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=arm.com; x-originating-ip: [70.113.13.105] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6ead5d1d-d9a2-46fa-5b95-08d877b42e67 x-ms-traffictypediagnostic: DBBPR08MB4630:|AM0PR08MB3233: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2150;OLM:2150; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: OeK3TY9Eki/Ju62YrNYGdHeBdrlrMpMXRAHgVZAkSuZ8W2US+XrOaT/09AkijYUp5JsUN14RtRA+zlkGkTc+YeLgZa+e6u4Ldil7kCoDPzreR7XABDQR1aoPwE4q9/vY0buYHo9h65X/CnvOzNwaC0spnkaex/X1ObN+76bD7GuUZU/c9GOUsltmbRyT0oxSAv/YTrZlZ2XDhROQtZSfDiS9sEa1Q2r7WxBoGQKR1BQzqnw/steeT5g8tuIYTcYwzgv5U048O7b8q6ibtNTXeznb/qTQ8XyFzaLhzad3S2f5Ns+fpMEvyU/IQBoWkHWOdRrCE29Ib34FAc0v/RGfqQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(366004)(396003)(39860400002)(136003)(54906003)(66476007)(8936002)(66946007)(6916009)(5660300002)(86362001)(33656002)(76116006)(6506007)(2906002)(64756008)(71200400001)(66446008)(66556008)(52536014)(9686003)(316002)(7696005)(478600001)(4326008)(26005)(186003)(8676002)(55016002)(558084003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: OVAFCNnvoxIQAIFT/dfDCuyfyqnybpOrPLO2LO4p78OQYFAdGsrpPRY3l0+uaDHaTvyxXHmOX7zUnD3/yGdadmBRShooipyN7JmGq0tZ3i0DSAEj0JKRwLzF90H4+1TaAFAA0KbD8qNWv1HZV9oSgLUzxpIj5Mdo14QRQ4sFFu99OEb98SqBnvmIfMgaNFiiq7r4hJGDr9kXUsxUX8Uljd3sqv4HNtYTMGxyMGk6HIPWINZwPQJAHGp6D46w1H/Ojps8UqSBqjMlt9nQldCNxg25HxqjwIIk2ScZJvBAz4IN09OYBopa8Sk4t1NaVJ2x2yzJhhB/PvLJsNdG32gcjiH2en5/hseOyQOGYZ6YbzmhS0aJptczX9zf3BnQkAimLPHLvyH5CVBEDGAfC/Y3xSlVinOxUNkHBf3yQdErlJ5kspLvwlJ9ElCUeuU7gALzAl+DwSu3BLcDQ2AjYj0WpXjWObev3RPTVvWIKZqJjH2qMr+TpJkpfAHoqMCVGsGC2XX9FcOo8GDk3/djElTfyS0t9RIlXxGObjBaR9SrO/Cj+mRD55Lk1fDiu0TXIhM2vkVNhX8Fe6KcQbT+fflvGTVCoVhZnl1BXajBl+IJe40HrZ/bEG63eg2G4VAkL+NcU4SiQTJj3q+mxhL1lloXNQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4630 Original-Authentication-Results: networkplumber.org; dkim=none (message not signed) header.d=none; networkplumber.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: fda5af47-b206-427b-42c5-08d877b429a4 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3Q7ILeupMiYeP8MmADVujfHOu18jLwj+MGTcYSdaMAWeJMBrCp1Nb/zXL8KOAtmEtcqO2EFZj0aZM6CZ6/YWvVSzJxAQdiyxhqcFmRy4NXt2YCtq6upts5AeE3dr3utpA1isQcBspBp41Rf0p/y5fIGv3MY9BWhSZcyyep0nJZL/ht3a8Rw+qQBb1ZTOtKUuVvRP9/8N4w2pHwiKMxXJfYRpiBFBp4K89kzUtmRWj4L+VhK/Ra8fHw8zySu6EDFNXWl2x65WMD3c+Wl+lzIfKabZw+i0Iy/a+DjFZKpkm6qOg768FVkfKD5PnFjSG1SJ5JQaDYxFvclZ5QzaJ7oAWDp1z+dpoxoWXl3V4Dr83GXYydL4//Lrv1GrkurfJs1QeVzFzHWHI1JKyXe+AMCzkA== 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)(136003)(39860400002)(346002)(396003)(376002)(46966005)(81166007)(8676002)(316002)(33656002)(52536014)(82310400003)(82740400003)(70206006)(86362001)(47076004)(5660300002)(54906003)(70586007)(478600001)(9686003)(4326008)(186003)(356005)(558084003)(26005)(336012)(6506007)(8936002)(55016002)(7696005)(6862004)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2020 00:31:42.9190 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ead5d1d-d9a2-46fa-5b95-08d877b42e67 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: DB5EUR03FT050.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3233 Subject: Re: [dpdk-dev] [PATCH v3 3/5] test/ring: move common function to header file 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" > > static inline void* > > test_ring_inc_ptr(void *obj, int esize, unsigned int n) { > > int sz; > > > > sz =3D esize; > > /* Legacy queue APIs? */ > > if ((esize) =3D=3D -1) >=20 > Extra (paren) doesn't help readability either +1=20