get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7308,
    "url": "https://patches.dpdk.org/api/patches/7308/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1443615142-24381-3-git-send-email-bruce.richardson@intel.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": "<1443615142-24381-3-git-send-email-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1443615142-24381-3-git-send-email-bruce.richardson@intel.com",
    "date": "2015-09-30T12:12:20",
    "name": "[dpdk-dev,2/4] rte_ring: store memzone pointer inside ring",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ce43a80adc78d4e992ed87f494c99637d2e69ea1",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1443615142-24381-3-git-send-email-bruce.richardson@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7308/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7308/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id BE38A8E56;\n\tWed, 30 Sep 2015 14:12:28 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 2352F8DB0\n\tfor <dev@dpdk.org>; Wed, 30 Sep 2015 14:12:24 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga103.fm.intel.com with ESMTP; 30 Sep 2015 05:12:24 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga001.jf.intel.com with ESMTP; 30 Sep 2015 05:12:23 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt8UCCMfO014984; Wed, 30 Sep 2015 13:12:22 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id t8UCCMjU024430;\n\tWed, 30 Sep 2015 13:12:22 +0100",
            "(from bricha3@localhost)\n\tby sivswdev01.ir.intel.com with  id t8UCCMrK024426;\n\tWed, 30 Sep 2015 13:12:22 +0100"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.17,612,1437462000\"; d=\"scan'208\";a=\"780860903\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Wed, 30 Sep 2015 13:12:20 +0100",
        "Message-Id": "<1443615142-24381-3-git-send-email-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1443615142-24381-1-git-send-email-bruce.richardson@intel.com>",
        "References": "<1443615142-24381-1-git-send-email-bruce.richardson@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 2/4] rte_ring: store memzone pointer inside ring",
        "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>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add a new field to the rte_ring structure to store the memzone pointer which\ncontains the ring. For rings created using rte_ring_create(), the field will\nbe set automatically.\n\nThis new field will allow users of the ring to query the numa node a ring is\nallocated on, or to get the physical address of the ring, if so needed.\n\nThe rte_ring structure will also maintain ABI compatibility, as the\nstructure members, after the new one, are set to be cache line aligned,\nso leaving a space.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_ring/rte_ring.c | 1 +\n lib/librte_ring/rte_ring.h | 4 ++++\n 2 files changed, 5 insertions(+)",
    "diff": "diff --git a/lib/librte_ring/rte_ring.c b/lib/librte_ring/rte_ring.c\nindex c9e59d4..4e78e14 100644\n--- a/lib/librte_ring/rte_ring.c\n+++ b/lib/librte_ring/rte_ring.c\n@@ -196,6 +196,7 @@ rte_ring_create(const char *name, unsigned count, int socket_id,\n \t\trte_ring_init(r, name, count, flags);\n \n \t\tte->data = (void *) r;\n+\t\tr->memzone = mz;\n \n \t\tTAILQ_INSERT_TAIL(ring_list, te, next);\n \t} else {\ndiff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h\nindex af68888..df45f3f 100644\n--- a/lib/librte_ring/rte_ring.h\n+++ b/lib/librte_ring/rte_ring.h\n@@ -134,6 +134,8 @@ struct rte_ring_debug_stats {\n                                     *   if RTE_RING_PAUSE_REP not defined. */\n #endif\n \n+struct rte_memzone; /* forward declaration, so as not to require memzone.h */\n+\n /**\n  * An RTE ring structure.\n  *\n@@ -147,6 +149,8 @@ struct rte_ring_debug_stats {\n struct rte_ring {\n \tchar name[RTE_RING_NAMESIZE];    /**< Name of the ring. */\n \tint flags;                       /**< Flags supplied at creation. */\n+\tconst struct rte_memzone *memzone;\n+\t\t\t/**< Memzone, if any, containing the rte_ring */\n \n \t/** Ring producer status. */\n \tstruct prod {\n",
    "prefixes": [
        "dpdk-dev",
        "2/4"
    ]
}