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 33A5343D51; Tue, 26 Mar 2024 13:58:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E193E427DC; Tue, 26 Mar 2024 13:57:41 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2058.outbound.protection.outlook.com [40.107.243.58]) by mails.dpdk.org (Postfix) with ESMTP id 71E96427DC for ; Tue, 26 Mar 2024 13:57:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M2zIkxwzaTSl+6c7d1lBt3yvHJI91Unc1KVcrKHXjqCDgC4eB+I0lHJvcYR1A4fFsij3bcZUta5haMjK8AY/cMZtY4LSMFKmcgCknXnQgqifMhKFMsHN4sYlVMeLOcdhIAvu1h6o4jx/c86Sztz4EHn/Cl9ppLKrfCBEy+dU0e3g6jthM+iK+ABcx2Z2PCgKeZc2HdVOQ36u2izCR8YtoibPjbiBIn/v5/D/FOdMGRB8vpcyvLXMwba2vapE2K0JfKSMQ7Y6RV+JFgYoM4xjDEpW46xLM563+0SLH96HLxXEIhe9622Zw3wJ58pgScs2wCNaBRc9JFMkASKKu4+ozQ== 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=DEszTUzEjiTK8laA3Nq+3ekInC5qA/kxDH6oedcQuMk=; b=UwQ5+Cxb6Og1GaaIohDnok44RauWZ/I5ICmHHE37kf1di/xyJRArKufIx2QLoVAeHq6e9K4wIjIhySfEVc59BzvUKkcxqKbViJ/VYxUgJJKe77aCjeKAIoxrr1MjJ6FinvEJPDM/4C7Zzhm8RJDJfBYdn5d8jk8cy31dz1ZCkcS9XArKqBUtJnRGwgNrCaei9/RAadDVVN10c5f8SDD1zSD7+0yhVvdXbJgJeeP6x/1l1qzvI9smZfCHtistWor1+IjGzsRl8JjQOHalocJw1JVV5a2i90MNJMSGgT6USdSHIHq0mym+3y+94b+7O8BVUbAWdXjYMoTaxVj/8ZGBBw== 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=DEszTUzEjiTK8laA3Nq+3ekInC5qA/kxDH6oedcQuMk=; b=zAAY266sz+DfxEnSkxMZ7TwMJiRgllwILqyuhejgaqgX4K72iCZRK6G92vv3UF9bQic4NwBYFo9vG5IkAMK2XE6ipwGxo7bvuYKhY7M8S76zJfbyKVz2Wm/n4PlmtQ3rgxptKpqJ9yO6k88M4XyU/Jy3B5MFstHC3JcLKeOI98M= Received: from DM6PR02CA0121.namprd02.prod.outlook.com (2603:10b6:5:1b4::23) by CY8PR12MB9035.namprd12.prod.outlook.com (2603:10b6:930:77::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.32; Tue, 26 Mar 2024 12:57:37 +0000 Received: from DS2PEPF00003444.namprd04.prod.outlook.com (2603:10b6:5:1b4:cafe::c3) by DM6PR02CA0121.outlook.office365.com (2603:10b6:5:1b4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend Transport; Tue, 26 Mar 2024 12:57:37 +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 DS2PEPF00003444.mail.protection.outlook.com (10.167.17.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7409.10 via Frontend Transport; Tue, 26 Mar 2024 12:57:37 +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; Tue, 26 Mar 2024 07:57:32 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: Subject: [PATCH v7 00/14] fix lcore ID restriction Date: Tue, 26 Mar 2024 13:55:54 +0100 Message-ID: <20240326125554.138840-16-sivaprasad.tummala@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240326125554.138840-1-sivaprasad.tummala@amd.com> References: <20240321184721.69040-1-sivaprasad.tummala@amd.com> <20240326125554.138840-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: DS2PEPF00003444:EE_|CY8PR12MB9035:EE_ X-MS-Office365-Filtering-Correlation-Id: 077b8f68-3f6c-4ec4-83ac-08dc4d944ff6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 38wvEu2vYd/fkxB7ue+jZHHxe6RY1+rl5ehnkOezIp1rGo2L8TgTJpKyjcQieYjG2uQyHr3yqhFXT0Gycsew/6A+4N02g8PnvhrnorD95jah7RqbiYWBJ7HGkIbUNF4IN5LqTS5SUZq3g4G6WFU55dEdSA6CUmm+N+vGwYYEiA1vcf7QnupxEglg7xwXeBIB4m755mKC00ZYvgdS+T/HrTjZhdVXpVq4ksf/phhsIqFi9UaoBz0sNxk/brlNDIoIDgKMRUnIOPgF+wo3e3tPyQt8LtgobePhyrEbGYRlbZihHyC/rPRWRFqhaiqQLPG6d+YqkfzAtzoG8jhZ/8mKMVREOb/AjxEj/8g+TmcsR3O/dcV9NLpC00FMn7ro7+vK6B/oxxietaklOl9BPD3Pku4jZlL+NPwrtOopCoLh33Y/CPWgbhuMIuVsAeIUdALjov4hOqC5iKxyi1qQ4eXvZeSfUj4LBOfS96csdQ8aqiETZljfmco+XfuqJhouFlhCxxSllIHAxhwe2X84LXUIQIcGSZzho+btjTDh4dNnT8JLxDiM9iQ7lgHf8IDDjgaltyKQ4hibxokHxs1zgnEv44zPuUOfaZJPvisF4X50pT6mq01lfxsHSVZoYU1IpHDvpoYnZAz2tEdvDaTvv2TogeT0rf5b01av0etJb9nHD1GIUDRj5ff1VvHSsOqIObY14jSCDc4TneYXY/1qZiq+N/xkbyjAEkj3yxPFy2/1oKG0Vr1wLqXM2L5I907Oc3eYPBbT4qTwswUTsImKU6iOBg== 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)(1800799015)(7416005)(376005)(82310400014)(36860700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 12:57:37.0884 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 077b8f68-3f6c-4ec4-83ac-08dc4d944ff6 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: DS2PEPF00003444.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB9035 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 rx queue IDs are increased to support up to 65535. The port ID constraints were also fixed to support up to RTE_MAX_ETHPORTS. v7: - updated commit log with rx queue IDs - changed format specifier to %PRIu16 - removed patch unrelated changes 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 (14): 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/l3fwd: fix port ID restriction examples/l3fwd-power: fix port ID restriction examples/l3fwd-graph: fix port ID restriction examples/ipsec-secgw: fix port ID restriction examples/ipsec-secgw/event_helper.h | 2 +- examples/ipsec-secgw/ipsec-secgw.c | 40 +++++++----- 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 | 65 ++++++++++--------- examples/l3fwd-power/main.h | 4 +- examples/l3fwd-power/perf_core.c | 19 ++++-- 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 | 42 +++++++----- examples/qos_sched/args.c | 6 +- .../guest_cli/vm_power_cli_guest.c | 4 +- 18 files changed, 135 insertions(+), 119 deletions(-) -- 2.25.1