get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35215,
    "url": "http://patches.dpdk.org/api/patches/35215/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1519026379-7924-3-git-send-email-tdu@semihalf.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": "<1519026379-7924-3-git-send-email-tdu@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1519026379-7924-3-git-send-email-tdu@semihalf.com",
    "date": "2018-02-19T07:46:19",
    "name": "[dpdk-dev,v2,2/2] app/testpmd: add command to resume a TM node",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "52604adda0484743418dbdb55918ed4b398f080e",
    "submitter": {
        "id": 846,
        "url": "http://patches.dpdk.org/api/people/846/?format=api",
        "name": "Tomasz Duszynski",
        "email": "tdu@semihalf.com"
    },
    "delegate": {
        "id": 10018,
        "url": "http://patches.dpdk.org/api/users/10018/?format=api",
        "username": "cristian_dumitrescu",
        "first_name": "Cristian",
        "last_name": "Dumitrescu",
        "email": "cristian.dumitrescu@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1519026379-7924-3-git-send-email-tdu@semihalf.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35215/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35215/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 200C81B1DE;\n\tMon, 19 Feb 2018 08:46:37 +0100 (CET)",
            "from mail-lf0-f68.google.com (mail-lf0-f68.google.com\n\t[209.85.215.68]) by dpdk.org (Postfix) with ESMTP id 1D34DA48A\n\tfor <dev@dpdk.org>; Mon, 19 Feb 2018 08:46:32 +0100 (CET)",
            "by mail-lf0-f68.google.com with SMTP id f136so11754065lff.8\n\tfor <dev@dpdk.org>; Sun, 18 Feb 2018 23:46:32 -0800 (PST)",
            "from sh.semihalf.local (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.gmail.com with ESMTPSA id\n\ty3sm2284259ljy.28.2018.02.18.23.46.30\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 18 Feb 2018 23:46:30 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=g1Anf3rwu0seLdwhB7OtaD57jcpSrIk9GT6t1hO5CKk=;\n\tb=LSqyhJHQCEHXAiNAQYGmgt4X9b1oi+tENyqZ0Wmq//S+wmHIK7vBRnidlvXXMSduJT\n\t5MgA13JpmPhWCX1QXkIkzWE6BotBllL9kMCd3VTvrcBqUF/aJYji3VkJUu8Mi0IP2jVQ\n\tzVL0HhfNmpcWOFO8t850VaMScrVMx5ld7jUHecWda89e/OmuEY2s8SqriKmwubGAV7ZZ\n\tLQOIw7l9hWc9iUOMUyZFhFITWzwgcs1JphMHgpIPOD2WtFxeO3diXMMhbnrBxezYLVDK\n\tHWcVgh+ICCV5Ecn8cBLU31Ruwq1aBmfQa2Nu3k6AmXPWqACJsJGOWP2cwsbnTFVX9ZRt\n\tatMg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=g1Anf3rwu0seLdwhB7OtaD57jcpSrIk9GT6t1hO5CKk=;\n\tb=VMjxvil6XIhzVOLtkwSRsvD68i92/iNP07DORrvHvhcqAb2txYpVFgRqsFIGYr6/Uu\n\tuRa/8OHZzlnOe3iVG4/6Jz1Jlq0tf/jKFgPULfZMIuxqfDgAyLhC1Wr5N5KAcwc0hbeV\n\t7WZ3LVrm0r0Up9N7MXX8CnfeHHSnnXfqpUYoyVIXnjhpeicI01UEtjNt2KenqWEzmV9D\n\tX8cn4bfV8PJQ8L8xGIYfufewlxTenhoEuZjHj83NoYgE1PZbHjkM1AzzWh+edbLHEUV3\n\tr4yfIwChfmrUDdpf6+YABvTcY/0Dm5rzcDSwNbjge30ZA2c+Uq0xfC6eaPY79IoyXF4i\n\tBnJQ==",
        "X-Gm-Message-State": "APf1xPA7ZRQgz/kqPq6ecqKx244dUFlm2nsO7SFbrPT+iUSYks0LWCj2\n\tJR7gjETzPJ/rR9H5O9QnEaV4yhkiN8w=",
        "X-Google-Smtp-Source": "AH8x224ojQRKUGf6rVxdYfuQAosp9QUJONKF7aOb+aLM5ST58kjeakybGcocxezX2bM3+VONtT0HLQ==",
        "X-Received": "by 10.46.93.69 with SMTP id r66mr8776980ljb.88.1519026391580;\n\tSun, 18 Feb 2018 23:46:31 -0800 (PST)",
        "From": "Tomasz Duszynski <tdu@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "wenzhuo.lu@intel.com, jingjing.wu@intel.com, jasvinder.singh@intel.com, \n\tTomasz Duszynski <tdu@semihalf.com>",
        "Date": "Mon, 19 Feb 2018 08:46:19 +0100",
        "Message-Id": "<1519026379-7924-3-git-send-email-tdu@semihalf.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1519026379-7924-1-git-send-email-tdu@semihalf.com>",
        "References": "<1517477799-18946-1-git-send-email-tdu@semihalf.com>\n\t<1519026379-7924-1-git-send-email-tdu@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/2] app/testpmd: add command to resume a TM\n\tnode",
        "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://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": "<https://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": "Traffic manager provides an API for resuming\nan arbitrary node in a hierarchy.\n\nThis commit adds support for calling this API\nfrom testpmd.\n\nSigned-off-by: Tomasz Duszynski <tdu@semihalf.com>\nReviewed-by: Jasvinder Singh <jasvinder.singh@inel.com>\n---\n app/test-pmd/cmdline.c                      |  4 ++\n app/test-pmd/cmdline_tm.c                   | 64 +++++++++++++++++++++++++++++\n app/test-pmd/cmdline_tm.h                   |  1 +\n doc/guides/testpmd_app_ug/testpmd_funcs.rst |  5 +++\n 4 files changed, 74 insertions(+)\n\n--\n2.7.4",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 8e17f20..052d58e 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -774,6 +774,9 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\"suspend port tm node (port_id) (node_id)\"\n \t\t\t\"       Suspend tm node.\\n\\n\"\n\n+\t\t\t\"resume port tm node (port_id) (node_id)\"\n+\t\t\t\"       Resume tm node.\\n\\n\"\n+\n \t\t\t\"port tm hierarchy commit (port_id) (clean_on_fail)\\n\"\n \t\t\t\"\tCommit tm hierarchy.\\n\\n\"\n\n@@ -16275,6 +16278,7 @@ cmdline_parse_ctx_t main_ctx[] = {\n \t(cmdline_parse_inst_t *)&cmd_del_port_tm_node,\n \t(cmdline_parse_inst_t *)&cmd_set_port_tm_node_parent,\n \t(cmdline_parse_inst_t *)&cmd_suspend_port_tm_node,\n+\t(cmdline_parse_inst_t *)&cmd_resume_port_tm_node,\n \t(cmdline_parse_inst_t *)&cmd_port_tm_hierarchy_commit,\n \tNULL,\n };\ndiff --git a/app/test-pmd/cmdline_tm.c b/app/test-pmd/cmdline_tm.c\nindex daa912a..7fb69de 100644\n--- a/app/test-pmd/cmdline_tm.c\n+++ b/app/test-pmd/cmdline_tm.c\n@@ -2022,6 +2022,70 @@ cmdline_parse_inst_t cmd_suspend_port_tm_node = {\n \t},\n };\n\n+/* *** Resume Port TM Node *** */\n+struct cmd_resume_port_tm_node_result {\n+\tcmdline_fixed_string_t resume;\n+\tcmdline_fixed_string_t port;\n+\tcmdline_fixed_string_t tm;\n+\tcmdline_fixed_string_t node;\n+\tuint16_t port_id;\n+\tuint32_t node_id;\n+};\n+\n+cmdline_parse_token_string_t cmd_resume_port_tm_node_resume =\n+\tTOKEN_STRING_INITIALIZER(\n+\t\tstruct cmd_resume_port_tm_node_result, resume, \"resume\");\n+cmdline_parse_token_string_t cmd_resume_port_tm_node_port =\n+\tTOKEN_STRING_INITIALIZER(\n+\t\tstruct cmd_resume_port_tm_node_result, port, \"port\");\n+cmdline_parse_token_string_t cmd_resume_port_tm_node_tm =\n+\tTOKEN_STRING_INITIALIZER(\n+\t\tstruct cmd_resume_port_tm_node_result, tm, \"tm\");\n+cmdline_parse_token_string_t cmd_resume_port_tm_node_node =\n+\tTOKEN_STRING_INITIALIZER(\n+\t\tstruct cmd_resume_port_tm_node_result, node, \"node\");\n+cmdline_parse_token_num_t cmd_resume_port_tm_node_port_id =\n+\tTOKEN_NUM_INITIALIZER(\n+\t\tstruct cmd_resume_port_tm_node_result, port_id, UINT16);\n+cmdline_parse_token_num_t cmd_resume_port_tm_node_node_id =\n+\tTOKEN_NUM_INITIALIZER(\n+\t\tstruct cmd_resume_port_tm_node_result, node_id, UINT32);\n+\n+static void cmd_resume_port_tm_node_parsed(void *parsed_result,\n+\t__attribute__((unused)) struct cmdline *cl,\n+\t__attribute__((unused)) void *data)\n+{\n+\tstruct cmd_resume_port_tm_node_result *res = parsed_result;\n+\tstruct rte_tm_error error;\n+\tuint32_t node_id = res->node_id;\n+\tportid_t port_id = res->port_id;\n+\tint ret;\n+\n+\tif (port_id_is_invalid(port_id, ENABLED_WARN))\n+\t\treturn;\n+\n+\tret = rte_tm_node_resume(port_id, node_id, &error);\n+\tif (ret != 0) {\n+\t\tprint_err_msg(&error);\n+\t\treturn;\n+\t}\n+}\n+\n+cmdline_parse_inst_t cmd_resume_port_tm_node = {\n+\t.f = cmd_resume_port_tm_node_parsed,\n+\t.data = NULL,\n+\t.help_str = \"Resume port tm node\",\n+\t.tokens = {\n+\t\t(void *)&cmd_resume_port_tm_node_resume,\n+\t\t(void *)&cmd_resume_port_tm_node_port,\n+\t\t(void *)&cmd_resume_port_tm_node_tm,\n+\t\t(void *)&cmd_resume_port_tm_node_node,\n+\t\t(void *)&cmd_resume_port_tm_node_port_id,\n+\t\t(void *)&cmd_resume_port_tm_node_node_id,\n+\t\tNULL,\n+\t},\n+};\n+\n /* *** Port TM Hierarchy Commit *** */\n struct cmd_port_tm_hierarchy_commit_result {\n \tcmdline_fixed_string_t port;\ndiff --git a/app/test-pmd/cmdline_tm.h b/app/test-pmd/cmdline_tm.h\nindex c4d5e8c..b3a14ad 100644\n--- a/app/test-pmd/cmdline_tm.h\n+++ b/app/test-pmd/cmdline_tm.h\n@@ -23,6 +23,7 @@ extern cmdline_parse_inst_t cmd_add_port_tm_leaf_node;\n extern cmdline_parse_inst_t cmd_del_port_tm_node;\n extern cmdline_parse_inst_t cmd_set_port_tm_node_parent;\n extern cmdline_parse_inst_t cmd_suspend_port_tm_node;\n+extern cmdline_parse_inst_t cmd_resume_port_tm_node;\n extern cmdline_parse_inst_t cmd_port_tm_hierarchy_commit;\n\n #endif /* _CMDLINE_TM_H_ */\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex 38682ea..f26f41a 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -2488,6 +2488,11 @@ Suspend port traffic management hierarchy node\n\n    testpmd> suspend port tm node (port_id) (node_id)\n\n+Resume port traffic management hierarchy node\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+   testpmd> resume port tm node (port_id) (node_id)\n+\n Commit port traffic management hierarchy\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/2"
    ]
}