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 0A8BA4373B for ; Tue, 19 Dec 2023 03:56:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0604942DD3; Tue, 19 Dec 2023 03:56:45 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2074.outbound.protection.outlook.com [40.107.243.74]) by mails.dpdk.org (Postfix) with ESMTP id 53457402BC for ; Tue, 19 Dec 2023 03:56:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VbDEXM5NM7bn2eE+DkXH3c5QUTTHjonyaPDktlyGhg2FExvVtCcb8sGmV0eJm3JhPKM9QhHPJCdga0bWvcDiIQUxm6hp182cmoAhek8fny+TEMjX9J2c6g+2B3SAgZBt3fp7YbU6cDymz5NZk2WcxNbopmU6iD6XIieO/4r3GHTmyAlVBkY9HvGzfIFR6Eut0GZNbrSgr3ITwDU1beUVLkbk2PzrRVhvhT9eoKuxzagHwpXUxwBVKU5uM+msA9UFgSuQuqFDYRPa7F6q1WLBvUw10Mr1YqYKM9lCZj7Mc4lIsWJbqFbIXp6ibRKJhAmKas3IHTtgcfpsRCoA40QUiA== 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=UDVn1EmK4OoB1tFf+1Czz6bi7cjcmnrGnTcDmRiwvUDi7nkfPuAQ2VtylCqEV4bnBjIanR/Xz5Exefc5gy6kd+SR7XCkIFNPnd6o2GrDxgIgYvYRKB+4emqIiznE+c1qBKUieuZgkYv5Z5Q6OYedHO86BmN0B4oc67C7TAInn4o9nbVxLaTetrxtgVqiEPE/iPYLsqxsZnVD+c2S9rkeVwhUUQBbZ12NhurS15/UFP4ytzc7u67G8NBGZIoeIyomRmqI/L7oVKTi8+/p4JqWT9eg/PMp3o9AW9dVl5Ib86ESb6keyocg9A70+bZoxw1Yq0DqvxFOYD2EqBIQZDuJ/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=dpdk.org 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=GMNO4jPdH3yVsCRxqBsYzgEeI1XQkOeUp00lH3SRWcULQLjsYKp3zKDscAmNU/aksL3I3idO4Gsg9GS3+QWlpoi09yynuOUuqV6BjpfyP7d1xxzMCX/6deIaxJSNw3orkIjrKPwOjc6/Jd4Kh+98prAnUO1RjOxDzviH5AbPEN4= Received: from CY5PR17CA0027.namprd17.prod.outlook.com (2603:10b6:930:17::26) by DM6PR12MB4434.namprd12.prod.outlook.com (2603:10b6:5:2ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Tue, 19 Dec 2023 02:56:41 +0000 Received: from CY4PEPF0000EE38.namprd03.prod.outlook.com (2603:10b6:930:17:cafe::b) by CY5PR17CA0027.outlook.office365.com (2603:10b6:930:17::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38 via Frontend Transport; Tue, 19 Dec 2023 02:56:41 +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 CY4PEPF0000EE38.mail.protection.outlook.com (10.167.242.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7113.14 via Frontend Transport; Tue, 19 Dec 2023 02:56:41 +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.34; Mon, 18 Dec 2023 20:56:39 -0600 From: Sivaprasad Tummala To: CC: Subject: [PATCH v2 5/6] examples/qos_sched: fix lcore ID restriction Date: Tue, 19 Dec 2023 03:56:06 +0100 Message-ID: <20231219025608.2538-6-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231219025608.2538-1-sivaprasad.tummala@amd.com> References: <20231218074905.42749-1-sivaprasad.tummala@amd.com> <20231219025608.2538-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: 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: CY4PEPF0000EE38:EE_|DM6PR12MB4434:EE_ X-MS-Office365-Filtering-Correlation-Id: 65b73907-57b1-4d42-8962-08dc003e2097 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h/MxzkaK3s2jx+loNoDcxwrFBIa7ReliJNfhE5C5rG0GR4oD/sD6dvYhoKJzQ4fYsDnhrf62VahJJ4ChtEae0cUajhQ5Ye0P3euFKDo9NASBfIleU8a80jyPkNn26oEkDJdskfSQ+IOkOKwvYhJV5Kk8l2ZvOWX1uwMh76DqtmzO2J39NWgrT/sxoaKxHBZTEdrGLx/2cpJCfnagpoDnsGkJjzSPkrqi3+KRKsPYChjXj4lITXNoB95E/a7eU1rEc6W+Ph3F0ipaKIMQW3mt7r8/yVgwJArKco0+w5bQ0XNksCg+usnkKdAfiXjvaYAvCfhWyaLH5n5CI6oODIptOouAspcR0hcBmFf7fpMW8kJVG95mTk4XtFogYyimmGz9KOwgeB2gUYjm279VAXxlKQ5CQdT1zGUp3pbuaRVBPKAE01F1yi0ronsaHXcLuqIWXXED+i7j+ya0bsoftlNCdALBBmp7a7NC7xfhLjeOd3ryeA2/U/XZ9Ax5zN5uhU6hyBNyFL4yLxHNf+LeeKd+mOx0PGG2XdtJlXWqfUys0ppz1ht1Wzd7y9PpAAJJGW4akE5nP2QmB35CxddZkKFJDpi1XClQnWCempPPd9zGSBDCOOkFr7dQpAfkVJS8ayQl+yE95iqduANKQjYisIWfK0YeZ8wecksVq6ipnCl62iLCFvOxCgyTdG2KMAtpr4m/euwYTOhaGgAyTtJNLJ+5+qdloxvCM56oK/g2IxNh7yh2igk+cdQIzNsd0I/AAt5MZ7tjktAEAQW3IYS+MPRBDw== 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)(39860400002)(346002)(396003)(136003)(376002)(230922051799003)(64100799003)(1800799012)(186009)(82310400011)(451199024)(40470700004)(36840700001)(46966006)(40480700001)(40460700003)(70586007)(70206006)(82740400003)(81166007)(356005)(36756003)(86362001)(1076003)(36860700001)(478600001)(44832011)(426003)(83380400001)(336012)(6636002)(2616005)(6666004)(8676002)(2906002)(8936002)(316002)(37006003)(5660300002)(6862004)(4744005)(26005)(16526019)(41300700001)(4326008)(47076005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2023 02:56:41.3604 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 65b73907-57b1-4d42-8962-08dc003e2097 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: CY4PEPF0000EE38.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4434 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