get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139674,
    "url": "http://patchwork.dpdk.org/api/patches/139674/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240425085853.97888-4-mattias.ronnblom@ericsson.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20240425085853.97888-4-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240425085853.97888-4-mattias.ronnblom@ericsson.com",
    "date": "2024-04-25T08:58:50",
    "name": "[RFC,v2,3/6] eal: add exactly-once bit access functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "9eb7db1b269efdb4c76b4ee8ec061c33062bc7c9",
    "submitter": {
        "id": 1077,
        "url": "http://patchwork.dpdk.org/api/people/1077/?format=api",
        "name": "Mattias Rönnblom",
        "email": "mattias.ronnblom@ericsson.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240425085853.97888-4-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 31818,
            "url": "http://patchwork.dpdk.org/api/series/31818/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31818",
            "date": "2024-04-25T08:58:47",
            "name": "Improve EAL bit operations API",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/31818/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/139674/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/139674/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 C3E6A43F04;\n\tThu, 25 Apr 2024 11:10:12 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 61639436CE;\n\tThu, 25 Apr 2024 11:10:03 +0200 (CEST)",
            "from EUR05-VI1-obe.outbound.protection.outlook.com\n (mail-vi1eur05on2080.outbound.protection.outlook.com [40.107.21.80])\n by mails.dpdk.org (Postfix) with ESMTP id 313AB436C0\n for <dev@dpdk.org>; Thu, 25 Apr 2024 11:10:00 +0200 (CEST)",
            "from DB7PR05CA0023.eurprd05.prod.outlook.com (2603:10a6:10:36::36)\n by AS8PR07MB7445.eurprd07.prod.outlook.com (2603:10a6:20b:2af::8) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.39; Thu, 25 Apr\n 2024 09:09:58 +0000",
            "from DB5PEPF00014B94.eurprd02.prod.outlook.com (2603:10a6:10:36::4)\n by DB7PR05CA0023.outlook.office365.com (2603:10a6:10:36::36) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.7519.25 via Frontend Transport; Thu, 25 Apr 2024 09:09:58 +0000",
            "from oa.msg.ericsson.com (192.176.1.74) by\n DB5PEPF00014B94.mail.protection.outlook.com (10.167.8.232) 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; Thu, 25 Apr 2024 09:09:58 +0000",
            "from seliicinfr00050.seli.gic.ericsson.se (153.88.142.248) by\n smtp-central.internal.ericsson.com (100.87.178.62) with Microsoft SMTP Server\n id 15.2.1544.9; Thu, 25 Apr 2024 11:09:57 +0200",
            "from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100])\n by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id\n C0E491C006A; Thu, 25 Apr 2024 11:09:57 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=n22qQnuV3oAebAK7qtO2umi8Wwxzdkdnn5kYqtak3FNwVRzBhBQOk/gPgiveA7XcZFCGC8uZfmEOTY1J5jsf0d+7ReKqfWMkHsOoARZ0XFWi6WDiprEewP/oPbJab520RXwZU52bn6OboO17kbEfgAnFRK82y85XoICtFcP3lBM4IZBRSs8ieDpDdShLzX6nVcHVQH6NaNM+FiLIkSuTFCWZz3UNqKnUGP5VkTo3UIF85eATKSuhlSYrxaTEBI/H/khOjcuqadQ0OCQX59BnlPfdg+VXDsDxlq24k60tXaqUwyDPs/1qcEnD9Dkf8WeARLMI+6qwvUxy7JisMJa70g==",
        "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=L1XCW1dzUR2ggKoBcDUrz5OYrvcTpPDIoxhI9dWGFtM=;\n b=MVC0sWmhGMQaXMdctQKd3RhGWb+SFRR00rmQQfTrHoWuCq4RipV+guYXDuayorAYnsZgrX4LyF3Bnq7cP0k7tIiERF0bRI41zNgLZAtHqkPZyywSU7xhjgLRwKFxfQrd3t91xwyjiCZ75g/LkIqcTm1FABAAImtadHA00IbZHc3ArqZaMRhIIP3IGG/krYhntKkL7N3oMof7VUtw0RHefjOdYLgl+FrU0Ot9pFl+KJaMtCJAh39fytW94PN6RUn7DMelXuKiwOHht1hnWWSuCWPXOaE7PqYwsGx/pQGox2XFDr/OnrS5lzmwgT/lffiByFifLox3Zr7SuWg2fZz3Qw==",
        "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=L1XCW1dzUR2ggKoBcDUrz5OYrvcTpPDIoxhI9dWGFtM=;\n b=OG+WOvbKE91AO0eW7h+xZRf52qOOVU8Uxny3kyyq7iKajhHdl3Ruiuo5VMWKuUPKGT706af7qo4eAkkazHe/EuCAeQ+uxiFp6ugdhbGn8UwP8XpxAywjMOk5y8/LDAcnMol05dJo8NPdYXdUhmvPeaCO7rR8AinSgsHxc5oHW7ghrvVbASMxLjcnC50oDjRDVd0XGB0+uXPrKUoI8jZZidF9saCDjT6SJ91oOb5Xklbcxy127ZH08Pfm7EpkLEue3H9OCsLHpmWVaqWxOkz6woSqv+j0LgAvr3I1vTQPN79NVmF3xEEUwmgNwkgqtNY5sHkZ8OnaPxYJY0gBsqaBzA==",
        "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>, =?utf-8?q?Mattias_R=C3=B6nnb?=\n\t=?utf-8?q?lom?= <mattias.ronnblom@ericsson.com>",
        "Subject": "[RFC v2 3/6] eal: add exactly-once bit access functions",
        "Date": "Thu, 25 Apr 2024 10:58:50 +0200",
        "Message-ID": "<20240425085853.97888-4-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240425085853.97888-1-mattias.ronnblom@ericsson.com>",
        "References": "<20240302135328.531940-2-mattias.ronnblom@ericsson.com>\n <20240425085853.97888-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": "DB5PEPF00014B94:EE_|AS8PR07MB7445:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "0c34275c-8b5c-4219-85b1-08dc65077b1e",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "=?utf-8?q?WlQZTznwYSckNGULqmVrqzvKikkzVml?=\n\t=?utf-8?q?sTVoZ0cvtbQtOvAXJ3Dq27KdgZCTyHONL6DeTiohtoXisNM5ibs3EX7p4TdvHqzJ6?=\n\t=?utf-8?q?qEknMRYuolcKrmD43Sn/sQGpYDoVWIVJU/+2zCrkW8PZRN97VcJvcrJjSmPNYAVL2?=\n\t=?utf-8?q?2i4DKA/Vu/nqLUP1Mx+r3oYFGeXyIjxLjBSUT/ADwKmMrntOwBRg1+OdSUr135hBJ?=\n\t=?utf-8?q?9FHOD99K1+Z/bR6J7l5rD81mGQtzA+LqTGLJ3mLfQtTpI+KtD0G7sdD6De9SttAFj?=\n\t=?utf-8?q?hegq6bII0A3GPSh6gmXEufGJkk0wLpg2tJRo1WH8qk0bnqQWvMIp17iV6mWdFte0B?=\n\t=?utf-8?q?PmgP6y7XYzgREv443FJ866gt42QvPMwgZ61wdK43toPNGVlCuCWNXRmZOfSpWzU0F?=\n\t=?utf-8?q?9+AAbLWxz7Rqy4qhVPEgW5D5s8QBzhWKhKwWmLJ2U8LJ4XSG+wjfRcUxFog2tZFVA?=\n\t=?utf-8?q?z86SMDfirds/1U5djeDarFsIbQbBos0R8iaGerVnraHc+nSvfLbPxqTbzWoEZyOxL?=\n\t=?utf-8?q?C/a+WaMIRKC2ptf+N9SJKenHGCNHJlM5hh/i+qL8yR7VeVhf+M5jWEgPXoAfW3GBi?=\n\t=?utf-8?q?mSGYJ2BRM8kdKmEvrizTc6mvF0uTO2hRMK3RBaU1g9GYXvvzqgi+K1x7CUHpW12ds?=\n\t=?utf-8?q?9vRo4JYoF4o0OADGewpMVQKMqlzFrQvye+JiDd+Tf1Q6MX5zPvA3hF7cpti2TAgT9?=\n\t=?utf-8?q?7ZHvSVL4OezqJp7DESXStDx4C0SiLCiFYJlgPzBOxx0qbALUuNjDJwKAnk5dktsep?=\n\t=?utf-8?q?WV+FHVGIl3XQCGdqpJueh14Y+8xO0s2hmjki/s9f3dZ016AHo4JwUav0d8KhbH9bv?=\n\t=?utf-8?q?r7HLJvjPB+BCHmX4rWaWVIgEDE3lX7bz4kebr/lMhzkVs69CcXRrAN74iCzX41Ir/?=\n\t=?utf-8?q?Jqfr5AmtRjrQTvCL03yoBXOopBpzNXIe46JEmbjbn6OVPrw7L577uEoYS7Cn5kkyD?=\n\t=?utf-8?q?mIs1NG0h5e9AepT/KUVv+j83XfvozlchghDJNXb/eg+m85K211sq7NombrpUWhmTv?=\n\t=?utf-8?q?IMoFjOUm7Ac/fosREogZUrGAttr3bU4zabkYkgkK3uLpkvJhpXbCMJPSrrcAQyrRs?=\n\t=?utf-8?q?KzIqGIcLW5ZF900LTc8KOCHnmpKaGfI35n8KHd1MjRo+c2WE+r6XdjUVqzJbP6W2E?=\n\t=?utf-8?q?ZvPOYkcvnvj1Jgqfa6zbYT9Jtme8EDbg77WYHPldrnHn3RBZhgKFOra/ZV/EQiRjr?=\n\t=?utf-8?q?o2QlEeNlcSdZVIs/cGtydsx70x5sZBDKnQDuxmFZLd2ffVbLxk57wT0scdhyrXnfs?=\n\t=?utf-8?q?JtP/xAShw7Gvno3Ti9qTDjOwBFpTP4ndSPmFKJW6arhVT1jghFqlDxV8=3D?=",
        "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)(36860700004)(82310400014)(376005)(1800799015);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "ericsson.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "25 Apr 2024 09:09:58.3604 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 0c34275c-8b5c-4219-85b1-08dc65077b1e",
        "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 DB5PEPF00014B94.eurprd02.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AS8PR07MB7445",
        "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\nSigned-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>\n---\n lib/eal/include/rte_bitops.h | 170 +++++++++++++++++++++++++++++++++++\n 1 file changed, 170 insertions(+)",
    "diff": "diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h\nindex 75a29fdfe0..a2746e657f 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",
    "prefixes": [
        "RFC",
        "v2",
        "3/6"
    ]
}