get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 10029,
    "url": "http://patches.dpdk.org/api/patches/10029/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1453374327-26635-3-git-send-email-harry.van.haaren@intel.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": "<1453374327-26635-3-git-send-email-harry.van.haaren@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1453374327-26635-3-git-send-email-harry.van.haaren@intel.com",
    "date": "2016-01-21T11:05:26",
    "name": "[dpdk-dev,v2,2/3] eal: add keepalive core register timestamp",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9f7aef0d37d518651b6f29d10dfe6dab10adaca1",
    "submitter": {
        "id": 317,
        "url": "http://patches.dpdk.org/api/people/317/?format=api",
        "name": "Van Haaren, Harry",
        "email": "harry.van.haaren@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1453374327-26635-3-git-send-email-harry.van.haaren@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/10029/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/10029/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 3EA798E9E;\n\tThu, 21 Jan 2016 12:06:21 +0100 (CET)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 295778E95\n\tfor <dev@dpdk.org>; Thu, 21 Jan 2016 12:06:18 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga103.fm.intel.com with ESMTP; 21 Jan 2016 03:06:18 -0800",
            "from sie-lab-212-120.ir.intel.com (HELO\n\tsilpixa00394367.ir.intel.com) ([10.237.212.120])\n\tby fmsmga004.fm.intel.com with ESMTP; 21 Jan 2016 03:06:17 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.22,325,1449561600\"; d=\"scan'208\";a=\"33519385\"",
        "From": "Harry van Haaren <harry.van.haaren@intel.com>",
        "To": "remy.horton@intel.com",
        "Date": "Thu, 21 Jan 2016 11:05:26 +0000",
        "Message-Id": "<1453374327-26635-3-git-send-email-harry.van.haaren@intel.com>",
        "X-Mailer": "git-send-email 2.5.0",
        "In-Reply-To": "<1453374327-26635-1-git-send-email-harry.van.haaren@intel.com>",
        "References": "<1453305221-11125-1-git-send-email-harry.van.haaren@intel.com>\n\t<1453374327-26635-1-git-send-email-harry.van.haaren@intel.com>",
        "Cc": "dev@dpdk.org",
        "Subject": "[dpdk-dev] [PATCH v2 2/3] eal: add keepalive core register timestamp",
        "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": "This patch sets a timestamp on each lcore when it is registered\nfor keepalive. This causes the first values read by the monitor\nto show time since the core was registered, instead of the delta\nbetween 0 and the timestamp counter.\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n---\n lib/librte_eal/common/rte_keepalive.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_eal/common/rte_keepalive.c b/lib/librte_eal/common/rte_keepalive.c\nindex 736fd0f..5358322 100644\n--- a/lib/librte_eal/common/rte_keepalive.c\n+++ b/lib/librte_eal/common/rte_keepalive.c\n@@ -38,6 +38,7 @@\n #include <rte_log.h>\n #include <rte_keepalive.h>\n #include <rte_malloc.h>\n+#include <rte_cycles.h>\n \n static void\n print_trace(const char *msg, struct rte_keepalive *keepcfg, int idx_core)\n@@ -108,6 +109,8 @@ rte_keepalive_create(rte_keepalive_failure_callback_t callback,\n void\n rte_keepalive_register_core(struct rte_keepalive *keepcfg, const int id_core)\n {\n-\tif (id_core < RTE_KEEPALIVE_MAXCORES)\n+\tif (id_core < RTE_KEEPALIVE_MAXCORES) {\n \t\tkeepcfg->active_cores[id_core] = 1;\n+\t\tkeepcfg->last_alive[id_core] = rte_rdtsc();\n+\t}\n }\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/3"
    ]
}