From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C79B943D51; Tue, 26 Mar 2024 13:57:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 086C5410FA; Tue, 26 Mar 2024 13:57:15 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2071.outbound.protection.outlook.com [40.107.95.71]) by mails.dpdk.org (Postfix) with ESMTP id 82D9B40E72; Tue, 26 Mar 2024 13:57:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G5r7VHTJOk+h6lYxariBmdCluPwOOBgEyw5hl1t6ZWJu+OEMzMFUF4GU/WvlqUp9AUBwIrMaSNZrfy6f9xUjz8DlD1iPjrCwWGiSR6tywliSCEtd/TcGkyiXbQjsg18cBv2mXricpiN6vTBl0Eqg9cpeQbxz7ZZdFHkC2J36L7fDpErQj2YAEgC7XkmZVHp46xoR66vfINOGuqytuAwQ7+L79TMwc+GT3nKZnUsikqn82l7Bj+UYb8lb3x3ouoQg/BshiAjygLy8SF16Xy2F3D965ye3QO9DA4eRsVjI3dKw96wW7l7U1jVMIOzYnUDIFgIGH/6ln4Ltujf1V0Yh5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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; bh=yOfKQn5w3dNmsAQwL8ptbd5zP0Cnzd+3reG+O1DcbrA=; b=McT3ev2o6nsDfGDJTPnUHmsIZaMpnhapmB1cVQLKMMu/2j2q03//IM+rHDf84X/gvpCQvqf1j1Isi9lv1uKhBwelDFg9DTutICT+mCtZCFPurTZ/gEuKapRoZTI/grQR+GIBhMDKQZy1p8wpPxqNjApGSoQSVscw2Zv3DytyA+Psw44NdYiG757ODSuGvKRNB7ch3SeDosV0p58WtQ++kkV5k4WFqtIBSKHh0shDQD/HWSSxGrflTvcvZZeJ27qb8XeNUUkk6jOvd2qFa5hKnOATDVABPLrcVuUUc7XKAsAPycG6md5EstxDPWBP6z7cyUdEtRF0hwfapJzuF5xv5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yOfKQn5w3dNmsAQwL8ptbd5zP0Cnzd+3reG+O1DcbrA=; b=SLSnxpzBUdXTfcAZhvMCRYInm3WbefDW3npr6BYZZ61jnH+ZKisr/bsNty2+6Oy0Ex+S+mtIzB1mE7Nszhu4xDZ31lU9D8hhWPVPA7PhYpTyj18PMGSt4Z5hi1h36mLDOKmUU8UY88H/qDC3fyuM1U/8QXIJXVw8WII12GSDpbM= Received: from DM6PR18CA0023.namprd18.prod.outlook.com (2603:10b6:5:15b::36) by SJ0PR12MB6856.namprd12.prod.outlook.com (2603:10b6:a03:47f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.33; Tue, 26 Mar 2024 12:57:06 +0000 Received: from DS2PEPF00003445.namprd04.prod.outlook.com (2603:10b6:5:15b:cafe::ce) by DM6PR18CA0023.outlook.office365.com (2603:10b6:5:15b::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend Transport; Tue, 26 Mar 2024 12:57:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DS2PEPF00003445.mail.protection.outlook.com (10.167.17.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Tue, 26 Mar 2024 12:57:05 +0000 Received: from ubuntu2004.linuxvmimages.local (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 26 Mar 2024 07:57:00 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: , Subject: [PATCH v7 09/14] examples/qos_sched: fix lcore ID restriction Date: Tue, 26 Mar 2024 13:55:48 +0100 Message-ID: <20240326125554.138840-10-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240326125554.138840-1-sivaprasad.tummala@amd.com> References: <20240321184721.69040-1-sivaprasad.tummala@amd.com> <20240326125554.138840-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: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF00003445:EE_|SJ0PR12MB6856:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fa9045f-8080-49f7-0756-08dc4d943d4b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rBNoX7g9+Oia9Ltsv4YdKgXLgjy8xJTb6Gf7umsN9qvK+FDPyZrZvSe5TNNzyAyc0Xbbxr+SjeaDM0Vpc7bPGib0pmDLrLfJLFupVL+TFRqxDW8oT67r0jx+sgawg9f8/HnNrKVYuhA1NLrMhCji4wbQZ/FwTfZI0ENMQft3PyZd7CPRnCHywkS1NI7HEHQkmgQt117e5Af7J6wRuJw5xTuc/9dQeV9ZOeNMOzeUY9UZdL4YRA/3u0lFygPFiHbd/qrL/jPstcfQnLdHFhQlKgGWVl8C9BqUNqBMxsU+feIoZ0uGTOarc6hR1bZ+Np+YzQnZFwPZHqM6n/xBT/H+AGrPCHyJ7fSuPFiS61s45UOvtyKo1iekW5CyZIF90/djARMxaQGJ+7fz/FP4c497QARHMHiStCVgNxmNxu1OaSnN8mFo46xUv+c+ELgwqfCo8t/1omg0ivznt0bPnqJYlrxGpwV8CmBTGQACOlhBA93sG/eVeUw4SnsBaFgsQdOyJN/vvSBdb3etQndnfqh/MBxm8vOy0uP1qiP7ASva6pa049sOqZW7wIXv2Y2RROlFVfPor8nR+zsQLTcWNaWOPZkPPi7QtGu+fPrTmSTDEw6YIxkbzAAirHkDLzHOabE6qnboy9ZarRHEjiCyQ7rAuRVvCfAojvaa93pMs1EyZ8rAapkGZuXfxyjh0XtjwQ/2TORRXq+uteNadPY9as5oreBIbj0gwyrInYro+oM56zCNVuspkBHHhxYuGmTABvPV7QnltxWfcXdNlauRZrbqrw== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(82310400014)(376005)(7416005)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 12:57:05.7812 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fa9045f-8080-49f7-0756-08dc4d943d4b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF00003445.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6856 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Currently the config option allows lcore IDs up to 255, irrespective of RTE_MAX_LCORES and needs to be fixed. The patch fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. Also the queue IDs are increased to support up to 65535. Fixes: de3cfa2c9823 ("sched: initial import") Cc: stable@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Morten Brørup Acked-by: Ferruh Yigit --- examples/qos_sched/args.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c index 8d61d3e454..886542b3c1 100644 --- a/examples/qos_sched/args.c +++ b/examples/qos_sched/args.c @@ -184,10 +184,10 @@ app_parse_flow_conf(const char *conf_str) pconf->rx_port = vals[0]; pconf->tx_port = vals[1]; - pconf->rx_core = (uint8_t)vals[2]; - pconf->wt_core = (uint8_t)vals[3]; + pconf->rx_core = vals[2]; + pconf->wt_core = vals[3]; if (ret == 5) - pconf->tx_core = (uint8_t)vals[4]; + pconf->tx_core = vals[4]; else pconf->tx_core = pconf->wt_core; -- 2.25.1