get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 50969,
    "url": "https://patches.dpdk.org/api/patches/50969/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190307135950.30738-4-lukaszx.krakowiak@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": "<20190307135950.30738-4-lukaszx.krakowiak@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190307135950.30738-4-lukaszx.krakowiak@intel.com",
    "date": "2019-03-07T13:59:50",
    "name": "[3/3] test: add UT for power turbo feature",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "5fdbd2ca23860ccb778010d75c6dc2649f63e5b6",
    "submitter": {
        "id": 1221,
        "url": "https://patches.dpdk.org/api/people/1221/?format=api",
        "name": "Lukasz Krakowiak",
        "email": "lukaszx.krakowiak@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/20190307135950.30738-4-lukaszx.krakowiak@intel.com/mbox/",
    "series": [
        {
            "id": 3666,
            "url": "https://patches.dpdk.org/api/series/3666/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=3666",
            "date": "2019-03-07T13:59:47",
            "name": "test: improve test coverage for power library",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/3666/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/50969/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/50969/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 E9E461B19A;\n\tThu,  7 Mar 2019 15:04:21 +0100 (CET)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n\tby dpdk.org (Postfix) with ESMTP id 7DEEA1B12B\n\tfor <dev@dpdk.org>; Thu,  7 Mar 2019 15:04:18 +0100 (CET)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t07 Mar 2019 06:04:17 -0800",
            "from lkrakowx-mobl.ger.corp.intel.com (HELO lukas.isw.intel.com)\n\t([10.103.104.102])\n\tby fmsmga002.fm.intel.com with ESMTP; 07 Mar 2019 06:04:17 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.58,451,1544515200\"; d=\"scan'208\";a=\"149487380\"",
        "From": "Lukasz Krakowiak <lukaszx.krakowiak@intel.com>",
        "To": "david.hunt@intel.com",
        "Cc": "dev@dpdk.org,\n\tLukasz Krakowiak <lukaszx.krakowiak@intel.com>",
        "Date": "Thu,  7 Mar 2019 07:59:50 -0600",
        "Message-Id": "<20190307135950.30738-4-lukaszx.krakowiak@intel.com>",
        "X-Mailer": "git-send-email 2.19.2",
        "In-Reply-To": "<20190307135950.30738-1-lukaszx.krakowiak@intel.com>",
        "References": "<20190307135950.30738-1-lukaszx.krakowiak@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 3/3] test: add UT for power turbo feature",
        "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": "Add UT check_power_turbo.\n\nSigned-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>\n---\n app/test/test_power_cpufreq.c | 72 +++++++++++++++++++++++++++++++++++\n 1 file changed, 72 insertions(+)",
    "diff": "diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c\nindex d099f2f47..c75c9bf1c 100644\n--- a/app/test/test_power_cpufreq.c\n+++ b/app/test/test_power_cpufreq.c\n@@ -366,6 +366,59 @@ check_power_freq_min(void)\n \treturn 0;\n }\n \n+/* Check rte_power_turbo() */\n+static int\n+check_power_turbo(void)\n+{\n+\tint ret;\n+\n+\tif (rte_power_turbo_status(TEST_POWER_LCORE_ID) == 0) {\n+\t\tprintf(\"Turbo not available on lcore %u, skipping test\\n\",\n+\t\tTEST_POWER_LCORE_ID);\n+\t\treturn 0;\n+\t}\n+\n+\t/* test with an invalid lcore id */\n+\tret = rte_power_freq_enable_turbo(TEST_POWER_LCORE_INVALID);\n+\tif (ret >= 0) {\n+\t\tprintf(\"Unexpectedly enable turbo successfully \"\n+\t\t\t\t\"on lcore %u\\n\", TEST_POWER_LCORE_INVALID);\n+\t\treturn -1;\n+\t}\n+\tret = rte_power_freq_enable_turbo(TEST_POWER_LCORE_ID);\n+\tif (ret < 0) {\n+\t\tprintf(\"Fail to enable turbo on lcore %u\\n\",\n+\t\t\t\t\t\t\tTEST_POWER_LCORE_ID);\n+\t\treturn -1;\n+\t}\n+\n+\t/* Check the current frequency */\n+\tret = check_cur_freq(TEST_POWER_LCORE_ID, 0);\n+\tif (ret < 0)\n+\t\treturn -1;\n+\n+\t/* test with an invalid lcore id */\n+\tret = rte_power_freq_disable_turbo(TEST_POWER_LCORE_INVALID);\n+\tif (ret >= 0) {\n+\t\tprintf(\"Unexpectedly disable turbo successfully \"\n+\t\t\t\t\"on lcore %u\\n\", TEST_POWER_LCORE_INVALID);\n+\t\treturn -1;\n+\t}\n+\tret = rte_power_freq_disable_turbo(TEST_POWER_LCORE_ID);\n+\tif (ret < 0) {\n+\t\tprintf(\"Fail to disable turbo on lcore %u\\n\",\n+\t\t\t\t\t\t\tTEST_POWER_LCORE_ID);\n+\t\treturn -1;\n+\t}\n+\n+\t/* Check the current frequency */\n+\tret = check_cur_freq(TEST_POWER_LCORE_ID, 1);\n+\tif (ret < 0)\n+\t\treturn -1;\n+\n+\treturn 0;\n+}\n+\n static int\n test_power_cpufreq(void)\n {\n@@ -427,6 +480,21 @@ test_power_cpufreq(void)\n \t\t\t\t\"been initialised\\n\");\n \t\tgoto fail_all;\n \t}\n+\tif (rte_power_turbo_status == NULL) {\n+\t\tprintf(\"rte_power_turbo_status should not be NULL, environment has not \"\n+\t\t\t\t\"been initialised\\n\");\n+\t\tgoto fail_all;\n+\t}\n+\tif (rte_power_freq_enable_turbo == NULL) {\n+\t\tprintf(\"rte_power_freq_enable_turbo should not be NULL, environment has not \"\n+\t\t\t\t\"been initialised\\n\");\n+\t\tgoto fail_all;\n+\t}\n+\tif (rte_power_freq_disable_turbo == NULL) {\n+\t\tprintf(\"rte_power_freq_disable_turbo should not be NULL, environment has not \"\n+\t\t\t\t\"been initialised\\n\");\n+\t\tgoto fail_all;\n+\t}\n \n \tret = rte_power_exit(TEST_POWER_LCORE_ID);\n \tif (ret < 0) {\n@@ -502,6 +570,10 @@ test_power_cpufreq(void)\n \tif (ret < 0)\n \t\tgoto fail_all;\n \n+\tret = check_power_turbo();\n+\tif (ret < 0)\n+\t\tgoto fail_all;\n+\n \tret = rte_power_exit(TEST_POWER_LCORE_ID);\n \tif (ret < 0) {\n \t\tprintf(\"Cannot exit power management for lcore %u\\n\",\n",
    "prefixes": [
        "3/3"
    ]
}