get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 90887,
    "url": "http://patches.dpdk.org/api/patches/90887/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210408164713.3455145-3-thomas@monjalon.net/",
    "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": "<20210408164713.3455145-3-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210408164713.3455145-3-thomas@monjalon.net",
    "date": "2021-04-08T16:47:11",
    "name": "[v7,2/4] log: introduce macro for maximum level",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "446fbb1592c35099eaa253b965e08bbdd4ecb8b4",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210408164713.3455145-3-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 16213,
            "url": "http://patches.dpdk.org/api/series/16213/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16213",
            "date": "2021-04-08T16:47:09",
            "name": "log level enhancements",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/16213/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/90887/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/90887/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 64EA4A0579;\n\tThu,  8 Apr 2021 18:47:29 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AFB5A141178;\n\tThu,  8 Apr 2021 18:47:22 +0200 (CEST)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 9781414116F\n for <dev@dpdk.org>; Thu,  8 Apr 2021 18:47:20 +0200 (CEST)",
            "from compute2.internal (compute2.nyi.internal [10.202.2.42])\n by mailout.nyi.internal (Postfix) with ESMTP id 4E5B55C0135;\n Thu,  8 Apr 2021 12:47:20 -0400 (EDT)",
            "from mailfrontend2 ([10.202.2.163])\n by compute2.internal (MEProxy); Thu, 08 Apr 2021 12:47:20 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id 9D4FD1080066;\n Thu,  8 Apr 2021 12:47:19 -0400 (EDT)"
        ],
        "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=O4vjzR7d380P/\n PTvaRLLCeqSH3camXENwVE87QIN1fo=; b=QbudRL7WS0WPuIt0qHYDUCD65SOYs\n Yhj4YZCf2en/M+JDV4rOfHuWlZ/02nhziOPmmb+7Cr44PedB7Sx2ewCSu431A3Oy\n EA08apMiJYboyj3hONkZHgQLNHoVmpgD0CjB5h0A3Vbcz+8hqLdFyzi/+CLTFbrZ\n zmhsaxZ1p/uQ7pZMPI1HJnhXdIKcFIkFJZs9S9KxOSQY7InX2LMI0VvCLbPJLYeM\n VElXsIP8KqWRTemoga1SqTiu7aqfMaG9NJrtJVSovGhiR6QIYVVXDTjIPaQmhCkA\n vAKZN6Lg6JLUIGfB1YgzmKQezqkfYZVkLG6IWdcJ3fvUlt+yI5waBMK/A==",
            "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=O4vjzR7d380P/PTvaRLLCeqSH3camXENwVE87QIN1fo=; b=W/ydmJwv\n Sxc97bRE8BoPu3/KqfjybRUkQcEvvzZi7IO9Vb3aVv26HnvU3Pfyc6pLCPQe4CI8\n dw3q7+HJ53T6nakJZf1G0JpKfPhKk1E71YFpVPr8tgjbN77Q9sn8gY1vrJrSDG0l\n Tqu0GR66xoEERQCA2CMMQzhnz658SqEiTm0XP+lC3/nH8vMHKrywVXGp4vkN0SQ5\n GgIJFOKH9LvmdDtlM44FBOeW9X7adXpQavi/IYGvsgKxcC2GggL9BFfBxmz1k+3Z\n bVGK5T//aPOurIVVDI4hZHpIuz/CCL44ySt8FZRRKRQ8IzbCrlhMZdPoxLUlCtK7\n TShVFhyr3v6u0g=="
        ],
        "X-ME-Sender": "<xms:mDNvYOhYCchIlkYSP6N8WEGqTEW1DfZBbEyHyBbXG-yrF-nrDg8CaA>\n <xme:mDNvYPBmsf99seogkE_Sn_dX-SBukP_5cNFfiqV9zX6Vl_UP5a-Ppn1Oh6Mg7DbuS\n NfO-3KAxUeGCuYpww>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduledrudejledguddtjecutefuodetggdotefrod\n ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh\n necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd\n enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm\n rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc\n ggtffrrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedt\n gfeutdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrh\n fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgr\n lhhonhdrnhgvth",
        "X-ME-Proxy": "<xmx:mDNvYGHMpD3xb1OEac8eG4l0YcZuD-SrLEvblEPpk8t5jg7CmNhrog>\n <xmx:mDNvYHSXGRtIPaZyMT8iyIHFAQdtu9vbXbSh4WoVOn7UMUwnvTw0Hw>\n <xmx:mDNvYLx4K_ttQ_tm9mw01LRptiBoJeCWzXjYvCY3qdMMg2O_xshjiQ>\n <xmx:mDNvYEqdeG7UYbKxzvwwC1aiupzlD3Zq1xjkszmCE8nozNTQUvWeCg>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, Bruce Richardson <bruce.richardson@intel.com>,\n Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "Date": "Thu,  8 Apr 2021 18:47:11 +0200",
        "Message-Id": "<20210408164713.3455145-3-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<20210408164713.3455145-1-thomas@monjalon.net>",
        "References": "<20210405193000.1113542-1-thomas@monjalon.net>\n <20210408164713.3455145-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 2/4] log: introduce macro for maximum level",
        "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>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\nAcked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\nReviewed-by: David Marchand <david.marchand@redhat.com>\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 058fa10ffc..b9b982fdb5 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 cd1a2856c9..38b72fb665 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 21a7d16340..424dfa3fd0 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": [
        "v7",
        "2/4"
    ]
}