From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2269A0547; Tue, 31 Aug 2021 00:13:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FB7C40042; Tue, 31 Aug 2021 00:13:04 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30051.outbound.protection.outlook.com [40.107.3.51]) by mails.dpdk.org (Postfix) with ESMTP id 53B9840041 for ; Tue, 31 Aug 2021 00:13:03 +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=wDI20pNPgGVcqnanYRNr7DxC/4Krkoxcm5aI8/bXlJs=; b=yFMyGs5pswAfGpcWZ6r937V1QSp1AbeWJ5ooV8I+Lf2hy95QJyHkMsRIk8mGRO9vQYxH3h+pfbIXMH7+1kcqEz/RAKPThO0mIigViRbyjbbio9heqEkLUIP8Uf+6ZPEQWjBaqw33BN88eO/06dcS8P2R8EOn7lW3SWOfnWFvbyU= Received: from AS8PR04CA0140.eurprd04.prod.outlook.com (2603:10a6:20b:127::25) by VI1PR08MB3904.eurprd08.prod.outlook.com (2603:10a6:803:c0::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17; Mon, 30 Aug 2021 22:12:56 +0000 Received: from VE1EUR03FT004.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:127:cafe::b8) by AS8PR04CA0140.outlook.office365.com (2603:10a6:20b:127::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.24 via Frontend Transport; Mon, 30 Aug 2021 22:12:55 +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 VE1EUR03FT004.mail.protection.outlook.com (10.152.18.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.17 via Frontend Transport; Mon, 30 Aug 2021 22:12:55 +0000 Received: ("Tessian outbound 56612e04f172:v103"); Mon, 30 Aug 2021 22:12:54 +0000 X-CR-MTA-TID: 64aa7808 Received: from 06731312fc29.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C217E1EC-5EFA-4BDB-B59E-AFF536BC931B.1; Mon, 30 Aug 2021 22:12:45 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 06731312fc29.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 30 Aug 2021 22:12:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cB+P8LnPAxQnXseFWxCOZzIJBs3rfnlJBSxxr3FOlKZwN7FgxGHcAL6Lh53Q6J6086wm9mZa7/QWrHhKMtGrk+S07S3X85AS8CkaELAYPgwnfEwPaoElMnr75hU4iMVQbj/2KC7w8titBGygBGkKq4DUPozd1gd3PMWa6F85Sz488Vx6ISaRxugdqmCm7GyfAz2SNTz+jQqUhJIUA5IT6nwkwSPy5Lmcsqby3XjSAylR2QWIatY8w0KUL84z5KSowXBdQFrwj2oIuXL231TK8Z9CqL0gxeuIvGL9ssr1VGjPxCX4MFhV5FlT70s1geVTLJ64zVb0RfGDDdAkel8E/g== 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=wDI20pNPgGVcqnanYRNr7DxC/4Krkoxcm5aI8/bXlJs=; b=T2jGDJWaS8CE3KqgXkUUVog9fusClN9zVAH2CiGmoTTkU7YvaejR7KSC2r0zAflKY+8fgdVp4XN6qnugyGQKflFA+F1cfghTvaU43lFdRJEw2LIGDiLpaIy/ZqhcELhKn54NburOeZ5nq/ayHFOfMavDAR13Ct142185VostZepz/LH31PCw+feqqyJyQTNsF7sAvtyyzXEVx/SF+DC52osUB7TsLZ/Qak2WYmd0Tmzuc53W6X150lXBl6QJMMAnt/i75k3DAoS1SHjloy9MskUgBYYv1346SRcQLqgOOxDyKEK3ppba2RD5Ps7mQqJqJxxy5XN+Yw3ymtR4BV/FjA== 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=wDI20pNPgGVcqnanYRNr7DxC/4Krkoxcm5aI8/bXlJs=; b=yFMyGs5pswAfGpcWZ6r937V1QSp1AbeWJ5ooV8I+Lf2hy95QJyHkMsRIk8mGRO9vQYxH3h+pfbIXMH7+1kcqEz/RAKPThO0mIigViRbyjbbio9heqEkLUIP8Uf+6ZPEQWjBaqw33BN88eO/06dcS8P2R8EOn7lW3SWOfnWFvbyU= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DB7PR08MB3754.eurprd08.prod.outlook.com (2603:10a6:10:73::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Mon, 30 Aug 2021 22:12:34 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::8187:ccbc:30d:3464]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::8187:ccbc:30d:3464%5]) with mapi id 15.20.4457.024; Mon, 30 Aug 2021 22:12:34 +0000 From: Honnappa Nagarahalli To: Stephen Hemminger CC: "dev@dpdk.org" , "olivier.matz@6wind.com" , "lucp.at.work@gmail.com" , "david.marchand@redhat.com" , "thomas@monjalon.net" , Ruifeng Wang , nd , nd Thread-Topic: [PATCH v3 1/2] eal: simplify the implementation of rte_ctrl_thread_create Thread-Index: AQHXnb5ijhuaN/y1KE6ih4vjhp47jquMnFng Date: Mon, 30 Aug 2021 22:12:33 +0000 Message-ID: References: <20210730213709.19400-1-honnappa.nagarahalli@arm.com> <20210830163413.31576-1-honnappa.nagarahalli@arm.com> <20210830094453.7c83e98c@hermes.local> In-Reply-To: <20210830094453.7c83e98c@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: DE7E9EFD17E9A14D93812B7B13F0608A.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-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 400cecc4-57bd-44e8-6081-08d96c035136 x-ms-traffictypediagnostic: DB7PR08MB3754:|VI1PR08MB3904: 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:6108;OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: UQ/GsW79+brf4Dn+0fkgmE3Qm6ItKKD9JeerQNifRriSq5MnLfytFXFKUz1DIYA6nnMlNZpa3eflj8djSgIgByBqvlgRmi3Qns3+PCv0cnuFY6oDSNWRHfk+mtYfPgJKdLhc6+2Cgka9pHm5Lo57wYiH8NdxegtI5l3ixforDBs87tmH3WUqMie2rh8D6z8EtQaYu4cwNt4qjcXRLiF5P9rzUTPwdqxQQ4cN5NecBitT6fWMtHhhnNZkNWkQC/s5mtrHliPMxj3XXlCsieRfnJC6MMXEHY1WTZu8Q44edVBXOTIVWdL/5AaUnW62a3fB+Z14PrEfZtNzMozKXzZLEmFM6KiyO6QtbAZzbJ+NNBwg3wK2jfT452+NiauW1R3oj1C/vQWpYViy4bL+q9Ae/b+ZBOSBvDD6jNXZiEY8oHjv+X2N5dXso4f/FklaDdn3jgSNbtaW3pzfV5O5ks8a/9hRYwyW6gWzTQFT6cR8spDIF9eWNcnCjuI7HnrWfDOxdisf3g9koKbibBgI9NK40YLUVNqerug9kzoPjM1TMq/5ypd4j81u6C3HSGUcpuqd91nqtbwb8tA5vkYPQwK0lBLh3r5z72VCw7bFTA7b14ew1yadR+JDPR8Zxl8bVqBaWySyS2JxZcEA/HbsUvkeMFixnZFZ+h24c+klDc2N7z9q0XQgoYwi/oe4zoUqoKxvCzTjmskycjqp3UQ8jlSpfw== 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)(39860400002)(346002)(366004)(396003)(376002)(136003)(76116006)(86362001)(122000001)(8676002)(26005)(64756008)(66946007)(8936002)(6506007)(4326008)(2906002)(6916009)(55016002)(71200400001)(9686003)(4744005)(38100700002)(54906003)(478600001)(33656002)(5660300002)(66556008)(52536014)(316002)(7696005)(66446008)(186003)(66476007)(38070700005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+X1ZmMeNY1VTssjNmuf3z40pfkL/XQWBwFrzcikUtKmYWVWFIPaAPqAWvUjR?= =?us-ascii?Q?0i24eoXbID6o+r6NTBtY+9G7NTFh1aq31JpH+9CdmXHcn+JKG7DdJzLFTlHj?= =?us-ascii?Q?Ad9oi4hSm8lGstKKV8URff8pTkSRekibfUjRKgmMbDDXmTEOHgXfRf1N9DYv?= =?us-ascii?Q?ZCl99mw2elxkaZnlm6wwx+TXFrYVbZmEgJ1nAueozkoJ1ewzxnSd97ilyWqJ?= =?us-ascii?Q?EBzHHWhuyp46pBbB2Otwh2fW16bkawGUkps7/TOwfg19vFF2Q7ztI14eThyr?= =?us-ascii?Q?gdE93Xd47lNiMz/YNP1heUl3S4miXeTL56Ym6TY38R6kQ69xveN2gMPckoRg?= =?us-ascii?Q?oi6a9mO25y3+XuvMLxxJAtWY4JZ/9Yr0zu6v2HNxZfwdUM3PvBlwbWdd6VXr?= =?us-ascii?Q?Xuec2T9gXbmZeRCSfnOvHBu20M8EMCXqboO00LSRuQAhlSdTY1hjY7eBEyBK?= =?us-ascii?Q?yCBeV1AtZXuzIiVJzSKgK26dXwMttRk19KM9yIGEJxpJddqv/0wZgh2uE7Hl?= =?us-ascii?Q?+5Kgci68rrSn7xehHlYhkdbx5+4HZ+r/I8dFhPSxo7idd7A4m1E0LRSnxysT?= =?us-ascii?Q?3o4xiTJC7qNJ6Cj03288MAzWF/5ppI8w+dnHnkaQFMub7XTHkxNRUcxBnCSp?= =?us-ascii?Q?+VfnBHzOm1zdxodsWfcOdXBuc3pj2pFV7ID77Zr+JzK5gYqRwIBTyQLfJRp4?= =?us-ascii?Q?lMQbXw5D1xs33CNujYMLhQ9XltX9e9zwfyxLGT24qWh3ju+Jq6Er9G/8N0u0?= =?us-ascii?Q?4ZvTcWY1PhnQYFMGFgOe201hzMCnUuw1QH01ewWjDLSHIwBqtcMEtqwCeuuq?= =?us-ascii?Q?Glixkercme/CY0VEF33SE1yPBoM/2c43/sPU7IXscnWZXJ7teTIFDGGOBhbQ?= =?us-ascii?Q?ktpgOqwqZa7R6Jgt+CmGxPd1K56nRwrrymrwxHUM2jWlSaGiffSiG90Up309?= =?us-ascii?Q?B9PkFQWqAOg0+NGlIJgV0A3Ni8gqVZrEngSyOPsUVZXxlCjZfBUhTEOW9mnB?= =?us-ascii?Q?J8SHQhH+t5Pbd4FaxiF72dSIcLSrSQNXQzpNpcaNpH+4i9oaOW8x49BzT1qb?= =?us-ascii?Q?pWCPmdHjccjJbefABMb8zR+X/BqaYUPwcEJY7l6tWUHzgccCduLI0pE6lzKy?= =?us-ascii?Q?9FIn8gmhSix1JeU8/SRJEQlH0tbmlzWQQiR6hBiHoI9o7VCuC5smIQE0qdJJ?= =?us-ascii?Q?yWjT2x6vBlpaVymTJ3eX7JPHEo/Zah6A23t1M18xEXwxxUNhveQYuzFH781j?= =?us-ascii?Q?Xnpo42yLXXzF3tGK3QBfuTks7csaBGXqGUdue6cV8V6TBF7Z2KNY7eq5kttH?= =?us-ascii?Q?vyb+2AVQxr8uL0lJoujAePe1?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3754 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: VE1EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 72adfda2-e52c-40fa-65c5-08d96c0344c6 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q1SFpISC/42EDZF1nJYS4OCKuIchiuwgO4FrmL4i46omEau2kZ/WD6gM7sR4fMe1PGj0E7oxOMFqPy9OfqedjyOjcvg/or7nwmDx3ld0ZUIDrS3ELdtGAULRKhHp7vqateXkWzR1ZrBFUtPDyIkmLxv02qwRjTptnQBVNSlwZbf0IKkH31m9utoNuEipqsthIsZvH5Mq24dAlNIBicaTZzCqqIIHX23HZA+1VXMCB9f0d8QId0+VOIHbjgCCZQkzNOMbJh6LZ1ZGYK8DWxrIeFa/kPvccyVMsZv5ZuM6eE/N58sUBeFDZ2wcMFByqzqWFQe3q/QdfFSaMCCnUAcFbA3uYWJdGnYnSZ7WTO26o+OAS4jUkuYyys0vPY+Ps/EW50P7pG/t7PnJRn65DSPXvBk0qSAtSPe78FDOS3wbjeMX+mlMtis8j4bUvN7jg62Lun3bvh3B0xnU+fIicq8ogNgbfo6yGIvuW7mA1sDnTY48M2/t6M5E9fuCGyjeytNCFJFoVz00W/Qj2nSZtzTT4+PWz7C7i4BxpWPMBhm2xqlfVpCE2xB3uhIKILZtzHNG0+0nWSClWU1K9ikT5pGqF1VkJiAG4pcOHoLQURDMtWFBitHyM5lEOya+4jtCc8J4ANd6nleSFU6gmJk3BfhJjBusqQvJKIFSN51eh+mYha3IHuB4/XFWjwSlKZ6TiNBSRqDUt9zKU5Ui8iS3jUUSsQ== 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)(39860400002)(136003)(376002)(396003)(36840700001)(46966006)(54906003)(26005)(4326008)(7696005)(478600001)(33656002)(8676002)(8936002)(336012)(81166007)(356005)(186003)(82310400003)(82740400003)(52536014)(5660300002)(86362001)(316002)(9686003)(2906002)(6506007)(70206006)(47076005)(55016002)(36860700001)(70586007)(6862004)(4744005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2021 22:12:55.1756 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 400cecc4-57bd-44e8-6081-08d96c035136 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: VE1EUR03FT004.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3904 Subject: Re: [dpdk-dev] [PATCH v3 1/2] eal: simplify the implementation of rte_ctrl_thread_create X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 Mon, 30 Aug 2021 11:34:12 -0500 > Honnappa Nagarahalli wrote: >=20 > > + /* Control thread status. > > + * > > + * _RTE_CTRL_THREAD_LAUNCHING - Yet to call pthread_create > function > > + * _RTE_CTRL_THREAD_RUNNING - Control thread is running > successfully > > + * _RTE_CTRL_THREAD_ERROR - Control thread encountered an error. > > + * 'ret' has the error code. > > + */ > > + unsigned int ctrl_thread_status; >=20 > An enum would be clearer here. I used #defines as the values are assigned to an atomic variable. We can as= sume that enum will be an int.