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 BBE6743D51; Tue, 26 Mar 2024 13:58:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DBAD9427E0; Tue, 26 Mar 2024 13:57:32 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2081.outbound.protection.outlook.com [40.107.243.81]) by mails.dpdk.org (Postfix) with ESMTP id 5677540EA5; Tue, 26 Mar 2024 13:57:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D2cV1JrW8Q5UovdvKNZ9ZEtGVeOljH0DBtSzXarsBU79o2yt3w3GEPmHGQCeerrG36d0n65ikD8pFzcbBp6e/vjAcG/6JccH1596F0y4nDsOg8dxdJSxEB47Qn5vyimdowpWdoUR1SW4CD7Rje4hfZxsrRcwHd78pd/e93kIA6kdtnirgypNCIlJCoeQTW9EyEslpmsa8SKFdlyNP2GppZaZzf91tK+WG4lBMozi1ZANkN9zmaCcN2UHqKOmycjrLIQxRBg5we39MtyMCrw2yAYxmvlIP7vC/bZkWJnc+qARSLFqV/sSy56KSGK/+mlYCeELgAXodN3cCxWax6hA5g== 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=uc89xjnNYI4BhAXD85+8FsO2yniSkfwjldK3lbd3NaQ=; b=I0R1vLV32zyvF3f7cLgbnX/PpwWd3emcrLnE5w9L0uR2fjq1Z9IRJtepTlI/bChih/1lLJG7Vvug9mLLD5nUUiWW6r3NfubRtFdP67KRDULc50vjtGez4GR4ky9ddiW3LdXxRaUeG5kgLD31hRz8Jo9XUZXIdAOK6YUsv18zP4cd/o0F8y6R0n5ySo1i0zqS4cS6TMO4aU/N8YjJgx10C3GURwEs7ph0ukJGUqOLORh/6RQ9J2dT9I4aBtGnJ74l1EHiD43DsBxaJ3p1EyKDItTlyPsnkIcR63SScyyy+4wmfYuDcHC5W/72NniP7g7hEG2IVFnlv4Y7Rn/8rB6EpQ== 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=uc89xjnNYI4BhAXD85+8FsO2yniSkfwjldK3lbd3NaQ=; b=R2TBEgBgfJcvf47JMjYvu1dU2cRygDiK+Ww9kBpxNcwz4wut/NdaKS5xNGi9UFpmrOOdYjlACX2PwbuHXSZrOrKNbrC0O8tkHOEfCP8vCjP1zMFjT2y+VYlPYuOn8xDiF5SR7ht7PsJ7IH4Do4YJAx/Pq+iLDTofVg8O0J+l/m0= Received: from DM6PR18CA0025.namprd18.prod.outlook.com (2603:10b6:5:15b::38) by DM4PR12MB6159.namprd12.prod.outlook.com (2603:10b6:8:a8::5) 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:26 +0000 Received: from DS2PEPF00003445.namprd04.prod.outlook.com (2603:10b6:5:15b:cafe::3) by DM6PR18CA0025.outlook.office365.com (2603:10b6:5:15b::38) 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:26 +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 DS2PEPF00003445.mail.protection.outlook.com (10.167.17.72) 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:26 +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:21 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: , , Subject: [PATCH v7 13/14] examples/l3fwd-graph: fix port ID restriction Date: Tue, 26 Mar 2024 13:55:52 +0100 Message-ID: <20240326125554.138840-14-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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: DS2PEPF00003445:EE_|DM4PR12MB6159:EE_ X-MS-Office365-Filtering-Correlation-Id: fb31293f-9df4-4e26-61b5-08dc4d944991 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M2yMPCztAc6sHIn+c8pBQXrfX3wdrDjQP4pnRiMLypkLkIXXNEhMNTmddl4OEh6Q4V1Rrvj0HeSc7XlrpcSw12HXr7wCcLtbVKlx59pYTZP9m97S4z4jZ24omjoCKm030HV52AwUnFnHxJSST23antxwLi6bTNnnRaUX8ceP/z0LeQr4PIryFEQ0puiKkZHQKMbtaFkNs9ZcBW5bX/Xob3ZLLMSlw1KXmvQj6pBBI6CUbmD+n3snRoaUXtwAn155po3w4+2GvZwVsBUfiLZ+RlxhIBYv6lKr3ttiPL9MhqcutPVrziQtPvUmzkSN5ZYJEkaBOVSg+CTNv8EOJ2coOGf6iwQ52TSAvjRzFGm3ZPEeprmEOvbJIwUCZheHCscupdfyGiqfe/jo/0GU4DOt3c52OZ8irmOBjFgu4xigAUn4JjBg2rC//6EcIw+2tOQF26S4cy3GMePYTaoTwfZD7zpHa92UxvZijBEEdt5xgHVtDIsgTfI1Ij72rn/MJWRbfiTNQj+6OERXW6Tr9O82ZFY0Z9lBNGtlkks53MHnZ1tF03lrtZXEK7NrCOyt4Mahap2nPoLA3Lb3F9plev6DRo0Ie04VRrhcLOuo1j+WaK6LoMOa5MixcYot/mqgZXz98WlLkw79eG8rw8NbG2DukoitPRUk1bAK0eDhwp5N/JDIG+QZe2qDzALM3nPg+IBDIaVxs0sUCoMWNuJS46UAhHUsIiJYpCjstymPjSmREQwUWQaLTr3pp5VotWzcKzAc2Rw4WIklDt7jIePpsBSrbQ== 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)(36860700004)(7416005)(82310400014)(376005)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 12:57:26.3749 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fb31293f-9df4-4e26-61b5-08dc4d944991 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: DS2PEPF00003445.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6159 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 Currently application supports port IDs up to 255 irrespective of RTE_MAX_ETHPORTS. The patch fixes these constraints by allowing port IDs up to RTE_MAX_ETHPORTS. Fixes: 08bd1a174461 ("examples/l3fwd-graph: add graph-based l3fwd skeleton") Cc: ndabilpuram@marvell.com Cc: stable@dpdk.org Signed-off-by: Sivaprasad Tummala Acked-by: Morten Brørup Acked-by: Ferruh Yigit --- examples/l3fwd-graph/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd-graph/main.c b/examples/l3fwd-graph/main.c index dbc36362c3..4ded69b4a0 100644 --- a/examples/l3fwd-graph/main.c +++ b/examples/l3fwd-graph/main.c @@ -448,7 +448,7 @@ parse_config(const char *q_arg) } lcore_params_array[nb_lcore_params].port_id = - (uint8_t)int_fld[FLD_PORT]; + (uint16_t)int_fld[FLD_PORT]; lcore_params_array[nb_lcore_params].queue_id = (uint16_t)int_fld[FLD_QUEUE]; lcore_params_array[nb_lcore_params].lcore_id = -- 2.25.1