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 BE162438E3; Tue, 16 Jan 2024 19:23:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4406B40278; Tue, 16 Jan 2024 19:23:51 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2079.outbound.protection.outlook.com [40.107.237.79]) by mails.dpdk.org (Postfix) with ESMTP id 95ABE400D6 for ; Tue, 16 Jan 2024 19:23:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QBj7SkoSyYxOfqMR7cHuT3o2nayOlVo0bfIR6ScjlRg4zq+pssxLEAqVwlY9LSofQ0VE1z4Zh1xZy93FbP24+tG4jxe0OR3WIAiPvPi5s1H/mg4Bg5FeMrjpd6nUda0cZF8pfSQTg3fiOCZU9avWlDgtPDRJwnRMV5qnaVa3vNi6bSov8IyY80Nnd2FxiBIE4NvjGLmfr8XOcUD27nRQ+gB7K95l9fD+Vcx6Pa+6iuAUhglI8j3CbvgbKKogFyPEtz/6K1u8cGk5kh/ZkiMYOUwDb08wAIiUwI8JKs227Mt6ZERs5+HZ61ITXucHA5edqeM8iGnFtJGS3ik83DfnMQ== 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=30TiRv/D8FC0Hvzm+EpCTNn76PpaRswz1MaBO6ZbjZA=; b=lr1NelbWz4Ev/qJPtoTiFjHKL1AHjtY5ld/FkXX1PbiU4lm/IOVOiT2Fm1+Zfw6YUPq70k2lzLWlJPs4mERDnJ4UFZwxM7GbI+1C7IjzM2HfTFMq2Mdxc76ezZGXMDxcOnk3nN6pbzRgeOxAz4XYD+EGPwgixMMjqqLCCDJQGyj8Sr0FU6QpHPXpzupdIcmdVBOym4+S6DiuwO0hEZp81bs7mIE39BjyeiO5bZCvSPNv4GG3srJMtjnkHMU+/ot9WINSobuahNKu3lGNSNc9tKDfg7E1/UVXD4WTJCRvQWVurtfbpadOALSkS/inSscdldLXvOG5pwbVMVuKJcdWzA== 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=30TiRv/D8FC0Hvzm+EpCTNn76PpaRswz1MaBO6ZbjZA=; b=wcohqG6bGplw1LQkBWm5hY3ifjuGKlyxomdaQAP6v5VZY+jSGAdC7t/+9EKN0zEK5sXw+Rd1DAubi+IJKaGHb08Xc6sVHldETZU/SqOl2GjT/6Da6s6njEK1Qq5Gus4aY2zF1ns2UWQLFKPGbqVh0IaVxyfXKuytOIYJYYNk4bA= Received: from BYAPR07CA0078.namprd07.prod.outlook.com (2603:10b6:a03:12b::19) by SJ2PR12MB9191.namprd12.prod.outlook.com (2603:10b6:a03:55a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.25; Tue, 16 Jan 2024 18:23:46 +0000 Received: from SJ1PEPF00001CDF.namprd05.prod.outlook.com (2603:10b6:a03:12b:cafe::af) by BYAPR07CA0078.outlook.office365.com (2603:10b6:a03:12b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23 via Frontend Transport; Tue, 16 Jan 2024 18:23:46 +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 SJ1PEPF00001CDF.mail.protection.outlook.com (10.167.242.7) 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:46 +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:44 -0600 From: Sivaprasad Tummala To: , , , , , , , , CC: Subject: [PATCH v4 0/6] fix lcore ID restriction Date: Tue, 16 Jan 2024 18:23:25 +0000 Message-ID: <20240116182332.95537-1-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231220064502.2830-1-sivaprasad.tummala@amd.com> References: <20231220064502.2830-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: SJ1PEPF00001CDF:EE_|SJ2PR12MB9191:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b2f637b-7234-4b37-5a14-08dc16c04716 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yQo3cyogZAlcmqf9qlgoXDT0hHA2un9QeNE5gLcVdpWUW9Ap1/ohch6lwY04cb4Jc8DWFnjr+IhKMatiEX00MEoDUp/mZoZPE6HXbxZJP864KemG/DUDP92oK2IR5boQDt9JedxJjsMGXW0Rk/geTd/ehupOYaogGpUI8p6KtjnzCmmZQQ1cFbfHxCmtzI9S0naP546kQ21e7PYzOfVwvX423qXFoMNSfKEEWtD6iJT77E3RkndTD5OVQBpET5n589MtbG6Kg7JW+VOCwgBNowfaRKzS5PWW2AziFzx2BUw/HC1PO3yxcIWq8prqzdUu7rTGHTPj1cDJyvTATW9YCI6S5evwmNxK0wAN+q3uUlHkYgee8OEpimigpMf1aekNo1rjWQoJCE0Oc4X6Hb97hvi1tbb1XbUxRh9f2Ugvejc8o5ghm3kQj2QPWtRPgr4w0NwSsyRXskhUvMKU23+gl1SUpm5zXxbVTEoM8RhMCgqGySV+1BYNHlUwnwslWU9Wmi+ETVDW7JgnSd/U3yygGvpMk4FBx/oQcs/CQfYVbbb7s2i04Iy1PO6PTjtroYHfO4WVYSMz/9aVoYWSGHSXdGwNiAERyrm+TUI5NJ9bklGfjcForb2/6L6eWYyIZfoeOnEmoh2/NPtDZFyaoza9s1QKWYOqVIieSwOo5hrETClXIO4kvgopglaSsQeY8XTwvYZNhm7fuHP0dWO+ZbGZ5yIbEuLQ37Ea2yMuOfKSMxgqjs2oq0nkaEM2ovpUhEQnCdkj0BGBuTuV97KYm7DPyA== 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)(376002)(39860400002)(396003)(136003)(346002)(230922051799003)(64100799003)(186009)(1800799012)(82310400011)(451199024)(40470700004)(46966006)(36840700001)(40480700001)(40460700003)(2906002)(6666004)(36860700001)(5660300002)(478600001)(81166007)(1076003)(356005)(44832011)(110136005)(4326008)(70586007)(41300700001)(8936002)(316002)(36756003)(82740400003)(426003)(16526019)(86362001)(7696005)(2616005)(47076005)(26005)(336012)(83380400001)(70206006)(8676002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2024 18:23:46.0696 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b2f637b-7234-4b37-5a14-08dc16c04716 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: SJ1PEPF00001CDF.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9191 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 With modern CPUs, it is possible to have higher CPU count thus we can have higher RTE_MAX_LCORES. In DPDK sample applications, the current config lcore options are hard limited to 255. The patchset fixes these constraints by allowing all lcore IDs up to RTE_MAX_LCORES. v4: - fixed build errors with queue_id type in ipsec-secgw v3: - updated queue_id type to uint16_t v2: - fixed typo with lcore_id type in l3fwd Sivaprasad Tummala (6): examples/l3fwd: fix lcore ID restriction examples/l3fwd-power: fix lcore ID restriction examples/l3fwd-graph: fix lcore ID restriction examples/ipsec-secgw: fix lcore ID restriction examples/qos_sched: fix lcore ID restriction examples/vm_power_manager: fix lcore ID restriction examples/ipsec-secgw/event_helper.h | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 34 +++++------ examples/ipsec-secgw/ipsec.c | 2 +- examples/ipsec-secgw/ipsec.h | 2 +- examples/ipsec-secgw/ipsec_worker.c | 10 ++-- examples/l3fwd-graph/main.c | 31 +++++----- examples/l3fwd-power/main.c | 57 +++++++++---------- examples/l3fwd-power/main.h | 4 +- examples/l3fwd-power/perf_core.c | 10 ++-- examples/l3fwd/l3fwd.h | 2 +- examples/l3fwd/l3fwd_acl.c | 4 +- examples/l3fwd/l3fwd_em.c | 4 +- examples/l3fwd/l3fwd_event.h | 2 +- examples/l3fwd/l3fwd_fib.c | 4 +- examples/l3fwd/l3fwd_lpm.c | 5 +- examples/l3fwd/main.c | 36 ++++++------ examples/qos_sched/args.c | 6 +- .../guest_cli/vm_power_cli_guest.c | 4 +- 18 files changed, 110 insertions(+), 109 deletions(-) -- 2.25.1