get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 135043,
    "url": "http://patches.dpdk.org/api/patches/135043/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231211172437.61958-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": "<20231211172437.61958-3-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231211172437.61958-3-stephen@networkplumber.org",
    "date": "2023-12-11T17:23:24",
    "name": "[2/3] examples/l2fwd-keepalive: don't use EAL logtype",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "364b1a6ed690533edfdd100467093f0b863ed937",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "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/20231211172437.61958-3-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 30512,
            "url": "http://patches.dpdk.org/api/series/30512/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30512",
            "date": "2023-12-11T17:23:22",
            "name": "replace use of EAL logtype",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/30512/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/135043/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/135043/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 30906436C8;\n\tMon, 11 Dec 2023 18:25:03 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id AB65642DB6;\n\tMon, 11 Dec 2023 18:24:51 +0100 (CET)",
            "from mail-pf1-f180.google.com (mail-pf1-f180.google.com\n [209.85.210.180])\n by mails.dpdk.org (Postfix) with ESMTP id D1E0242D7B\n for <dev@dpdk.org>; Mon, 11 Dec 2023 18:24:49 +0100 (CET)",
            "by mail-pf1-f180.google.com with SMTP id\n d2e1a72fcca58-6ce6b62746dso2836586b3a.2\n for <dev@dpdk.org>; Mon, 11 Dec 2023 09:24:49 -0800 (PST)",
            "from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141])\n by smtp.gmail.com with ESMTPSA id\n f16-20020aa782d0000000b006ce6878b274sm6494425pfn.216.2023.12.11.09.24.48\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 11 Dec 2023 09:24:48 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1702315489;\n x=1702920289; 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=25ZoFARyOPtyYoPI2e1WyYevGR77sAKqv+bkoIW2fRE=;\n b=JLAlTtcomAicZ1T0ThspN13FfjGIct9zz05LZQflSGdV05+hhwCU1Gf0iJO3BRmlNE\n 5vn3L9fMUeGQKsyH3rUffjdOstZE1kBWINKipgmAVYCmKhm3drvWSnomi11bD67ViulZ\n CnsAEG3Y2+Rpl2e8cKquG+RdmFekUxkSVumEjGS1qVtYa/XdHAf2rsvU9Dr8Fc+v71ns\n Sqf5RAIMpor0J+oYktiOtfW88tsY+NLY9WNYObz+3QnTG1I9xcRtPZP5v928R1wvSvWF\n WTXZ3AYh8uqY0LYGtk43Xyc54arU3eQU22N0Qbm125lP2cMcjgpcSDI60mAzW/sMD7zX\n RiIQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1702315489; x=1702920289;\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=25ZoFARyOPtyYoPI2e1WyYevGR77sAKqv+bkoIW2fRE=;\n b=HBvxbzK/865DISAhebRSmV1T1/ZvZOV1oEXITy9Z6RpOCOhXB8VZk7yBCFL1Y5Io10\n skyKdjloWU6Br2locLCCFmvMXi4II94fkqhRsDci+yRSg6oDpgefzfismcq2ub0zGPpS\n yW5Eg2Me6rTzWCsBqUZKO0xRlYyaKIAS8lyy1fPHVZ+TVrRK6wzY1cwVkflT1VSfRpSs\n pOYRl5FSdzLrt+r3A1XiroYubl9pnSH7446Sv+nPyWGppu8HJjboxo5UUYyE9cmgMne5\n CAGeGt7RItcwQIi4aT+uyHuqU3JrHeZMqPh5hNyesTKRc8N3/6LyARlgHffvjKQhvERw\n /RGg==",
        "X-Gm-Message-State": "AOJu0Yx4hmDyYRdHud3Mz/gI4iQAOCEi/PjpKyAUfbJtGKzfhCXzTt0B\n 7qbUAMfgBkLSkqb06ImuUJ6yUz3nvwUpwngs9SQ2qg==",
        "X-Google-Smtp-Source": "\n AGHT+IG2pHjwrkZpTGBwOEn0tdelUn0zS8W1wl+d/r2xggey/zn7gJ3ikUMHm9qe+crPEAvw95DvXQ==",
        "X-Received": "by 2002:aa7:8502:0:b0:6ce:2731:d5cb with SMTP id\n v2-20020aa78502000000b006ce2731d5cbmr1949971pfn.60.1702315488983;\n Mon, 11 Dec 2023 09:24:48 -0800 (PST)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Subject": "[PATCH 2/3] examples/l2fwd-keepalive: don't use EAL logtype",
        "Date": "Mon, 11 Dec 2023 09:23:24 -0800",
        "Message-ID": "<20231211172437.61958-3-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.42.0",
        "In-Reply-To": "<20231211172437.61958-1-stephen@networkplumber.org>",
        "References": "<20231211172437.61958-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": "EAL logtype should be reserved for EAL library.\nThis example is already using printf() so just print\nerrors to stderr.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n examples/l2fwd-keepalive/shm.c | 21 +++++++--------------\n 1 file changed, 7 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/examples/l2fwd-keepalive/shm.c b/examples/l2fwd-keepalive/shm.c\nindex 7c7a9ea8ea3c..cbeeb511ef07 100644\n--- a/examples/l2fwd-keepalive/shm.c\n+++ b/examples/l2fwd-keepalive/shm.c\n@@ -5,7 +5,6 @@\n #include <time.h>\n \n #include <rte_common.h>\n-#include <rte_log.h>\n #include <rte_keepalive.h>\n \n #include \"shm.h\"\n@@ -28,28 +27,23 @@ struct rte_keepalive_shm *rte_keepalive_shm_create(void)\n \tfd = shm_open(RTE_KEEPALIVE_SHM_NAME,\n \t\tO_CREAT | O_TRUNC | O_RDWR, 0666);\n \tif (fd < 0)\n-\t\tRTE_LOG(INFO, EAL,\n-\t\t\t\"Failed to open %s as SHM (%s)\\n\",\n-\t\t\tRTE_KEEPALIVE_SHM_NAME,\n-\t\t\tstrerror(errno));\n+\t\tfprintf(stderr, \"Failed to open %s as SHM (%s)\\n\",\n+\t\t\tRTE_KEEPALIVE_SHM_NAME, strerror(errno));\n \telse if (ftruncate(fd, sizeof(struct rte_keepalive_shm)) != 0)\n-\t\tRTE_LOG(INFO, EAL,\n-\t\t\t\"Failed to resize SHM (%s)\\n\", strerror(errno));\n+\t\tfprintf(stderr, \"Failed to resize SHM (%s)\\n\", strerror(errno));\n \telse {\n \t\tka_shm = (struct rte_keepalive_shm *) mmap(\n \t\t\t0, sizeof(struct rte_keepalive_shm),\n \t\t\tPROT_READ | PROT_WRITE,\tMAP_SHARED, fd, 0);\n \t\tclose(fd);\n \t\tif (ka_shm == MAP_FAILED)\n-\t\t\tRTE_LOG(INFO, EAL,\n-\t\t\t\t\"Failed to mmap SHM (%s)\\n\", strerror(errno));\n+\t\t\tfprintf(stderr, \"Failed to mmap SHM (%s)\\n\", strerror(errno));\n \t\telse {\n \t\t\tmemset(ka_shm, 0, sizeof(struct rte_keepalive_shm));\n \n \t\t\t/* Initialize the semaphores for IPC/SHM use */\n \t\t\tif (sem_init(&ka_shm->core_died, 1, 0) != 0) {\n-\t\t\t\tRTE_LOG(INFO, EAL,\n-\t\t\t\t\t\"Failed to setup SHM semaphore (%s)\\n\",\n+\t\t\t\tfprintf(stderr, \"Failed to setup SHM semaphore (%s)\\n\",\n \t\t\t\t\tstrerror(errno));\n \t\t\t\tmunmap(ka_shm,\n \t\t\t\t\tsizeof(struct rte_keepalive_shm));\n@@ -87,7 +81,7 @@ void rte_keepalive_relayed_state(struct rte_keepalive_shm *shm,\n \t\t * ka_agent is not active.\n \t\t */\n \t\tif (sem_getvalue(&shm->core_died, &count) == -1) {\n-\t\t\tRTE_LOG(INFO, EAL, \"Semaphore check failed(%s)\\n\",\n+\t\t\tfprintf(stderr, \"Semaphore check failed(%s)\\n\",\n \t\t\t\tstrerror(errno));\n \t\t\treturn;\n \t\t}\n@@ -95,8 +89,7 @@ void rte_keepalive_relayed_state(struct rte_keepalive_shm *shm,\n \t\t\treturn;\n \n \t\tif (sem_post(&shm->core_died) != 0)\n-\t\t\tRTE_LOG(INFO, EAL,\n-\t\t\t\t\"Failed to increment semaphore (%s)\\n\",\n+\t\t\tfprintf(stderr, \"Failed to increment semaphore (%s)\\n\",\n \t\t\t\tstrerror(errno));\n \t}\n }\n",
    "prefixes": [
        "2/3"
    ]
}