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 312D043D0F; Thu, 21 Mar 2024 19:49:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9DC2D42EAD; Thu, 21 Mar 2024 19:48:54 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2062.outbound.protection.outlook.com [40.107.92.62]) by mails.dpdk.org (Postfix) with ESMTP id 8F7E242EAB; Thu, 21 Mar 2024 19:48:52 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S36ci2rTsMEU+Qwbj9z9lbxiEyZS+NrBdRUOZQEcatTKTD7Zao5HFlENcubtPnTW8TaR+IJW6Pq2H2Bcz86nB0hblHdxT4q+/UopuTl4AekIHBi3YAITg47XbdQKk5KHnEa8AhZLEmtcfGG/IbV0iEPjLWSH3EwEfZa5ZKQzIrha8oiG8JOLodxzQBvcakFzK68cy6EeWI3OeVgq4y0yNzKWmZXOQoyKV85TU3pvNFaXgLOtXBgwiDIRPr1ioyGlc07m/wZnbQb/hSnVkvZxOgcdF4D8Cywi9lS2UBwnu6ltM3LlNfZaEfHO3O++XXwFjGKFNY7ONj50N4PoR2g/dw== 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=JYLrGFFBRLgVxo6vRwFFDSJHGEbHxeTI3v+SkcW2H4Y=; b=mpxT9Nkn9jj/w7KMIFVqpfS0oQdOJT/oxzAz4sHw/XkUx5yN1mOf5D+pv54HHdhsvYYLU70oT+LI9YvrgB53/H+N+3oUa18ENuCRfVYi+j0j+poOMYLZ9hksIq1mDmnGHqANwaTRwEWQldGpvc4/uC5JrKzPSfaS4rTQOIS9C1zTRZtOvGrcQrbgflwyyR0thDk0faf43Q0N40LtGt+9Fm9OdM+VXkkm3zHRi1BZBqZhTw55WcSHHObuDrDtIxAI6vom2Y7VOZmbiuyu7u7pjbTov3WJ8rR9PqSghGf2MsNaa6NGDECN42cHyjbIoP1nAwenI76WBhVq0HlXStClnQ== 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=JYLrGFFBRLgVxo6vRwFFDSJHGEbHxeTI3v+SkcW2H4Y=; b=QMgXw5H6VaodW9NzJ07wM7t7JGEslLWMXibIOUAGOp8aOxzrcCwogS49ZBdX+uynzeZ9BKxYE2IndUUcoZ5v9mKknKt+H0lzQNBl9Zs0buFGJZP2lX8/IqMPuRXVezrLS/W+6xhLadsCRtuTOb42YAo1jJjfEF+/ngOd2NOmjG4= Received: from BL1PR13CA0354.namprd13.prod.outlook.com (2603:10b6:208:2c6::29) by SJ2PR12MB9114.namprd12.prod.outlook.com (2603:10b6:a03:567::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.34; Thu, 21 Mar 2024 18:48:48 +0000 Received: from BL6PEPF0001AB71.namprd02.prod.outlook.com (2603:10b6:208:2c6:cafe::a3) by BL1PR13CA0354.outlook.office365.com (2603:10b6:208:2c6::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.12 via Frontend Transport; Thu, 21 Mar 2024 18:48:47 +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 BL6PEPF0001AB71.mail.protection.outlook.com (10.167.242.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 18:48:47 +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; Thu, 21 Mar 2024 13:48:43 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: , Subject: [PATCH v6 09/14] examples/qos_sched: fix lcore ID restriction Date: Thu, 21 Mar 2024 19:47:15 +0100 Message-ID: <20240321184721.69040-10-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> <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 (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB71:EE_|SJ2PR12MB9114:EE_ X-MS-Office365-Filtering-Correlation-Id: b8b6c617-86e8-43b9-f711-08dc49d78af7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 79Ltyyzv8jGewsCGWn3y+kopEnDLjEx9VdbGpjCdmkXjVgV+t0RUJ43mjP+5v8MCfNSvUO5K2QQVm+Gt9ql2xsQ0mKHZzWjjXr62STGndjf3wrYqRK8TPZT6jHmDH0XZm73cXoNP3PB1mIZFR/6oExpElhdVKAJ8eXSKhApjVqMJ7Q08d8oB70KyTxchbKjZCrlc+F3mmgJV4QQ+PQfAqpRDsBUkXDvSOm5kK8sN1mXFY4G8QBLpXydkkSfgQ0HEKW9fDXhNIb+KA99U1mdK2ZqObczE0g1kAsvA+cq//poQJMJ0NIGHFKWKNbpLnv+0hyMPYQdSn5klJJvJOfZvwFoz8MzFJ7r301rhYxUcX1YgCVwo/X2207YzZ4negE0wemiNDGmgkmgyCRfXk8v+A6CV1SDwda1zVTeYIQpoJRslAynIMFmuUm/7+R1fQIsVs/I4rM/v0GZZGNAJgBRPjuvWKC08k4Sr0zcbUo561+NmHrWDrvbGgkjM7yCihsi0jH8/fg9eHHYoBmcuGEgTl3ptkK+Ggotl1fJNinROO60cbH+xvqZ1bWibPai8yTzyd/5EzU3xUZBeXOvxtVlGMF7SvoZt39ogjRdz9bHA1v8h5R3ETYJYHM1Hg8DUovFk48/S6AF29kf/QVweCW0uM4J1kxwgU+FnBXp8d5K4qLE0j97BC9wYQ2fBdB8txAJ65hmB3Moo/gPZq0Pt/qvR03yX7G5xmgq0O/xXDxW9sqElCZib+Q+dvhMDP5BTD1m+tVtZouYdXkiwgtv5uyVZ4g== 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)(1800799015)(7416005)(376005)(82310400014)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 18:48:47.6820 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b8b6c617-86e8-43b9-f711-08dc49d78af7 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: BL6PEPF0001AB71.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9114 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.34.1