get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 62146,
    "url": "http://patchwork.dpdk.org/api/patches/62146/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20191029114013.22803-1-david.hunt@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20191029114013.22803-1-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191029114013.22803-1-david.hunt@intel.com",
    "date": "2019-10-29T11:40:13",
    "name": "[v1] examples/vm_power: fix no PCI option for guest cli",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3d730bf6aab27effa7995ed72762ea45d0de95ac",
    "submitter": {
        "id": 342,
        "url": "http://patchwork.dpdk.org/api/people/342/?format=api",
        "name": "Hunt, David",
        "email": "david.hunt@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20191029114013.22803-1-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 7124,
            "url": "http://patchwork.dpdk.org/api/series/7124/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=7124",
            "date": "2019-10-29T11:40:13",
            "name": "[v1] examples/vm_power: fix no PCI option for guest cli",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/7124/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/62146/comments/",
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/62146/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id ECA93A00BE;\n\tTue, 29 Oct 2019 12:40:33 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DA8F01BEA4;\n\tTue, 29 Oct 2019 12:40:32 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 3A8CB1BE9F\n for <dev@dpdk.org>; Tue, 29 Oct 2019 12:40:31 +0100 (CET)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 29 Oct 2019 04:40:30 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n silpixa00399952.ger.corp.intel.com) ([10.237.222.38])\n by orsmga004.jf.intel.com with ESMTP; 29 Oct 2019 04:40:28 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.68,243,1569308400\"; d=\"scan'208\";a=\"350956709\"",
        "From": "David Hunt <david.hunt@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "lei.a.yao@intel.com,\n\tDavid Hunt <david.hunt@intel.com>",
        "Date": "Tue, 29 Oct 2019 11:40:13 +0000",
        "Message-Id": "<20191029114013.22803-1-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH v1] examples/vm_power: fix no PCI option for\n\tguest cli",
        "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 <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "If there are no ports available to the guest cli application, it will\nexit when setting up the default policy because it fails to set the mac\naddress. This should not be the case, as this example can be used for\nmany other use cases that do not need ports.\n\nIf ports not found, simply set nb_mac_to_monitor in the policy to zero\nand continue.\n\nFixes: 70febdcfd60f (\"examples: check status of getting MAC address\")\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n examples/vm_power_manager/guest_cli/vm_power_cli_guest.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c\nindex eb0ae9114..96c1a1ff6 100644\n--- a/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c\n+++ b/examples/vm_power_manager/guest_cli/vm_power_cli_guest.c\n@@ -79,9 +79,9 @@ set_policy_defaults(struct channel_packet *pkt)\n \n \tret = set_policy_mac(0, 0);\n \tif (ret != 0)\n-\t\treturn ret;\n-\n-\tpkt->nb_mac_to_monitor = 1;\n+\t\tpkt->nb_mac_to_monitor = 0;\n+\telse\n+\t\tpkt->nb_mac_to_monitor = 1;\n \n \tpkt->t_boost_status.tbEnabled = false;\n \n",
    "prefixes": [
        "v1"
    ]
}