get:
Show a patch.

patch:
Update a patch.

put:
Update 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/project/dpdk/patch/1408361365-12988-3-git-send-email-david.marchand@6wind.com/",
    "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",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1408361365-12988-3-git-send-email-david.marchand@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/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/project/dpdk/patch/1408361365-12988-3-git-send-email-david.marchand@6wind.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/170/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/170/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "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)"
        ],
        "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==",
        "X-Gm-Message-State": "ALoCoQm4BDl1O0l5Q/e8YlL0Y0d5P6uN1/ZB7+GEdyzc+zP9PKQuzgOUJFJ06Ks3MaEj5CX7D2JV",
        "X-Received": "by 10.180.93.8 with SMTP id cq8mr40479383wib.17.1408361385737;\n\tMon, 18 Aug 2014 04:29:45 -0700 (PDT)",
        "From": "David Marchand <david.marchand@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 18 Aug 2014 13:29:20 +0200",
        "Message-Id": "<1408361365-12988-3-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "In-Reply-To": "<1408361365-12988-1-git-send-email-david.marchand@6wind.com>",
        "References": "<1408361365-12988-1-git-send-email-david.marchand@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/7] app/test: use accessor to set refcnt field",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-List-Received-Date": "Mon, 18 Aug 2014 11:26:23 -0000"
    },
    "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"
    ]
}