get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115324,
    "url": "https://patches.dpdk.org/api/patches/115324/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220818054207.1453413-1-megha.ajmera@gmail.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": "<20220818054207.1453413-1-megha.ajmera@gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220818054207.1453413-1-megha.ajmera@gmail.com",
    "date": "2022-08-18T05:42:07",
    "name": "sched:higher rates of pipe and subport are not taken care in application.",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "bc683ec846cf234b0f4b7b77d1a1749691b9e304",
    "submitter": {
        "id": 2809,
        "url": "https://patches.dpdk.org/api/people/2809/?format=api",
        "name": "Megha Ajmera",
        "email": "megha.ajmera@gmail.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220818054207.1453413-1-megha.ajmera@gmail.com/mbox/",
    "series": [
        {
            "id": 24378,
            "url": "https://patches.dpdk.org/api/series/24378/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24378",
            "date": "2022-08-18T05:42:07",
            "name": "sched:higher rates of pipe and subport are not taken care in application.",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24378/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/115324/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/115324/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 CFB60A00C2;\n\tMon, 22 Aug 2022 10:32:51 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id F2B9842B84;\n\tMon, 22 Aug 2022 10:32:37 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 637B540DDC\n for <dev@dpdk.org>; Thu, 18 Aug 2022 07:43:52 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Aug 2022 22:43:37 -0700",
            "from unknown (HELO localhost.localdomain) ([10.190.213.60])\n by fmsmga007.fm.intel.com with ESMTP; 17 Aug 2022 22:43:35 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10442\"; a=\"378964051\"",
            "E=Sophos;i=\"5.93,245,1654585200\"; d=\"scan'208\";a=\"378964051\"",
            "E=Sophos;i=\"5.93,245,1654585200\"; d=\"scan'208\";a=\"610886447\""
        ],
        "X-ExtLoop1": "1",
        "From": "Megha Ajmera <megha.ajmera@gmail.com>",
        "To": "dev@dpdk.org,\n\tjasvinder.singh@intel.com,\n\tcristian.dumitrescu@intel.com",
        "Subject": "[PATCH] sched:higher rates of pipe and subport are not taken care in\n application.",
        "Date": "Thu, 18 Aug 2022 05:42:07 +0000",
        "Message-Id": "<20220818054207.1453413-1-megha.ajmera@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Mon, 22 Aug 2022 10:32:34 +0200",
        "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"
    },
    "content": "---\n examples/qos_sched/cfg_file.c | 66 +++++++++++++++++------------------\n 1 file changed, 33 insertions(+), 33 deletions(-)",
    "diff": "diff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.c\nindex 450482f07d..fe0b42b023 100644\n--- a/examples/qos_sched/cfg_file.c\n+++ b/examples/qos_sched/cfg_file.c\n@@ -62,71 +62,71 @@ 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 = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tb_rate = (uint64_t)atol(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 = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tb_size = (uint64_t)atol(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 = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_period = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[0] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[1] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[2] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[3] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[4] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[5] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[6] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[7] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[8] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[9] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[10] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[11] = (uint64_t)atol(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] = (uint64_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_rate[12] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 12 oversubscription weight\");\n \t\tif (entry)\n-\t\t\tpipe_params[j].tc_ov_weight = (uint8_t)atoi(entry);\n+\t\t\tpipe_params[j].tc_ov_weight = (uint8_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, pipe_name, \"tc 12 wrr weights\");\n \t\tif (entry) {\n@@ -163,67 +163,67 @@ cfg_load_subport_profile(struct rte_cfgfile *cfg,\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tb rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tb_rate = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tb_rate = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tb size\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tb_size = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tb_size = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc period\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_period = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_period = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 0 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[0] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[0] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 1 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[1] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[1] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 2 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[2] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[2] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 3 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[3] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[3] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 4 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[4] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[4] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 5 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[5] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[5] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 6 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[6] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[6] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 7 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[7] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[7] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 8 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[8] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[8] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 9 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[9] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[9] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 10 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[10] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[10] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 11 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[11] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[11] = (uint64_t)atol(entry);\n \n \t\tentry = rte_cfgfile_get_entry(cfg, sec_name, \"tc 12 rate\");\n \t\tif (entry)\n-\t\t\tsubport_profile[i].tc_rate[12] = (uint64_t)atoi(entry);\n+\t\t\tsubport_profile[i].tc_rate[12] = (uint64_t)atol(entry);\n \t}\n \n \treturn 0;\n",
    "prefixes": []
}