get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135107,
    "url": "http://patches.dpdk.org/api/patches/135107/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231213041920.729403-3-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": "<20231213041920.729403-3-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231213041920.729403-3-stephen@networkplumber.org",
    "date": "2023-12-13T04:16:29",
    "name": "[v2,02/25] log: add rte_log_dp()",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ddfda4a6397fed3e0a51f9b96d1ba958d5a73d08",
    "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/20231213041920.729403-3-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 30533,
            "url": "http://patches.dpdk.org/api/series/30533/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30533",
            "date": "2023-12-13T04:16:27",
            "name": "Replace use of RTE_LOGTYPE_PMD",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/30533/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135107/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/135107/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 DA7BD436D9;\n\tWed, 13 Dec 2023 05:19:36 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7180F42E9E;\n\tWed, 13 Dec 2023 05:19:26 +0100 (CET)",
            "from mail-pl1-f170.google.com (mail-pl1-f170.google.com\n [209.85.214.170])\n by mails.dpdk.org (Postfix) with ESMTP id 8E1D642E80\n for <dev@dpdk.org>; Wed, 13 Dec 2023 05:19:24 +0100 (CET)",
            "by mail-pl1-f170.google.com with SMTP id\n d9443c01a7336-1d32c5ce32eso18598115ad.0\n for <dev@dpdk.org>; Tue, 12 Dec 2023 20:19:24 -0800 (PST)",
            "from hermes.lan (204-195-123-141.wavecable.com. [204.195.123.141])\n by smtp.gmail.com with ESMTPSA id\n p12-20020a170902e74c00b001d077da4ac4sm9340888plf.212.2023.12.12.20.19.23\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 12 Dec 2023 20:19:23 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702441164;\n x=1703045964; darn=dpdk.org;\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=8zbmMtlxUZS8UjSI52yfEygDPKZxKBIUDdcN1Ph3NqA=;\n b=xF0by76o+9P0clNIMJD64Wc20vx8w96VOMEbOkX5L6ZjER7tvrR/wZgMGWGf1X9DR4\n I8tpz1pUcCEy44CEg4vTp/MQ2ET3Gomvi2+cWutG86VmOK7OObz6bcb+yxA0SOAVq+Bw\n EHVy1zRsUVBbg2n+dJhuthE//K4yyi4gLZ3LsE3RM1l7BD5M7gp9lVKtrtcaeUhSPFXD\n xWYOmgG96aocdBl7D0c0OHlVHg+lYKnQpCAgyi4gDSZVu0nujCeI3GiHUsNlEhNIpM21\n /S3kPCdB5zf4Vr9T06G5//+DPluRVYWIil9ygSmFM2oG7FFmDsmPmbrNDmHv2BldQp78\n GsKg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1702441164; x=1703045964;\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=8zbmMtlxUZS8UjSI52yfEygDPKZxKBIUDdcN1Ph3NqA=;\n b=umnRj97t0SvqX5P1+b+tDG/TIBq020uoi/NDxx6gv/FgASwJT8P519G0PuYPXayBSH\n x//tW0N+FLgIIeyAKqBsW2Oum24m8JjVaTtFPVmZuObKkYz+7R3D+Ne0qPlQz+xj+YQj\n 2IqSbiloLDAy3+nNKpgFUFNvdROKkrKaHulgmDv6i26GNnslj1V4cqVRNn/ULgUqrwHJ\n /akf2pbpK5GJqjACp0rt4VIRK3N6lZPw45FVAlxnju8qJIrDuGMZQLUP8hSrDk3+C8Nz\n aHOvxefH2w7Po/HRXH2+qKY3t5YrlEIpG7j2KlPr5P78O+IzvCBMccU2qN7llVG0KO1J\n IzOw==",
        "X-Gm-Message-State": "AOJu0Yw8Kz3RI1b5ZiVZN4qOBfZAau9NOAbPEUCl+apAo+zj3kMEpQXI\n i0goB9Fc8JBa7AOKtbDudHKS1BCeSHJiJR+oB6k=",
        "X-Google-Smtp-Source": "\n AGHT+IHc9dnAlVfsa5kwRv8IEpPrz2MqPr/+8hEokA0lL6AirYQFbj3SNgC0rstyUpMmNRO/Xn9OZQ==",
        "X-Received": "by 2002:a17:902:ce85:b0:1d0:910e:5036 with SMTP id\n f5-20020a170902ce8500b001d0910e5036mr8839594plg.7.1702441163813;\n Tue, 12 Dec 2023 20:19:23 -0800 (PST)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Subject": "[PATCH v2 02/25] log: add rte_log_dp()",
        "Date": "Tue, 12 Dec 2023 20:16:29 -0800",
        "Message-ID": "<20231213041920.729403-3-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.42.0",
        "In-Reply-To": "<20231213041920.729403-1-stephen@networkplumber.org>",
        "References": "<20231213014408.612051-1-stephen@networkplumber.org>\n <20231213041920.729403-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": "Add a new macro for logging in datapath using a logtype.\nThe existing macro RTE_LOG_DP() takes log type suffix (i.e. PMD)\nlike RTE_LOG(). This macro allows using a dynamic type.\n\nIdeally, rte_log_dp() could be an always_inline function\nbut GCC and Clang will not inline a function with variable number\nof arguments. Therefore it has to be a macro.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/log/rte_log.h | 23 +++++++++++++++++++++++\n 1 file changed, 23 insertions(+)",
    "diff": "diff --git a/lib/log/rte_log.h b/lib/log/rte_log.h\nindex bbbb051c20e2..8eb2b38b1a9f 100644\n--- a/lib/log/rte_log.h\n+++ b/lib/log/rte_log.h\n@@ -355,6 +355,29 @@ int rte_vlog(uint32_t level, uint32_t logtype, const char *format, va_list ap)\n \t\t RTE_LOGTYPE_ ## t, # t \": \" __VA_ARGS__) :\t\\\n \t 0)\n \n+/**\n+ * Generates a log message for data path.\n+ *\n+ * Similar to rte_log(), except that it gets optimized away\n+ * if the RTE_LOG_DP_LEVEL configuration option is lower than the log\n+ * level argument.\n+ *\n+ * @param level\n+ *   Log level. A value between RTE_LOG_EMERG (1) and RTE_LOG_DEBUG (8).\n+ * @param logtype\n+ *   The log type, for example, RTE_LOGTYPE_EAL.\n+ * @param format\n+ *   The format string, as in printf(3), followed by the variable arguments\n+ *   required by the format.\n+ * @param ap\n+ *   The va_list of the variable arguments required by the format.\n+ */\n+#define rte_log_dp(lev, t, ...)\t\t\t\t\\\n+\tdo {\t\t\t\t\t\t\\\n+\t\tif (lev <= RTE_LOG_DP_LEVEL)\t\t\\\n+\t\t\trte_log(lev, t, __VA_ARGS__);\t\\\n+\t} while(0)\n+\n #define RTE_LOG_REGISTER_IMPL(type, name, level)\t\t\t    \\\n int type;\t\t\t\t\t\t\t\t    \\\n RTE_INIT(__##type)\t\t\t\t\t\t\t    \\\n",
    "prefixes": [
        "v2",
        "02/25"
    ]
}