get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138674,
    "url": "http://patches.dpdk.org/api/patches/138674/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240321184721.69040-3-sivaprasad.tummala@amd.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": "<20240321184721.69040-3-sivaprasad.tummala@amd.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240321184721.69040-3-sivaprasad.tummala@amd.com",
    "date": "2024-03-21T18:47:08",
    "name": "[v6,02/14] examples/l3fwd-power: fix queue ID restriction",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f8ebcd99d44f53b7808d2dfb945aa60001a4da95",
    "submitter": {
        "id": 2510,
        "url": "http://patches.dpdk.org/api/people/2510/?format=api",
        "name": "Sivaprasad Tummala",
        "email": "Sivaprasad.Tummala@amd.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/20240321184721.69040-3-sivaprasad.tummala@amd.com/mbox/",
    "series": [
        {
            "id": 31590,
            "url": "http://patches.dpdk.org/api/series/31590/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31590",
            "date": "2024-03-21T18:47:07",
            "name": "fix lcore ID restriction",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/31590/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/138674/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/138674/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 086B243D0F;\n\tThu, 21 Mar 2024 19:48:17 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E21F142E3D;\n\tThu, 21 Mar 2024 19:48:16 +0100 (CET)",
            "from NAM02-DM3-obe.outbound.protection.outlook.com\n (mail-dm3nam02on2077.outbound.protection.outlook.com [40.107.95.77])\n by mails.dpdk.org (Postfix) with ESMTP id 3933D42E39;\n Thu, 21 Mar 2024 19:48:15 +0100 (CET)",
            "from BL1PR13CA0351.namprd13.prod.outlook.com (2603:10b6:208:2c6::26)\n by DM3PR12MB9435.namprd12.prod.outlook.com (2603:10b6:0:40::6) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.7386.31; Thu, 21 Mar 2024 18:48:10 +0000",
            "from BL6PEPF0001AB71.namprd02.prod.outlook.com\n (2603:10b6:208:2c6:cafe::e0) by BL1PR13CA0351.outlook.office365.com\n (2603:10b6:208:2c6::26) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.12 via Frontend\n Transport; Thu, 21 Mar 2024 18:48:10 +0000",
            "from SATLEXMB04.amd.com (165.204.84.17) by\n BL6PEPF0001AB71.mail.protection.outlook.com (10.167.242.164) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 18:48:10 +0000",
            "from ubuntu2004.linuxvmimages.local (10.180.168.240) by\n SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.35; Thu, 21 Mar 2024 13:47:55 -0500"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=PpuLl29IHoMeuIE1WL1+3t6Cflj9LBoZFm0USMnKO9GYiU1IWP+hRVFb1XLWnTKB17x0dZgZoQeOxwdTD5ZG2dg9J9lCCpd4x12XEK+H8B0Xzg4B+ohrm5QENo/TYfFz8VJu6g+OtwdkRVxG6nD3FewuZ8cEBUcVD4gsWxFnk0ApnNhr9aZcjedqjhK1BNIfZQrg5be4jYROtZB8uY1zKsin45jKwVAGUhCroGKpJqAveeOPaW5EkXiHGYDjtQ3o02+lGf3Jr80aNIIXFNneu0+uxPwvGypWwioBEaWmqxOsiW3Dxi2TMO3CouF+aP6deDkI8SkUuridLOZL/yEuLQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=MpvFq3mJzbEFT5jcC2FFZdD+kg0AmbZQg2mWmIpHbG4=;\n b=Xq72HMOzcbsIPRjFhH5Jx6BbypRjUaRfqXZy5UZSIThEsiSO/3w0Vcp3+ny7lOPihJ3dmZAHHX99oOaB1Y3H66HMj+xgZEkj8fT3sfy0jpoTrytvcN5pmqe380pa380ZF28tMzLyMHjoK6ZyS2VXQKuAu9C0CLQewNA1IIKCkUOHylGzezeE9RyEVaD3YiIw3V2jKr2jnw7KXUf07xSsT55BEwIQ4N6vJRrClstnZ9MkxyWoNtLK8wSlvI+S/l+zmOR1HCFmZ4ajwxxGx6NWVereURi2PQuKAVjZHfEnti8fzq0k5ru5fNJKGuhUlLYDEXrRu5/QUSVGtxoZ2mX8pA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass\n (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;\n dkim=none (message not signed); arc=none (0)",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=MpvFq3mJzbEFT5jcC2FFZdD+kg0AmbZQg2mWmIpHbG4=;\n b=u6dB+GFhyD7Hwymbvg0AxcEGCF4LwLeS+ExSYKKB3xNTiTjcUig1ZYnsEAZhAV8ymEEAwFyy43ElfKzMoLrJK9pwfaout0M/Fq8l/bWox14x1BAOrDbpGM9Wmcp8K9vrqKwT7CYuKyhjJa0njgLu+NgDzJgFFlpFT9qicGROGzA=",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 165.204.84.17)\n smtp.mailfrom=amd.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=amd.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of amd.com designates\n 165.204.84.17 as permitted sender) receiver=protection.outlook.com;\n client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C",
        "From": "Sivaprasad Tummala <sivaprasad.tummala@amd.com>",
        "To": "<david.hunt@intel.com>, <anatoly.burakov@intel.com>, <jerinj@marvell.com>,\n <radu.nicolau@intel.com>, <gakhil@marvell.com>,\n <cristian.dumitrescu@intel.com>, <ferruh.yigit@amd.com>,\n <konstantin.ananyev@huawei.com>, <stephen@networkplumber.org>,\n <mb@smartsharesystems.com>, <thomas@monjalon.net>",
        "CC": "<dev@dpdk.org>, <stable@dpdk.org>",
        "Subject": "[PATCH v6 02/14] examples/l3fwd-power: fix queue ID restriction",
        "Date": "Thu, 21 Mar 2024 19:47:08 +0100",
        "Message-ID": "<20240321184721.69040-3-sivaprasad.tummala@amd.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20240321184721.69040-1-sivaprasad.tummala@amd.com>",
        "References": "<20240318173146.24303-1-sivaprasad.tummala@amd.com>\n <20240321184721.69040-1-sivaprasad.tummala@amd.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.180.168.240]",
        "X-ClientProxiedBy": "SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com\n (10.181.40.145)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "BL6PEPF0001AB71:EE_|DM3PR12MB9435:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "e1a467ac-5c0d-479c-ace7-08dc49d774a2",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n zO+ObygXAlI6nbWkWtqWLeJegO3L/9jKoiGK49ZDlxKusiejarXsjRsLR1NaQgJX8sLi+lmzF/Z5zevjvocfqFwEdRpRIBAiQznxkV/mrgTQJkUTWUa3cFPhrvKIj2W2pJX/nPqCZy3QtUCAYUKjQ1w7NUVD0z2whIJ2FiK/chGZ0SsfGwTbxwzK/sWOw6EU7mgk29y9xPZZdjb3SE1531RWD5Drgi8/M6XsFPY+kfs1ShVckA02gUoRJEAj3kxTsmGBFFS57k7GavEquwNUQ6O9tAKkExKInQRhA9mXKoCeO6Del4Kxpl2pSNZl//+EiZvEUiv3XfCTUUH56Zw0x4TTTfpCLpO2Iwe3n3JL6rHQ+r12lFBLnZ1xFagSnO/nvzZkaF0LEvH10tq9BZ29A+waSH8Gpt9zPep7kGTbqTo9MwYG2vb4KzTe7lfM+s2/Wxso7pdbEL1RFOEGextXbvtvKob1TkdCotVGnnCg66BsHG/SM0r6z2NCCSHWZpQbRVcz0RzHXJmwxaJx7xvyl1q3Nnh66ZLwQ0/n3+x3UWf8nM6pv3dWp2fxQFs8fqm8Qiw7RKottESOQiOXDg1mWk/lzBv4B4YGpArQItKFirzCUVgi3sfIr8LwLMSMHJALblxAzNM81Opsjr+3M5WbEKwwkD7E4DL4v2lsEYEgd87YzWh5haDTJUD7eE8L7IG42y+i0R+r8+h8p2IXL4bkRaO257WkqhI9NLLbI+q3GsmV9idaljvy2nU2EuqrcPclKS3T5jPaFi+kPUpW8B645Q==",
        "X-Forefront-Antispam-Report": "CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230031)(376005)(1800799015)(36860700004)(7416005)(82310400014)(921011);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "21 Mar 2024 18:48:10.2132 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n e1a467ac-5c0d-479c-ace7-08dc49d774a2",
        "X-MS-Exchange-CrossTenant-Id": "3dd8961f-e488-4e60-8e11-a82d994e183d",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17];\n Helo=[SATLEXMB04.amd.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BL6PEPF0001AB71.namprd02.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM3PR12MB9435",
        "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": "Currently application supports queue IDs up to 255\nand max queues of 256 irrespective of device support.\nThis limits the number of active lcores to 256.\n\nThe patch fixes these constraints by increasing\nthe queue IDs to support up to 65535.\n\nFixes: f88e7c175a68 (\"examples/l3fwd-power: add high/regular perf cores options\")\nCc: radu.nicolau@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Sivaprasad Tummala <sivaprasad.tummala@amd.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Ferruh Yigit <ferruh.yigit@amd.com>\n---\n examples/l3fwd-power/main.c      | 49 ++++++++++++++++----------------\n examples/l3fwd-power/main.h      |  2 +-\n examples/l3fwd-power/perf_core.c | 10 +++++--\n 3 files changed, 32 insertions(+), 29 deletions(-)",
    "diff": "diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c\nindex f4adcf41b5..1881b1b194 100644\n--- a/examples/l3fwd-power/main.c\n+++ b/examples/l3fwd-power/main.c\n@@ -214,7 +214,7 @@ enum freq_scale_hint_t\n \n struct lcore_rx_queue {\n \tuint16_t port_id;\n-\tuint8_t queue_id;\n+\tuint16_t queue_id;\n \tenum freq_scale_hint_t freq_up_hint;\n \tuint32_t zero_rx_packet_count;\n \tuint32_t idle_hint;\n@@ -838,7 +838,7 @@ sleep_until_rx_interrupt(int num, int lcore)\n \tstruct rte_epoll_event event[num];\n \tint n, i;\n \tuint16_t port_id;\n-\tuint8_t queue_id;\n+\tuint16_t queue_id;\n \tvoid *data;\n \n \tif (status[lcore].wakeup) {\n@@ -850,9 +850,9 @@ sleep_until_rx_interrupt(int num, int lcore)\n \tn = rte_epoll_wait(RTE_EPOLL_PER_THREAD, event, num, 10);\n \tfor (i = 0; i < n; i++) {\n \t\tdata = event[i].epdata.data;\n-\t\tport_id = ((uintptr_t)data) >> CHAR_BIT;\n+\t\tport_id = ((uintptr_t)data) >> (sizeof(uint16_t) * CHAR_BIT);\n \t\tqueue_id = ((uintptr_t)data) &\n-\t\t\tRTE_LEN2MASK(CHAR_BIT, uint8_t);\n+\t\t\tRTE_LEN2MASK((sizeof(uint16_t) * CHAR_BIT), uint16_t);\n \t\tRTE_LOG(INFO, L3FWD_POWER,\n \t\t\t\"lcore %u is waked up from rx interrupt on\"\n \t\t\t\" port %d queue %d\\n\",\n@@ -867,7 +867,7 @@ static void turn_on_off_intr(struct lcore_conf *qconf, bool on)\n {\n \tint i;\n \tstruct lcore_rx_queue *rx_queue;\n-\tuint8_t queue_id;\n+\tuint16_t queue_id;\n \tuint16_t port_id;\n \n \tfor (i = 0; i < qconf->n_rx_queue; ++i) {\n@@ -887,7 +887,7 @@ static void turn_on_off_intr(struct lcore_conf *qconf, bool on)\n static int event_register(struct lcore_conf *qconf)\n {\n \tstruct lcore_rx_queue *rx_queue;\n-\tuint8_t queueid;\n+\tuint16_t queueid;\n \tuint16_t portid;\n \tuint32_t data;\n \tint ret;\n@@ -897,7 +897,7 @@ static int event_register(struct lcore_conf *qconf)\n \t\trx_queue = &(qconf->rx_queue_list[i]);\n \t\tportid = rx_queue->port_id;\n \t\tqueueid = rx_queue->queue_id;\n-\t\tdata = portid << CHAR_BIT | queueid;\n+\t\tdata = portid << (sizeof(uint16_t) * CHAR_BIT) | queueid;\n \n \t\tret = rte_eth_dev_rx_intr_ctl_q(portid, queueid,\n \t\t\t\t\t\tRTE_EPOLL_PER_THREAD,\n@@ -917,8 +917,7 @@ static int main_intr_loop(__rte_unused void *dummy)\n \tunsigned int lcore_id;\n \tuint64_t prev_tsc, diff_tsc, cur_tsc;\n \tint i, j, nb_rx;\n-\tuint8_t queueid;\n-\tuint16_t portid;\n+\tuint16_t portid, queueid;\n \tstruct lcore_conf *qconf;\n \tstruct lcore_rx_queue *rx_queue;\n \tuint32_t lcore_rx_idle_count = 0;\n@@ -946,7 +945,7 @@ static int main_intr_loop(__rte_unused void *dummy)\n \t\tportid = qconf->rx_queue_list[i].port_id;\n \t\tqueueid = qconf->rx_queue_list[i].queue_id;\n \t\tRTE_LOG(INFO, L3FWD_POWER,\n-\t\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hhu\\n\",\n+\t\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hu\\n\",\n \t\t\t\tlcore_id, portid, queueid);\n \t}\n \n@@ -1083,8 +1082,7 @@ main_telemetry_loop(__rte_unused void *dummy)\n \tunsigned int lcore_id;\n \tuint64_t prev_tsc, diff_tsc, cur_tsc, prev_tel_tsc;\n \tint i, j, nb_rx;\n-\tuint8_t queueid;\n-\tuint16_t portid;\n+\tuint16_t portid, queueid;\n \tstruct lcore_conf *qconf;\n \tstruct lcore_rx_queue *rx_queue;\n \tuint64_t ep_nep[2] = {0}, fp_nfp[2] = {0};\n@@ -1114,7 +1112,7 @@ main_telemetry_loop(__rte_unused void *dummy)\n \t\tportid = qconf->rx_queue_list[i].port_id;\n \t\tqueueid = qconf->rx_queue_list[i].queue_id;\n \t\tRTE_LOG(INFO, L3FWD_POWER, \" -- lcoreid=%u portid=%u \"\n-\t\t\t\"rxqueueid=%hhu\\n\", lcore_id, portid, queueid);\n+\t\t\t\"rxqueueid=%hu\\n\", lcore_id, portid, queueid);\n \t}\n \n \twhile (!is_done()) {\n@@ -1205,8 +1203,7 @@ main_legacy_loop(__rte_unused void *dummy)\n \tuint64_t prev_tsc, diff_tsc, cur_tsc, tim_res_tsc, hz;\n \tuint64_t prev_tsc_power = 0, cur_tsc_power, diff_tsc_power;\n \tint i, j, nb_rx;\n-\tuint8_t queueid;\n-\tuint16_t portid;\n+\tuint16_t portid, queueid;\n \tstruct lcore_conf *qconf;\n \tstruct lcore_rx_queue *rx_queue;\n \tenum freq_scale_hint_t lcore_scaleup_hint;\n@@ -1234,7 +1231,7 @@ main_legacy_loop(__rte_unused void *dummy)\n \t\tportid = qconf->rx_queue_list[i].port_id;\n \t\tqueueid = qconf->rx_queue_list[i].queue_id;\n \t\tRTE_LOG(INFO, L3FWD_POWER, \" -- lcoreid=%u portid=%u \"\n-\t\t\t\"rxqueueid=%hhu\\n\", lcore_id, portid, queueid);\n+\t\t\t\"rxqueueid=%hu\\n\", lcore_id, portid, queueid);\n \t}\n \n \t/* add into event wait list */\n@@ -1399,14 +1396,14 @@ main_legacy_loop(__rte_unused void *dummy)\n static int\n check_lcore_params(void)\n {\n-\tuint8_t queue, lcore;\n-\tuint16_t i;\n+\tuint16_t queue, i;\n+\tuint8_t lcore;\n \tint socketid;\n \n \tfor (i = 0; i < nb_lcore_params; ++i) {\n \t\tqueue = lcore_params[i].queue_id;\n \t\tif (queue >= MAX_RX_QUEUE_PER_PORT) {\n-\t\t\tprintf(\"invalid queue number: %hhu\\n\", queue);\n+\t\t\tprintf(\"invalid queue number: %hu\\n\", queue);\n \t\t\treturn -1;\n \t\t}\n \t\tlcore = lcore_params[i].lcore_id;\n@@ -1451,7 +1448,7 @@ check_port_config(void)\n \treturn 0;\n }\n \n-static uint8_t\n+static uint16_t\n get_port_n_rx_queues(const uint16_t port)\n {\n \tint queue = -1;\n@@ -1462,7 +1459,7 @@ get_port_n_rx_queues(const uint16_t port)\n \t\t\t\tlcore_params[i].queue_id > queue)\n \t\t\tqueue = lcore_params[i].queue_id;\n \t}\n-\treturn (uint8_t)(++queue);\n+\treturn (uint16_t)(++queue);\n }\n \n static int\n@@ -1661,6 +1658,8 @@ parse_config(const char *q_arg)\n \tchar *str_fld[_NUM_FLD];\n \tint i;\n \tunsigned size;\n+\tunsigned int max_fld[_NUM_FLD] = {USHRT_MAX,\n+\t\t\t\t\tUSHRT_MAX, UCHAR_MAX};\n \n \tnb_lcore_params = 0;\n \n@@ -1681,7 +1680,7 @@ parse_config(const char *q_arg)\n \t\t\terrno = 0;\n \t\t\tint_fld[i] = strtoul(str_fld[i], &end, 0);\n \t\t\tif (errno != 0 || end == str_fld[i] || int_fld[i] >\n-\t\t\t\t\t\t\t\t\t255)\n+\t\t\t\t\t\t\t\t\tmax_fld[i])\n \t\t\t\treturn -1;\n \t\t}\n \t\tif (nb_lcore_params >= MAX_LCORE_PARAMS) {\n@@ -1692,7 +1691,7 @@ parse_config(const char *q_arg)\n \t\tlcore_params_array[nb_lcore_params].port_id =\n \t\t\t\t(uint8_t)int_fld[FLD_PORT];\n \t\tlcore_params_array[nb_lcore_params].queue_id =\n-\t\t\t\t(uint8_t)int_fld[FLD_QUEUE];\n+\t\t\t\t(uint16_t)int_fld[FLD_QUEUE];\n \t\tlcore_params_array[nb_lcore_params].lcore_id =\n \t\t\t\t(uint8_t)int_fld[FLD_LCORE];\n \t\t++nb_lcore_params;\n@@ -2501,8 +2500,8 @@ main(int argc, char **argv)\n \tuint64_t hz;\n \tuint32_t n_tx_queue, nb_lcores;\n \tuint32_t dev_rxq_num, dev_txq_num;\n-\tuint8_t nb_rx_queue, queue, socketid;\n-\tuint16_t portid;\n+\tuint8_t socketid;\n+\tuint16_t portid, nb_rx_queue, queue;\n \tconst char *ptr_strings[NUM_TELSTATS];\n \n \t/* init EAL */\ndiff --git a/examples/l3fwd-power/main.h b/examples/l3fwd-power/main.h\nindex 258de98f5b..40b5194726 100644\n--- a/examples/l3fwd-power/main.h\n+++ b/examples/l3fwd-power/main.h\n@@ -9,7 +9,7 @@\n #define MAX_LCORE_PARAMS 1024\n struct lcore_params {\n \tuint16_t port_id;\n-\tuint8_t queue_id;\n+\tuint16_t queue_id;\n \tuint8_t lcore_id;\n } __rte_cache_aligned;\n \ndiff --git a/examples/l3fwd-power/perf_core.c b/examples/l3fwd-power/perf_core.c\nindex 41ef6d0c9a..3088935ee0 100644\n--- a/examples/l3fwd-power/perf_core.c\n+++ b/examples/l3fwd-power/perf_core.c\n@@ -22,7 +22,7 @@ static uint16_t nb_hp_lcores;\n \n struct perf_lcore_params {\n \tuint16_t port_id;\n-\tuint8_t queue_id;\n+\tuint16_t queue_id;\n \tuint8_t high_perf;\n \tuint8_t lcore_idx;\n } __rte_cache_aligned;\n@@ -132,6 +132,8 @@ parse_perf_config(const char *q_arg)\n \tchar *str_fld[_NUM_FLD];\n \tint i;\n \tunsigned int size;\n+\tunsigned int max_fld[_NUM_FLD] = {USHRT_MAX, USHRT_MAX,\n+\t\t\t\t\tUCHAR_MAX, UCHAR_MAX};\n \n \tnb_prf_lc_prms = 0;\n \n@@ -152,7 +154,9 @@ parse_perf_config(const char *q_arg)\n \t\tfor (i = 0; i < _NUM_FLD; i++) {\n \t\t\terrno = 0;\n \t\t\tint_fld[i] = strtoul(str_fld[i], &end, 0);\n-\t\t\tif (errno != 0 || end == str_fld[i] || int_fld[i] > 255)\n+\t\t\tif (errno != 0 || end == str_fld[i] || int_fld[i] >\n+\t\t\t\t\t\t\t\t\tmax_fld[i])\n+\n \t\t\t\treturn -1;\n \t\t}\n \t\tif (nb_prf_lc_prms >= MAX_LCORE_PARAMS) {\n@@ -163,7 +167,7 @@ parse_perf_config(const char *q_arg)\n \t\tprf_lc_prms[nb_prf_lc_prms].port_id =\n \t\t\t\t(uint8_t)int_fld[FLD_PORT];\n \t\tprf_lc_prms[nb_prf_lc_prms].queue_id =\n-\t\t\t\t(uint8_t)int_fld[FLD_QUEUE];\n+\t\t\t\t(uint16_t)int_fld[FLD_QUEUE];\n \t\tprf_lc_prms[nb_prf_lc_prms].high_perf =\n \t\t\t\t!!(uint8_t)int_fld[FLD_LCORE_HP];\n \t\tprf_lc_prms[nb_prf_lc_prms].lcore_idx =\n",
    "prefixes": [
        "v6",
        "02/14"
    ]
}