get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 124429,
    "url": "http://patches.dpdk.org/api/patches/124429/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230222215541.158205-21-stephen@networkplumber.org/",
    "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": "<20230222215541.158205-21-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230222215541.158205-21-stephen@networkplumber.org",
    "date": "2023-02-22T21:55:39",
    "name": "[v11,20/22] hash: move rte_thash_gfni stubs out of header file",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6c6193e61ecfee5f4e1ebcb19bd9fe2d9e6a36da",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "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/20230222215541.158205-21-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 27146,
            "url": "http://patches.dpdk.org/api/series/27146/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27146",
            "date": "2023-02-22T21:55:19",
            "name": "Convert static log type values in libraries",
            "version": 11,
            "mbox": "http://patches.dpdk.org/series/27146/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/124429/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/124429/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 7DB6541D43;\n\tWed, 22 Feb 2023 22:57:45 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BA79743177;\n\tWed, 22 Feb 2023 22:56:32 +0100 (CET)",
            "from mail-pl1-f181.google.com (mail-pl1-f181.google.com\n [209.85.214.181])\n by mails.dpdk.org (Postfix) with ESMTP id 07261431A7\n for <dev@dpdk.org>; Wed, 22 Feb 2023 22:56:10 +0100 (CET)",
            "by mail-pl1-f181.google.com with SMTP id ko13so11182909plb.13\n for <dev@dpdk.org>; Wed, 22 Feb 2023 13:56:09 -0800 (PST)",
            "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n d7-20020aa78147000000b00571cdbd0771sm6400722pfn.102.2023.02.22.13.56.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Feb 2023 13:56:08 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20210112.gappssmtp.com; s=20210112;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=NV9HRMKioGBm3V63nYzU9g3TaznsaM5PpoDm+doCGIw=;\n b=35AGS4ovrMgQndszXNZQuoOfP5WZOVOLy/oUR/CFRItUjunN/LhOlpPQYkoCCmPhau\n eyW3P5ixMnv/YbcUkPdYUhIpn084+jx8VenxMrouJnLiC8rzgLAdTClORKWLWdlx2VOO\n /pyWY3twuZpOoFGrVzWp1/ybkRNmzxIQdYLtFGI08kYltWSlJgewWEmFXGFq9v1rEKrl\n PW3g7ILleJzx8eVffAOZwHsnxDus42cHnuP8OEDopDoz0FWdqJ5HPeyC29VKy7ZTH7UA\n TrEA7pNFKYW0+xz06jYMjA7G164xP1rkdQEASZ+giWjh/dVnKIkoVK2wSn7RUPgko4xZ\n BQEA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=NV9HRMKioGBm3V63nYzU9g3TaznsaM5PpoDm+doCGIw=;\n b=kUfTLihEE3sSB3WoWxjutTGTpAMtjpSuw12z1oYnZjxWTwfww8dvBIqKkhgRgyky4y\n +r375oxQFLvjYploV5SzeYyu+gQgJD6ouhtPKJc0ZC8iOQxEotqYX9gfQ2257AIUNofV\n 9OoBzc77s2SGvbbCS5/AyeXEHtmnQufLq+Tbvss+fxO4PYzwjxFzxg0/4JGlQSjM7T1c\n jtf97KlSel9HatPEcRPeD26VOzVwIoh+zUPv5/+2tAntq6hHQcqZ7xlF6eaO3CuveKFE\n pf1qNEGwSsZVvmD6NYFPytjZF1K6OUMJY3lmkCPp42KMfkVM4+ATw9PBxIaQ3sgTFU2J\n jXog==",
        "X-Gm-Message-State": "AO0yUKWRM8vYUtzOWjK+9/Cgq3UN4g7RhuKRUBagZkEA/oWN5m8hAhDL\n 0jgDTGsA7TKsdUo/+26jmlaOwLYTmb78Z05XLuU=",
        "X-Google-Smtp-Source": "\n AK7set+IsRZx11f9SXBWgc9/gsKG+AzcRUxO1ACDlj/ObsyY1c9DTTF9/AIAY6Nn4R/yjga9cT57mA==",
        "X-Received": "by 2002:a05:6a20:bb12:b0:c3:3ea7:e33a with SMTP id\n fc18-20020a056a20bb1200b000c33ea7e33amr1559077pzb.47.1677102968913;\n Wed, 22 Feb 2023 13:56:08 -0800 (PST)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Yipeng Wang <yipeng1.wang@intel.com>,\n Sameh Gobriel <sameh.gobriel@intel.com>,\n Bruce Richardson <bruce.richardson@intel.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>",
        "Subject": "[PATCH v11 20/22] hash: move rte_thash_gfni stubs out of header file",
        "Date": "Wed, 22 Feb 2023 13:55:39 -0800",
        "Message-Id": "<20230222215541.158205-21-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.1",
        "In-Reply-To": "<20230222215541.158205-1-stephen@networkplumber.org>",
        "References": "<20230207204151.1503491-1-stephen@networkplumber.org>\n <20230222215541.158205-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Having stubs in header file makes it harder to update\nRTE_LOG(). Also modify to only print warning once.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/hash/meson.build      |  8 ++++++-\n lib/hash/rte_thash_gfni.c | 47 +++++++++++++++++++++++++++++++++++++++\n lib/hash/rte_thash_gfni.h | 30 ++++++++-----------------\n lib/hash/version.map      |  4 ++++\n 4 files changed, 67 insertions(+), 22 deletions(-)\n create mode 100644 lib/hash/rte_thash_gfni.c",
    "diff": "diff --git a/lib/hash/meson.build b/lib/hash/meson.build\nindex 2f757d45f9bc..e56ee8572564 100644\n--- a/lib/hash/meson.build\n+++ b/lib/hash/meson.build\n@@ -17,7 +17,13 @@ indirect_headers += files(\n         'rte_thash_x86_gfni.h',\n )\n \n-sources = files('rte_cuckoo_hash.c', 'rte_fbk_hash.c', 'rte_thash.c')\n+sources = files(\n+    'rte_cuckoo_hash.c',\n+    'rte_fbk_hash.c',\n+    'rte_thash.c',\n+    'rte_thash_gfni.c'\n+)\n+\n deps += ['net']\n deps += ['ring']\n deps += ['rcu']\ndiff --git a/lib/hash/rte_thash_gfni.c b/lib/hash/rte_thash_gfni.c\nnew file mode 100644\nindex 000000000000..eb334185725c\n--- /dev/null\n+++ b/lib/hash/rte_thash_gfni.c\n@@ -0,0 +1,47 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(c) 2021 Intel Corporation\n+ */\n+\n+#include <stdbool.h>\n+\n+#include <rte_compat.h>\n+#include <rte_log.h>\n+#include <rte_thash_gfni.h>\n+\n+#ifndef RTE_THASH_GFNI_DEFINED\n+\n+uint32_t\n+rte_thash_gfni(const uint64_t *mtrx __rte_unused,\n+\t       const uint8_t *key __rte_unused, int len __rte_unused)\n+{\n+\tstatic bool warned;\n+\n+\tif (!warned) {\n+\t\twarned = true;\n+\t\tRTE_LOG(ERR, HASH,\n+\t\t\t\"%s is undefined under given arch\\n\", __func__);\n+\t}\n+\n+\treturn 0;\n+}\n+\n+void\n+rte_thash_gfni_bulk(const uint64_t *mtrx __rte_unused,\n+\t\t    int len __rte_unused, uint8_t *tuple[] __rte_unused,\n+\t\t    uint32_t val[], uint32_t num)\n+{\n+\tunsigned int i;\n+\n+\tstatic bool warned;\n+\n+\tif (!warned) {\n+\t\twarned = true;\n+\t\tRTE_LOG(ERR, HASH,\n+\t\t\t\"%s is undefined under given arch\\n\", __func__);\n+\t}\n+\n+\tfor (i = 0; i < num; i++)\n+\t\tval[i] = 0;\n+}\n+\n+#endif\ndiff --git a/lib/hash/rte_thash_gfni.h b/lib/hash/rte_thash_gfni.h\nindex ef90faa302d1..4fc92984077e 100644\n--- a/lib/hash/rte_thash_gfni.h\n+++ b/lib/hash/rte_thash_gfni.h\n@@ -9,13 +9,14 @@\n extern \"C\" {\n #endif\n \n+#include <stdint.h>\n+\n #include <rte_compat.h>\n-#include <rte_log.h>\n+#include <rte_common.h>\n+#include <rte_config.h>\n \n #ifdef RTE_ARCH_X86\n-\n #include <rte_thash_x86_gfni.h>\n-\n #endif\n \n #ifndef RTE_THASH_GFNI_DEFINED\n@@ -38,13 +39,8 @@ extern \"C\" {\n  *  Calculated Toeplitz hash value.\n  */\n __rte_experimental\n-static inline uint32_t\n-rte_thash_gfni(const uint64_t *mtrx __rte_unused,\n-\tconst uint8_t *key __rte_unused, int len __rte_unused)\n-{\n-\tRTE_LOG(ERR, HASH, \"%s is undefined under given arch\\n\", __func__);\n-\treturn 0;\n-}\n+uint32_t\n+rte_thash_gfni(const uint64_t *mtrx, const uint8_t *key, int len);\n \n /**\n  * Bulk implementation for Toeplitz hash.\n@@ -67,17 +63,9 @@ rte_thash_gfni(const uint64_t *mtrx __rte_unused,\n  *  Number of tuples to hash.\n  */\n __rte_experimental\n-static inline void\n-rte_thash_gfni_bulk(const uint64_t *mtrx __rte_unused,\n-\tint len __rte_unused, uint8_t *tuple[] __rte_unused,\n-\tuint32_t val[], uint32_t num)\n-{\n-\tunsigned int i;\n-\n-\tRTE_LOG(ERR, HASH, \"%s is undefined under given arch\\n\", __func__);\n-\tfor (i = 0; i < num; i++)\n-\t\tval[i] = 0;\n-}\n+void\n+rte_thash_gfni_bulk(const uint64_t *mtrx, int len, uint8_t *tuple[],\n+\t\t    uint32_t val[], uint32_t num);\n \n #endif /* RTE_THASH_GFNI_DEFINED */\n \ndiff --git a/lib/hash/version.map b/lib/hash/version.map\nindex bdcebd19c29b..f03b047b2eec 100644\n--- a/lib/hash/version.map\n+++ b/lib/hash/version.map\n@@ -51,4 +51,8 @@ EXPERIMENTAL {\n \trte_thash_complete_matrix;\n \trte_thash_get_gfni_matrices;\n \trte_thash_gfni_supported;\n+\n+\t# added in 22.07\n+\trte_thash_gfni;\n+\trte_thash_gfni_bulk;\n };\n",
    "prefixes": [
        "v11",
        "20/22"
    ]
}