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 95D1A438E3 for ; Tue, 16 Jan 2024 19:24:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DA7D40E28; Tue, 16 Jan 2024 19:23:59 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2076.outbound.protection.outlook.com [40.107.220.76]) by mails.dpdk.org (Postfix) with ESMTP id 7F3BC40A87; Tue, 16 Jan 2024 19:23:55 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I/XOBkzmIOlH8Y4ggwcP0akQ77u4Dukqo8/w/ir/LYmVOp0uSKfhfxxmeKi80DrPA8yHrV7pvJWs4rVzXoaWfTG+sJUi0f/kbQ5Y+FcyKiUUkIO1OItW2irwOYAsu7DCSfHaYy6CpD5pXv+psej+tJTlw4+OFludH4QD0PZdR2+xNXhKx1DnjZJE31K5XRZWryIFuWuFPW5s9dyThn+P+oCPUXp/vkYHTL56llz4BoAHGp1v03UVbFarLBakk60aCcjmIemo0RYi4AI3l3PO6HPQj7Dot/gicgfvsc61kV96LM4yziu9rEbIEEuRicOS5XainJ+3S4I9LXcL09xJ2w== 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=jD6y2+mVBnTppD6Uln3qKfA7bxRgibnJHITerqEztrQ=; b=G9ncVFGuZ38jFucjzoyCahQQZNtLNGEvz3HBHdYJSFr0zeDmsyPyG5LaqhFHpdiEqwyK8JfaiTGVdlM7dR/TorP64hx5xbBUCzlO7AzfTuLuVcnE9YuHMVZsQ7udlJjsi4SH88/9mjOhqjwNuFa4iFZLl8hXX/iwrvQi8OIw0BcN41cHJG/qurv/6lV9krh+C+8pMFhwmiceWkb4msNFUyBqLjD+L6YbBs8MHGtHqVxITReLxcYxnmGz8tgHC9ckqIPUI8rGxM4dqSXI1j/v/+hkOgcL7EJWKl8FvOt+FUPh+Uz7qTivW/R87a2uFuhRqbWv4nrPqTBKTOdDekQDXA== 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=jD6y2+mVBnTppD6Uln3qKfA7bxRgibnJHITerqEztrQ=; b=xzyTHybkqiLSFtrwnWMA3kQVzEdbCjF29vWVv9R/BK7bpVLdLgLVRggUKbssGktjuSUaBewPhcfrhoPHSOYGoJH3JXUx6KB1ZqzeaCSblMPKgqoq8ZBlAp9gEntgzWH+W9ngyLgY5xw2rF+bdn6mb6bxm15s9TH/2paPz5zaCNk= Received: from BYAPR01CA0053.prod.exchangelabs.com (2603:10b6:a03:94::30) by BL1PR12MB5333.namprd12.prod.outlook.com (2603:10b6:208:31f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Tue, 16 Jan 2024 18:23:53 +0000 Received: from SJ1PEPF00001CE1.namprd05.prod.outlook.com (2603:10b6:a03:94:cafe::70) by BYAPR01CA0053.outlook.office365.com (2603:10b6:a03:94::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.30 via Frontend Transport; Tue, 16 Jan 2024 18:23:52 +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 SJ1PEPF00001CE1.mail.protection.outlook.com (10.167.242.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Tue, 16 Jan 2024 18:23:52 +0000 Received: from 7dbylenovo.amd.com (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.34; Tue, 16 Jan 2024 12:23:50 -0600 From: Sivaprasad Tummala To: , , , , , , , , CC: , Subject: [PATCH v4 5/6] examples/qos_sched: fix lcore ID restriction Date: Tue, 16 Jan 2024 18:23:30 +0000 Message-ID: <20240116182332.95537-6-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240116182332.95537-1-sivaprasad.tummala@amd.com> References: <20231220064502.2830-1-sivaprasad.tummala@amd.com> <20240116182332.95537-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: SJ1PEPF00001CE1:EE_|BL1PR12MB5333:EE_ X-MS-Office365-Filtering-Correlation-Id: 254fa43d-b364-411c-b4f8-08dc16c04aec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u5szlC6raLFKzJa6dqezcsiJg/2LeRQysR2dUEudw7ybjm7d4SJXqX2FGH6muL/bepB7Z+/OZ99+InrKMmmgN+5AucOH9mBHSSC8lg6GZM1qnvdF3r8kDeaR6YmNM7XULZit/EXGjV7CrJ2008Za5ISlkQXR02WRsFQVDgkcBnU4Cw73bQqpnn7xxpxyN754lt9Gy+uzrZYgRzH+hlbtEH/YHO67yPnjXgWeOn2/RgEmFJWsijaj0PNxcLigmCb2dov2VKTzDkd2dIqIPuwY7uymQ3o0Zd/KhNlNbhc8+rmxGzIHw8koi1FghKAH0geDgCPq1N4kwct0udn938qr3JVz8uMckJ8uqE3mjBtVQT6ogqV1jlOsXthiI3RS9MHeUqSyhTZXvx+eQ8yqT5wUJlDN6ClAsZ/QHFOY/+oSe3Jehg0QhGtnU+l4wdV4w5QaUyngIsg+9X3XjdTGUnvYYFBZTTnWhxE+AFDj6Ev+PQSIR5uZ2vUDMZk+9Enk1WqfnfTIN/zxLcjjRziT4TUdBPzchXrLYYg0yW2W24pR1cP8M04Uz3tdNuJolrRaEheFsWSGekVVIQm4tuuXEntBoqJKvWyY1HgWD5YBW99ktxiHVjFhwdLKn5L2+KY7kTeNEWvUJz/D98eLKO8a/tFaW2s4LlpNBSR8e612Ncy1uts061t+HoP306697QaIPcJjY0pfWgiagtKqq7yvpHSOTdp3Aoaaubp7vUiG/QlALqdxjIZQB4TkNYP+Cc0JGM17GZ6nICLM2CFCg3sApLwhJg== 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)(4636009)(136003)(396003)(39860400002)(376002)(346002)(230922051799003)(82310400011)(451199024)(186009)(1800799012)(64100799003)(40470700004)(36840700001)(46966006)(81166007)(36860700001)(47076005)(82740400003)(41300700001)(356005)(36756003)(426003)(4744005)(2906002)(7416002)(26005)(336012)(16526019)(40460700003)(5660300002)(83380400001)(40480700001)(1076003)(2616005)(7696005)(44832011)(478600001)(6666004)(70586007)(54906003)(70206006)(316002)(4326008)(86362001)(110136005)(8936002)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2024 18:23:52.5076 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 254fa43d-b364-411c-b4f8-08dc16c04aec 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: SJ1PEPF00001CE1.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5333 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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 e97273152a..22fe76eeb5 100644 --- a/examples/qos_sched/args.c +++ b/examples/qos_sched/args.c @@ -182,10 +182,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 = (uint16_t)vals[2]; + pconf->wt_core = (uint16_t)vals[3]; if (ret == 5) - pconf->tx_core = (uint8_t)vals[4]; + pconf->tx_core = (uint16_t)vals[4]; else pconf->tx_core = pconf->wt_core; -- 2.25.1