get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 70682,
    "url": "http://patchwork.dpdk.org/api/patches/70682/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/9bd570760c40138fc3a4f6b2ade8f972feca7302.1590656906.git.anatoly.burakov@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": "<9bd570760c40138fc3a4f6b2ade8f972feca7302.1590656906.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/9bd570760c40138fc3a4f6b2ade8f972feca7302.1590656906.git.anatoly.burakov@intel.com",
    "date": "2020-05-28T09:13:50",
    "name": "[2/3] l3fwd-power: only allow supported power library envs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0cf11165b879e6ddbd6578e6a3d5dc218d3612f6",
    "submitter": {
        "id": 4,
        "url": "http://patchwork.dpdk.org/api/people/4/?format=api",
        "name": "Anatoly Burakov",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/9bd570760c40138fc3a4f6b2ade8f972feca7302.1590656906.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 10267,
            "url": "http://patchwork.dpdk.org/api/series/10267/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10267",
            "date": "2020-05-28T09:13:48",
            "name": "Add interrupt-only mode to l3fwd-power",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/10267/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/70682/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/70682/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 29827A00BE;\n\tThu, 28 May 2020 11:14:03 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D3BA21DB56;\n\tThu, 28 May 2020 11:13:51 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 0DC331D992\n for <dev@dpdk.org>; Thu, 28 May 2020 11:13:48 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 May 2020 02:13:48 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by orsmga002.jf.intel.com with ESMTP; 28 May 2020 02:13:46 -0700"
        ],
        "IronPort-SDR": [
            "\n 0Yiw5iN2VtC1SiKwsLDhFFPL6gZx82hXdmfkRjjnAF1ikrsZpZsRTrbnjfYq1nKPz7KsEXR4di\n CyOvZYDJaYlA==",
            "\n yR3iJ390IEQRaTcXsnutJhFLnYDPSCptGCqiv7ez8TGYTozUVZFXzKEbGolIRUXmMgQBVpzXyX\n SQzjX0RVcnAA=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.73,444,1583222400\"; d=\"scan'208\";a=\"285106513\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "David Hunt <david.hunt@intel.com>, liang.j.ma@intel.com,\n reshma.pattan@intel.com",
        "Date": "Thu, 28 May 2020 10:13:50 +0100",
        "Message-Id": "\n <9bd570760c40138fc3a4f6b2ade8f972feca7302.1590656906.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<cover.1590656906.git.anatoly.burakov@intel.com>",
            "<cover.1590656906.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1590656906.git.anatoly.burakov@intel.com>",
            "<cover.1590656906.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH 2/3] l3fwd-power: only allow supported power\n\tlibrary envs",
        "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": "Currently, l3fwd-power will attempt to run even if the power env\nis set to KVM, which is not supported. Fix this by preventing the\napp from initializing unless the env is set to one of the supported\nmodes.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n examples/l3fwd-power/main.c | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 2cc5d7b121..5cee9d5387 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -2043,6 +2043,7 @@ static int check_ptype(uint16_t portid)\n static int\n init_power_library(void)\n {\n+\tenum power_management_env env;\n \tunsigned int lcore_id;\n \tint ret = 0;\n \n@@ -2055,6 +2056,14 @@ init_power_library(void)\n \t\t\t\tlcore_id);\n \t\t\treturn ret;\n \t\t}\n+\t\t/* we're not supporting the VM channel mode */\n+\t\tenv = rte_power_get_env();\n+\t\tif (env != PM_ENV_ACPI_CPUFREQ &&\n+\t\t\t\tenv != PM_ENV_PSTATE_CPUFREQ) {\n+\t\t\tRTE_LOG(ERR, POWER,\n+\t\t\t\t\"Only ACPI and PSTATE mode are supported\\n\");\n+\t\t\treturn -1;\n+\t\t}\n \t}\n \treturn ret;\n }\n",
    "prefixes": [
        "2/3"
    ]
}