Show a patch.

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

{
    "id": 336,
    "url": "https://patches.dpdk.org/api/patches/336/",
    "web_url": "https://patches.dpdk.org/patch/336/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<7F861DC0615E0C47A872E6F3C5FCDDBD011A9915@BPXM14GP.gisp.nec.co.jp>",
    "date": "2014-09-11T07:47:55",
    "name": "[dpdk-dev,memnic,3/7] pmd: use helper macros",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d57e0d8ee78ace79f36ae690142bf128bbc07a6a",
    "submitter": {
        "id": 38,
        "url": "https://patches.dpdk.org/api/people/38/",
        "name": "Hiroshi Shimamoto",
        "email": "h-shimamoto@ct.jp.nec.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/336/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/336/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/336/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Date": "Thu, 11 Sep 2014 07:47:55 +0000",
        "x-originating-ip": "[10.205.5.123]",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Thread-Index": "Ac/NlKfYyti+YeUgSKOMNdzINd95pA==",
        "Content-Type": "text/plain; charset=\"iso-2022-jp\"",
        "Delivered-To": "patchwork@dpdk.org",
        "Accept-Language": "ja-JP, en-US",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 620EF5901;\n\tThu, 11 Sep 2014 09:49:24 +0200 (CEST)",
            "from tyo202.gate.nec.co.jp (TYO202.gate.nec.co.jp [210.143.35.52])\n\tby dpdk.org (Postfix) with ESMTP id E09E92E8B\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 09:49:22 +0200 (CEST)",
            "from mailgate3.nec.co.jp ([10.7.69.160])\n\tby tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id s8B7sY6N011613\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 16:54:34 +0900 (JST)",
            "from mailsv.nec.co.jp (imss61.nec.co.jp [10.7.69.156]) by\n\tmailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) with ESMTP\n\tid s8B7sY202067 for <dev@dpdk.org>;\n\tThu, 11 Sep 2014 16:54:34 +0900 (JST)",
            "from mail03.kamome.nec.co.jp (mail03.kamome.nec.co.jp [10.25.43.7])\n\tby mailsv.nec.co.jp (8.13.8/8.13.4) with ESMTP id s8B7sXCh019919\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 16:54:33 +0900 (JST)",
            "from bpxc99gp.gisp.nec.co.jp ([10.38.151.145] [10.38.151.145]) by\n\tmail03.kamome.nec.co.jp with ESMTP id BT-MMP-1867943;\n\tThu, 11 Sep 2014 16:47:56 +0900",
            "from BPXM14GP.gisp.nec.co.jp ([169.254.1.238]) by\n\tBPXC17GP.gisp.nec.co.jp ([10.38.151.145]) with mapi id 14.02.0328.011;\n\tThu, 11 Sep 2014 16:47:55 +0900"
        ],
        "Subject": "[dpdk-dev] [memnic PATCH 3/7] pmd: use helper macros",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Content-Language": "ja-JP",
        "Message-ID": "<7F861DC0615E0C47A872E6F3C5FCDDBD011A9915@BPXM14GP.gisp.nec.co.jp>",
        "X-MS-Has-Attach": "",
        "From": "Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "Hayato Momma <h-momma@ce.jp.nec.com>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Precedence": "list",
        "Thread-Topic": "[memnic PATCH 3/7] pmd: use helper macros",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "MIME-Version": "1.0",
        "X-MS-TNEF-Correlator": "",
        "Content-Transfer-Encoding": "quoted-printable",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org"
    },
    "content": "From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>\n\nDo not touch pktmbuf directly.\n\nInstead of direct access, use rte_pktmbuf_pkt_len() and rte_pktmbuf_data_len()\nto access the property.\n\nSigned-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>\nReviewed-by: Hayato Momma <h-momma@ce.jp.nec.com>\n---\n pmd/pmd_memnic.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/pmd/pmd_memnic.c b/pmd/pmd_memnic.c\nindex bbb5380..8341da7 100644\n--- a/pmd/pmd_memnic.c\n+++ b/pmd/pmd_memnic.c\n@@ -308,8 +308,8 @@ static uint16_t memnic_recv_pkts(void *rx_queue,\n \n \t\trte_memcpy(rte_pktmbuf_mtod(mb, void *), p->data, p->len);\n \t\tmb->pkt.in_port = q->port_id;\n-\t\tmb->pkt.pkt_len = p->len;\n-\t\tmb->pkt.data_len = p->len;\n+\t\trte_pktmbuf_pkt_len(mb) = p->len;\n+\t\trte_pktmbuf_data_len(mb) = p->len;\n \t\trx_pkts[nr] = mb;\n \n \t\tpkts++;\n",
    "prefixes": [
        "dpdk-dev",
        "memnic",
        "3/7"
    ]
}