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 8A53543CE8; Mon, 18 Mar 2024 18:33:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B76A40E09; Mon, 18 Mar 2024 18:32:36 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2061.outbound.protection.outlook.com [40.107.96.61]) by mails.dpdk.org (Postfix) with ESMTP id E7EA740DC9; Mon, 18 Mar 2024 18:32:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=REAxZmv/F1/aobQilZp7+JpHawa9fuOufV35+DhnPgNkFxC/v1kM6c+9Jz1tyzFuoskGIgRl7HI3VMbtILB7fBs9SGOckgLrTLe8nSiDP0WBdTwe0TM1mwWxuBzBfZm85kQMwKXSaD+RgiKjjobEywbpmuofjJH6vHcrgyO/H8VCfzVyYzi+y9AeyuGUpog5eT0O+xkrlLmlaQ31ocOJDbgwtrU1/eEK6Pzcwpa1EVcX6dIOSBehBsCYbkF3PhAMpwtga1hVd5Xy0D06fnAIVmojKxxtdWjxBUE/FWOu2pHA0e85KkV7L6KXmw7LijhbcySuUkIDDonASbzpFdf1rw== 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=sKL5Cjh46AbCO5GLJKM7k7DJqGLNep7Cq0iXrerPwbY=; b=gHQe2B2u/BppdIzgIEibKb3YGlQDYOgGyk7BZWxKUgUuIjv8qy0bsovZc08pAyaP8lYgx0GGqqT87rsgfB3LKB2b8bHVii81ATrPNzC3zNXT07X/6rPCz+5lYn9KSG8GVHnVJh8E8aI7AriVbHWzfRmBBs7omJwJMskMAZK6ZaSy8ucUdYBdGl4O6+GPJEwLY6rAQZUb5VxfAZTvqVkVmdtfoZdbvEyUQU2vg7iXXU3UbeWvvJwqP19Dxx05+YsIrP0rnYh4pT2sboS9x1w5DYIFqHX6YfRvrpSIP2WuEOtSEGhX+cpE26nQv5XWwMS3OQEqYLIKz+Vwc8yqqA4rrw== 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=sKL5Cjh46AbCO5GLJKM7k7DJqGLNep7Cq0iXrerPwbY=; b=P8/Vddkl19ppFunt7HSUcPIUKJsNMhckGrJsASf39tW5GSc7UHyPLcLY7eVkXh7NsHshMt7Fgv/gjTsE/Ei1dZa6mspdrGdkXEoYYUoEovKMoK//i3wQGLDTeDWm5TbeE7MI7fbBplywpkY61xnbFufuN6jZQroSjYgqDGU0Ay4= Received: from BN0PR04CA0110.namprd04.prod.outlook.com (2603:10b6:408:ec::25) by IA0PR12MB8695.namprd12.prod.outlook.com (2603:10b6:208:485::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.26; Mon, 18 Mar 2024 17:32:28 +0000 Received: from BN3PEPF0000B073.namprd04.prod.outlook.com (2603:10b6:408:ec:cafe::de) by BN0PR04CA0110.outlook.office365.com (2603:10b6:408:ec::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27 via Frontend Transport; Mon, 18 Mar 2024 17:32:28 +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 BN3PEPF0000B073.mail.protection.outlook.com (10.167.243.118) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Mon, 18 Mar 2024 17:32:28 +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; Mon, 18 Mar 2024 12:32:22 -0500 From: Sivaprasad Tummala To: , , , , , , , , , CC: , Subject: [PATCH v5 5/6] examples/qos_sched: fix lcore ID restriction Date: Mon, 18 Mar 2024 18:31:44 +0100 Message-ID: <20240318173146.24303-6-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240318173146.24303-1-sivaprasad.tummala@amd.com> References: <20240116182332.95537-1-sivaprasad.tummala@amd.com> <20240318173146.24303-1-sivaprasad.tummala@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: BN3PEPF0000B073:EE_|IA0PR12MB8695:EE_ X-MS-Office365-Filtering-Correlation-Id: 1fed33dd-f7d5-4355-3c89-08dc4771623e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ENP+X01U/hIbDpAECWU0pQvYYBJd+e5Q319MKn+wwt+nky1TtZu3F4VEO47oDzC4HY66zDbT2dgRO7Wj4QaXK3heU1Fw0uGd1SXBeahDR8zGrvDz7Gitaklc0vXZBUDZkvzzt/uQuD8HHbakKbSb48BjoC4q7Domv1OoMQSWpWK1MwV1cPdTAxOntpSQ2Hn7P6p0oZr7t/NFxC4Aygh9jqLmeyjGUL8AdyuANGFj00XwRooK5MIN0C+HcU6gVEAkSLjq6EQNJdUgW450tFwMEZ5WMksYz5CKTzXVWBdU1CA2zfjpKC3FVg+9EPOkb5HYHfEEvR4kMSZ5ChCtOteXFvEtJkTh67wPSu6u6y/aeUD03Zg7HoABITVZ/81peLllou2dFKOJ2yq8/Xk4ynOgtq5A/LYiNruSHB6CkYDoI3uTW+lgrEM0nPIDBBazTDRp6r1M6gg8Yenq/268X8peYUj1PCi7j7E4RsC9rz8UiSo9f09F3MiDPdXapGXZu+9cB5TVmR1A6oLnYL3aPZnk8t/1F/zyZRxyX/8frRiei3Wzih/yMp5VAzEg1Mdcy66bWMkuspkcNna6/difOKBvEf5bumI/8n3YsISzrsiVLA3NTjmKFFbVzZW1rxQFKfPgFfI7eiT+la8lWM+Ek1JoQRMLIgf5zbu3swo5GvYmxkYY/PNdcdBjbcu/UHWf0bZJ7ffYLpzT3YfZae1n2Nf5Bcj2gUyYiL7npke3moZn1VeFAqL/qqpkrv/oHFMwoQLs2ZsMQbcqM7jz6tER+Fts+w== 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)(376005)(82310400014)(1800799015)(7416005)(36860700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 17:32:28.4421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1fed33dd-f7d5-4355-3c89-08dc4771623e 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: BN3PEPF0000B073.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8695 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 allows config options based on DPDK config. Fixes: de3cfa2c9823 ("sched: initial import") Cc: stable@dpdk.org Signed-off-by: Sivaprasad Tummala --- 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