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 3DE5743D0F; Thu, 21 Mar 2024 19:49:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 522A042ED9; Thu, 21 Mar 2024 19:49:16 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2054.outbound.protection.outlook.com [40.107.102.54]) by mails.dpdk.org (Postfix) with ESMTP id 8C90742EAA; Thu, 21 Mar 2024 19:49:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WX17oc0pvDrD7XyvndglOwhZ8YU960t/aoBbua2DgE4o+iaYfNmQHvjq/R60dkmDHiSlXwRDUrLmNSVeoqfR/d88FASWAARX36t1ZvuGhQPCTVLhsajxr8ekSmQVtYUGms7zdRUU4yzihySBaA7uWnw4pa2hqssBjmD+Z0zsGLM7m7K5XoHXkjHDmCszFjDppQPvN8JrtdoHToXuqmOOZhGoKdr6UyTIjga3mLhNW/q2Nk1aaPn+lpFZm+4zJbTvOEjtUgOxlKjdIxDhJqMDyrWDqwYhcOGqt2sGfAbkhEpB9PdrDsy3OkZ25zoL0rapEBBIwYoJu8PlEPfEpiy/Eg== 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=h39QCPfPAvpSScOMeC/ZrzpE5/H5BhqJ0AlLETNPv3I=; b=bgfDFgjgC8J/2quBzuvYol7hFS6zhdLGcUvuy89XxhJd2ureMCJlxzz8QNfldDzcDiE9EL/hyR4C0UeZQo2BOU+3w7b8Ne68wgi5PObFIKo5ocHsBczYf3MfEqY4ZsOL5l6+XdTEA5x0CNu/n65ydO/fdRZRKRHqEMs26zcC4/KMDtKsbPnNj5lliaBphnAcuKr1jGh4oSRYENHH4Qd+AJXSF9dW6NndP4i0p8xxP5lfeyCwdRRgfRmGhOf2fRqil7vtVL99DMBMxKvl3itUy/xTKlyoeMwMLltYQr/8pSpNNxG1RTp2lUBkpMJqhOAlPWr330z9L0kZBw7ctrK/fQ== 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=h39QCPfPAvpSScOMeC/ZrzpE5/H5BhqJ0AlLETNPv3I=; b=dq30Kwr2PDdQTXvGwUEjLfUM+rH7Gtj9ZYhHMcC2o0c85Sd6MO7kBgCgHsfW1z9SU6qpVhjep1smytz51LHzOabOcg2bxPV678K6hxUxEznP3JF5rfbzCZKaUqGX3Cb9PoUBiAqZrvgNenOnUvF6Yynvibop204rcH21ULdi7qI= Received: from MN2PR01CA0054.prod.exchangelabs.com (2603:10b6:208:23f::23) by CH3PR12MB7665.namprd12.prod.outlook.com (2603:10b6:610:14a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.29; Thu, 21 Mar 2024 18:49:02 +0000 Received: from BL6PEPF0001AB74.namprd02.prod.outlook.com (2603:10b6:208:23f:cafe::5) by MN2PR01CA0054.outlook.office365.com (2603:10b6:208:23f::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; Thu, 21 Mar 2024 18:49:02 +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 BL6PEPF0001AB74.mail.protection.outlook.com (10.167.242.167) 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:02 +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:48:58 -0500 From: Sivaprasad Tummala To: , , , , , , , , , , CC: , , Subject: [PATCH v6 13/14] examples/l3fwd-graph: fix port ID restriction Date: Thu, 21 Mar 2024 19:47:19 +0100 Message-ID: <20240321184721.69040-14-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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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: BL6PEPF0001AB74:EE_|CH3PR12MB7665:EE_ X-MS-Office365-Filtering-Correlation-Id: 13e5faec-957c-4e1a-0e39-08dc49d793d4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8w9DY0PhQQ7mNXzuO8TZAwMhNEgDIKdd6dzOY4Gpg7HfHMAl1L59vcJ7+AXY8HBWyhIz1pNbBoPErUbIGFBtuNGmTcCyB7vilJmBPQuO/qy/zc81Q561n/skP1M6YpTkrjGdpjgB0nVr25VvHv+okr4FqnhQOAqdQoBxt+uTXUnoihDlRy1s12Ojy3Q9hWWldH2xmXp991friu5q/nvzv1CcxQ/E636j79VeOyaNZAHlJylkx29hTDsylE/rhfMd28Bvhrn84sGBPpqu3Y5NnqOE0tWJv9C5ajv0IngsLU9dfKrxg/mG7wjH/3eJucYmpNnrvosVA5TFMbsxjZdAt4OTqZbWMz8FmXj9TOWbap4kdmRZY4LS2teljHla76i5nqsfK+X0oFjZHxIKhsyyOrKyolUwRQYCso4e/EZYjG+bMFT4s83WPcOmfAEk+3LvcNqJz663Mg/i+6si04JazHt5lCnVxQNuAVFWRkWb4gAHjCHNNKZvRMUop+qLosrNzj168w+qdFQhc59X1ehnBeQQNbRGnupXOsNr3bBiO0ugMve6Gid7Wi92wZBjgZRkE/FDfPN8RFhXdHu/13eKIbJD4ZiCQ7LEC6cfGi4KpxOkOMtX0uLK6MZ98gT4e4RUDNOS2GFlg7Tuj44nwa3My/CDEkRQYaBjx8ckwWDgxEMJgHqRpGpCup1x9TFclTYYnr2E5kO85opgSVk/SrisnNTOM0I8dYXlzUmRXnzS8tj059ddybpBAfdvY5DtDBpuKC2PVE6w/92o1Lfj0wZ36w== 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)(82310400014)(7416005)(376005)(36860700004)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 18:49:02.5774 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 13e5faec-957c-4e1a-0e39-08dc49d793d4 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: BL6PEPF0001AB74.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7665 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 8b7aa6642b..557ac6d823 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.34.1