get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 138673,
    "url": "http://patchwork.dpdk.org/api/patches/138673/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20240321184721.69040-2-sivaprasad.tummala@amd.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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-2-sivaprasad.tummala@amd.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240321184721.69040-2-sivaprasad.tummala@amd.com",
    "date": "2024-03-21T18:47:07",
    "name": "[v6,01/14] examples/l3fwd: fix queue ID restriction",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "27a2b4356aeabb176a4220eae82eb42d625c0e24",
    "submitter": {
        "id": 2510,
        "url": "http://patchwork.dpdk.org/api/people/2510/?format=api",
        "name": "Sivaprasad Tummala",
        "email": "Sivaprasad.Tummala@amd.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20240321184721.69040-2-sivaprasad.tummala@amd.com/mbox/",
    "series": [
        {
            "id": 31590,
            "url": "http://patchwork.dpdk.org/api/series/31590/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=31590",
            "date": "2024-03-21T18:47:07",
            "name": "fix lcore ID restriction",
            "version": 6,
            "mbox": "http://patchwork.dpdk.org/series/31590/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/138673/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/138673/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 8FF2C43D0F;\n\tThu, 21 Mar 2024 19:48:00 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4BF2342D45;\n\tThu, 21 Mar 2024 19:47:59 +0100 (CET)",
            "from NAM11-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam11on2055.outbound.protection.outlook.com [40.107.223.55])\n by mails.dpdk.org (Postfix) with ESMTP id 3EABA402C2;\n Thu, 21 Mar 2024 19:47:58 +0100 (CET)",
            "from MN2PR14CA0010.namprd14.prod.outlook.com (2603:10b6:208:23e::15)\n by SA3PR12MB9089.namprd12.prod.outlook.com (2603:10b6:806:39f::7)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.31; Thu, 21 Mar\n 2024 18:47:55 +0000",
            "from BL6PEPF0001AB72.namprd02.prod.outlook.com\n (2603:10b6:208:23e:cafe::dc) by MN2PR14CA0010.outlook.office365.com\n (2603:10b6:208:23e::15) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend\n Transport; Thu, 21 Mar 2024 18:47:55 +0000",
            "from SATLEXMB04.amd.com (165.204.84.17) by\n BL6PEPF0001AB72.mail.protection.outlook.com (10.167.242.165) 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:47:55 +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:49 -0500"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=f0fnI9/w3EugP2EcbXDDjr46kU+fPNaCv+JqiM1Yx9xhG3lqVOJH9nnAzD0r32xjusR6RTlhrsypvfXSHkbr1lDhhBM+x5Sev7o7NN7U7aPFP7bB+MjULdkaSTB7FdDg5mXtbSoOkZo5rNdpXDNVyewwxsMcaEtn7LtuOt7OmR06GYropCdtpuTE9Sj72fxcO9cwnv4bgNmFP+85/jWbQmqfs4rxnk2UO+aC6vwjaJ4AM6Eqwo87JhQk5XNCCJ3qglTcD70CAJcdd89WKCHQE2XA6yG8wbyzkUVOSH4uxkgaEW0iDG7HghuqiZci5zO62lpa+nSa28/sf/PJOHq65A==",
        "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=g1Ck7eR8Y5jcoKuDktoYyETZVNDV4sjQZ+m3Gcsqekc=;\n b=htxTxk7VkdWNf4tjVOdb4KeXVm+3Ntolp9xlbpJqlUJkTYb8ms/hGrM4yrxfvxz8tucPWf3QpDQCLR6BC/dkHN00fWkCNgDcOjZASLlLf7cZQQl1LD5br3lY6ktMeKPCfKX9oRFHydBW5g9X9KNWsLtYZAlpCh7g5LBVZZB+H4SXQgt/VPy05N9jCBysTRBbFpmoYs7Ruaeq4qmbKVFVTwYBpb5rk9kWlTB5gSR1ZtbUgmhxdmSkSdGIytqrcNuctgGGRYxfsap89V+OSIXuavWC24CZGeBhzvUbTsHr2qMjfIO1Y0SfAEe5EVmcDAVGBQ1HkYSkq/R2lig1Y9BTNg==",
        "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=g1Ck7eR8Y5jcoKuDktoYyETZVNDV4sjQZ+m3Gcsqekc=;\n b=yz0V2x8KVJApDb02s3m4q78ZNrmguHn/ImKtG2vujNA7vU0xhnwgNgsgtGNpLNZjnFDpe+ZQQkwlYqZfCuoFZKbbIe+/q6pgo2i7LKQ8Bof57+IYZmH76blPaYrSES/FLP6KQTvIV48Tcv2Uc8sOF/ejce5C3xiaWMVoHa1Hbrw=",
        "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 01/14] examples/l3fwd: fix queue ID restriction",
        "Date": "Thu, 21 Mar 2024 19:47:07 +0100",
        "Message-ID": "<20240321184721.69040-2-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": "BL6PEPF0001AB72:EE_|SA3PR12MB9089:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "a7c3a7da-85e2-49e5-5bc2-08dc49d76bfa",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n SpEzCe7vGoH9G6BN3Bd6AUCQRr2wPQ+QgaNvv7IRKkwPcEhWn8eZwiinEsl8jWeF7cJ9tmlErU/VP2Um4cSx/OM4oEM3q2RsRJtMWUmVAhtQLKhASzM0rx9pUfR2/nH52pAJr1c6/xHcyOE8LNT19tSWSbblTTbMvNCgPnDy2SjsvSeZ6TUiDCA9V+fGOISMAZZDhH5b/dxoOEiDRy17wwZEvGBrP6gsIh/mdqtQAFmRf0FcYYxEmMimt6cK1xYFNTw5if045dpqQ4Of42adeCYen2BO9huRzyN4/6ABO97iJexIgAfoVyjTzQxUo20Gf8Cx4YdUwk/7pPhG5J/sCa6ydE0F44DD+WgMZyEhGy34EKGkUWIBk/s6JU43v7ve+VVJqgci0Rdg36Dh3D6gQVu/oYAJ4aoLrfO85CS5WojOTwOSq7a8hsWgQJARuFaeHkZQrTk46x/n5o95ujP4F2hGCc3UICD883Z5Jl0L2xpqw89R9PAQtmyGknsgYVmm15iK7x2Rp7Pg7rD9AqeUc91PJLxMNoSatsmhRF4WKBfph8QEWZCheJr/FZMnOffRHRJk7iarGhhSPuCSOYmBFVYgrbmsIE5y+hf+R6r8CmMy1jop5AFbCp8uE4dR1uN1kFf+0YHnzxtDAyiFCzyf4FBFRKzYu8GW3hPCjN+FwAOe3GI5VC9NBmH67fy/vykiFV10FbxRhZbINeZn+45qjumYu8omdP1+9U8zeFOW7OA/UWy9eB7AjP3999E6rEpEBCVY193PknntS9RXhSI/AQ==",
        "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)(36860700004)(376005)(7416005)(82310400014)(1800799015)(921011);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "amd.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "21 Mar 2024 18:47:55.6883 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n a7c3a7da-85e2-49e5-5bc2-08dc49d76bfa",
        "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 BL6PEPF0001AB72.namprd02.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "SA3PR12MB9089",
        "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: af75078fece3 (\"first public release\")\nCc: stable@dpdk.org\n\nSigned-off-by: Sivaprasad Tummala <sivaprasad.tummala@amd.com>\nAcked-by: Konstantin Ananyev <konstantin.ananyev@huawei.com>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Ferruh Yigit <ferruh.yigit@amd.com>\n---\n examples/l3fwd/l3fwd.h       |  2 +-\n examples/l3fwd/l3fwd_acl.c   |  4 ++--\n examples/l3fwd/l3fwd_em.c    |  4 ++--\n examples/l3fwd/l3fwd_event.h |  2 +-\n examples/l3fwd/l3fwd_fib.c   |  4 ++--\n examples/l3fwd/l3fwd_lpm.c   |  5 ++---\n examples/l3fwd/main.c        | 28 ++++++++++++++++------------\n 7 files changed, 26 insertions(+), 23 deletions(-)",
    "diff": "diff --git a/examples/l3fwd/l3fwd.h b/examples/l3fwd/l3fwd.h\nindex e7ae0e5834..12c264cb4c 100644\n--- a/examples/l3fwd/l3fwd.h\n+++ b/examples/l3fwd/l3fwd.h\n@@ -74,7 +74,7 @@ struct mbuf_table {\n \n struct lcore_rx_queue {\n \tuint16_t port_id;\n-\tuint8_t queue_id;\n+\tuint16_t queue_id;\n } __rte_cache_aligned;\n \n struct lcore_conf {\ndiff --git a/examples/l3fwd/l3fwd_acl.c b/examples/l3fwd/l3fwd_acl.c\nindex 401692bcec..2bd63181bc 100644\n--- a/examples/l3fwd/l3fwd_acl.c\n+++ b/examples/l3fwd/l3fwd_acl.c\n@@ -997,7 +997,7 @@ acl_main_loop(__rte_unused void *dummy)\n \tuint64_t prev_tsc, diff_tsc, cur_tsc;\n \tint i, nb_rx;\n \tuint16_t portid;\n-\tuint8_t queueid;\n+\tuint16_t queueid;\n \tstruct lcore_conf *qconf;\n \tint socketid;\n \tconst uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1)\n@@ -1020,7 +1020,7 @@ acl_main_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,\n-\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hhu\\n\",\n+\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hu\\n\",\n \t\t\tlcore_id, portid, queueid);\n \t}\n \ndiff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c\nindex 40e102b38a..cd2bb4a4bb 100644\n--- a/examples/l3fwd/l3fwd_em.c\n+++ b/examples/l3fwd/l3fwd_em.c\n@@ -586,7 +586,7 @@ em_main_loop(__rte_unused void *dummy)\n \tunsigned lcore_id;\n \tuint64_t prev_tsc, diff_tsc, cur_tsc;\n \tint i, nb_rx;\n-\tuint8_t queueid;\n+\tuint16_t queueid;\n \tuint16_t portid;\n \tstruct lcore_conf *qconf;\n \tconst uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) /\n@@ -609,7 +609,7 @@ em_main_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,\n-\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hhu\\n\",\n+\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hu\\n\",\n \t\t\tlcore_id, portid, queueid);\n \t}\n \ndiff --git a/examples/l3fwd/l3fwd_event.h b/examples/l3fwd/l3fwd_event.h\nindex 9aad358003..c6a4a89127 100644\n--- a/examples/l3fwd/l3fwd_event.h\n+++ b/examples/l3fwd/l3fwd_event.h\n@@ -78,8 +78,8 @@ struct l3fwd_event_resources {\n \tuint8_t deq_depth;\n \tuint8_t has_burst;\n \tuint8_t enabled;\n-\tuint8_t eth_rx_queues;\n \tuint8_t vector_enabled;\n+\tuint16_t eth_rx_queues;\n \tuint16_t vector_size;\n \tuint64_t vector_tmo_ns;\n };\ndiff --git a/examples/l3fwd/l3fwd_fib.c b/examples/l3fwd/l3fwd_fib.c\nindex 6a21984415..7da55f707a 100644\n--- a/examples/l3fwd/l3fwd_fib.c\n+++ b/examples/l3fwd/l3fwd_fib.c\n@@ -186,7 +186,7 @@ fib_main_loop(__rte_unused void *dummy)\n \tuint64_t prev_tsc, diff_tsc, cur_tsc;\n \tint i, nb_rx;\n \tuint16_t portid;\n-\tuint8_t queueid;\n+\tuint16_t queueid;\n \tstruct lcore_conf *qconf;\n \tconst uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) /\n \t\t\tUS_PER_S * BURST_TX_DRAIN_US;\n@@ -208,7 +208,7 @@ fib_main_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,\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 \ndiff --git a/examples/l3fwd/l3fwd_lpm.c b/examples/l3fwd/l3fwd_lpm.c\nindex a484a33089..01d38bc69c 100644\n--- a/examples/l3fwd/l3fwd_lpm.c\n+++ b/examples/l3fwd/l3fwd_lpm.c\n@@ -148,8 +148,7 @@ lpm_main_loop(__rte_unused void *dummy)\n \tunsigned lcore_id;\n \tuint64_t prev_tsc, diff_tsc, cur_tsc;\n \tint i, nb_rx;\n-\tuint16_t portid;\n-\tuint8_t queueid;\n+\tuint16_t portid, queueid;\n \tstruct lcore_conf *qconf;\n \tconst uint64_t drain_tsc = (rte_get_tsc_hz() + US_PER_S - 1) /\n \t\tUS_PER_S * BURST_TX_DRAIN_US;\n@@ -171,7 +170,7 @@ lpm_main_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,\n-\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hhu\\n\",\n+\t\t\t\" -- lcoreid=%u portid=%u rxqueueid=%hu\\n\",\n \t\t\tlcore_id, portid, queueid);\n \t}\n \ndiff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c\nindex 8d32ae1dd5..4d4738b92b 100644\n--- a/examples/l3fwd/main.c\n+++ b/examples/l3fwd/main.c\n@@ -98,7 +98,7 @@ struct parm_cfg parm_config;\n \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 \n@@ -292,14 +292,14 @@ setup_l3fwd_lookup_tables(void)\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@@ -336,7 +336,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@@ -352,7 +352,7 @@ get_port_n_rx_queues(const uint16_t port)\n \t\t\t\t\t\tlcore_params[i].port_id);\n \t\t}\n \t}\n-\treturn (uint8_t)(++queue);\n+\treturn (uint16_t)(++queue);\n }\n \n static int\n@@ -366,7 +366,7 @@ init_lcore_rx_queues(void)\n \t\tnb_rx_queue = lcore_conf[lcore].n_rx_queue;\n \t\tif (nb_rx_queue >= MAX_RX_QUEUE_PER_LCORE) {\n \t\t\tprintf(\"error: too many queues (%u) for lcore: %u\\n\",\n-\t\t\t\t(unsigned)nb_rx_queue + 1, (unsigned)lcore);\n+\t\t\t\t(unsigned int)nb_rx_queue + 1, (unsigned int)lcore);\n \t\t\treturn -1;\n \t\t} else {\n \t\t\tlcore_conf[lcore].rx_queue_list[nb_rx_queue].port_id =\n@@ -500,6 +500,8 @@ parse_config(const char *q_arg)\n \tchar *str_fld[_NUM_FLD];\n \tint i;\n \tunsigned size;\n+\tuint16_t max_fld[_NUM_FLD] = {USHRT_MAX,\n+\t\t\t\tUSHRT_MAX, UCHAR_MAX};\n \n \tnb_lcore_params = 0;\n \n@@ -518,7 +520,8 @@ parse_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 \t\t\t\treturn -1;\n \t\t}\n \t\tif (nb_lcore_params >= MAX_LCORE_PARAMS) {\n@@ -529,7 +532,7 @@ parse_config(const char *q_arg)\n \t\tlcore_params_array[nb_lcore_params].port_id =\n \t\t\t(uint8_t)int_fld[FLD_PORT];\n \t\tlcore_params_array[nb_lcore_params].queue_id =\n-\t\t\t(uint8_t)int_fld[FLD_QUEUE];\n+\t\t\t(uint16_t)int_fld[FLD_QUEUE];\n \t\tlcore_params_array[nb_lcore_params].lcore_id =\n \t\t\t(uint8_t)int_fld[FLD_LCORE];\n \t\t++nb_lcore_params;\n@@ -630,7 +633,7 @@ parse_event_eth_rx_queues(const char *eth_rx_queues)\n {\n \tstruct l3fwd_event_resources *evt_rsrc = l3fwd_get_eventdev_rsrc();\n \tchar *end = NULL;\n-\tuint8_t num_eth_rx_queues;\n+\tuint16_t num_eth_rx_queues;\n \n \t/* parse decimal string */\n \tnum_eth_rx_queues = strtoul(eth_rx_queues, &end, 10);\n@@ -1211,7 +1214,8 @@ config_port_max_pkt_len(struct rte_eth_conf *conf,\n static void\n l3fwd_poll_resource_setup(void)\n {\n-\tuint8_t nb_rx_queue, queue, socketid;\n+\tuint8_t socketid;\n+\tuint16_t nb_rx_queue, queue;\n \tstruct rte_eth_dev_info dev_info;\n \tuint32_t n_tx_queue, nb_lcores;\n \tstruct rte_eth_txconf *txconf;\n@@ -1535,7 +1539,7 @@ main(int argc, char **argv)\n \tstruct lcore_conf *qconf;\n \tuint16_t queueid, portid;\n \tunsigned int lcore_id;\n-\tuint8_t queue;\n+\tuint16_t queue;\n \tint ret;\n \n \t/* init EAL */\n",
    "prefixes": [
        "v6",
        "01/14"
    ]
}