get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 139729,
    "url": "http://patchwork.dpdk.org/api/patches/139729/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240430095523.108688-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": "<20240430095523.108688-4-mattias.ronnblom@ericsson.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240430095523.108688-4-mattias.ronnblom@ericsson.com",
    "date": "2024-04-30T09:55:20",
    "name": "[RFC,v4,3/6] eal: add exactly-once bit access functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a9a61e657f554571588d57efc9041affff169add",
    "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/20240430095523.108688-4-mattias.ronnblom@ericsson.com/mbox/",
    "series": [
        {
            "id": 31842,
            "url": "http://patchwork.dpdk.org/api/series/31842/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31842",
            "date": "2024-04-30T09:55:17",
            "name": "Improve EAL bit operations API",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/31842/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/139729/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/139729/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 E4B6043F3A;\n\tTue, 30 Apr 2024 12:06:24 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2C09C402E3;\n\tTue, 30 Apr 2024 12:06:00 +0200 (CEST)",
            "from EUR04-HE1-obe.outbound.protection.outlook.com\n (mail-he1eur04on2055.outbound.protection.outlook.com [40.107.7.55])\n by mails.dpdk.org (Postfix) with ESMTP id 23A0B402BA\n for <dev@dpdk.org>; Tue, 30 Apr 2024 12:05:56 +0200 (CEST)",
            "from AM6P191CA0101.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8a::42)\n by AM9PR07MB7859.eurprd07.prod.outlook.com (2603:10a6:20b:302::14) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.36; Tue, 30 Apr\n 2024 10:05:54 +0000",
            "from AMS1EPF00000042.eurprd04.prod.outlook.com\n (2603:10a6:209:8a:cafe::3c) by AM6P191CA0101.outlook.office365.com\n (2603:10a6:209:8a::42) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35 via Frontend\n Transport; Tue, 30 Apr 2024 10:05:54 +0000",
            "from oa.msg.ericsson.com (192.176.1.74) by\n AMS1EPF00000042.mail.protection.outlook.com (10.167.16.39) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.7544.18 via Frontend Transport; Tue, 30 Apr 2024 10:05:54 +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; Tue, 30 Apr 2024 12:05:53 +0200",
            "from breslau.. (seliicwb00002.seli.gic.ericsson.se [10.156.25.100])\n by seliicinfr00050.seli.gic.ericsson.se (Postfix) with ESMTP id\n 287821C006A; Tue, 30 Apr 2024 12:05:53 +0200 (CEST)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=PnWGvgjBBxEA8m4509+IuQRhgmxrj1nwQBu8BLIva58nUDXWtydGUs1WM42Enkp51o53+fPB2gdAzDBZCEDyS44y0q/Eql8a4iypwc4WiY/Z8/Zz504ir7OOIeFwhEam286TbhquQGcsOqYq8GE6CGz0S1ODMVtMGWLnz5BppvzxR1MO+DBFStDU1rDhXPi4+i9S4RrtLcJoTr9PDYRPIPbm1yh7ZtFqV204wofNP+G29cPg5qUokX0G7kSCjXEi6FqmqEK3cMLLCEt4kt0TFuEoU93ac9RzgvO25d3s9WyvYlUZ3e4Mgzbdjj4tEfps5mZMbTzSoX0jjz5P+5CJpA==",
        "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=AvPWbCvgzyOJyxa/j0ge/ILRgogIdQ9NHvtGx46yEDw=;\n b=bDeekbL81v3429vh/TW04dH1WnXTv0nYP9xF2X5wQAjoLFClbnYj0NKNKAPk0ixhTUKLv9/aeeWjpq5bJSDdWUTUPUfQw6Phu0Yk3z1j6UKLjMdj8LbjfeQ6wojNgKRQxeoNwPnBWouEBt130trjHaTvbWydEojZaHSd9Zhcb6l8BzjXRI3Q12CwenPGxInxDQKpRyrzENiqKTLWQmtUQJQ8FZq+8VP7T9JrQ6Uhb5cbuZEQ0NuAfXITzixyDcoRPRQ5M8BNGt7SjjBDBoCxOxpfcYwW2oGUoeIxpKG7BQc7rNHmMdujZ79XhkNXzZXqZNjuJHl+h3kKmjHiyFUHtw==",
        "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=AvPWbCvgzyOJyxa/j0ge/ILRgogIdQ9NHvtGx46yEDw=;\n b=prVgr1sN1v24nq7JnyQdWBYJvHnmIA8GMfk67wgXvQLXfBpU+zep9Lxh7f9U6ogo9AeJ+89asEu4SVhQDLHDHgpZ0A3mNbn1cAvaYirxr77JtI2+Y9UrbNqOGFY7CFGrOgGHNmoFN2i34fXZ2bG9dkIiOMMOhYJtYqLJiinu1r/RwEosifqXjlDlOuSX8Y0qDais7F4J/4soOSG64/SrqYKUr9hK92zzn6uxs/rRLPBdrTIPSvq/E4ITN58aiYCHBKU6ssTQFnWCchM6IBONkuXSoaxDpTIWSUPO1DXKyZf7VzgFCRIWxDi/dePRFpMAOj+v1AlE5IlrXee3aXDBBw==",
        "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 v4 3/6] eal: add exactly-once bit access functions",
        "Date": "Tue, 30 Apr 2024 11:55:20 +0200",
        "Message-ID": "<20240430095523.108688-4-mattias.ronnblom@ericsson.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20240430095523.108688-1-mattias.ronnblom@ericsson.com>",
        "References": "<20240429095138.106849-2-mattias.ronnblom@ericsson.com>\n <20240430095523.108688-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": "AMS1EPF00000042:EE_|AM9PR07MB7859:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "71bfe9dc-cc0a-41af-35e5-08dc68fd1fa0",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230031|82310400014|376005|36860700004|1800799015;",
        "X-Microsoft-Antispam-Message-Info": "=?utf-8?q?BgncMgxjckh/SDtFnQSWoMkSMuMZl6u?=\n\t=?utf-8?q?ACZAgUx98eWz45bEykPHVNiBuKeDoM3+b78ZiBtqb5mRIqK7dKkXnYH/J+tlyQde4?=\n\t=?utf-8?q?teCoE7BzJG24NcKdkOziltLniTVecsVXnxgaDS5mFP8cJesop7wo1WChQshl3HBhT?=\n\t=?utf-8?q?NK4cnuLTInqXtAOrZfMYzFV0eKgomU5LhHbO0sz5xNpyssfP0Q7jPyjqHgiYJ5wEO?=\n\t=?utf-8?q?8t0+KLJFUxT7VNKrIN4upZXCJix3MtXrcYKgoTDfxWkRz7S5AQgP1IDEFYVqjFveL?=\n\t=?utf-8?q?Xc9P/crDqopNMHRQ07ptHTL3vtnKspdnjeYEN6gD4WEr3aicbUX5rYnxEG1TiUhgT?=\n\t=?utf-8?q?0tJrxQ3+Z2mNk1cAgbLMUG1Z3bg9I0YKNHCYXqAVIw7BySv5lpceCAdpPXRphfjjw?=\n\t=?utf-8?q?j1hKOm7FMXrk00S7qxm18kb4ky0hTFMEZlHouPzMJRY6ukAMzw5nUltp/b7WNFz2Y?=\n\t=?utf-8?q?pnph18YOlbxzF+D6tdvQOhorC6yOxSk7xDy8an/kfOPlrNDdvEyvFNZ3b4LmPI9ZT?=\n\t=?utf-8?q?od/wcpFM8XgT9psXD1Lua37QPRN0zP3dPOz1T0daDsQIlZKD0b51iDXl6jEObl2O6?=\n\t=?utf-8?q?o4cIwsBzGDDfSJlGwHIIc1mv7MSuP4LhoYsXpHdYF7++MirbSNjvaxsW8xhxsuoXY?=\n\t=?utf-8?q?zOfV0NHJ3FQPz6j7chq87lhTgLTxSZ4CYE5Z+WaFVNw++2s1TZg9uYKBYyB+UpM8m?=\n\t=?utf-8?q?zcwCTK+20b+GLTZmuVhGnkH9AP3pixNZUA+FIA7kGCMk3tr4Bexkav4E2n9lj/L2o?=\n\t=?utf-8?q?O2ytRurW0gRcySB60g9glQxQl2BU/sCdnxNpkeK78TK/EFHrKA+PZVKqokmdFG8zR?=\n\t=?utf-8?q?QDfYq6LOtxmNNo5TQ9dvkBW83Z94f0eV35T4O9RTvsw7vUF/hiiRRagMkL4PBp1XF?=\n\t=?utf-8?q?l01B65L1AddwF2ge2VT0v9GD9XdbECxZxwJABdIPGXnTkhDqsqIx8aH7lohprQmxp?=\n\t=?utf-8?q?eQzk8aJu1GwnsWjs6a4u7xbjJJVihoEHJ6e63ELMkRS5nvOpDwZXEwuKjJCIgUV/g?=\n\t=?utf-8?q?3Jr8ELU4nx2euuy6uK0pxR3sriJiFXR6ScoDF8r0N25WJglH1H8pLqTp8nmECNgpd?=\n\t=?utf-8?q?vJt33SuArdysodR5iuCOQki1hAZimSH5lw0T1ps1c1gsBMigqy/kcf1bV4Qr7mbbT?=\n\t=?utf-8?q?tVqmzJMsfwBJDmlgRY5Bjj4BzqNAqBH5+3Scen1nhlHU1YlyJhdwU/zGAmngXqT0t?=\n\t=?utf-8?q?qu8lI6MH6dRe2++6S0mvxjc7awEG/VlIhWl3dHDpQDCShvuUZ2UxC+ULbmktsDOzV?=\n\t=?utf-8?q?GNRbstIPaZ5+bKjJdYMF+UBM/0qX4zlibtwioJO7yQHa6ga1RJkKhZlxRXFuqZM/p?=\n\t=?utf-8?q?SI/dJtXsF0Ac?=",
        "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)(82310400014)(376005)(36860700004)(1800799015);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "ericsson.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "30 Apr 2024 10:05:54.5906 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 71bfe9dc-cc0a-41af-35e5-08dc68fd1fa0",
        "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 AMS1EPF00000042.eurprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM9PR07MB7859",
        "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>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/eal/include/rte_bitops.h | 195 +++++++++++++++++++++++++++++++++++\n 1 file changed, 195 insertions(+)",
    "diff": "diff --git a/lib/eal/include/rte_bitops.h b/lib/eal/include/rte_bitops.h\nindex 9d426f1602..f77bd83e97 100644\n--- a/lib/eal/include/rte_bitops.h\n+++ b/lib/eal/include/rte_bitops.h\n@@ -224,6 +224,177 @@ extern \"C\" {\n \t\t uint32_t *: __rte_bit_flip32,\t\t\t\t\\\n \t\t uint64_t *: __rte_bit_flip64)(addr, nr)\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+\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+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Flip bit in word, reading and writing exactly once.\n+ *\n+ * Change the value of a bit to '0' if '1' or '1' if '0' in a 32-bit\n+ * or 64-bit word. The type of operation depends on the type of the @c\n+ * addr parameter.\n+ *\n+ * This function is guaranteed to result in exactly one memory load\n+ * and exactly one memory store, *or* an atomic bit flip 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_flip(addr, nr)\t\t\t\t\\\n+\t_Generic((addr),\t\t\t\t\t\\\n+\t\t uint32_t *: __rte_bit_once_flip32,\t\t\\\n+\t\t uint64_t *: __rte_bit_once_flip64)(addr, nr)\n+\n #define __RTE_GEN_BIT_TEST(family, fun, qualifier, size)\t\t\\\n \t__rte_experimental\t\t\t\t\t\t\\\n \tstatic inline bool\t\t\t\t\t\t\\\n@@ -296,6 +467,18 @@ __RTE_GEN_BIT_CLEAR(, clear,, 64)\n __RTE_GEN_BIT_ASSIGN(, assign,, 64)\n __RTE_GEN_BIT_FLIP(, flip,, 64)\n \n+__RTE_GEN_BIT_TEST(once_, test, volatile, 32)\n+__RTE_GEN_BIT_SET(once_, set, volatile, 32)\n+__RTE_GEN_BIT_CLEAR(once_, clear, volatile, 32)\n+__RTE_GEN_BIT_ASSIGN(once_, assign, volatile, 32)\n+__RTE_GEN_BIT_FLIP(once_, flip, volatile, 32)\n+\n+__RTE_GEN_BIT_TEST(once_, test, volatile, 64)\n+__RTE_GEN_BIT_SET(once_, set, volatile, 64)\n+__RTE_GEN_BIT_CLEAR(once_, clear, volatile, 64)\n+__RTE_GEN_BIT_ASSIGN(once_, assign, volatile, 64)\n+__RTE_GEN_BIT_FLIP(once_, flip, volatile, 64)\n+\n /*------------------------ 32-bit relaxed operations ------------------------*/\n \n /**\n@@ -991,6 +1174,12 @@ rte_log2_u64(uint64_t v)\n #undef rte_bit_assign\n #undef rte_bit_flip\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+#undef rte_bit_once_flip\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@@ -1040,6 +1229,12 @@ __RTE_BIT_OVERLOAD_2(clear,, unsigned int, nr)\n __RTE_BIT_OVERLOAD_3(assign,, unsigned int, nr, bool, value)\n __RTE_BIT_OVERLOAD_2(flip,, unsigned int, nr)\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+__RTE_BIT_OVERLOAD_2(once_flip, volatile, unsigned int, nr)\n+\n #endif\n \n #endif /* _RTE_BITOPS_H_ */\n",
    "prefixes": [
        "RFC",
        "v4",
        "3/6"
    ]
}