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 A019E45D4C; Wed, 20 Nov 2024 05:05:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 617F942EC8; Wed, 20 Nov 2024 05:05:35 +0100 (CET) Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2076.outbound.protection.outlook.com [40.107.104.76]) by mails.dpdk.org (Postfix) with ESMTP id D7B8840144 for ; Wed, 20 Nov 2024 05:05:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nVX/irI/e/oWDO2lfC9R3bu5rCjS1cmX01w7REis3pyl66qYh/IvnW3o9s7OynV8McJ1znHmc7oxgkI3mqFRqrVjSjL0PWtUzosBiXK5MLTcnJhk6KmB20yA8j6jExG8GxoTTVzduMyZNBOtev7iTr82wsYeIA4jOh5h+iL9ACeM17msLU87pkol1IyXpOmMKM+TrKqPBHTmryCnve/ftnf3Gw6eI+cSfm+OwRxsfNm+035YK06XMOJdVhDP4aHoTY2z3XRjxCoIgReSJLNA4y2VuF0mMZ2VJipOVQHNPkhXwRiCazBNm8uh7T+rlAxy+iDmiRZDv5+hXvLo5Oly8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=LEov0BENtLxkMEyqxnREPeRks20iGl9iLHbON9IWIEk=; b=m2K1AqWeNH6bXpIcPgn0jaYjvDAtLEUK67pAzcTgKh5t17eiHDH10y9YhtDoVHLxntBhJXEPxviWHc2w0xo3FuNhFQNLOJeDZvG9ZjtG5cFh7BW+KtU1Db2KGkQfBNz5D3OL9GnoilKxyTlVmxlod/xpAlE6gakEam8u3HVcm5fZWZZZjuTnRU3bmIFahxAc6xwNrePuR+iHvXkB+1DhWrGLJZek8m3QgROm6y4pLLvzA+d4MthAXvH2j223R6f8s/fwdJAAcLPNAvj7Oej/pCWhLnNjJDhOzwze1W/e7NLu7VTHqLQLoEJMYMHf3mX9+6un4DnJ0T6GhCH+g9bIqw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LEov0BENtLxkMEyqxnREPeRks20iGl9iLHbON9IWIEk=; b=Qdwu54SCCK445ebueZv92Ruu5xANZmyXLdo2D9+zLvLL4hAzW/eMX311dPaguv6NdP250T897osN7YuM73O/epJEhqrn6fVtFnVUf6RE5hAslzRLCik4E2Vr24+dQpwhJNS/3O5Ib0YCLqqQOnpNcqIIMYVMNx+LfbJNzWTYmb7tDdMheqUTsSGAhBiaojDpfn5CT8mxH1Kv23cdaUq78YGrY+dtxhHv6L2O7c0kuLYG3xxZ7GJioeIm2o8uzdJDz859qmH6kgEtQxHmAVG5IuuE7OULi0FQYEXA03+7vkeGRgRwx8tPELBKwckeUrr5qPNM9IUKM/s8J+UO/Kharw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) by PAWPR04MB9837.eurprd04.prod.outlook.com (2603:10a6:102:385::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Wed, 20 Nov 2024 04:05:32 +0000 Received: from AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::2e32:1a4a:7d29:195]) by AS8PR04MB8198.eurprd04.prod.outlook.com ([fe80::2e32:1a4a:7d29:195%4]) with mapi id 15.20.8182.013; Wed, 20 Nov 2024 04:05:32 +0000 From: Gagandeep Singh To: dev@dpdk.org Subject: [v3 0/3] L3fwd changes Date: Wed, 20 Nov 2024 09:35:13 +0530 Message-Id: <20241120040516.2836371-1-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240806034120.3165295-1-g.singh@nxp.com> References: <20240806034120.3165295-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2P153CA0034.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::17) To AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8198:EE_|PAWPR04MB9837:EE_ X-MS-Office365-Filtering-Correlation-Id: 425ee52b-ec89-418a-043d-08dd091893c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|1800799024|366016|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?fStBYyuz8ylNPQ61aMXiH8E98KRcJH8ivPyBokpsjGlIaJC5/6fkMwyZ1CeA?= =?us-ascii?Q?VIv/sF69ZyOowCE13UVazohf7eAiljEkAieFjAjrZNYNHeFGo2jyVprxr2G2?= =?us-ascii?Q?Fyzpfq7mmCRsWR8PJ6CIyfnrtqmTcAmuOFOktfhf6fmJp3h6Ersb0KnhZ7JT?= =?us-ascii?Q?nW1MeKp8MCPLsoNoWTlfO/RRaHtWKL/nZNwVezTG93zW5Suv+Wossc3/O9jg?= =?us-ascii?Q?IOBXpPJ03v2lg6eXTbOCH9cB0nV+8lo2+QqL7JLyxGRbvHNsw0W/4c+lTERS?= =?us-ascii?Q?hkO63zzW/7L+PmrLNVCSszKye/fU4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Q?BehpefpOukh17ZR/D/OrArWc0CrVuWTAiLOVk34ED9VXSOEKdCa121PNIumZ?= =?us-ascii?Q?DqR1lkWnrKZUfAzYOOuC1033iXn0vyc7LZM1Rl6K4b2cUctDAAib8c0KPWI6?= =?us-ascii?Q?onNMr523EmQBJbJ1bB/gcEJNqNZOTMGYnDfLnUVlMcTvquro64Svg1ufGnfz?= =?us-ascii?Q?EUDjOK4=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(1800799024)(366016)(376014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6Cgo8+pCDO/R1If7HR77fjGL1CzpVfh6EVoC2b2AAYFkv4BliEoHN60NRW53?= =?us-ascii?Q?Rp/nFVIoN1r2AbmnFl7LRz8OZ79mV/urCNP5pKdLf1sVMxetRmnuTILghYOR?= =?us-ascii?Q?uTCkhr30XgsEuR455I+MEuvNzp/n4RDmahOLOfq0MD6wqoi2LDG58Pd4/QX2?= =?us-ascii?Q?h1IUPV+t0ZcXc5h1Jh9QLxG3QBR4Fh5uTd0B9dp5cuha6Lt15adXOxW/Um1r?= =?us-ascii?Q?7cT8bL8III3StyOrnx/WDJQ1GStCfvVPTH6rkCXbrb1SvlG3A/nmiHg0+6mA?= =?us-ascii?Q?Iu6AxtGlUQf/DlMrVPJWPHnD+PRID89G+likSB1Qur8QMCwy/+nweaLYvJ0c?= =?us-ascii?Q?eOvYGGvoUVDMfggd3HQZrp26LxrJ8QYdsDiJLpEpveSVXCnhQSjlfgZ2bzGC?= =?us-ascii?Q?nnLHsJ1wII0w3F+InjGjJ8Kbnlp905EKurkQ4U8xNj1Dd1/Py3c5JTGktkgh?= =?us-ascii?Q?Da6+HEHrvmT+RAu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4ab?= =?us-ascii?Q?K+McteZLZ9vMjaHvXFW8Vsn3sGoVnIEYnVMn8VhSeTWgz8G47V6fq8mwMpIA?= =?us-ascii?Q?+C+cqcQc7bSWLXeqZpGGec80JCN4TVIq4x85ZERtG9uaFsapYaMgCxdG3L5b?= =?us-ascii?Q?YF+wfD64/WFMIep8ciRwAGY4xsAXRv4N9BMaly6jLrZ6BY4FuFXM2li+LlAk?= =?us-ascii?Q?kwwtm2joWiABbVXGehY=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 425ee52b-ec89-418a-043d-08dd091893c7 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8198.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2024 04:05:32.3178 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eD7bum9CSHERKR5nbajlCfrm0pyG43ldqPHTdI/kpRbTvTrmGhgLt0jmus0kGBcl X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9837 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 v3 changes: * rebased the series to latest commit. v2 changes: * Handled a comment to enhance the invalid port ID logic and added a user option to decide exit or silently skip in case invalid port in the rules list. Gagandeep Singh (3): examples/l3fwd: support single route file examples/l3fwd: fix return value on rules add examples/l3fwd: enhance valid ports checking examples/l3fwd/em_route_parse.c | 33 +++++++++--------- examples/l3fwd/l3fwd.h | 16 +++++++++ examples/l3fwd/l3fwd_em.c | 22 ++++++++---- examples/l3fwd/l3fwd_fib.c | 26 +++++++++----- examples/l3fwd/l3fwd_lpm.c | 26 +++++++++----- examples/l3fwd/l3fwd_route.h | 2 ++ examples/l3fwd/lpm_route_parse.c | 28 ++++++++------- examples/l3fwd/main.c | 58 +++++++++++++++++++++++++++----- 8 files changed, 153 insertions(+), 58 deletions(-) -- 2.25.1