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 2432643D0F; Thu, 21 Mar 2024 19:49:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25FA042EAA; Thu, 21 Mar 2024 19:49:14 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2065.outbound.protection.outlook.com [40.107.237.65]) by mails.dpdk.org (Postfix) with ESMTP id 4BB2742ECA for ; Thu, 21 Mar 2024 19:49:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VEX0cjmPn8Qv8A99uy+AM0V29sb1QCLy0/x4XdSjEgir4VvEb2jQRPJWwwh8lYyLvs21d+u4DISM4mXluptRRMOivG5EAFIrIfFxiQF/u9A3K5LLXE5YqpOLwjU/+bfC3EPvv2X5cdBTlNkZ6EWBRQn2KbV7Fz33tAjpZzRrC2i+XAfPRi2xQ46PgjDF0mDI8OzB9cETqyiF1BvVaE8ZnC4y6epMR0T9NOD63Br8NTAMwW6zbjD7DsNC4qGySecWdldFdyuOFjtSgpMhj5Tq42WQDmq596BW/cUVZDsF/Kl/8ulWWEHbUS9MJgJqAD8gCdUcPPRNgtk0gtwmxUrVnw== 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=hAOBPIWlWD0YjXwjDhiIiCAbPUHI5S5Pi9mw8CM8lHU=; b=NMUynbhVX/Yp16DmddpkA22bN5gONq1kW4yxMk89+VkP1TH24jjliWEqpI1InJmQt7qL6e9jCSvQicp4+HTPudc6RFHXf1B837pZoX36uYtX8L2+OcvgLwKcGXZycWt2OizpMR755VrJEVQUApt13J/KBTYi0Lo54EaCxUwSb47oNsECXk49E3om585j37JBj2p4Xd1mpenV2Ms2I08UDTgYQKfBNx8bilWa4hemAPvRVHgOkR/jB/nrMSJ5ZpOv2ZFATgOB4SPC1udBI/QzvFPUwwPyFPwER94JqHEKZPX/vASczyQ5mf1Paow4kSab34jNrak1OSgkeHNADKBt2w== 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=hAOBPIWlWD0YjXwjDhiIiCAbPUHI5S5Pi9mw8CM8lHU=; b=xLXcd5UpiFvsLZNYDjAY42nIxa2rxJs3oMvOzY83qD70d3bGgQGOwechd7Hw5SZCK7qVFFeRIb1rT8+KR97BbKGZ7BImpohatdTVzIa8iRI3Q10EFiJwjsK+dTRcEqbg9yqcdy8vl9KlqJ1oDTCgjuo1eS2d0emyiBbThwjTn8s= Received: from BL0PR02CA0137.namprd02.prod.outlook.com (2603:10b6:208:35::42) by PH0PR12MB7792.namprd12.prod.outlook.com (2603:10b6:510:281::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27; Thu, 21 Mar 2024 18:49:10 +0000 Received: from BL6PEPF0001AB75.namprd02.prod.outlook.com (2603:10b6:208:35:cafe::ef) by BL0PR02CA0137.outlook.office365.com (2603:10b6:208:35::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend Transport; Thu, 21 Mar 2024 18:49:09 +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 BL6PEPF0001AB75.mail.protection.outlook.com (10.167.242.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 18:49:09 +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; Thu, 21 Mar 2024 13:49:06 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: Subject: [PATCH v6 00/10] fix lcore ID restriction Date: Thu, 21 Mar 2024 19:47:21 +0100 Message-ID: <20240321184721.69040-16-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240321184721.69040-1-sivaprasad.tummala@amd.com> References: <20240318173146.24303-1-sivaprasad.tummala@amd.com> <20240321184721.69040-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: BL6PEPF0001AB75:EE_|PH0PR12MB7792:EE_ X-MS-Office365-Filtering-Correlation-Id: 8a82385b-ee7b-455f-7c80-08dc49d7982b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jyfgNQGc6iKtFu/CJRGVpynEkp/U1JOg4B52wVWljxzkCzqLdcrGFrQ6d+LOjvsal7W8wQmDE2qfNfQHTpL1QQAuadTjOSK3UNp486E4HggDYRraPcrKMsMT2U9hQCsUZJcnuf6IGBv9ZJnYBqXVaEssCfCXrs60cK0XWcI4+Tb5zVAi3zP/SObWSEIui8rNKLiaxb/b6Xfd6eFt1UFUinX2TzQQbDxpGVFSKpHPWM0D7qRBRooBxxk8KoNYve0MeT2s6P+TzX9HSXosDwyWCpGlRJz2y+JMEOlNW/RpzH6JATS8/ETBMgBSgZ1RyZbT9NEAFP5OQCT/qlFI7qCRaUTtuNNNX1/808uAVXCQVMwulORygfOKtsDj6AA2LLQDwDYdUxbRgeBYGU76KAO7SI/elZR//024MP5iIm4LSZOxVDcam403QJPSzeWKYooCobkPVInnBA9xa0FkDysHNG5wxA2MFIxEXH4qMSj5KsUuzcGQ69fcvEiZQIS8YbfPLOYXPvDdx2pRCyl/ScXWpcSgKcDxJeyzgDrVPijVMb4SXnNaYhZ45ORN0/ECgED12gmZfv27t2uZnyRQpNk2tohF01K/xRdx0imPzn2TScIMJDD/oy5OWDVd3uwmXO6dnVkHcYwMNW0o4gzf9D6ruEi35BBkoQF9wLfub0yyTJWCXLY8HmL25yUaTACH5/ertwCjcHYjnlon/P/UC8+/bRRkKzx4fH7wQfXc8kDzf3WNlag9qbq92BUGry1avoGtUzBGdj/Tt/8cRgbGDhGZWw== 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)(36860700004)(82310400014)(376005)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 18:49:09.8457 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a82385b-ee7b-455f-7c80-08dc49d7982b 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: BL6PEPF0001AB75.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7792 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. The port ID constraints were also fixed to support up to RTE_MAX_ETHPORTS. v6: - split queue_id, lcore_id and port_id changes as separate patches. - updated git commit description on individual patches 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 (10): examples/l3fwd: fix queue ID restriction examples/l3fwd-power: fix queue ID restriction examples/l3fwd-graph: fix queue ID restriction examples/ipsec-secgw: fix queue ID restriction 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 | 31 +++++----- examples/l3fwd-power/main.c | 59 +++++++++---------- examples/l3fwd-power/main.h | 4 +- examples/l3fwd-power/perf_core.c | 14 +++-- 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 | 38 ++++++------ examples/qos_sched/args.c | 6 +- .../guest_cli/vm_power_cli_guest.c | 4 +- 18 files changed, 119 insertions(+), 113 deletions(-) -- 2.34.1