get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 56459,
    "url": "http://patchwork.dpdk.org/api/patches/56459/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20190715140704.27221-1-david.hunt@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": "<20190715140704.27221-1-david.hunt@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190715140704.27221-1-david.hunt@intel.com",
    "date": "2019-07-15T14:07:04",
    "name": "[v1] examples/power: fix busyness number limed to 50%",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ef47ba1f74eb47c16c9284b72846e160a50243ef",
    "submitter": {
        "id": 342,
        "url": "http://patchwork.dpdk.org/api/people/342/?format=api",
        "name": "Hunt, David",
        "email": "david.hunt@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20190715140704.27221-1-david.hunt@intel.com/mbox/",
    "series": [
        {
            "id": 5501,
            "url": "http://patchwork.dpdk.org/api/series/5501/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=5501",
            "date": "2019-07-15T14:07:04",
            "name": "[v1] examples/power: fix busyness number limed to 50%",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/5501/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/56459/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/56459/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 109F41B9C9;\n\tMon, 15 Jul 2019 16:07:11 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 341411B993\n\tfor <dev@dpdk.org>; Mon, 15 Jul 2019 16:07:09 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Jul 2019 07:07:08 -0700",
            "from silpixa00399952.ir.intel.com (HELO\n\tsilpixa00399952.ger.corp.intel.com) ([10.237.222.88])\n\tby orsmga007.jf.intel.com with ESMTP; 15 Jul 2019 07:07:06 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,493,1557212400\"; d=\"scan'208\";a=\"157825044\"",
        "From": "David Hunt <david.hunt@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "david.hunt@intel.com",
        "Date": "Mon, 15 Jul 2019 15:07:04 +0100",
        "Message-Id": "<20190715140704.27221-1-david.hunt@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH v1] examples/power: fix busyness number limed to\n\t50%",
        "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": "Current implementation only outputs 3 numbers for busyness, 0, 50 and 100.\nFix this so that the 50% is replaced by a curve, more meaningful.\nThis can be replaced in each use case by a suitable calculation for\nthat use case.\n\nFixes: 609e79841fcf (\"examples/l3fwd-power: add telemetry mode\")\n\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n examples/l3fwd-power/main.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex 7a95605c4..cbe8f8e3f 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -184,8 +184,8 @@ enum busy_rate {\n  * reference CYCLES to be used to\n  * measure core busyness based on poll count\n  */\n-#define MIN_CYCLES 1500000ULL\n-#define MAX_CYCLES 2500000ULL\n+#define MIN_CYCLES  1500000ULL\n+#define MAX_CYCLES 22000000ULL\n \n /* (500ms) */\n #define TELEMETRY_INTERVALS_PER_SEC 2\n@@ -1034,7 +1034,7 @@ main_telemetry_loop(__attribute__((unused)) void *dummy)\n \t\t\t\tbr = FULL;\n \t\t\t} else if (diff_tsc > MIN_CYCLES &&\n \t\t\t\t\tdiff_tsc < MAX_CYCLES) {\n-\t\t\t\tbr = PARTIAL;\n+\t\t\t\tbr = (diff_tsc * 100) / MAX_CYCLES;\n \t\t\t} else {\n \t\t\t\tbr = ZERO;\n \t\t\t}\n",
    "prefixes": [
        "v1"
    ]
}