get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 46979,
    "url": "https://patches.dpdk.org/api/patches/46979/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181017130534.56665-3-david.hunt@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": "<20181017130534.56665-3-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181017130534.56665-3-david.hunt@intel.com",
    "date": "2018-10-17T13:05:26",
    "name": "[v7,02/10] examples/power: allow for number of vms to be zero",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "266e8673c7ea863b4f1a315de8bb69cbadb32d62",
    "submitter": {
        "id": 342,
        "url": "https://patches.dpdk.org/api/people/342/?format=api",
        "name": "Hunt, David",
        "email": "david.hunt@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181017130534.56665-3-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 1954,
            "url": "https://patches.dpdk.org/api/series/1954/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1954",
            "date": "2018-10-17T13:05:24",
            "name": "add json power policy interface for containers",
            "version": 7,
            "mbox": "https://patches.dpdk.org/series/1954/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/46979/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/46979/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D9D341B158;\n\tWed, 17 Oct 2018 15:06:05 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id EA3D91B14D\n\tfor <dev@dpdk.org>; Wed, 17 Oct 2018 15:05:56 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t17 Oct 2018 06:05:56 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n\tsilpixa00399952.ger.corp.intel.com) ([10.237.223.64])\n\tby orsmga002.jf.intel.com with ESMTP; 17 Oct 2018 06:05:54 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,392,1534834800\"; d=\"scan'208\";a=\"100978971\"",
        "From": "David Hunt <david.hunt@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "john.mcnamara@intel.com, stephen@networkplumber.org, lei.a.yao@intel.com,\n\tanatoly.burakov@intel.com, David Hunt <david.hunt@intel.com>",
        "Date": "Wed, 17 Oct 2018 14:05:26 +0100",
        "Message-Id": "<20181017130534.56665-3-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20181017130534.56665-1-david.hunt@intel.com>",
        "References": "<20181002084328.57127-1-david.hunt@intel.com>\n\t<20181017130534.56665-1-david.hunt@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v7 02/10] examples/power: allow for number of vms\n\tto be zero",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Previously the vm_power_manager app required to have some vms defined, so\nthe call to get_all_vm() always set the noVms variable. Now we're accepting\npolicies from the host OS (without any VMs defined), so it is now valid to\nhave zero VMs. This patch initialises the relevant variables to zero just\nin case the call to get_all_vms() does not find any, so could return with\nthe variables uninitialised.\n\nSigned-off-by: David Hunt <david.hunt@intel.com>\nAcked-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n examples/vm_power_manager/channel_monitor.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c\nindex 7fa47ba97..f180d74e6 100644\n--- a/examples/vm_power_manager/channel_monitor.c\n+++ b/examples/vm_power_manager/channel_monitor.c\n@@ -66,7 +66,7 @@ static void\n core_share_status(int pNo)\n {\n \n-\tint noVms, noVcpus, z, x, t;\n+\tint noVms = 0, noVcpus = 0, z, x, t;\n \n \tget_all_vm(&noVms, &noVcpus);\n \n",
    "prefixes": [
        "v7",
        "02/10"
    ]
}