get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 49614,
    "url": "http://patches.dpdk.org/api/patches/49614/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190110213645.29901-3-vipin.varghese@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": "<20190110213645.29901-3-vipin.varghese@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190110213645.29901-3-vipin.varghese@intel.com",
    "date": "2019-01-10T21:36:41",
    "name": "[v9,2/6] app/procinfo: add support for show tm",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "522e0625b19001714baed54a68eeebab25f1799f",
    "submitter": {
        "id": 882,
        "url": "http://patches.dpdk.org/api/people/882/?format=api",
        "name": "Varghese, Vipin",
        "email": "vipin.varghese@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/20190110213645.29901-3-vipin.varghese@intel.com/mbox/",
    "series": [
        {
            "id": 3099,
            "url": "http://patches.dpdk.org/api/series/3099/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3099",
            "date": "2019-01-10T21:36:39",
            "name": "app/proc-info: enhance debug of proc-info tool",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/3099/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/49614/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/49614/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 BE8441B912;\n\tThu, 10 Jan 2019 16:40:04 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 9236A1B897\n\tfor <dev@dpdk.org>; Thu, 10 Jan 2019 16:40:03 +0100 (CET)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t10 Jan 2019 07:40:03 -0800",
            "from unknown (HELO saesrv02-S2600CWR.intel.com) ([10.224.122.203])\n\tby fmsmga006.fm.intel.com with ESMTP; 10 Jan 2019 07:40:00 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.56,461,1539673200\"; d=\"scan'208\";a=\"309300693\"",
        "From": "Vipin Varghese <vipin.varghese@intel.com>",
        "To": "dev@dpdk.org,\n\tthomas@monjalon.net,\n\tjohn.mcnamara@intel.com",
        "Cc": "konstantin.ananyev@intel.com, stephen@networkplumber.org,\n\treshma.pattan@intel.com, jasvinder.singh@intel.com,\n\tstephen1.byrne@intel.com, amol.patel@intel.com,\n\tVipin Varghese <vipin.varghese@intel.com>",
        "Date": "Fri, 11 Jan 2019 03:06:41 +0530",
        "Message-Id": "<20190110213645.29901-3-vipin.varghese@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190110213645.29901-1-vipin.varghese@intel.com>",
        "References": "<20190107153829.34047-2-vipin.varghese@intel.com>\n\t<20190110213645.29901-1-vipin.varghese@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v9 2/6] app/procinfo: add support for show tm",
        "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": "Function show_tm is used for displaying the tm PMD under the primary\nprocess. This covers basic and per node|level details with statistics.\n\nSigned-off-by: Vipin Varghese <vipin.varghese@intel.com>\nAcked-by: Reshma  Pattan <reshma.pattan@intel.com>\nAcked-by: John McNamara <john.mcnamara@intel.com>\n---\n app/proc-info/main.c           | 290 ++++++++++++++++++++++++++++++++-\n doc/guides/tools/proc_info.rst |   6 +-\n 2 files changed, 294 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/proc-info/main.c b/app/proc-info/main.c\nindex 2108c24b0..ea15ae1a6 100644\n--- a/app/proc-info/main.c\n+++ b/app/proc-info/main.c\n@@ -32,6 +32,7 @@\n #include <rte_cycles.h>\n #include <rte_security.h>\n #include <rte_cryptodev.h>\n+#include <rte_tm.h>\n \n /* Maximum long option length for option parsing. */\n #define MAX_LONG_OPT_SZ 64\n@@ -77,6 +78,8 @@ static char bdr_str[MAX_STRING_LEN];\n \n /**< Enable show port. */\n static uint32_t enable_shw_port;\n+/**< Enable show tm. */\n+static uint32_t enable_shw_tm;\n \n /**< display usage */\n static void\n@@ -97,7 +100,8 @@ proc_info_usage(const char *prgname)\n \t\t\"  --xstats-reset: to reset port extended statistics\\n\"\n \t\t\"  --collectd-format: to print statistics to STDOUT in expected by collectd format\\n\"\n \t\t\"  --host-id STRING: host id used to identify the system process is running on\\n\"\n-\t\t\"  --show-port: to display ports information\\n\",\n+\t\t\"  --show-port: to display ports information\\n\"\n+\t\t\"  --show-tm: to display traffic manager information for ports\\n\",\n \t\tprgname);\n }\n \n@@ -205,6 +209,7 @@ proc_info_parse_args(int argc, char **argv)\n \t\t{\"xstats-ids\", 1, NULL, 1},\n \t\t{\"host-id\", 0, NULL, 0},\n \t\t{\"show-port\", 0, NULL, 0},\n+\t\t{\"show-tm\", 0, NULL, 0},\n \t\t{NULL, 0, 0, 0}\n \t};\n \n@@ -251,6 +256,9 @@ proc_info_parse_args(int argc, char **argv)\n \t\t\telse if (!strncmp(long_option[option_index].name,\n \t\t\t\t\t\"show-port\", MAX_LONG_OPT_SZ))\n \t\t\t\tenable_shw_port = 1;\n+\t\t\telse if (!strncmp(long_option[option_index].name,\n+\t\t\t\t\t\"show-tm\", MAX_LONG_OPT_SZ))\n+\t\t\t\tenable_shw_tm = 1;\n \t\t\tbreak;\n \t\tcase 1:\n \t\t\t/* Print xstat single value given by name*/\n@@ -694,6 +702,284 @@ show_port(void)\n \tSTATS_BDR_STR(50, \"\");\n }\n \n+static void\n+display_nodecap_info(int is_leaf, struct rte_tm_node_capabilities *cap)\n+{\n+\tif (cap == NULL)\n+\t\treturn;\n+\n+\tif (!is_leaf) {\n+\t\tprintf(\"\\t  -- nonleaf sched max:\\n\"\n+\t\t\t\"\\t\\t  + children (%u)\\n\"\n+\t\t\t\"\\t\\t  + sp priorities (%u)\\n\"\n+\t\t\t\"\\t\\t  + wfq children per group (%u)\\n\"\n+\t\t\t\"\\t\\t  + wfq groups (%u)\\n\"\n+\t\t\t\"\\t\\t  + wfq weight (%u)\\n\",\n+\t\t\tcap->nonleaf.sched_n_children_max,\n+\t\t\tcap->nonleaf.sched_sp_n_priorities_max,\n+\t\t\tcap->nonleaf.sched_wfq_n_children_per_group_max,\n+\t\t\tcap->nonleaf.sched_wfq_n_groups_max,\n+\t\t\tcap->nonleaf.sched_wfq_weight_max);\n+\t} else {\n+\t\tprintf(\"\\t  -- leaf cman support:\\n\"\n+\t\t\t\"\\t\\t  + wred pkt mode (%d)\\n\"\n+\t\t\t\"\\t\\t  + wred byte mode (%d)\\n\"\n+\t\t\t\"\\t\\t  + head drop (%d)\\n\"\n+\t\t\t\"\\t\\t  + wred context private (%d)\\n\"\n+\t\t\t\"\\t\\t  + wred context shared (%u)\\n\",\n+\t\t\tcap->leaf.cman_wred_packet_mode_supported,\n+\t\t\tcap->leaf.cman_wred_byte_mode_supported,\n+\t\t\tcap->leaf.cman_head_drop_supported,\n+\t\t\tcap->leaf.cman_wred_context_private_supported,\n+\t\t\tcap->leaf.cman_wred_context_shared_n_max);\n+\t}\n+}\n+\n+static void\n+display_levelcap_info(int is_leaf, struct rte_tm_level_capabilities *cap)\n+{\n+\tif (cap == NULL)\n+\t\treturn;\n+\n+\tif (!is_leaf) {\n+\t\tprintf(\"\\t  -- shaper private: (%d) dual rate (%d)\\n\",\n+\t\t\tcap->nonleaf.shaper_private_supported,\n+\t\t\tcap->nonleaf.shaper_private_dual_rate_supported);\n+\t\tprintf(\"\\t  -- shaper share: (%u)\\n\",\n+\t\t\tcap->nonleaf.shaper_shared_n_max);\n+\t\tprintf(\"\\t  -- non leaf sched MAX:\\n\"\n+\t\t\t\"\\t\\t  + children (%u)\\n\"\n+\t\t\t\"\\t\\t  + sp (%u)\\n\"\n+\t\t\t\"\\t\\t  + wfq children per group (%u)\\n\"\n+\t\t\t\"\\t\\t  + wfq groups (%u)\\n\"\n+\t\t\t\"\\t\\t  + wfq weight (%u)\\n\",\n+\t\t\tcap->nonleaf.sched_n_children_max,\n+\t\t\tcap->nonleaf.sched_sp_n_priorities_max,\n+\t\t\tcap->nonleaf.sched_wfq_n_children_per_group_max,\n+\t\t\tcap->nonleaf.sched_wfq_n_groups_max,\n+\t\t\tcap->nonleaf.sched_wfq_weight_max);\n+\t} else {\n+\t\tprintf(\"\\t  -- shaper private: (%d) dual rate (%d)\\n\",\n+\t\t\tcap->leaf.shaper_private_supported,\n+\t\t\tcap->leaf.shaper_private_dual_rate_supported);\n+\t\tprintf(\"\\t  -- shaper share: (%u)\\n\",\n+\t\t\tcap->leaf.shaper_shared_n_max);\n+\t\tprintf(\"  -- leaf cman support:\\n\"\n+\t\t\t\"\\t\\t  + wred pkt mode (%d)\\n\"\n+\t\t\t\"\\t\\t  + wred byte mode (%d)\\n\"\n+\t\t\t\"\\t\\t  + head drop (%d)\\n\"\n+\t\t\t\"\\t\\t  + wred context private (%d)\\n\"\n+\t\t\t\"\\t\\t  + wred context shared (%u)\\n\",\n+\t\t\tcap->leaf.cman_wred_packet_mode_supported,\n+\t\t\tcap->leaf.cman_wred_byte_mode_supported,\n+\t\t\tcap->leaf.cman_head_drop_supported,\n+\t\t\tcap->leaf.cman_wred_context_private_supported,\n+\t\t\tcap->leaf.cman_wred_context_shared_n_max);\n+\t}\n+}\n+\n+static void\n+show_tm(void)\n+{\n+\tint ret = 0, check_for_leaf = 0, is_leaf = 0;\n+\tunsigned int j, k;\n+\tuint16_t i = 0;\n+\n+\tsnprintf(bdr_str, MAX_STRING_LEN, \" show - TM PMD %\"PRIu64,\n+\t\t\trte_get_tsc_hz());\n+\tSTATS_BDR_STR(10, bdr_str);\n+\n+\tRTE_ETH_FOREACH_DEV(i) {\n+\t\tstruct rte_eth_dev_info dev_info;\n+\t\tstruct rte_tm_capabilities cap;\n+\t\tstruct rte_tm_error error;\n+\t\tstruct rte_tm_node_capabilities capnode;\n+\t\tstruct rte_tm_level_capabilities caplevel;\n+\t\tuint32_t n_leaf_nodes = 0;\n+\n+\t\tmemset(&cap, 0, sizeof(cap));\n+\t\tmemset(&error, 0, sizeof(error));\n+\n+\t\trte_eth_dev_info_get(i, &dev_info);\n+\t\tprintf(\"  - Generic for port (%u)\\n\"\n+\t\t\t\"\\t  -- driver name %s\\n\"\n+\t\t\t\"\\t  -- max vf (%u)\\n\"\n+\t\t\t\"\\t  -- max tx queues (%u)\\n\"\n+\t\t\t\"\\t  -- number of tx queues (%u)\\n\",\n+\t\t\ti,\n+\t\t\tdev_info.driver_name,\n+\t\t\tdev_info.max_vfs,\n+\t\t\tdev_info.max_tx_queues,\n+\t\t\tdev_info.nb_tx_queues);\n+\n+\t\tret = rte_tm_capabilities_get(i, &cap, &error);\n+\t\tif (ret)\n+\t\t\tcontinue;\n+\n+\t\tprintf(\"  - MAX: nodes (%u) levels (%u) children (%u)\\n\",\n+\t\t\tcap.n_nodes_max,\n+\t\t\tcap.n_levels_max,\n+\t\t\tcap.sched_n_children_max);\n+\n+\t\tprintf(\"  - identical nodes: non leaf (%d) leaf (%d)\\n\",\n+\t\t\tcap.non_leaf_nodes_identical,\n+\t\t\tcap.leaf_nodes_identical);\n+\n+\t\tprintf(\"  - Shaper MAX:\\n\"\n+\t\t\t\"\\t  -- total (%u)\\n\"\n+\t\t\t\"\\t  -- private (%u) private dual (%d)\\n\"\n+\t\t\t\"\\t  -- shared (%u) shared dual (%u)\\n\",\n+\t\t\tcap.shaper_n_max,\n+\t\t\tcap.shaper_private_n_max,\n+\t\t\tcap.shaper_private_dual_rate_n_max,\n+\t\t\tcap.shaper_shared_n_max,\n+\t\t\tcap.shaper_shared_dual_rate_n_max);\n+\n+\t\tprintf(\"  - mark support:\\n\");\n+\t\tprintf(\"\\t  -- vlan dei: GREEN (%d) YELLOW (%d) RED (%d)\\n\",\n+\t\t\tcap.mark_vlan_dei_supported[RTE_TM_GREEN],\n+\t\t\tcap.mark_vlan_dei_supported[RTE_TM_YELLOW],\n+\t\t\tcap.mark_vlan_dei_supported[RTE_TM_RED]);\n+\t\tprintf(\"\\t  -- ip ecn tcp: GREEN (%d) YELLOW (%d) RED (%d)\\n\",\n+\t\t\tcap.mark_ip_ecn_tcp_supported[RTE_TM_GREEN],\n+\t\t\tcap.mark_ip_ecn_tcp_supported[RTE_TM_YELLOW],\n+\t\t\tcap.mark_ip_ecn_tcp_supported[RTE_TM_RED]);\n+\t\tprintf(\"\\t  -- ip ecn sctp: GREEN (%d) YELLOW (%d) RED (%d)\\n\",\n+\t\t\tcap.mark_ip_ecn_sctp_supported[RTE_TM_GREEN],\n+\t\t\tcap.mark_ip_ecn_sctp_supported[RTE_TM_YELLOW],\n+\t\t\tcap.mark_ip_ecn_sctp_supported[RTE_TM_RED]);\n+\t\tprintf(\"\\t  -- ip dscp: GREEN (%d) YELLOW (%d) RED (%d)\\n\",\n+\t\t\tcap.mark_ip_dscp_supported[RTE_TM_GREEN],\n+\t\t\tcap.mark_ip_dscp_supported[RTE_TM_YELLOW],\n+\t\t\tcap.mark_ip_dscp_supported[RTE_TM_RED]);\n+\n+\t\tprintf(\"  - mask stats (0x%\"PRIx64\")\"\n+\t\t\t\" dynamic update (0x%\"PRIx64\")\\n\",\n+\t\t\tcap.stats_mask,\n+\t\t\tcap.dynamic_update_mask);\n+\n+\t\tprintf(\"  - sched MAX:\\n\"\n+\t\t\t\"\\t  -- total (%u)\\n\"\n+\t\t\t\"\\t  -- sp levels (%u)\\n\"\n+\t\t\t\"\\t  -- wfq children per group (%u)\\n\"\n+\t\t\t\"\\t  -- wfq groups (%u)\\n\"\n+\t\t\t\"\\t  -- wfq weight (%u)\\n\",\n+\t\t\tcap.sched_sp_n_priorities_max,\n+\t\t\tcap.sched_sp_n_priorities_max,\n+\t\t\tcap.sched_wfq_n_children_per_group_max,\n+\t\t\tcap.sched_wfq_n_groups_max,\n+\t\t\tcap.sched_wfq_weight_max);\n+\n+\t\tprintf(\"  - CMAN support:\\n\"\n+\t\t\t\"\\t  -- WRED mode: pkt (%d) byte (%d)\\n\"\n+\t\t\t\"\\t  -- head drop (%d)\\n\",\n+\t\t\tcap.cman_wred_packet_mode_supported,\n+\t\t\tcap.cman_wred_byte_mode_supported,\n+\t\t\tcap.cman_head_drop_supported);\n+\t\tprintf(\"\\t  -- MAX WRED CONTEXT:\"\n+\t\t\t\" total (%u) private (%u) shared (%u)\\n\",\n+\t\t\tcap.cman_wred_context_n_max,\n+\t\t\tcap.cman_wred_context_private_n_max,\n+\t\t\tcap.cman_wred_context_shared_n_max);\n+\n+\t\tfor (j = 0; j < cap.n_nodes_max; j++) {\n+\t\t\tmemset(&capnode, 0, sizeof(capnode));\n+\t\t\tret = rte_tm_node_capabilities_get(i, j,\n+\t\t\t\t\t&capnode, &error);\n+\t\t\tif (ret)\n+\t\t\t\tcontinue;\n+\n+\t\t\tcheck_for_leaf = 1;\n+\n+\t\t\tprintf(\"  NODE %u\\n\", j);\n+\t\t\tprintf(\"\\t  - shaper private: (%d) dual rate (%d)\\n\",\n+\t\t\t\tcapnode.shaper_private_supported,\n+\t\t\t\tcapnode.shaper_private_dual_rate_supported);\n+\t\t\tprintf(\"\\t  - shaper shared max: (%u)\\n\",\n+\t\t\t\tcapnode.shaper_shared_n_max);\n+\t\t\tprintf(\"\\t  - stats mask %\"PRIx64\"\\n\",\n+\t\t\t\tcapnode.stats_mask);\n+\n+\t\t\tret = rte_tm_node_type_get(i, j, &is_leaf, &error);\n+\t\t\tif (ret)\n+\t\t\t\tcontinue;\n+\n+\t\t\tdisplay_nodecap_info(is_leaf, &capnode);\n+\t\t}\n+\n+\t\tfor (j = 0; j < cap.n_levels_max; j++) {\n+\t\t\tmemset(&caplevel, 0, sizeof(caplevel));\n+\t\t\tret = rte_tm_level_capabilities_get(i, j,\n+\t\t\t\t\t&caplevel, &error);\n+\t\t\tif (ret)\n+\t\t\t\tcontinue;\n+\n+\t\t\tprintf(\"  - Level %u\\n\", j);\n+\t\t\tprintf(\"\\t  -- node MAX: %u non leaf %u leaf %u\\n\",\n+\t\t\t\tcaplevel.n_nodes_max,\n+\t\t\t\tcaplevel.n_nodes_nonleaf_max,\n+\t\t\t\tcaplevel.n_nodes_leaf_max);\n+\t\t\tprintf(\"\\t  -- indetical: non leaf %u leaf %u\\n\",\n+\t\t\t\tcaplevel.non_leaf_nodes_identical,\n+\t\t\t\tcaplevel.leaf_nodes_identical);\n+\n+\t\t\tfor (k = 0; k < caplevel.n_nodes_max; k++) {\n+\t\t\t\tret = rte_tm_node_type_get(i, k,\n+\t\t\t\t\t&is_leaf, &error);\n+\t\t\t\tif (ret)\n+\t\t\t\t\tcontinue;\n+\n+\t\t\t\tdisplay_levelcap_info(is_leaf, &caplevel);\n+\t\t\t}\n+\t\t}\n+\n+\t\tif (check_for_leaf) {\n+\t\t\tret = rte_tm_get_number_of_leaf_nodes(i,\n+\t\t\t\t\t&n_leaf_nodes, &error);\n+\t\t\tif (ret == 0)\n+\t\t\t\tprintf(\"  - leaf nodes (%u)\\n\", n_leaf_nodes);\n+\t\t}\n+\n+\t\tfor (j = 0; j < n_leaf_nodes; j++) {\n+\t\t\tstruct rte_tm_node_stats stats;\n+\t\t\tmemset(&stats, 0, sizeof(stats));\n+\n+\t\t\tret = rte_tm_node_stats_read(i, j,\n+\t\t\t\t\t&stats, &cap.stats_mask, 0, &error);\n+\t\t\tif (ret)\n+\t\t\t\tcontinue;\n+\n+\t\t\tprintf(\"  - STATS for node (%u)\\n\", j);\n+\t\t\tprintf(\"  -- pkts (%\"PRIu64\") bytes (%\"PRIu64\")\\n\",\n+\t\t\t\tstats.n_pkts, stats.n_bytes);\n+\n+\t\t\tret = rte_tm_node_type_get(i, j, &is_leaf, &error);\n+\t\t\tif (ret || (!is_leaf))\n+\t\t\t\tcontinue;\n+\n+\t\t\tprintf(\"  -- leaf queued:\"\n+\t\t\t\t\" pkts (%\"PRIu64\") bytes (%\"PRIu64\")\\n\",\n+\t\t\t\tstats.leaf.n_pkts_queued,\n+\t\t\t\tstats.leaf.n_bytes_queued);\n+\t\t\tprintf(\"  - dropped:\\n\"\n+\t\t\t\t\"\\t  -- GREEN:\"\n+\t\t\t\t\" pkts (%\"PRIu64\") bytes (%\"PRIu64\")\\n\"\n+\t\t\t\t\"\\t  -- YELLOW:\"\n+\t\t\t\t\" pkts (%\"PRIu64\") bytes (%\"PRIu64\")\\n\"\n+\t\t\t\t\"\\t  -- RED:\"\n+\t\t\t\t\" pkts (%\"PRIu64\") bytes (%\"PRIu64\")\\n\",\n+\t\t\t\tstats.leaf.n_pkts_dropped[RTE_TM_GREEN],\n+\t\t\t\tstats.leaf.n_bytes_dropped[RTE_TM_GREEN],\n+\t\t\t\tstats.leaf.n_pkts_dropped[RTE_TM_YELLOW],\n+\t\t\t\tstats.leaf.n_bytes_dropped[RTE_TM_YELLOW],\n+\t\t\t\tstats.leaf.n_pkts_dropped[RTE_TM_RED],\n+\t\t\t\tstats.leaf.n_bytes_dropped[RTE_TM_RED]);\n+\t\t}\n+\t}\n+\n+\tSTATS_BDR_STR(50, \"\");\n+}\n+\n int\n main(int argc, char **argv)\n {\n@@ -777,6 +1063,8 @@ main(int argc, char **argv)\n \t/* show information for PMD */\n \tif (enable_shw_port)\n \t\tshow_port();\n+\tif (enable_shw_tm)\n+\t\tshow_tm();\n \n \tret = rte_eal_cleanup();\n \tif (ret)\ndiff --git a/doc/guides/tools/proc_info.rst b/doc/guides/tools/proc_info.rst\nindex 6baa1db9a..5f9afdb79 100644\n--- a/doc/guides/tools/proc_info.rst\n+++ b/doc/guides/tools/proc_info.rst\n@@ -18,7 +18,7 @@ The application has a number of command line options:\n .. code-block:: console\n \n    ./$(RTE_TARGET)/app/dpdk-procinfo -- -m | [-p PORTMASK] [--stats | --xstats |\n-   --stats-reset | --xstats-reset] [ --show-port ]\n+   --stats-reset | --xstats-reset] [ --show-port | --show-tm ]\n \n Parameters\n ~~~~~~~~~~\n@@ -46,6 +46,10 @@ If no port mask is specified xstats are reset for all DPDK ports.\n The show-port parameter displays port level various configuration informationi\n associated to RX port queue pair.\n \n+**--show-tm**\n+The show-tm parameter displays per port traffic manager settings, current\n+configurations and statistics.\n+\n Limitations\n -----------\n \n",
    "prefixes": [
        "v9",
        "2/6"
    ]
}