get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71741,
    "url": "http://patches.dpdk.org/api/patches/71741/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/04e4ba159c213d2e9df374286db8f260f70e0865.1592500565.git.anatoly.burakov@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": "<04e4ba159c213d2e9df374286db8f260f70e0865.1592500565.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/04e4ba159c213d2e9df374286db8f260f70e0865.1592500565.git.anatoly.burakov@intel.com",
    "date": "2020-06-18T17:18:24",
    "name": "[v2,2/7] 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://patches.dpdk.org/api/people/4/?format=api",
        "name": "Burakov, Anatoly",
        "email": "anatoly.burakov@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/04e4ba159c213d2e9df374286db8f260f70e0865.1592500565.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 10507,
            "url": "http://patches.dpdk.org/api/series/10507/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10507",
            "date": "2020-06-18T17:18:24",
            "name": "Add interrupt-only mode to l3fwd-power",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/10507/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71741/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/71741/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 204B9A04F1;\n\tThu, 18 Jun 2020 19:18:49 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7A0DF1BFBA;\n\tThu, 18 Jun 2020 19:18:48 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by dpdk.org (Postfix) with ESMTP id 831D51BFAD\n for <dev@dpdk.org>; Thu, 18 Jun 2020 19:18:46 +0200 (CEST)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Jun 2020 10:18:45 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n silpixa00399498.ger.corp.intel.com) ([10.237.222.52])\n by fmsmga004.fm.intel.com with ESMTP; 18 Jun 2020 10:18:32 -0700"
        ],
        "IronPort-SDR": [
            "\n e4dja0b7ESjUlmBtngcKlYlacQoMz5ns74/e5IK3ysWkxX1+CWVREdFdTAnRGLSDbwF2ma75sY\n 9gaQkfxzUsnw==",
            "\n MeW+ZFZcaJ9uW1+WXFxFnqHAKF5kdLs6MRtJgA/GMyNrmSB6UIFbL/+1W4b8o8LzKWs/LdTfRw\n Qi+L1Fw5dAjg=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9656\"; a=\"131064089\"",
            "E=Sophos;i=\"5.75,251,1589266800\"; d=\"scan'208\";a=\"131064089\"",
            "E=Sophos;i=\"5.75,251,1589266800\"; d=\"scan'208\";a=\"299768421\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "David Hunt <david.hunt@intel.com>, reshma.pattan@intel.com,\n hkalra@marvell.com, jerinjacobk@gmail.com, yinan.wang@intel.com",
        "Date": "Thu, 18 Jun 2020 18:18:24 +0100",
        "Message-Id": "\n <04e4ba159c213d2e9df374286db8f260f70e0865.1592500565.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<cover.1592500565.git.anatoly.burakov@intel.com>",
            "<cover.1592500565.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1592500565.git.anatoly.burakov@intel.com>",
            "<cover.1590656906.git.anatoly.burakov@intel.com>\n <cover.1592500565.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 2/7] 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": [
        "v2",
        "2/7"
    ]
}