get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/139720/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 139720,
    "url": "http://patches.dpdk.org/api/patches/139720/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240429095138.106849-4-mattias.ronnblom@ericsson.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20240429095138.106849-4-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240429095138.106849-4-mattias.ronnblom@ericsson.com",
    "date": "2024-04-29T09:51:35",
    "name": "[RFC,v3,3/6] eal: add exactly-once bit access functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "e0a87a9748cb1e427ea4f3103a55e020fd5f293e",
    "submitter": {
        "id": 1077,
        "url": "http://patches.dpdk.org/api/people/1077/?format=api",
        "name": "Mattias Rönnblom",
        "email": "mattias.ronnblom@ericsson.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240429095138.106849-4-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 31838,
            "url": "http://patches.dpdk.org/api/series/31838/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31838",
            "date": "2024-04-29T09:51:32",
            "name": "Improve EAL bit operations API",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/31838/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/139720/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/139720/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 417D543F49;\n\tMon, 29 Apr 2024 12:02:27 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DFE5E402EB;\n\tMon, 29 Apr 2024 12:02:12 +0200 (CEST)",
            "from EUR04-VI1-obe.outbound.protection.outlook.com\n (mail-vi1eur04on2042.outbound.protection.outlook.com [40.107.8.42])\n by mails.dpdk.org (Postfix) with ESMTP id E8453402D0\n for <dev@dpdk.org>; Mon, 29 Apr 2024 12:02:08 +0200 (CEST)",
            "from DU2PR04CA0069.eurprd04.prod.outlook.com (2603:10a6:10:232::14)\n by AM7PR07MB6232.eurprd07.prod.outlook.com (2603:10a6:20b:135::7)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 29 Apr\n 2024 10:02:07 +0000",
            "from DB1PEPF00039231.eurprd03.prod.outlook.com\n (2603:10a6:10:232:cafe::ed) by DU2PR04CA0069.outlook.office365.com\n (2603:10a6:10:232::14) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34 via Frontend\n Transport; Mon, 29 Apr 2024 10:02:07 +0000",
            "from oa.msg.ericsson.com (192.176.1.74) by\n DB1PEPF00039231.mail.protection.outlook.com (10.167.8.104) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.7519.19 via Frontend Transport; Mon, 29 Apr 2024 10:02:07 +0000",
            "from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by\n smtp-central.internal.ericsson.com (100.87.178.66) with Microsoft SMTP Server\n id 15.2.1544.9; Mon, 29 Apr 2024 12:02:06 +0200",
            "from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100])\n by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id\n B50331C006A; Mon, 29 Apr 2024 12:02:06 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=bP/9wu0FKmp/zj09tCyP8uTY3eEq+pmk830sRGekS0RS1V2h0fn49JdT6SdfzbJbpUxMgtykc2xQz1KhEWzCVtp1GveOtaewdwFxaK+vkvlHuljyXHXqEhW1hOAd6Ec0tC3zK5YtW/jiA4PxXJ3l/J73r07Iz+yF6bclNhr+F6ccQMtYK7DnTWERlRsFVdj/c6gZBESQ/jpHlTxMuzleyqSLgTEGKnIo7NcJskE9y36RIH057rjicfCi/BEtzL9BZPq/Sm+RqN7ao6KNImje/xY7MbuD6J/Xb7uPnmEzEvUCbpW/xT8gWms7R4vxP6uc/MTHRc/RU7Ls+aKqJWei1w==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=vV0MxvxvrsgxLRzfbnzW7OwWkR3i8PuvgA6na5XXKQo=;\n b=W/SOdHsj3wE6BOC1aBfR/5WihWGkcZOc21vHfEwyaBSnBf9OiSHIRxbrVVxe66l3gxeBf8vjG3APPOhBc3/MLGqOi4SGFf0jgoe9uSCaV2uaYD8BzEjZyR9EAQ+4xZviCKF8TolmSwq+029qtZDbhVbMCSpDcg+mQOogwBaFylLNwdR8X/C7+lf4KjG5cGlrsmnZsDExXyKFo7i5jYpZzpyh3asoIfoX3WuWJUnF5JFrXSXVnkOJGcw6NqCeuYWVofuw+pai/SArgQuzRe2dEN1QS98tQWIj55i0Vmx3HgEdJqiT+HdTGSRuf2OmzCVwbSMsIjGcUY2aDEguVDmcyg==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 192.176.1.74) smtp.rcpttodomain=dpdk.org smtp.mailfrom=ericsson.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ericsson.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com;\n s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=vV0MxvxvrsgxLRzfbnzW7OwWkR3i8PuvgA6na5XXKQo=;\n b=YkjhvR/MUbu2qwrekLMEbWW/gq8dv7AT7R8UAunas2nemWixPVz7j6HiUqLZTNj77qf4ph8oZAOGnRrFlxTaYlmN5irPFk/78q1ZPX1NU+GMT9ad4JWKjHqb7h8ax3AKBfYHTyuOYzrGGgYSYhSOQb1+emHAHaCaJk4FZK6aUzIkZdnCVazwqpQlWsbEcwkvH/1kLOFf1gwWmJgO/9xAAqNElTEKGJ2josVZPoWfpdnDbfPJCZ+1AKVvXC14lSyUlkN2C+e8KuX7b7xbVnhP1Ted25I9PoRmwTSDpCYPzruAXMT4A1+3nKsw4AQcyxCqx+dq9Ad/HjZW+mj0KKzNLA==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 192.176.1.74)\n smtp.mailfrom=ericsson.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=ericsson.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of ericsson.com designates\n 192.176.1.74 as permitted sender)\n receiver=protection.outlook.com;\n client-ip=192.176.1.74; helo=oa.msg.ericsson.com; pr=C",
        "From": "=?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<hofors@lysator.liu.se>, Heng Wang <heng.wang@ericsson.com>,\n \"Stephen Hemminger\" <stephen@networkplumber.org>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>,\n =?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>, =?utf-8?q?Mattia?=\n\t=?utf-8?q?s_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>",
        "Subject": "[RFC v3 3/6] eal: add exactly-once bit access functions",
        "Date": "Mon, 29 Apr 2024 11:51:35 +0200",
        "Message-ID": "<20240429095138.106849-4-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240429095138.106849-1-mattias.ronnblom@ericsson.com>",
        "References": "<20240425085853.97888-2-mattias.ronnblom@ericsson.com>\n <20240429095138.106849-1-mattias.ronnblom@ericsson.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "DB1PEPF00039231:EE_|AM7PR07MB6232:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "5124dfca-bda7-494c-1f61-08dc68336d9f",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "=?utf-8?q?LMTMLkkKVTwIUsYdTFVk4++eIHdC5Mx?=\n\t=?utf-8?q?TnC+ZYybsfp1EDYiAg4MVQ8L+JMIl1Dun4zVwTGMRmkyPH1LDLNbgunLU4Z9b6tA9?=\n\t=?utf-8?q?UwtIMFwi9bzPGO+vBsJl5qmKSBdP25wktCC5Teux+5fDZOJGDQHx3Mm1AzwRHzRnF?=\n\t=?utf-8?q?/lgtBbOJkZxBUr0g5FVxDE4oaN+FV/jSAvAIRYEv+iWgT2q3Goh4SB7YfeGj198cw?=\n\t=?utf-8?q?SLFRuVLLJKF8sazj8lyYDCPFplJtP54k/yqgEwbOZUKzDlJhQ3cKSOgl6QO2WxfZo?=\n\t=?utf-8?q?Ss/7FKpOAmrUXypwS8ADPS0+i6OrS3KJOnBfPzYsanrv66j8ydH4ihCayCgp83dNN?=\n\t=?utf-8?q?Bhf4YDwLkom9+ewspNwlJxSf3Pd3AKTI8NkwNTNtuZe4y67QSso1lJHm8iG4mPzAX?=\n\t=?utf-8?q?KzKL4Q3FGfrNYBUfDMITUH6PcoPYVGSXHVBHoWBAWehxE9/CHwWDbEoHDzJ/ixjM6?=\n\t=?utf-8?q?ZF2zNEh1dZUtc8M8/7DYH60TRuPh+YbSwnB78DoggY/utLjJC4jHUigOLt0WbpCEq?=\n\t=?utf-8?q?mBfxwi0Ww399/7f+FcWp7ZTFL1q08CIRndMj86M7+c75VPtcqnEU567ryIc45AIRR?=\n\t=?utf-8?q?clv/3kX2NXlZR4/xH8YG6/BkIzwyyfYG+mg9EirTB7n2ebRDAQaLOpRPCCknTA8LV?=\n\t=?utf-8?q?qe4Y/alyZJiIVlnwnmPdg6W7XHhxPOQoqXKayoR0oR3Hrn026fSAETX03snHpno2Q?=\n\t=?utf-8?q?9ALPNTsCpEsPp2DG067CBRfGr07hz5tYc5I3LYmoUMWAZhorUx4umpaS95UKEDFZ1?=\n\t=?utf-8?q?uGy8uIdSvL0WlAX3jPO5Gl/O10pbpdyU+9+8ztOj6HK6EfV/cFPvC+jX12smqVgGa?=\n\t=?utf-8?q?vzWdulE/7r3PlGCPX0s5Y4Q7qUqR9W06hA0QGGqifD7BCKcIkhB9ujUd5GTEN869R?=\n\t=?utf-8?q?Ho1g4rhBcwSy1xe/JVflL/s3fQwcXie8yR07m7HF8Y5KuEL6pBLSRN7SdGRWlA2rb?=\n\t=?utf-8?q?0L8ypWBN9aq2a22DhFbat4mGsk4yRrvpSSlZWCKs0ZbPl7zyaUJBUthg9bZieNf+5?=\n\t=?utf-8?q?rWqEPP+caPZBEGf4KSdPG9nKvw1Cr2Nslk/2Vvix5LxGk4h0yjSrtR00f+anS/hST?=\n\t=?utf-8?q?LYAEzICsZrxcAwG+q3Tx7pBZgUpQQbe6GfFAynqMXy0rLlrbCiNq9hG/F0HlVDHVI?=\n\t=?utf-8?q?h5umcT2Tp4WztpRmpGTuLAWM286rB6FBqj0dj5SmrRd5rRgWvBD1tt/22DFBye5j0?=\n\t=?utf-8?q?oOMoCiVjQKUB2GWdV2S0H3o3urHICBWFup6kQ0Q1U88u9SKlK+KgAuAKobH8VaVpd?=\n\t=?utf-8?q?3X23Dyx/XWv1W9qEK3wpC/PEcaJsUohHJ3sc1oWci/jgh2nKLLLyO4FCuRMCjT7HO?=\n\t=?utf-8?q?NaVd2hYEG7fx?=",
        "X-Forefront-Antispam-Report": "CIP:192.176.1.74; CTRY:SE; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:oa.msg.ericsson.com; PTR:office365.se.ericsson.net;\n CAT:NONE; SFS:(13230031)(1800799015)(82310400014)(376005)(36860700004);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "ericsson.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "29 Apr 2024 10:02:07.0595 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 5124dfca-bda7-494c-1f61-08dc68336d9f",
        "X-MS-Exchange-CrossTenant-Id": "92e84ceb-fbfd-47ab-be52-080c6b87953f",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74];\n Helo=[oa.msg.ericsson.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n DB1PEPF00039231.eurprd03.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM7PR07MB6232",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Add bit test/set/clear/assign functions which prevents certain\ncompiler optimizations and guarantees that program-level memory loads\nand/or stores will actually occur.\n\nThese functions are useful when interacting with memory-mapped\nhardware devices.\n\nThe \"once\" family of functions does not promise atomicity and provides\nno memory ordering guarantees beyond the C11 relaxed memory model.\n\nRFC v3:\n    * Work around lack of C++ support for _Generic (Tyler Retzlaff).\n\nSigned-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>\n---\n lib/eal/include/rte_bitops.h | 180 +++++++++++++++++++++++++++++++++++\n 1 file changed, 180 insertions(+)",
    "diff": "diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h\nindex fb2e3dae7b..eac3f8b86a 100644\n--- a/lib/eal/include/rte_bitops.h\n+++ b/lib/eal/include/rte_bitops.h\n@@ -201,6 +201,147 @@ extern \"C\" {\n \t\t uint32_t *: __rte_bit_assign32,\t\t\t\\\n \t\t uint64_t *: __rte_bit_assign64)(addr, nr, value)\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Generic selection macro to test exactly once the value of a bit in\n+ * a 32-bit or 64-bit word. The type of operation depends on the type\n+ * of the @c addr parameter.\n+ *\n+ * This function is guaranteed to result in exactly one memory load\n+ * (e.g., it may not be eliminate or merged by the compiler).\n+ *\n+ * \\code{.c}\n+ * rte_bit_once_set(addr, 17);\n+ * if (rte_bit_once_test(addr, 17)) {\n+ *     ...\n+ * }\n+ * \\endcode\n+ *\n+ * In the above example, rte_bit_once_set() may not be removed by\n+ * the compiler, which would be allowed in case rte_bit_set() and\n+ * rte_bit_test() was used.\n+ *\n+ * \\code{.c}\n+ * while (rte_bit_once_test(addr, 17);\n+ *     ;\n+ * \\endcode\n+ *\n+ * In case rte_bit_test(addr, 17) was used instead, the resulting\n+ * object code could (and in many cases would be) replaced with\n+ * the equivalent to\n+ * \\code{.c}\n+ * if (rte_bit_test(addr, 17)) {\n+ *   for (;;) // spin forever\n+ *       ;\n+ * }\n+ * \\endcode\n+ *\n+ * rte_bit_once_test() does not give any guarantees in regards to\n+ * memory ordering or atomicity.\n+ *\n+ * The regular bit set operations (e.g., rte_bit_test()) should be\n+ * preferred over the \"once\" family of operations (e.g.,\n+ * rte_bit_once_test()) if possible, since the latter may prevent\n+ * optimizations crucial for run-time performance.\n+ *\n+ * @param addr\n+ *   A pointer to the word to query.\n+ * @param nr\n+ *   The index of the bit.\n+ * @return\n+ *   Returns true if the bit is set, and false otherwise.\n+ */\n+\n+#define rte_bit_once_test(addr, nr)\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_once_test32,\t\t\\\n+\t\t uint64_t *: __rte_bit_once_test64)(addr, nr)\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Set bit in word exactly once.\n+ *\n+ * Set bit specified by @c nr in the word pointed to by @c addr to '1'\n+ * exactly once.\n+ *\n+ * This function is guaranteed to result in exactly one memory load\n+ * and exactly one memory store, *or* an atomic bit set operation.\n+ *\n+ * See rte_bit_test_once32() for more information and uses cases for\n+ * the \"once\" class of functions.\n+ *\n+ * This macro does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ */\n+#define rte_bit_once_set(addr, nr)\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_once_set32,\t\t\\\n+\t\t uint64_t *: __rte_bit_once_set64)(addr, nr)\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Clear bit in word exactly once.\n+ *\n+ * Set bit specified by @c nr in the word pointed to by @c addr to '0'\n+ * exactly once.\n+ *\n+ * This function is guaranteed to result in exactly one memory load\n+ * and exactly one memory store, *or* an atomic bit clear operation.\n+ *\n+ * See rte_bit_test_once32() for more information and uses cases for\n+ * the \"once\" class of functions.\n+ *\n+ * This macro does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ */\n+#define rte_bit_once_clear(addr, nr)\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_once_clear32,\t\t\\\n+\t\t uint64_t *: __rte_bit_once_clear64)(addr, nr)\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Assign a value to bit in a word exactly once.\n+ *\n+ * Set bit specified by @c nr in the word pointed to by @c addr to the\n+ * value indicated by @c value exactly once.\n+ *\n+ * This function is guaranteed to result in exactly one memory load\n+ * and exactly one memory store, *or* an atomic bit clear operation.\n+ *\n+ * This function does not give any guarantees in regards to memory\n+ * ordering or atomicity.\n+ *\n+ * @param addr\n+ *   A pointer to the word to modify.\n+ * @param nr\n+ *   The index of the bit.\n+ * @param value\n+ *   The new value of the bit - true for '1', or false for '0'.\n+ */\n+#define rte_bit_once_assign(addr, nr, value)\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_once_assign32,\t\t\t\\\n+\t\t uint64_t *: __rte_bit_once_assign64)(addr, nr, value)\n+\n #define __RTE_GEN_BIT_TEST(name, size, qualifier)\t\t\t\\\n \tstatic inline bool\t\t\t\t\t\t\\\n \tname(const qualifier uint ## size ## _t *addr, unsigned int nr)\t\\\n@@ -239,6 +380,14 @@ __RTE_GEN_BIT_TEST(__rte_bit_test64, 64, )\n __RTE_GEN_BIT_SET(__rte_bit_set64, 64, )\n __RTE_GEN_BIT_CLEAR(__rte_bit_clear64, 64, )\n \n+__RTE_GEN_BIT_TEST(__rte_bit_once_test32, 32, volatile)\n+__RTE_GEN_BIT_SET(__rte_bit_once_set32, 32, volatile)\n+__RTE_GEN_BIT_CLEAR(__rte_bit_once_clear32, 32, volatile)\n+\n+__RTE_GEN_BIT_TEST(__rte_bit_once_test64, 64, volatile)\n+__RTE_GEN_BIT_SET(__rte_bit_once_set64, 64, volatile)\n+__RTE_GEN_BIT_CLEAR(__rte_bit_once_clear64, 64, volatile)\n+\n __rte_experimental\n static inline void\n __rte_bit_assign32(uint32_t *addr, unsigned int nr, bool value)\n@@ -259,6 +408,27 @@ __rte_bit_assign64(uint64_t *addr, unsigned int nr, bool value)\n \t\t__rte_bit_clear64(addr, nr);\n }\n \n+\n+__rte_experimental\n+static inline void\n+__rte_bit_once_assign32(uint32_t *addr, unsigned int nr, bool value)\n+{\n+\tif (value)\n+\t\t__rte_bit_once_set32(addr, nr);\n+\telse\n+\t\t__rte_bit_once_clear32(addr, nr);\n+}\n+\n+__rte_experimental\n+static inline void\n+__rte_bit_once_assign64(volatile uint64_t *addr, unsigned int nr, bool value)\n+{\n+\tif (value)\n+\t\t__rte_bit_once_set64(addr, nr);\n+\telse\n+\t\t__rte_bit_once_clear64(addr, nr);\n+}\n+\n /*------------------------ 32-bit relaxed operations ------------------------*/\n \n /**\n@@ -953,6 +1123,11 @@ rte_log2_u64(uint64_t v)\n #undef rte_bit_clear\n #undef rte_bit_assign\n \n+#undef rte_bit_once_test\n+#undef rte_bit_once_set\n+#undef rte_bit_once_clear\n+#undef rte_bit_once_assign\n+\n #define __RTE_BIT_OVERLOAD_SZ_2(fun, qualifier, size, arg1_type, arg1_name) \\\n \tstatic inline void\t\t\t\t\t\t\\\n \trte_bit_ ## fun(qualifier uint ## size ## _t *addr,\t\t\\\n@@ -1001,6 +1176,11 @@ __RTE_BIT_OVERLOAD_2(set, , unsigned int, nr)\n __RTE_BIT_OVERLOAD_2(clear, , unsigned int, nr)\n __RTE_BIT_OVERLOAD_3(assign, , unsigned int, nr, bool, value)\n \n+__RTE_BIT_OVERLOAD_2R(once_test, const volatile, bool, unsigned int, nr)\n+__RTE_BIT_OVERLOAD_2(once_set, volatile, unsigned int, nr)\n+__RTE_BIT_OVERLOAD_2(once_clear, volatile, unsigned int, nr)\n+__RTE_BIT_OVERLOAD_3(once_assign, volatile, unsigned int, nr, bool, value)\n+\n #endif\n \n #endif /* _RTE_BITOPS_H_ */\n",
    "prefixes": [
        "RFC",
        "v3",
        "3/6"
    ]
}