get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52167,
    "url": "http://patches.dpdk.org/api/patches/52167/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190403103256.21856-4-lukaszx.krakowiak@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": "<20190403103256.21856-4-lukaszx.krakowiak@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190403103256.21856-4-lukaszx.krakowiak@intel.com",
    "date": "2019-04-03T10:32:56",
    "name": "[v2,3/3] test: add UT for power turbo feature",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ee609d78b84b4f3f773ffaa035b642a3824cbbd7",
    "submitter": {
        "id": 1221,
        "url": "http://patches.dpdk.org/api/people/1221/?format=api",
        "name": "Lukasz Krakowiak",
        "email": "lukaszx.krakowiak@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/20190403103256.21856-4-lukaszx.krakowiak@intel.com/mbox/",
    "series": [
        {
            "id": 4080,
            "url": "http://patches.dpdk.org/api/series/4080/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4080",
            "date": "2019-04-03T10:32:53",
            "name": "test: improve test coverage for power library",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4080/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52167/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/52167/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 7D4661B1F5;\n\tWed,  3 Apr 2019 12:33:47 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 624181B185\n\tfor <dev@dpdk.org>; Wed,  3 Apr 2019 12:33:42 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t03 Apr 2019 03:33:42 -0700",
            "from lkrakowx-mobl.ger.corp.intel.com ([10.103.104.101])\n\tby fmsmga001.fm.intel.com with ESMTP; 03 Apr 2019 03:33:37 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.60,304,1549958400\"; d=\"scan'208\";a=\"160983710\"",
        "From": "Lukasz Krakowiak <lukaszx.krakowiak@intel.com>",
        "To": "david.hunt@intel.com",
        "Cc": "anatoly.burakov@intel.com, dev@dpdk.org,\n\tLukasz Krakowiak <lukaszx.krakowiak@intel.com>",
        "Date": "Wed,  3 Apr 2019 12:32:56 +0200",
        "Message-Id": "<20190403103256.21856-4-lukaszx.krakowiak@intel.com>",
        "X-Mailer": "git-send-email 2.19.2.windows.1",
        "In-Reply-To": "<20190403103256.21856-1-lukaszx.krakowiak@intel.com>",
        "References": "<20190307135950.30738-1-lukaszx.krakowiak@intel.com>\n\t<20190403103256.21856-1-lukaszx.krakowiak@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 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..d203810da 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\t\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 on lcore %u\\n\",\n+\t\t\t\tTEST_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\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 on lcore %u\\n\",\n+\t\t\t\tTEST_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\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": [
        "v2",
        "3/3"
    ]
}