get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 101597,
    "url": "http://patches.dpdk.org/api/patches/101597/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211014095444.630505-1-harry.van.haaren@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": "<20211014095444.630505-1-harry.van.haaren@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211014095444.630505-1-harry.van.haaren@intel.com",
    "date": "2021-10-14T09:54:44",
    "name": "app/test-eventdev: fix terminal colour after control-c exit",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "54dc3e187befd0516e37b45a49c1fa27235806c4",
    "submitter": {
        "id": 317,
        "url": "http://patches.dpdk.org/api/people/317/?format=api",
        "name": "Van Haaren, Harry",
        "email": "harry.van.haaren@intel.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211014095444.630505-1-harry.van.haaren@intel.com/mbox/",
    "series": [
        {
            "id": 19647,
            "url": "http://patches.dpdk.org/api/series/19647/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19647",
            "date": "2021-10-14T09:54:44",
            "name": "app/test-eventdev: fix terminal colour after control-c exit",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/19647/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/101597/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/101597/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 3A654A0C47;\n\tThu, 14 Oct 2021 11:54:50 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2AB36411FC;\n\tThu, 14 Oct 2021 11:54:50 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 2EFB540041\n for <dev@dpdk.org>; Thu, 14 Oct 2021 11:54:48 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Oct 2021 02:54:47 -0700",
            "from silpixa00401089.ir.intel.com ([10.55.128.47])\n by orsmga001.jf.intel.com with ESMTP; 14 Oct 2021 02:54:46 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10136\"; a=\"208447925\"",
            "E=Sophos;i=\"5.85,372,1624345200\"; d=\"scan'208\";a=\"208447925\"",
            "E=Sophos;i=\"5.85,372,1624345200\"; d=\"scan'208\";a=\"525002464\""
        ],
        "X-ExtLoop1": "1",
        "From": "Harry van Haaren <harry.van.haaren@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Harry van Haaren <harry.van.haaren@intel.com>,\n\tpbhagavatula@marvell.com",
        "Date": "Thu, 14 Oct 2021 09:54:44 +0000",
        "Message-Id": "<20211014095444.630505-1-harry.van.haaren@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] app/test-eventdev: fix terminal colour after\n control-c exit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Before this commit, a Control^C exit of the test-eventdev application\nwould print the worker packet percentages, and leave the terminal with\na green colour despite the colour reset being issued after the newline.\nBy moving the colour reset command before the \\n the issue is fixed.\n\nFixes: 6b1a14a83a06 (\"app/eventdev: add packet distribution logs\")\n\nSigned-off-by: Harry van Haaren <harry.van.haaren@intel.com>\n\n---\n\nGiven this is an aesthetic only fix, I feel its not worth backporting.\nCc: pbhagavatula@marvell.com>\n\n---\n app/test-eventdev/test_perf_common.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c\nindex e0d9f05ecd..a1b8dd72ee 100644\n--- a/app/test-eventdev/test_perf_common.c\n+++ b/app/test-eventdev/test_perf_common.c\n@@ -19,7 +19,7 @@ perf_test_result(struct evt_test *test, struct evt_options *opt)\n \t\ttotal += t->worker[i].processed_pkts;\n \tfor (i = 0; i < t->nb_workers; i++)\n \t\tprintf(\"Worker %d packets: \"CLGRN\"%\"PRIx64\" \"CLNRM\"percentage:\"\n-\t\t\t\tCLGRN\" %3.2f\\n\"CLNRM, i,\n+\t\t\t\tCLGRN\" %3.2f\"CLNRM\"\\n\", i,\n \t\t\t\tt->worker[i].processed_pkts,\n \t\t\t\t(((double)t->worker[i].processed_pkts)/total)\n \t\t\t\t* 100);\n",
    "prefixes": []
}