Show a patch.

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

{
    "id": 170,
    "url": "https://patches.dpdk.org/api/patches/170/?format=api",
    "web_url": "https://patches.dpdk.org/patch/170/",
    "project": {
        "id": 1,
        "url": "https://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"
    },
    "msgid": "<1408361365-12988-3-git-send-email-david.marchand@6wind.com>",
    "date": "2014-08-18T11:29:20",
    "name": "[dpdk-dev,v2,2/7] app/test: use accessor to set refcnt field",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "43c261ebfe011e71bb23cddabdb831a4635e3ab7",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/170/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/170/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/170/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Return-Path": "<david.marchand@6wind.com>",
        "Message-Id": "<1408361365-12988-3-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Gm-Message-State": "ALoCoQm4BDl1O0l5Q/e8YlL0Y0d5P6uN1/ZB7+GEdyzc+zP9PKQuzgOUJFJ06Ks3MaEj5CX7D2JV",
        "To": "dev@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-BeenThere": "dev@dpdk.org",
        "Received": [
            "from mail-wi0-f179.google.com (mail-wi0-f179.google.com\n\t[209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 17B5EB36C\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 13:26:23 +0200 (CEST)",
            "by mail-wi0-f179.google.com with SMTP id f8so3479533wiw.12\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 04:29:45 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tes9sm41617207wjd.1.2014.08.18.04.29.44 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Aug 2014 04:29:45 -0700 (PDT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 2/7] app/test: use accessor to set refcnt field",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<1408361365-12988-1-git-send-email-david.marchand@6wind.com>",
        "Precedence": "list",
        "From": "David Marchand <david.marchand@6wind.com>",
        "X-Received": "by 10.180.93.8 with SMTP id cq8mr40479383wib.17.1408361385737;\n\tMon, 18 Aug 2014 04:29:45 -0700 (PDT)",
        "References": "<1408361365-12988-1-git-send-email-david.marchand@6wind.com>",
        "X-List-Received-Date": "Mon, 18 Aug 2014 11:26:23 -0000",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Date": "Mon, 18 Aug 2014 13:29:20 +0200",
        "X-Mailman-Version": "2.1.15",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=USHlbmwdgwhE7qLO0PNirTj2CCwr084GonO8ruIudjg=;\n\tb=UN27WpNxu5R9PVv3XtYJuaF3NzfmmvKOjqrDhM7HCnuJp2NbIGoabBu2j+AL580lqz\n\trPNVuZOdXoJYb8vZuJRc1EJab0LetKZwbqe5K0PA8SRWyJt6E0lGJebCbEnZLW0h8ZgJ\n\tIPzFf6Kj0bVSQer/jxPpnmp5xIc+WzLuyYTCg0iY2wcgsV6sA/CZ7ji4eNAL40G7LwOX\n\t25Ea0HdGCCdPaYmkuXOwvk+IlR7qS0zCgBtnrIfFzib3XvKYXfxCc8if/uKhke2U9v28\n\tqhyhGNhDbUEK6qRwg7AB5wGNUVntbgSmd1D/WLcKcialFJ4COynHxYsl5k3BqQ+b7d+M\n\tNVXQ=="
    },
    "content": "refcnt field can not be accessed directly as it depends on the RTE_MBUF_REFCNT\nbuild option.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n app/test/test_distributor.c |    2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/test_distributor.c b/app/test/test_distributor.c\nindex e7dc1fb..7648ed1 100644\n--- a/app/test/test_distributor.c\n+++ b/app/test/test_distributor.c\n@@ -282,7 +282,7 @@ sanity_test_with_mbuf_alloc(struct rte_distributor *d, struct rte_mempool *p)\n \t\t\trte_distributor_process(d, NULL, 0);\n \t\tfor (j = 0; j < BURST; j++) {\n \t\t\tbufs[j]->pkt.hash.rss = (i+j) << 1;\n-\t\t\tbufs[j]->refcnt = 1;\n+\t\t\trte_mbuf_refcnt_set(bufs[j], 1);\n \t\t}\n \n \t\trte_distributor_process(d, bufs, BURST);\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/7"
    ]
}