get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 61146,
    "url": "http://patches.dpdk.org/api/patches/61146/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191014172455.139224-1-jasvinder.singh@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": "<20191014172455.139224-1-jasvinder.singh@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191014172455.139224-1-jasvinder.singh@intel.com",
    "date": "2019-10-14T17:24:54",
    "name": "[1/2] sched: add support for 64 bit values",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "97d059be47ccd4fd4a3f1088658ff8739b0c1968",
    "submitter": {
        "id": 285,
        "url": "http://patches.dpdk.org/api/people/285/?format=api",
        "name": "Jasvinder Singh",
        "email": "jasvinder.singh@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191014172455.139224-1-jasvinder.singh@intel.com/mbox/",
    "series": [
        {
            "id": 6838,
            "url": "http://patches.dpdk.org/api/series/6838/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6838",
            "date": "2019-10-14T17:24:54",
            "name": "[1/2] sched: add support for 64 bit values",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/6838/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/61146/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/61146/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 8FD831D155;\n\tMon, 14 Oct 2019 18:25:06 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 7E0971D155\n\tfor <dev@dpdk.org>; Mon, 14 Oct 2019 18:25:04 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Oct 2019 09:25:03 -0700",
            "from silpixa00381635.ir.intel.com (HELO\n\tsilpixa00381635.ger.corp.intel.com) ([10.237.223.229])\n\tby orsmga002.jf.intel.com with ESMTP; 14 Oct 2019 09:25:02 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.67,296,1566889200\"; d=\"scan'208\";a=\"207255474\"",
        "From": "Jasvinder Singh <jasvinder.singh@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "cristian.dumitrescu@intel.com,\n\tLukasz Krakowiak <lukaszx.krakowiak@intel.com>",
        "Date": "Mon, 14 Oct 2019 18:24:54 +0100",
        "Message-Id": "<20191014172455.139224-1-jasvinder.singh@intel.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 1/2] sched: add support for 64 bit values",
        "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": "To support high bandwidth NICs, all rates (port, subport level\ntoken bucket and traffic class rates, pipe level token bucket\nand traffic class rates) and stats counters defined in public\ndata structures (rte_sched.h) are modified to support 64-bit\nvalues.\n\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\nSigned-off-by: Lukasz Krakowiak <lukaszx.krakowiak@intel.com>\n---\n examples/ip_pipeline/cli.c    | 18 +++++-----\n examples/ip_pipeline/tmgr.h   |  2 +-\n examples/qos_sched/cfg_file.c | 64 +++++++++++++++++------------------\n examples/qos_sched/stats.c    |  6 ++--\n lib/librte_sched/rte_sched.h  | 38 ++++++++++-----------\n 5 files changed, 64 insertions(+), 64 deletions(-)",
    "diff": "diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c\nindex c72030682..3e23f4e7b 100644\n--- a/examples/ip_pipeline/cli.c\n+++ b/examples/ip_pipeline/cli.c\n@@ -414,23 +414,23 @@ cmd_tmgr_subport_profile(char **tokens,\n \t\treturn;\n \t}\n \n-\tif (parser_read_uint32(&p.tb_rate, tokens[3]) != 0) {\n+\tif (parser_read_uint64(&p.tb_rate, tokens[3]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tb_rate\");\n \t\treturn;\n \t}\n \n-\tif (parser_read_uint32(&p.tb_size, tokens[4]) != 0) {\n+\tif (parser_read_uint64(&p.tb_size, tokens[4]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tb_size\");\n \t\treturn;\n \t}\n \n \tfor (i = 0; i < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; i++)\n-\t\tif (parser_read_uint32(&p.tc_rate[i], tokens[5 + i]) != 0) {\n+\t\tif (parser_read_uint64(&p.tc_rate[i], tokens[5 + i]) != 0) {\n \t\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tc_rate\");\n \t\t\treturn;\n \t\t}\n \n-\tif (parser_read_uint32(&p.tc_period, tokens[18]) != 0) {\n+\tif (parser_read_uint64(&p.tc_period, tokens[18]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tc_period\");\n \t\treturn;\n \t}\n@@ -487,23 +487,23 @@ cmd_tmgr_pipe_profile(char **tokens,\n \t\treturn;\n \t}\n \n-\tif (parser_read_uint32(&p.tb_rate, tokens[3]) != 0) {\n+\tif (parser_read_uint64(&p.tb_rate, tokens[3]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tb_rate\");\n \t\treturn;\n \t}\n \n-\tif (parser_read_uint32(&p.tb_size, tokens[4]) != 0) {\n+\tif (parser_read_uint64(&p.tb_size, tokens[4]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tb_size\");\n \t\treturn;\n \t}\n \n \tfor (i = 0; i < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; i++)\n-\t\tif (parser_read_uint32(&p.tc_rate[i], tokens[5 + i]) != 0) {\n+\t\tif (parser_read_uint64(&p.tc_rate[i], tokens[5 + i]) != 0) {\n \t\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tc_rate\");\n \t\t\treturn;\n \t\t}\n \n-\tif (parser_read_uint32(&p.tc_period, tokens[18]) != 0) {\n+\tif (parser_read_uint64(&p.tc_period, tokens[18]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"tc_period\");\n \t\treturn;\n \t}\n@@ -556,7 +556,7 @@ cmd_tmgr(char **tokens,\n \t\treturn;\n \t}\n \n-\tif (parser_read_uint32(&p.rate, tokens[3]) != 0) {\n+\tif (parser_read_uint64(&p.rate, tokens[3]) != 0) {\n \t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"rate\");\n \t\treturn;\n \t}\ndiff --git a/examples/ip_pipeline/tmgr.h b/examples/ip_pipeline/tmgr.h\nindex 1fcf66ee1..ee50cf7cc 100644\n--- a/examples/ip_pipeline/tmgr.h\n+++ b/examples/ip_pipeline/tmgr.h\n@@ -40,7 +40,7 @@ struct tmgr_port *\n tmgr_port_find(const char *name);\n \n struct tmgr_port_params {\n-\tuint32_t rate;\n+\tuint64_t rate;\n \tuint32_t n_subports_per_port;\n \tuint32_t frame_overhead;\n \tuint32_t mtu;\ndiff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.c\nindex c6d3f5ab6..5714c3f36 100644\n--- a/examples/qos_sched/cfg_file.c\n+++ b/examples/qos_sched/cfg_file.c\n@@ -59,67 +59,67 @@ cfg_load_pipe(struct rte_cfgfile *cfg, struct rte_sched_pipe_params *pipe_params\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tb rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tb_rate = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tb_rate = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tb size\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tb_size = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tb_size = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc period\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_period = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_period = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 0 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[0] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[0] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 1 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[1] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[1] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 2 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[2] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[2] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 3 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[3] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[3] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 4 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[4] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[4] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 5 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[5] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[5] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 6 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[6] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[6] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 7 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[7] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[7] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 8 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[8] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[8] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 9 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[9] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[9] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 10 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[10] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[10] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 11 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[11] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[11] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 12 rate\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_rate[12] = (uint32_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[12] = (uint64_t)atoi(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 12 oversubscription weight\");\n \t\tif (entry)\n@@ -266,67 +266,67 @@ cfg_load_subport(struct rte_cfgfile *cfg, struct rte_sched_subport_params *subpo\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tb rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tb_rate = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tb_rate = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tb size\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tb_size = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tb_size = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc period\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_period = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_period = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 0 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[0] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[0] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 1 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[1] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[1] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 2 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[2] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[2] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 3 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[3] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[3] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 4 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[4] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[4] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 5 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[5] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[5] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 6 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[6] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[6] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 7 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[7] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[7] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 8 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[8] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[8] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 9 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[9] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[9] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 10 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[10] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[10] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 11 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[11] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[11] = (uint64_t)atoi(entry);\n \n \t\t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 12 rate\");\n \t\t\tif (entry)\n-\t\t\t\tsubport_params[i].tc_rate[12] = (uint32_t)atoi(entry);\n+\t\t\t\tsubport_params[i].tc_rate[12] = (uint64_t)atoi(entry);\n \n \t\t\tint n_entries = rte_cfgfile_section_num_entries(cfg, sec_name);\n \t\t\tstruct rte_cfgfile_entry entries[n_entries];\ndiff --git a/examples/qos_sched/stats.c b/examples/qos_sched/stats.c\nindex ce34b6c7c..161f086f1 100644\n--- a/examples/qos_sched/stats.c\n+++ b/examples/qos_sched/stats.c\n@@ -307,7 +307,7 @@ subport_stat(uint16_t port_id, uint32_t subport_id)\n \tprintf(\"+----+-------------+-------------+-------------+-------------+-------------+\\n\");\n \n \tfor (i = 0; i < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; i++) {\n-\t\tprintf(\"|  %d | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" |\\n\",\n+\t\tprintf(\"|  %d | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu32 \" |\\n\",\n \t\t\ti, stats.n_pkts_tc[i], stats.n_pkts_tc_dropped[i],\n \t\tstats.n_bytes_tc[i], stats.n_bytes_tc_dropped[i], tc_ov[i]);\n \t\tprintf(\"+----+-------------+-------------+-------------+-------------+-------------+\\n\");\n@@ -351,7 +351,7 @@ pipe_stat(uint16_t port_id, uint32_t subport_id, uint32_t pipe_id)\n \tfor (i = 0; i < RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE; i++) {\n \t\tif (i < RTE_SCHED_TRAFFIC_CLASS_BE) {\n \t\t\trte_sched_queue_read_stats(port, queue_id + i, &stats, &qlen);\n-\t\t\tprintf(\"|  %d |   %d   | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" | %11i |\\n\",\n+\t\t\tprintf(\"|  %d |   %d   | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu64 \" | %11i |\\n\",\n \t\t\t\ti, 0, stats.n_pkts, stats.n_pkts_dropped, stats.n_bytes,\n \t\t\t\tstats.n_bytes_dropped, qlen);\n \t\t\tprintf(\"+----+-------+-------------+-------------+-------------+-------------+-------------+\\n\");\n@@ -359,7 +359,7 @@ pipe_stat(uint16_t port_id, uint32_t subport_id, uint32_t pipe_id)\n \t\t\tfor (j = 0; j < RTE_SCHED_BE_QUEUES_PER_PIPE; j++) {\n \t\t\t\trte_sched_queue_read_stats(port, queue_id + i + j,\n \t\t\t\t\t&stats, &qlen);\n-\t\t\t\tprintf(\"|  %d |   %d   | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" | %11\" PRIu32 \" | %11i |\\n\",\n+\t\t\t\tprintf(\"|  %d |   %d   | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu64 \" | %11\" PRIu64 \" | %11i |\\n\",\n \t\t\t\t\ti, j, stats.n_pkts, stats.n_pkts_dropped, stats.n_bytes,\n \t\t\t\t\tstats.n_bytes_dropped, qlen);\n \t\t\t\tprintf(\"+----+-------+-------------+-------------+-------------+-------------+-------------+\\n\");\ndiff --git a/lib/librte_sched/rte_sched.h b/lib/librte_sched/rte_sched.h\nindex c82c23c14..8a5a93c98 100644\n--- a/lib/librte_sched/rte_sched.h\n+++ b/lib/librte_sched/rte_sched.h\n@@ -121,16 +121,16 @@ extern \"C\" {\n  */\n struct rte_sched_pipe_params {\n \t/** Token bucket rate (measured in bytes per second) */\n-\tuint32_t tb_rate;\n+\tuint64_t tb_rate;\n \n \t/** Token bucket size (measured in credits) */\n-\tuint32_t tb_size;\n+\tuint64_t tb_size;\n \n \t/** Traffic class rates (measured in bytes per second) */\n-\tuint32_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n \n \t/** Enforcement period (measured in milliseconds) */\n-\tuint32_t tc_period;\n+\tuint64_t tc_period;\n \n \t/** Best-effort traffic class oversubscription weight */\n \tuint8_t tc_ov_weight;\n@@ -150,16 +150,16 @@ struct rte_sched_pipe_params {\n  */\n struct rte_sched_subport_params {\n \t/** Token bucket rate (measured in bytes per second) */\n-\tuint32_t tb_rate;\n+\tuint64_t tb_rate;\n \n \t/** Token bucket size (measured in credits) */\n-\tuint32_t tb_size;\n+\tuint64_t tb_size;\n \n \t/** Traffic class rates (measured in bytes per second) */\n-\tuint32_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t tc_rate[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n \n \t/** Enforcement period for rates (measured in milliseconds) */\n-\tuint32_t tc_period;\n+\tuint64_t tc_period;\n \n \t/** Number of subport pipes.\n \t * The subport can enable/allocate fewer pipes than the maximum\n@@ -195,41 +195,41 @@ struct rte_sched_subport_params {\n /** Subport statistics */\n struct rte_sched_subport_stats {\n \t/** Number of packets successfully written */\n-\tuint32_t n_pkts_tc[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t n_pkts_tc[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n \n \t/** Number of packets dropped */\n-\tuint32_t n_pkts_tc_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t n_pkts_tc_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n \n \t/** Number of bytes successfully written for each traffic class */\n-\tuint32_t n_bytes_tc[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t n_bytes_tc[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n \n \t/** Number of bytes dropped for each traffic class */\n-\tuint32_t n_bytes_tc_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t n_bytes_tc_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n \n #ifdef RTE_SCHED_RED\n \t/** Number of packets dropped by red */\n-\tuint32_t n_pkts_red_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n+\tuint64_t n_pkts_red_dropped[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE];\n #endif\n };\n \n /** Queue statistics */\n struct rte_sched_queue_stats {\n \t/** Packets successfully written */\n-\tuint32_t n_pkts;\n+\tuint64_t n_pkts;\n \n \t/** Packets dropped */\n-\tuint32_t n_pkts_dropped;\n+\tuint64_t n_pkts_dropped;\n \n #ifdef RTE_SCHED_RED\n \t/** Packets dropped by RED */\n-\tuint32_t n_pkts_red_dropped;\n+\tuint64_t n_pkts_red_dropped;\n #endif\n \n \t/** Bytes successfully written */\n-\tuint32_t n_bytes;\n+\tuint64_t n_bytes;\n \n \t/** Bytes dropped */\n-\tuint32_t n_bytes_dropped;\n+\tuint64_t n_bytes_dropped;\n };\n \n /** Port configuration parameters. */\n@@ -241,7 +241,7 @@ struct rte_sched_port_params {\n \tint socket;\n \n \t/** Output port rate (measured in bytes per second) */\n-\tuint32_t rate;\n+\tuint64_t rate;\n \n \t/** Maximum Ethernet frame size (measured in bytes).\n \t * Should not include the framing overhead.\n",
    "prefixes": [
        "1/2"
    ]
}