get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45428,
    "url": "http://patches.dpdk.org/api/patches/45428/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180926163727.47337-9-david.hunt@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": "<20180926163727.47337-9-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180926163727.47337-9-david.hunt@intel.com",
    "date": "2018-09-26T16:37:25",
    "name": "[v5,08/10] examples/power: clean up verbose messages",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e53865e17d9b89ba02907e979ecf1285d777fb89",
    "submitter": {
        "id": 342,
        "url": "http://patches.dpdk.org/api/people/342/?format=api",
        "name": "Hunt, David",
        "email": "david.hunt@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/20180926163727.47337-9-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 1524,
            "url": "http://patches.dpdk.org/api/series/1524/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1524",
            "date": "2018-09-26T16:37:19",
            "name": "add json power policy interface for containers",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/1524/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/45428/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/45428/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 131C11B467;\n\tWed, 26 Sep 2018 18:43:14 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id D25071B3B3\n\tfor <dev@dpdk.org>; Wed, 26 Sep 2018 18:43:08 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Sep 2018 09:43:05 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n\tsilpixa00399952.ger.corp.intel.com) ([10.237.223.64])\n\tby fmsmga006.fm.intel.com with ESMTP; 26 Sep 2018 09:37:41 -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,306,1534834800\"; d=\"scan'208\";a=\"266907087\"",
        "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, 26 Sep 2018 17:37:25 +0100",
        "Message-Id": "<20180926163727.47337-9-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180926163727.47337-1-david.hunt@intel.com>",
        "References": "<20180926134037.43606-1-david.hunt@intel.com>\n\t<20180926163727.47337-1-david.hunt@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 08/10] examples/power: clean up verbose\n\tmessages",
        "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": "Some messages appearing several times a second, removing as they are\nunnecessary. Other less severe messages change from INFO to DEBUG\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 | 19 +++++--------------\n 1 file changed, 5 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/examples/vm_power_manager/channel_monitor.c b/examples/vm_power_manager/channel_monitor.c\nindex 73a0451f3..92389ba5d 100644\n--- a/examples/vm_power_manager/channel_monitor.c\n+++ b/examples/vm_power_manager/channel_monitor.c\n@@ -259,7 +259,7 @@ get_pcpu_to_control(struct policy *pol)\n \n \tci = get_core_info();\n \n-\tRTE_LOG(INFO, CHANNEL_MONITOR,\n+\tRTE_LOG(DEBUG, CHANNEL_MONITOR,\n \t\t\t\"Looking for pcpu for %s\\n\", pol->pkt.vm_name);\n \n \t/*\n@@ -426,8 +426,6 @@ apply_traffic_profile(struct policy *pol)\n \n \tdiff = get_pkt_diff(pol);\n \n-\tRTE_LOG(INFO, CHANNEL_MONITOR, \"Applying traffic profile\\n\");\n-\n \tif (diff >= (pol->pkt.traffic_policy.max_max_packet_thresh)) {\n \t\tfor (count = 0; count < pol->pkt.num_vcpu; count++) {\n \t\t\tif (pol->core_share[count].status != 1)\n@@ -471,9 +469,6 @@ apply_time_profile(struct policy *pol)\n \t\t\t\tif (pol->core_share[count].status != 1) {\n \t\t\t\t\tpower_manager_scale_core_max(\n \t\t\t\t\t\tpol->core_share[count].pcpu);\n-\t\t\t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n-\t\t\t\t\t\"Scaling up core %d to max\\n\",\n-\t\t\t\t\tpol->core_share[count].pcpu);\n \t\t\t\t}\n \t\t\t}\n \t\t\tbreak;\n@@ -483,9 +478,6 @@ apply_time_profile(struct policy *pol)\n \t\t\t\tif (pol->core_share[count].status != 1) {\n \t\t\t\t\tpower_manager_scale_core_min(\n \t\t\t\t\t\tpol->core_share[count].pcpu);\n-\t\t\t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n-\t\t\t\t\t\"Scaling down core %d to min\\n\",\n-\t\t\t\t\tpol->core_share[count].pcpu);\n \t\t\t}\n \t\t}\n \t\t\tbreak;\n@@ -547,8 +539,6 @@ process_request(struct channel_packet *pkt, struct channel_info *chan_info)\n \tif (chan_info == NULL)\n \t\treturn -1;\n \n-\tRTE_LOG(INFO, CHANNEL_MONITOR, \"Processing Request %s\\n\", pkt->vm_name);\n-\n \tif (rte_atomic32_cmpset(&(chan_info->status), CHANNEL_MGR_CHANNEL_CONNECTED,\n \t\t\tCHANNEL_MGR_CHANNEL_PROCESSING) == 0)\n \t\treturn -1;\n@@ -617,8 +607,8 @@ process_request(struct channel_packet *pkt, struct channel_info *chan_info)\n \t}\n \n \tif (pkt->command == PKT_POLICY) {\n-\t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n-\t\t\t\t\"\\nProcessing Policy request\\n\");\n+\t\tRTE_LOG(INFO, CHANNEL_MONITOR, \"Processing policy request %s\\n\",\n+\t\t\t\tpkt->vm_name);\n \t\tupdate_policy(pkt);\n \t\tpolicy_is_set = 1;\n \t}\n@@ -802,7 +792,8 @@ run_channel_monitor(void)\n \t\t\t\t\tglobal_events_list[i].data.ptr;\n \t\t\tif ((global_events_list[i].events & EPOLLERR) ||\n \t\t\t\t(global_events_list[i].events & EPOLLHUP)) {\n-\t\t\t\tRTE_LOG(DEBUG, CHANNEL_MONITOR, \"Remote closed connection for \"\n+\t\t\t\tRTE_LOG(INFO, CHANNEL_MONITOR,\n+\t\t\t\t\t\t\"Remote closed connection for \"\n \t\t\t\t\t\t\"channel '%s'\\n\",\n \t\t\t\t\t\tchan_info->channel_path);\n \t\t\t\tremove_channel(&chan_info);\n",
    "prefixes": [
        "v5",
        "08/10"
    ]
}