get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129353,
    "url": "http://patchwork.dpdk.org/api/patches/129353/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230706175938.62721-4-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": "<20230706175938.62721-4-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230706175938.62721-4-stephen@networkplumber.org",
    "date": "2023-07-06T17:59:27",
    "name": "[v3,03/14] testpmd: use rte_pktmbuf_mtod_offset",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a27f6c35810897741799687c0cb61f8e1f5398d1",
    "submitter": {
        "id": 27,
        "url": "http://patchwork.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230706175938.62721-4-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 28867,
            "url": "http://patchwork.dpdk.org/api/series/28867/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28867",
            "date": "2023-07-06T17:59:24",
            "name": "Use rte_pktmbuf_mtod_offset() where possible",
            "version": 3,
            "mbox": "http://patchwork.dpdk.org/series/28867/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/129353/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/129353/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 0BAE642DEC;\n\tThu,  6 Jul 2023 20:00:04 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1E54540A79;\n\tThu,  6 Jul 2023 19:59:47 +0200 (CEST)",
            "from mail-ot1-f54.google.com (mail-ot1-f54.google.com\n [209.85.210.54]) by mails.dpdk.org (Postfix) with ESMTP id A9A2C42FF0\n for <dev@dpdk.org>; Thu,  6 Jul 2023 19:59:44 +0200 (CEST)",
            "by mail-ot1-f54.google.com with SMTP id\n 46e09a7af769-6b8b6f7399aso840518a34.1\n for <dev@dpdk.org>; Thu, 06 Jul 2023 10:59:44 -0700 (PDT)",
            "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n nh8-20020a17090b364800b00256bbfbabcfsm76464pjb.48.2023.07.06.10.59.43\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 06 Jul 2023 10:59:43 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666383;\n x=1691258383;\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=aedscfCbmPzx3Lu1G1eN9fqAHaQkapvwXdXunHPn+Nc=;\n b=ZdNwXcpq1tnyILecyCqAQWQaZKr3yAHsvhFVa5NZVpzXUFhJ2O9UTbK2ZZminK62rG\n 0Ctw/aWoINpVocqgktT3AlZa5aVkrPuu4PvfEm63fFkiPAOe6Y2J2EJAoYZdRyzL4dPI\n iaO7DepSaDBx6aY3pXezXwRBMDO/YeRWnka9muu12uQBS2Ks/OVfzK9bf2RMGZXtKNu1\n e38YADi+ATOOrAg9IyxCCR8reykGOXT3HNwmCFn16rVGMZ/nDtzYEB/nHHGlHYzwmxEd\n +1Wb/Sxte+BG6lFnhJmtCUFqNEMEyfVHHMqZGMjfGHdtkrxwrRnoQA0MvfAwZNPxmk9z\n 2x4Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1688666383; x=1691258383;\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=aedscfCbmPzx3Lu1G1eN9fqAHaQkapvwXdXunHPn+Nc=;\n b=jdmfLQzJhlsNPrXQBSEthzum8ipWTFvI6c6KP9/Y57t0NYScZdVNzH+dZtQ65Oh/Co\n rPtvDc/TMdHEqqN1U4e8+BGnzEM/9MHlO6sH+t5ko7UKxQElk2MxkfJnMuDX18f249Or\n G96L1PanYeb4EDHSHLg/rSfDoS6R/5k4ccXEiri3L7MEWKLg6AzqrMT3WOAwQ99iT+NB\n 9DcWIuhGdshT6gKrJBGimot/WNfYEzaFvtybQZh2jyv1+mhk1nE68gVBJ9VEN7TT25ET\n YEVHAZ+34W50J1vcACaCFYnHYXPw8IU+wy/GW1tIB7ZTW2Akly7VcnK66Gq/5IHy5dvk\n O/Sw==",
        "X-Gm-Message-State": "ABy/qLagS1mvZv/xrMzKYzRhRPbql++SwaY2mEGAnml68gDPHP93ExtO\n RY8OsTZxY/1rNyKfa+MTSKY8bak2viNHq1/RcGM=",
        "X-Google-Smtp-Source": "\n APBJJlEHp2MLibcx2PvjlkDl0PHDeibKWwOOD1qIwEjZrOLjnE2/K3MrNs0pvCdgzfJ6FxQ9QLhdWw==",
        "X-Received": "by 2002:a05:6870:8a06:b0:1b3:e225:7077 with SMTP id\n p6-20020a0568708a0600b001b3e2257077mr3569310oaq.34.1688666383734;\n Thu, 06 Jul 2023 10:59:43 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Aman Singh <aman.deep.singh@intel.com>,\n Yuying Zhang <yuying.zhang@intel.com>",
        "Subject": "[PATCH v3 03/14] testpmd: use rte_pktmbuf_mtod_offset",
        "Date": "Thu,  6 Jul 2023 10:59:27 -0700",
        "Message-Id": "<20230706175938.62721-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20230706175938.62721-1-stephen@networkplumber.org>",
        "References": "<20230505174813.133894-1-stephen@networkplumber.org>\n <20230706175938.62721-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": "Use helper macro.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n app/test-pmd/ieee1588fwd.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test-pmd/ieee1588fwd.c b/app/test-pmd/ieee1588fwd.c\nindex 386d9f10e642..3371771751dd 100644\n--- a/app/test-pmd/ieee1588fwd.c\n+++ b/app/test-pmd/ieee1588fwd.c\n@@ -138,8 +138,8 @@ ieee1588_packet_fwd(struct fwd_stream *fs)\n \t * Check that the received PTP packet is a PTP V2 packet of type\n \t * PTP_SYNC_MESSAGE.\n \t */\n-\tptp_hdr = (struct ptpv2_msg *) (rte_pktmbuf_mtod(mb, char *) +\n-\t\t\t\t\tsizeof(struct rte_ether_hdr));\n+\tptp_hdr = rte_pktmbuf_mtod_offset(mb, struct ptpv2_msg *,\n+\t\t\t\t\t  sizeof(struct rte_ether_hdr));\n \tif (ptp_hdr->version != 0x02) {\n \t\tprintf(\"Port %u Received PTP V2 Ethernet frame with wrong PTP\"\n \t\t       \" protocol version 0x%x (should be 0x02)\\n\",\n",
    "prefixes": [
        "v3",
        "03/14"
    ]
}