get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129395,
    "url": "http://patchwork.dpdk.org/api/patches/129395/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230708015718.75565-10-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": "<20230708015718.75565-10-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230708015718.75565-10-stephen@networkplumber.org",
    "date": "2023-07-08T01:57:16",
    "name": "[v5,09/11] testpmd: use rte_pktmbuf_mtod_offset",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/20230708015718.75565-10-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 28878,
            "url": "http://patchwork.dpdk.org/api/series/28878/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28878",
            "date": "2023-07-08T01:57:07",
            "name": "use rte_pktmbuf_mto_offset",
            "version": 5,
            "mbox": "http://patchwork.dpdk.org/series/28878/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/129395/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/129395/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 9F14042DFC;\n\tSat,  8 Jul 2023 03:58:17 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E8A0F42D47;\n\tSat,  8 Jul 2023 03:57:34 +0200 (CEST)",
            "from mail-pl1-f179.google.com (mail-pl1-f179.google.com\n [209.85.214.179])\n by mails.dpdk.org (Postfix) with ESMTP id 2E33B42D36\n for <dev@dpdk.org>; Sat,  8 Jul 2023 03:57:31 +0200 (CEST)",
            "by mail-pl1-f179.google.com with SMTP id\n d9443c01a7336-1b7e66ff65fso17714825ad.0\n for <dev@dpdk.org>; Fri, 07 Jul 2023 18:57:31 -0700 (PDT)",
            "from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218])\n by smtp.gmail.com with ESMTPSA id\n 24-20020a17090a035800b00263f5ac814esm2260269pjf.38.2023.07.07.18.57.29\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 07 Jul 2023 18:57:29 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688781450;\n x=1691373450;\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=78HDkboHxTG/XRmT10zNrGhuzXGadIdppWfUSd5orjE=;\n b=ii3i5NGEL+zoD9f+pA+xbab3/kdNLIHWYFLQWSgYKRAYrt+gJrse5UWwkA9Cpil+yk\n oamEd62uW0QIq40vEgKvzsgenWYWbbG4xj38rmyS2d3tt6gJKP/m6Dow/V9wk5MUZVJP\n lCMojUzPPodAEqbrEV3UtzmFAwhXmOpHti9fTa2VcU2CUwHtgLnc1txuVE35uxUcZGVA\n IVCvccJulviBClSLFbgtJn/ZyGhx+6ZTwwHaKaNvuYVTQwlo88+V8Ef+ogxAiakH5Kgh\n 5xntgnQSdk8DOEEK0MPHHuq5iimNnDVE6XEsX6dcxFVCS+GU2F1+i7rKjN9sKuLcatgr\n 1YUw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1688781450; x=1691373450;\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=78HDkboHxTG/XRmT10zNrGhuzXGadIdppWfUSd5orjE=;\n b=QP7JYWXjDs/rK40c6lLywq5PueRouLn1pqRKUZ6mBcdRjEpHd1Snrd0gw4DPlzpp/v\n U8F7Fxx7Vm0MFTfycUjGIzG5//2exmqwd1ojsh6X38wRdBfnFyIvXxC9+dLNc6ujeP1G\n Rmf4P/RGVYEqiVqmkAgzXmz+8jt4Xnd75JgqjSuSWgmqpYcJL4MnV88NygWUF7MsPQOV\n Jdoxa5/UzRIbUAhkYIyha/MD52qMhTvKYFl8AtiDpnDV0R+X1p/Uay34W3OIMOCyrw4x\n +Qc7lWEMwxieBthxyETVdkv/UeeYQOVkavElBkOLr+XrTXqECPq64FN9y5fPSx1tR/44\n 16MA==",
        "X-Gm-Message-State": "ABy/qLYWxBDRNr5g0J9lShMmQe5Pr2oXy4wdjqKrdyuYaKFfS4+SR9E+\n lbWHtH3kRDHRYoSSqJ43+U+MSBI/9H4SgScCr4w46+cM",
        "X-Google-Smtp-Source": "\n APBJJlH/0euE0zlCiCaG9k7HJb+c9B8SXHSaRmpZWXJsUmm0RkrTksBlD97vxQt1KL+501fAfaQxeQ==",
        "X-Received": "by 2002:a17:902:d395:b0:1b9:be2e:2b40 with SMTP id\n e21-20020a170902d39500b001b9be2e2b40mr4570154pld.50.1688781450091;\n Fri, 07 Jul 2023 18:57:30 -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 v5 09/11] testpmd: use rte_pktmbuf_mtod_offset",
        "Date": "Fri,  7 Jul 2023 18:57:16 -0700",
        "Message-Id": "<20230708015718.75565-10-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.39.2",
        "In-Reply-To": "<20230708015718.75565-1-stephen@networkplumber.org>",
        "References": "<20230505174813.133894-1-stephen@networkplumber.org>\n <20230708015718.75565-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": "Replace explicit packet offset computations with rte_pktmbuf_mtod_offset().\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": [
        "v5",
        "09/11"
    ]
}