get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130611,
    "url": "http://patchwork.dpdk.org/api/patches/130611/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230821160921.383832-22-stephen@networkplumber.org/",
    "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": "<20230821160921.383832-22-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230821160921.383832-22-stephen@networkplumber.org",
    "date": "2023-08-21T16:09:21",
    "name": "[v13,21/21] pipeline: convert RTE_LOGTYPE_PIPELINE to dynamic type",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "5581c9860d04e42e2ba6e0bc1e870006e71efb35",
    "submitter": {
        "id": 27,
        "url": "http://patchwork.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patchwork.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230821160921.383832-22-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 29298,
            "url": "http://patchwork.dpdk.org/api/series/29298/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29298",
            "date": "2023-08-21T16:09:00",
            "name": "Convert static log types in libraries to dynamic types",
            "version": 13,
            "mbox": "http://patchwork.dpdk.org/series/29298/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130611/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130611/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 83932430C3;\n\tMon, 21 Aug 2023 18:12:27 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6B9E9432C8;\n\tMon, 21 Aug 2023 18:10:21 +0200 (CEST)",
            "from mail-pl1-f173.google.com (mail-pl1-f173.google.com\n [209.85.214.173])\n by mails.dpdk.org (Postfix) with ESMTP id F403A4325F\n for <dev@dpdk.org>; Mon, 21 Aug 2023 18:10:14 +0200 (CEST)",
            "by mail-pl1-f173.google.com with SMTP id\n d9443c01a7336-1bbff6b2679so20706955ad.1\n for <dev@dpdk.org>; Mon, 21 Aug 2023 09:10:14 -0700 (PDT)",
            "from hermes.local (204-195-127-207.wavecable.com. [204.195.127.207])\n by smtp.gmail.com with ESMTPSA id\n i1-20020a17090332c100b001bf2dcfe352sm7208159plr.234.2023.08.21.09.10.13\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 21 Aug 2023 09:10:13 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1692634214;\n x=1693239014;\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=5QpS2aq7y2KYjYCTgCBECHh7W/wSiiYmqYOUGkUrWko=;\n b=uOw/ZNgcT6bXUzBFAI3swtix/EFonWtdF4iDVhKmyFpPwW3WKLcjhXs9ROL+Oceu2e\n GQagGs/DWOECccvi81SHL9JJ7w3Bhqxc1NZNdx2iWbB/Rf4ZGY6WBYQCWbs9Q1ohZ5pb\n s6rYUm22bJ+vs/O7MLpgrWL4gJlOr+ZZZ/f4cPNLG66UE0kcxAkWk02cliAGnYez4wGy\n eRk3xGorGlB+sIquRWxhJqfvxRsKqNdp13fxBiAHrSE8WRDczH3s+jdRz0OD7CmwlTLV\n I6wBkDFG/d1cbjoMNAmxfDu7gV/wBGYAg7g9qmzzJgEaiz6bPZns6h526nOkww/G84D8\n ONew==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1692634214; x=1693239014;\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=5QpS2aq7y2KYjYCTgCBECHh7W/wSiiYmqYOUGkUrWko=;\n b=FV1ASIiZ2pBrFs6XTrQR6akfnHyHxtoRSNiTKbHuq1h8Gz9FRuzglY1gNWuViG+rni\n qUScCDy+oPx/ZNy1irHEruhAhWovyNW0l47mZQMQbDlb7ixZUk57G+hww5/y7GvfuaP5\n 4u+Ld7SPNhRrz1l25J4h6Jc7KBiIINxIWoRRAgn6XP11KrUZ+fKrKM+HT9SctX18O0tj\n UnXdSP5mJ+pb8GZsMBMGGHf//q2Lpb8iFCEDI4HWHWs6l6CaveLaJTCVUfet5885S/UO\n AIMXx2fDEuW14VmC8EUgXjjmqkYfvOZtC8qdbZK9JRqkf5Hdj6lIUGu2qPJM6+R6Spy1\n Tfig==",
        "X-Gm-Message-State": "AOJu0Yx1OpiYpyJgyuiKdVIkGdYcpmkbO1to6Gent54GEftQsasXoQY/\n mTKOyaLoMsa5bZcCthKiUuC7HFV0ha/llb02QB+JGovq",
        "X-Google-Smtp-Source": "\n AGHT+IHTG8bXrVowM1XrnlT4HHhThFxCXWimidiSIkzDuIMPhLr7E8oQSiUOdfP6KYQ+CMnduG5TEg==",
        "X-Received": "by 2002:a17:902:6bc5:b0:1bb:9bc8:d22d with SMTP id\n m5-20020a1709026bc500b001bb9bc8d22dmr4494700plt.16.1692634214016;\n Mon, 21 Aug 2023 09:10:14 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "Subject": "[PATCH v13 21/21] pipeline: convert RTE_LOGTYPE_PIPELINE to dynamic\n type",
        "Date": "Mon, 21 Aug 2023 09:09:21 -0700",
        "Message-Id": "<20230821160921.383832-22-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20230821160921.383832-1-stephen@networkplumber.org>",
        "References": "<20230329234049.11071-1-stephen@networkplumber.org>\n <20230821160921.383832-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": "Convert RTE_LOGTYPE_PIPELINE to a dynamic value.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/log/log.c               | 1 -\n lib/log/rte_log.h           | 2 +-\n lib/pipeline/rte_pipeline.c | 2 ++\n lib/pipeline/rte_pipeline.h | 5 +++++\n 4 files changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/log/log.c b/lib/log/log.c\nindex 1ad2f80e67cc..f58e40e6a9f8 100644\n--- a/lib/log/log.c\n+++ b/lib/log/log.c\n@@ -353,7 +353,6 @@ struct logtype {\n static const struct logtype logtype_strings[] = {\n \t{RTE_LOGTYPE_EAL,        \"lib.eal\"},\n \t{RTE_LOGTYPE_PMD,        \"pmd\"},\n-\t{RTE_LOGTYPE_PIPELINE,   \"lib.pipeline\"},\n \t{RTE_LOGTYPE_CRYPTODEV,  \"lib.cryptodev\"},\n \t{RTE_LOGTYPE_EVENTDEV,   \"lib.eventdev\"},\n \t{RTE_LOGTYPE_USER1,      \"user1\"},\ndiff --git a/lib/log/rte_log.h b/lib/log/rte_log.h\nindex 6418479ee266..29db07881a5a 100644\n--- a/lib/log/rte_log.h\n+++ b/lib/log/rte_log.h\n@@ -41,7 +41,7 @@ extern \"C\" {\n \t\t\t\t /* was RTE_LOGTYPE_SCHED */\n \t\t\t\t /* was RTE_LOGTYPE_PORT */\n \t\t\t\t /* was RTE_LOGTYPE_TABLE */\n-#define RTE_LOGTYPE_PIPELINE  15 /**< Log related to pipeline. */\n+\t\t\t\t /* was RTE_LOGTYPE_PIPELINE */\n \t\t\t\t /* was RTE_LOGTYPE_MBUF */\n #define RTE_LOGTYPE_CRYPTODEV 17 /**< Log related to cryptodev. */\n \t\t\t\t /* was RTE_LOGTYPE_EFD */\ndiff --git a/lib/pipeline/rte_pipeline.c b/lib/pipeline/rte_pipeline.c\nindex 1fa9f9c47eda..6b937cf782ac 100644\n--- a/lib/pipeline/rte_pipeline.c\n+++ b/lib/pipeline/rte_pipeline.c\n@@ -1608,3 +1608,5 @@ int rte_pipeline_table_stats_read(struct rte_pipeline *p, uint32_t table_id,\n \n \treturn 0;\n }\n+\n+RTE_LOG_REGISTER_DEFAULT(pipeline_logtype, INFO);\ndiff --git a/lib/pipeline/rte_pipeline.h b/lib/pipeline/rte_pipeline.h\nindex ec51b9bfaadd..9fd40566a80f 100644\n--- a/lib/pipeline/rte_pipeline.h\n+++ b/lib/pipeline/rte_pipeline.h\n@@ -833,6 +833,11 @@ int rte_pipeline_ah_packet_hijack(struct rte_pipeline *p,\n int rte_pipeline_ah_packet_drop(struct rte_pipeline *p,\n \tuint64_t pkts_mask);\n \n+\n+/** Internal Logtype used */\n+extern int pipeline_logtype;\n+#define RTE_LOGTYPE_PIPELINE pipeline_logtype\n+\n #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "v13",
        "21/21"
    ]
}