get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 163,
    "url": "http://patches.dpdk.org/api/patches/163/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1408353973-16663-3-git-send-email-david.marchand@6wind.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1408353973-16663-3-git-send-email-david.marchand@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1408353973-16663-3-git-send-email-david.marchand@6wind.com",
    "date": "2014-08-18T09:26:08",
    "name": "[dpdk-dev,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": "http://patches.dpdk.org/api/people/3/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1408353973-16663-3-git-send-email-david.marchand@6wind.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/163/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/163/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "Received": [
            "from mail-wi0-f169.google.com (mail-wi0-f169.google.com\n\t[209.85.212.169]) by dpdk.org (Postfix) with ESMTP id DEBD7B363\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 11:23:03 +0200 (CEST)",
            "by mail-wi0-f169.google.com with SMTP id n3so3399964wiv.0\n\tfor <dev@dpdk.org>; Mon, 18 Aug 2014 02:26:26 -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\tza9sm25087627wjc.29.2014.08.18.02.26.25 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 18 Aug 2014 02:26:25 -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=WGA50RmuLESjRxCLqT1kQ6hh+to4u6ENrfGTitr0morDgNr07g84U1dbMVsr8Pcsyq\n\tEsZpLE242vQtql9GBJHLUGLLo29onVu31B6E756GS1KSIhcuL9HquyurhOBtVjUUdkfq\n\tqHmF15IHyjhmbfbNmAAF+wORCYCKUMj80toWdBNu1mIqyDkVsqIJhssNdCDnrBX6wOBk\n\tpwGvNYfSUfBzC1iOxa8Twdx2xQIiU7Sybulnp0UZ5SmRqYOBMs/dwSul+3U+OYZCGgqi\n\tf9qEpbtmdS1bHQzC5SGYPhJddHXIPYjJ+zh7WWQliiKCru+I4jnp8aSTibsLdTyW4DsB\n\tigZQ==",
        "X-Gm-Message-State": "ALoCoQk+pp9PI+LYgkNQfsowBjMl49pxyVBGcwu35cfcwHYCyTaGugh8z66qDtrS891+FrxFdyCt",
        "X-Received": "by 10.180.14.2 with SMTP id l2mr2139719wic.50.1408353986278;\n\tMon, 18 Aug 2014 02:26:26 -0700 (PDT)",
        "From": "David Marchand <david.marchand@6wind.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 18 Aug 2014 11:26:08 +0200",
        "Message-Id": "<1408353973-16663-3-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "In-Reply-To": "<1408353973-16663-1-git-send-email-david.marchand@6wind.com>",
        "References": "<1408353973-16663-1-git-send-email-david.marchand@6wind.com>",
        "Subject": "[dpdk-dev] [PATCH 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 09:23:04 -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",
        "2/7"
    ]
}