get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 28810,
    "url": "https://patches.dpdk.org/api/patches/28810/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1505703634-794-1-git-send-email-phil.yang@arm.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": "<1505703634-794-1-git-send-email-phil.yang@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1505703634-794-1-git-send-email-phil.yang@arm.com",
    "date": "2017-09-18T03:00:34",
    "name": "[dpdk-dev] app/testpmd: fix stats period can't quit normally in container",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fc14c0f990500c1bea99652183a6f5f55890cc65",
    "submitter": {
        "id": 833,
        "url": "https://patches.dpdk.org/api/people/833/?format=api",
        "name": "Phil Yang",
        "email": "phil.yang@arm.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1505703634-794-1-git-send-email-phil.yang@arm.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/28810/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/28810/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 422C925A1;\n\tMon, 18 Sep 2017 05:00:55 +0200 (CEST)",
            "from foss.arm.com (foss.arm.com [217.140.101.70])\n\tby dpdk.org (Postfix) with ESMTP id D224B1E34\n\tfor <dev@dpdk.org>; Mon, 18 Sep 2017 05:00:53 +0200 (CEST)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F00DA1529;\n\tSun, 17 Sep 2017 20:00:52 -0700 (PDT)",
            "from phil-VirtualBox.shanghai.arm.com (unknown [10.169.107.165])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id\n\t7B4B73F483; Sun, 17 Sep 2017 20:00:52 -0700 (PDT)"
        ],
        "From": "Phil Yang <phil.yang@arm.com>",
        "To": "dev@dpdk.org",
        "Cc": "nd@arm.com",
        "Date": "Mon, 18 Sep 2017 11:00:34 +0800",
        "Message-Id": "<1505703634-794-1-git-send-email-phil.yang@arm.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Subject": "[dpdk-dev] [PATCH] app/testpmd: fix stats period can't quit\n\tnormally in container",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "While running testpmd in container with stats-period option, it can't\nquit normally after received SIGINT.\n\nSigned-off-by: Phil Yang <phil.yang@arm.com>\n---\n app/test-pmd/testpmd.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex e097ee0..a4da9ea 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -183,6 +183,7 @@ uint16_t mbuf_data_size = DEFAULT_MBUF_DATA_SIZE; /**< Mbuf data space size. */\n uint32_t param_total_num_mbufs = 0;  /**< number of mbufs in all pools - if\n                                       * specified on command-line. */\n uint16_t stats_period; /**< Period to show statistics (disabled by default) */\n+uint8_t  f_quit = 0; /* Receive LSC INTERRUPTION to stop show statistics periodically */\n /*\n  * Configuration of packet segments used by the \"txonly\" processing engine.\n  */\n@@ -2285,6 +2286,8 @@ init_port(void)\n static void\n force_quit(void)\n {\n+\tf_quit = 1;\n+\n \tpmd_test_exit();\n \tprompt_exit();\n }\n@@ -2444,7 +2447,7 @@ main(int argc, char** argv)\n \t\t\t/* Convert to number of cycles */\n \t\t\ttimer_period = stats_period * rte_get_timer_hz();\n \n-\t\t\twhile (1) {\n+\t\t\twhile (!f_quit) {\n \t\t\t\tcur_time = rte_get_timer_cycles();\n \t\t\t\tdiff_time += cur_time - prev_time;\n \n",
    "prefixes": [
        "dpdk-dev"
    ]
}