get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 129363,
    "url": "http://patchwork.dpdk.org/api/patches/129363/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230706175938.62721-14-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-14-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230706175938.62721-14-stephen@networkplumber.org",
    "date": "2023-07-06T17:59:37",
    "name": "[v3,13/14] net/mlx4: use rte_pktmbuf_mtod_offset",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "172a386c91300d355ff7ca1a3a127c5aaf44887e",
    "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-14-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/129363/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/129363/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 4B79042DEC;\n\tThu,  6 Jul 2023 20:01:16 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2D6314303B;\n\tThu,  6 Jul 2023 19:59:59 +0200 (CEST)",
            "from mail-pj1-f44.google.com (mail-pj1-f44.google.com\n [209.85.216.44]) by mails.dpdk.org (Postfix) with ESMTP id 81D7943028\n for <dev@dpdk.org>; Thu,  6 Jul 2023 19:59:54 +0200 (CEST)",
            "by mail-pj1-f44.google.com with SMTP id\n 98e67ed59e1d1-262ea2ff59dso594729a91.0\n for <dev@dpdk.org>; Thu, 06 Jul 2023 10:59:54 -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.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 06 Jul 2023 10:59:53 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1688666393;\n x=1691258393;\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=c7hMjFUgvLlGADQuxfUFNFeFE+jghejYvfFzJc9Wwy0=;\n b=jdKXUUZqkShylWjI+LflLVhTcyr+e21pY47a2eZUq5xwMmsR0QUnhqeQkcWHEwZbmW\n Jrl7oKljnQBlf/UwfOk87IDDBuTJOhpJHWxUlOnFllV2Wsfm56R+10xuBinxScWyVpnc\n 54FJWByTYdArUy1O0lGxoSQABq71mulSNUw46VVsp/3durcQXPKphgBDtcQ9bK2DZKBe\n Lsx6Qtr7jlpgw1NIi1pFneIzEX3zU0czCP9jC4Vk7LN21BcVNAadgZ1NS0blr06EqvYx\n ChHcTAR0eeBdUIJqM0tLBFeuwnMcWNqcaUyUGYjcUmZdVCOtFxZZyol1DS1MrrfRP3ju\n GrgA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1688666393; x=1691258393;\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=c7hMjFUgvLlGADQuxfUFNFeFE+jghejYvfFzJc9Wwy0=;\n b=GYefVT4RhOXzpFuTYEDYcRoF57kTjlxAEFR9ZHe1o6Zhlfdt1sYh7dNXsk7yUU7C21\n M3GjFUDn4irZ6Mi3LoxUxcaHQl8OSpoDLXnELoruvnRjr0WEhEQaiWgaPMO1HjfIKwgc\n G+AOdefhXWp1K1UiYQf75oXL7nk/vSOWR+cGogOPqsuFayI7eRXToRPgsyVjsMDC+Uab\n nIcmRrAFjRPSwgS840s2ql8V9ktQ7auVhVs3cHwhBIaE9cC5/PYwNlPFciHVIgfD5u6W\n Xk3+u3Bpg/+a/OgBzFxo5VsmjFQyaqsiYHcqFqOO1Jk+9jWHctJw/48xE/zia4EelTnq\n 4gQg==",
        "X-Gm-Message-State": "ABy/qLbB3Om1GFPvGJipnCPljDvtkJ3GvFcohcWoHqcKScUDLJqIbvVM\n ACIgtwcMWAWwSreLFzlV/uBS0NiGCzzuA2TJcoE=",
        "X-Google-Smtp-Source": "\n APBJJlF56uertcHquZvLy7lyWhqwLovoOTc5Qjedb+2OxuU03o5r7b/1e8NDv36uDivN/XNsiMv/uQ==",
        "X-Received": "by 2002:a17:90a:5317:b0:262:d2ca:e209 with SMTP id\n x23-20020a17090a531700b00262d2cae209mr1964781pjh.18.1688666393500;\n Thu, 06 Jul 2023 10:59:53 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Matan Azrad <matan@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>",
        "Subject": "[PATCH v3 13/14] net/mlx4: use rte_pktmbuf_mtod_offset",
        "Date": "Thu,  6 Jul 2023 10:59:37 -0700",
        "Message-Id": "<20230706175938.62721-14-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": "Autogenerated with cocci/mtod-offset.cocci.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/net/mlx4/mlx4_rxtx.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c\nindex 059e432a63fc..d5feeb7f7e6d 100644\n--- a/drivers/net/mlx4/mlx4_rxtx.c\n+++ b/drivers/net/mlx4/mlx4_rxtx.c\n@@ -1014,9 +1014,9 @@ mlx4_tx_burst(void *dpdk_txq, struct rte_mbuf **pkts, uint16_t pkts_n)\n \t\t\t * loopback in eSwitch, so that VFs and PF can\n \t\t\t * communicate with each other.\n \t\t\t */\n-\t\t\tsrcrb.flags16[0] = *(rte_pktmbuf_mtod(buf, uint16_t *));\n-\t\t\tctrl->imm = *(rte_pktmbuf_mtod_offset(buf, uint32_t *,\n-\t\t\t\t\t      sizeof(uint16_t)));\n+\t\t\tsrcrb.flags16[0] = *rte_pktmbuf_mtod(buf, uint16_t *);\n+\t\t\tctrl->imm = *rte_pktmbuf_mtod_offset(buf, uint32_t *,\n+\t\t\t\t\t\t\t     sizeof(uint16_t));\n \t\t} else {\n \t\t\tctrl->imm = 0;\n \t\t}\n",
    "prefixes": [
        "v3",
        "13/14"
    ]
}