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 3DA8E43CE8; Mon, 18 Mar 2024 18:33:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40B9340E72; Mon, 18 Mar 2024 18:32:38 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2088.outbound.protection.outlook.com [40.107.96.88]) by mails.dpdk.org (Postfix) with ESMTP id 5DA39406FF for ; Mon, 18 Mar 2024 18:32:36 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e8CtRpHwMBiEbudW/QvZPKWX/n1wtXUy9R7AUeW1oA4oBVIJ1tjLvzdVz0OQxUzTB/yxq1g99O9cdNyM5kACfgJsNZC700bwL2G4EmZz8EjyZK/NGDMlo68ejhfZNtZbG/huDdgZYRkMuJEU+mhKgv1cKZMfdiKEowwEtwOms7p9EmnQbx90EvfrkzqXh+5jc6pMR6IOUVINfm8UcMhPk2uEDddK+XAHmPavKlH+cCHNeALoMWbdYKGbjSyQs7MSSepGdbJaoLi844ji7wClvkY5KStJLnllugIKYjdy76f2AlwWbnExQcgkxcu375XArQBmaTjb0FJQ5UFPGN/1jQ== 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=8YddQQvyN66HKTyeCpL8RkXuutu2IqchOLRutmVO0Gc=; b=Sbhy1f0aLmMAHUQRd74DsjffCRJCSGxqldh3G7NhshDje/pmr07kCU/njYnJn2V4RABm94M3g2/6CWMhKyN5RUcEvr2RAtOK7dJf6300u20HLQ2H551E8H0HFfk5QEVIjZRGKfHjYsNuskWL7i/liiuTtptF6WojetxayZciUrQL3IZUj9LgMuuKJqNqZd+0KP8fMujpNcZKsylWrF8dXqWNdH4UUE0HrN81eOUxKepS2RGdV/AiWuBfE7LBgGLoedVp7kzKhHBzHJnVtGJ4jomY3RKOE/i2qfUfgCqo3JHje8uaz7E9IKBlTRROOXmZTl3x1NpOk6PEii7hBQlzbw== 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=8YddQQvyN66HKTyeCpL8RkXuutu2IqchOLRutmVO0Gc=; b=PmBIliNLIo7PdEYk1/ZGqtK25aZZSGe30TxiLjysnMLx7ChlGe6qO1AE/W7vn8KasiLnwNlMK6wqhpw+RPEXib7g2ynO+Ctsa72DCc+RE4mjM0mzlkX6DCZFFO56bDo0NgD3ZSDHy6r0z2K1SY+Khpp/UA+L0cD0Rca1iqr3iGg= Received: from BN0PR04CA0009.namprd04.prod.outlook.com (2603:10b6:408:ee::14) by SJ0PR12MB6758.namprd12.prod.outlook.com (2603:10b6:a03:44a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.25; Mon, 18 Mar 2024 17:32:33 +0000 Received: from BN3PEPF0000B072.namprd04.prod.outlook.com (2603:10b6:408:ee:cafe::ab) by BN0PR04CA0009.outlook.office365.com (2603:10b6:408:ee::14) 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:33 +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 BN3PEPF0000B072.mail.protection.outlook.com (10.167.243.117) 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:32 +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:29 -0500 From: Sivaprasad Tummala To: , , , , , , , , , CC: Subject: [PATCH v5 0/6] fix lcore ID restriction Date: Mon, 18 Mar 2024 18:31:46 +0100 Message-ID: <20240318173146.24303-8-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: BN3PEPF0000B072:EE_|SJ0PR12MB6758:EE_ X-MS-Office365-Filtering-Correlation-Id: 07c31247-ad6b-4b67-63b6-08dc477164d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kAueSHzzLSC4HR25j3MQImMel99S/PKNsxnQyOo/t2YgAar3uKA3vq1IU7NxfNhq2Sb8GA6UeBxrmREeDlcdNDCqzQkUBC50UYNq/uOml36oGP1BZodR0S+Llf8ouNpk2+sCtIxvMIuNhAFXQzDyZHrwwzVZCUNXV8ebCGTPzO8+V4CcwS+Q83Yo0gKludR2fXyez9WagIXV5iBVWcZ1aEpYl3Fvbex0lfiUw6b4kzy3pwrsbh4NG+gkzpakAjyA71Wr3CT9PDooXUmgSn68WOyT/hJSRrtaseglu391vChkZxZPj4lnb10l/JbFT8NEY1ji3TYPvplrCKK8TE8GX2rtKSMj2JsIkZyWpsipm7sYaYI7ou006ZJXjmW3fLM4UVCd7ysuw7wOj+OSMTkxc00mSjFX9EVXmPMXCBoxW78ZchSTBt32zCQR5KbNTlsfr1a3vrA+2/5p585/o1EsjHNlR5C6d96pN9CD/wpp5UNpE0SNyB3EwbCXVBWvGkCYciGL1uD/bjt9YlPpDr4GWcx6sUGgdI1KEejiPKdaR5iTfZXyjAXnFqQYd6k8rsVYnm8mAhdSFiLzj+9edoqv9zfMRgWTqbZX5rcJqh27YUokna/8TLMCN15tXQGfo1fR1ffThIu7arK96bxYWoCcKFnYNcnR7h2FHkG9y/LsJtAggqlLRMRdzc8SJwhosZ55Avwsv2k95PhieYAqdQi3IoQ/L9P5HNhvuwkwR4obdGadiAthxf3j9TpIIRY/uSNlSzAD756Qzr5X/eUiH/6stQ== 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)(7416005)(1800799015)(82310400014)(376005)(36860700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 17:32:32.7750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07c31247-ad6b-4b67-63b6-08dc477164d3 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: BN3PEPF0000B072.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6758 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. Also the queue IDs are increased to support up to 65535. v5: - updated lcore_id type to uint32_t 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 | 35 +++++------ examples/ipsec-secgw/ipsec.c | 2 +- examples/ipsec-secgw/ipsec.h | 6 +- examples/ipsec-secgw/ipsec_worker.c | 10 ++-- examples/l3fwd-graph/main.c | 33 ++++++----- examples/l3fwd-power/main.c | 59 +++++++++---------- examples/l3fwd-power/main.h | 4 +- examples/l3fwd-power/perf_core.c | 16 +++-- 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 | 40 +++++++------ examples/qos_sched/args.c | 6 +- .../guest_cli/vm_power_cli_guest.c | 4 +- 18 files changed, 122 insertions(+), 116 deletions(-) -- 2.25.1