get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 88765,
    "url": "http://patchwork.dpdk.org/api/patches/88765/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210309233116.1934666-6-thomas@monjalon.net/",
    "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": "<20210309233116.1934666-6-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210309233116.1934666-6-thomas@monjalon.net",
    "date": "2021-03-09T23:31:09",
    "name": "[05/11] eal: introduce maximum log level macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d1428c51bdc6136d7a7a402ec763df684e21fb6b",
    "submitter": {
        "id": 685,
        "url": "http://patchwork.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "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/20210309233116.1934666-6-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 15554,
            "url": "http://patchwork.dpdk.org/api/series/15554/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=15554",
            "date": "2021-03-09T23:31:04",
            "name": "improve options help",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/15554/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/88765/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/88765/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 8F761A0567;\n\tWed, 10 Mar 2021 00:32:18 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5CEC522A569;\n\tWed, 10 Mar 2021 00:31:49 +0100 (CET)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id CDE3222A560\n for <dev@dpdk.org>; Wed, 10 Mar 2021 00:31:46 +0100 (CET)",
            "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.nyi.internal (Postfix) with ESMTP id 80FCA5C0094;\n Tue,  9 Mar 2021 18:31:46 -0500 (EST)",
            "from mailfrontend1 ([10.202.2.162])\n by compute2.internal (MEProxy); Tue, 09 Mar 2021 18:31:46 -0500",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 20CE524005A;\n Tue,  9 Mar 2021 18:31:46 -0500 (EST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm3; bh=ywZyCC55L5BjT\n VALckc7Kac3T0SK6uVjjahD62zVzLA=; b=mFL1HJDPJGMzOdsrwQCMjFApAVrQ0\n AY8qDUpDygPXXC+AghGrue3uL+ZjYb1jcGctsinEAnvFdEf8dEMnR3lAr9rERqC6\n W0NFtZ31zDwT47UgGnRd38wVlRNpW9lYzbDbtnz4U5vmlI5PDJTMXtZySfWsatWu\n fbyNTkL9dG4waFsI7kwBuFkKzBu+x7/2kPTiaw4skeonT6vIYnrqqvEQ/UBBNhg+\n B5UaHK/9WW2uzvL2X5V82z8uEAiQyNoq3u1DFMYnpaCeUh1fWLbStGVfZm6t/obf\n zDZHdHPKhdOgjRdR2zLejpiNiaTIli1Ftz6r4LImJqyjs8H4c8DTQxEcg==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm2; bh=ywZyCC55L5BjTVALckc7Kac3T0SK6uVjjahD62zVzLA=; b=wBImsznO\n Mc1W+JRje+IMsE4Jux3h1OwFnhsyyt54sVYXhTFdG4v1bDYSIx39+ttwvVaR8VdI\n SOr9czOTnh9WrOfMAU1eqtI6EWcYNhlhWjUHXpfIOva0bNhJ3E6ATILZ3t8vGb6P\n V8XUPM57AVMBcnzLl1ZBxQ14hLqqf85B7QZZiioPysy+SgOoo1pzNQTPxDncBT7F\n emBOgYxZnAS8Fpi17w4ptp+xH6lCGgPIF3mHlklyljIdBYKpdc0G0jrr/0UA6R28\n MBD+fYyEbKfvvtwvqYwthvlY8AGQdTkUSLyv+NV+wkxJ4SSOslydwni7YywHsYvL\n GH7K92YHI+XSdA=="
        ],
        "X-ME-Sender": "<xms:YgVIYJNySbBzb3Nmo3o2AyRCUVIlGpxW9Znfbnfh3NI2kRmqnud5hQ>\n <xme:YgVIYMFbSzA3aCgfxmwoJNEPSF7WGL83fcsTEGBPo6qGpQ5RelYuUp9WbjFdlBX6F\n ZRhLKJ9P7loyjJz9g>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrudduiedgudejgecutefuodetggdotefrod\n ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh\n necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke\n ertdertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghs\n sehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtve\n ehfefhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedr\n vddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh\n hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght",
        "X-ME-Proxy": "<xmx:YgVIYAOBRKYDgoLTvfiZ5U0shNIZvzxT9L5vwqx0MVf0IB1o_xjLZw>\n <xmx:YgVIYN9gBkOkbJJOKMD2fXIZCYpUXzNpqLNjTtTxDF7kv7Ie-4rfUw>\n <xmx:YgVIYMSmPWKgwW9M7it7fs_LsYMa8gytSJbNcXT5lEBFsXULr0wMEw>\n <xmx:YgVIYMfPj-OwMpD_B6i2AP3VXHINRaeaoFpReK__CG9i38md66e7og>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com",
        "Date": "Wed, 10 Mar 2021 00:31:09 +0100",
        "Message-Id": "<20210309233116.1934666-6-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.30.1",
        "In-Reply-To": "<20210309233116.1934666-1-thomas@monjalon.net>",
        "References": "<20210309233116.1934666-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 05/11] eal: introduce maximum log level macro",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "RTE_DIM(...) and RTE_LOG_DEBUG were used to get the highest log level.\nFor better clarity a new constant RTE_LOG_MAX is introduced\nand mapped to RTE_LOG_DEBUG.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n lib/librte_eal/common/eal_common_log.c     | 8 ++++----\n lib/librte_eal/common/eal_common_options.c | 2 +-\n lib/librte_eal/include/rte_log.h           | 1 +\n 3 files changed, 6 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_log.c b/lib/librte_eal/common/eal_common_log.c\nindex 85364ee47a..7f40c36f7e 100644\n--- a/lib/librte_eal/common/eal_common_log.c\n+++ b/lib/librte_eal/common/eal_common_log.c\n@@ -140,7 +140,7 @@ rte_log_set_level(uint32_t type, uint32_t level)\n {\n \tif (type >= rte_logs.dynamic_types_len)\n \t\treturn -1;\n-\tif (level > RTE_LOG_DEBUG)\n+\tif (level > RTE_LOG_MAX)\n \t\treturn -1;\n \n \trte_logs.dynamic_types[type].loglevel = level;\n@@ -155,7 +155,7 @@ rte_log_set_level_regexp(const char *regex, uint32_t level)\n \tregex_t r;\n \tsize_t i;\n \n-\tif (level > RTE_LOG_DEBUG)\n+\tif (level > RTE_LOG_MAX)\n \t\treturn -1;\n \n \tif (regcomp(&r, regex, 0) != 0)\n@@ -219,7 +219,7 @@ rte_log_set_level_pattern(const char *pattern, uint32_t level)\n {\n \tsize_t i;\n \n-\tif (level > RTE_LOG_DEBUG)\n+\tif (level > RTE_LOG_MAX)\n \t\treturn -1;\n \n \tfor (i = 0; i < rte_logs.dynamic_types_len; i++) {\n@@ -323,7 +323,7 @@ rte_log_register_type_and_pick_level(const char *name, uint32_t level_def)\n \t\treturn type;\n \n \tTAILQ_FOREACH(opt_ll, &opt_loglevel_list, next) {\n-\t\tif (opt_ll->level > RTE_LOG_DEBUG)\n+\t\tif (opt_ll->level > RTE_LOG_MAX)\n \t\t\tcontinue;\n \n \t\tif (opt_ll->pattern) {\ndiff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex 02374ee09e..febc99612a 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -1249,7 +1249,7 @@ eal_parse_log_priority(const char *level)\n \t\treturn -1;\n \n \t/* look for named values, skip 0 which is not a valid level */\n-\tfor (i = 1; i < RTE_DIM(levels); i++) {\n+\tfor (i = 1; i < RTE_LOG_MAX; i++) {\n \t\tif (strncmp(levels[i], level, len) == 0)\n \t\t\treturn i;\n \t}\ndiff --git a/lib/librte_eal/include/rte_log.h b/lib/librte_eal/include/rte_log.h\nindex 173004fd71..394e8682b9 100644\n--- a/lib/librte_eal/include/rte_log.h\n+++ b/lib/librte_eal/include/rte_log.h\n@@ -72,6 +72,7 @@ extern \"C\" {\n #define RTE_LOG_NOTICE   6U  /**< Normal but significant condition. */\n #define RTE_LOG_INFO     7U  /**< Informational.                    */\n #define RTE_LOG_DEBUG    8U  /**< Debug-level messages.             */\n+#define RTE_LOG_MAX RTE_LOG_DEBUG /**< Most detailed log level.     */\n \n /**\n  * Change the stream that will be used by the logging system.\n",
    "prefixes": [
        "05/11"
    ]
}