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 832574372C; Mon, 18 Dec 2023 08:49:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 89F1C40E8A; Mon, 18 Dec 2023 08:49:29 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2073.outbound.protection.outlook.com [40.107.243.73]) by mails.dpdk.org (Postfix) with ESMTP id 50D6A40DF5; Mon, 18 Dec 2023 08:49:26 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DYF6vMDfyvd9avHhjBTlHyFcJR5gP7vcoP4xhVDlRqMufBP+grvM/h4trHrx6JWn+Vprn/9Ez/pgXwCh2BdyGF4wo1LqJL0zxLKrlz560kWkqRqqMCs+3BaeaDuXHI1LpZrmFQWt1lXcSZVINC5gDX/Ir9DkNTR3Idzh7+G8N7F9r8nQkuf+0YyVCZOGE9k7biLsVkp0KxXM+MpjjJBLay0jlpdlAnTgLniStHRlP3mwJNy/pzH/+VsxGbsy9yGlTpuz+PiB35TvBNsx/Rds8Q9p9UEr0jaC0WXSQ9EGypHJcH99z4EW7gqt7N/CZ0m5Qa5RiS1HMTeAIqflsK9pZQ== 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=KBbY8WdpOW6Cq0QmbBZoL2WQsE9ckLyoJv2JulK54SPRrnKbAg2dsr509x5jSoNzSbDKRmfDfdN0LrPgUxoDjeIKHmivaeI5XNrzqVO3AaY2yJhuRHrM98CPH8obZznGckFrN8w1vzPHja4lIKbjvH+IGTf7BE1Arpn4EuGfhFXNNgqmjSg4XOprBf6CuYdGFxC/OrJs3mm4h3n3aLApnVJFyjEDxv0/z9LKXwCZf3HTTLWmlxJQKymIQ5E+ytZWMuAkJGeITpm6u3V0dM/cK18EEFIS4HgPcUe07JiR1x8UPh82FSwxGISKxB2gqBSLtVQJZdj7BIV9zY19LneAxw== 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=aAIsWaoNSCelEA5cBZVOScWt0y2/QeOYtHqysz6kTpZ+hvWQuGRtFWghTp/mYGpx0XlziK7380KVxNDnx1Ty3Wz6AkOQSPE/Cme89cQVruC9XQeR6/2aXNLLpXsQizpPr2HNMOtzhlXKDuI9jyUB4k8SVbnL3JxKv5wlE0z/Yyo= Received: from MW4PR04CA0145.namprd04.prod.outlook.com (2603:10b6:303:84::30) by SA3PR12MB7901.namprd12.prod.outlook.com (2603:10b6:806:306::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Mon, 18 Dec 2023 07:49:24 +0000 Received: from MWH0EPF000989E6.namprd02.prod.outlook.com (2603:10b6:303:84:cafe::4e) by MW4PR04CA0145.outlook.office365.com (2603:10b6:303:84::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.37 via Frontend Transport; Mon, 18 Dec 2023 07:49:23 +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 MWH0EPF000989E6.mail.protection.outlook.com (10.167.241.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Mon, 18 Dec 2023 07:49:23 +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; Mon, 18 Dec 2023 01:49:21 -0600 From: Sivaprasad Tummala To: , , , , , , , CC: , Subject: [PATCH 5/6] examples/qos_sched: fix lcore ID restriction Date: Mon, 18 Dec 2023 07:49:04 +0000 Message-ID: <20231218074905.42749-5-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218074905.42749-1-sivaprasad.tummala@amd.com> References: <20231218074905.42749-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: MWH0EPF000989E6:EE_|SA3PR12MB7901:EE_ X-MS-Office365-Filtering-Correlation-Id: ff2a2cb2-772c-49fb-5845-08dbff9dda25 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TysaFy/bucMXNTT6CwPCwzBuloEJnPY9PMgtyPh+h+EjnWK+5cn2SoBD23bkGkNQbZ1HzYUxJHj/gc5+FIEtCF5fIcM9Pc1yDCZpqcw49/2IqzcUq+BxdLzpL9OKPBuOSmbRZ84Umks2iW6FV2DztA9ZYdxKHaruzjgJhfdvu39FKxDxMu2hz0n6dg+uc+GbTulFW/xk51/Pxk7zvFz8tyfDuRFQsTdk+v8w4rATCzsOMUy3qB7ZEUKlbfGBvG8wLRkir3du1kbJlK1nrU6XPq5A0PMDdj635sZAts3iw64R+p+DaQMApFjLBIHzXmweQxW3erI5pcaIqUmIFYm0USKX4Drdl5YUFKCMxtdIYp4+bZVz1Z2Eg7ZK4jceRJ6wuyEgrdMDanK73SNjDABUlnNi96fYLhAGSXMwXDk6RYM+J4Gwlfz3tavspvIng0UH8YAArsZIBCXpdbzwErfET+Z/JKIKEJO0abjrJHIqty1AgtzrL3smbk6cSJVzhuTL3ZsypeG+tCTzpg3qIbQOUM5gB9HGPfB31utZJ9Ha2eJohygcKQZCE++PuGyFf5nNcvKpQT8/msq/n7GKxMG5RxYrHjHldDeZFXOCRuoL+5IPetTPAS9bhJeHXrBPD0ODx9rQWHy1NOMz8X2eJMWJD0FLoMRccN3kG+2+QGERzv01Mu/9aY839IJ0/YTi8MjIdblf/gmTlDNlZTo7WB1v3o2qq2og+ULHHBUw7n8+xfXrM6l8yO92bP+Mp1xh4YqmuZAMgqf+m3ZXu115y2K94Q== 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)(376002)(346002)(39860400002)(396003)(230922051799003)(1800799012)(64100799003)(82310400011)(451199024)(186009)(36840700001)(40470700004)(46966006)(7696005)(6666004)(478600001)(47076005)(2616005)(36860700001)(83380400001)(1076003)(336012)(426003)(26005)(16526019)(4744005)(2906002)(5660300002)(41300700001)(316002)(54906003)(70206006)(70586007)(4326008)(110136005)(8676002)(8936002)(44832011)(81166007)(36756003)(356005)(40460700003)(40480700001)(86362001)(82740400003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2023 07:49:23.6323 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff2a2cb2-772c-49fb-5845-08dbff9dda25 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: MWH0EPF000989E6.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR12MB7901 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 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