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 E44244571F; Tue, 6 Aug 2024 05:41:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 90DE1402A1; Tue, 6 Aug 2024 05:41:39 +0200 (CEST) Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazon11012006.outbound.protection.outlook.com [52.101.66.6]) by mails.dpdk.org (Postfix) with ESMTP id 7C5D640295 for ; Tue, 6 Aug 2024 05:41:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FYbw42Jt8kOS07vOS3ak4ty7M7RKU51BdxNLYIdKa9Xxmay82U0O9tA2NjkHQF9uD98e20ch94jZjHrxCF7kIVbxoC/ZEfr4J+ckkR4nlDj9okWM53m64O8E7fwVl+53fvHhZLtjrJ283aFXKLnMaba7kphLs1x7OyI+1iClky6H9Qbqh6W6p1K3wkNc6zUpPzbKg7huNDyZ9oJs/xGcQWmF/Yf0La/QkOSA7ISqWK5Sii3MAcp7bzKH4Ginuj6l9buJNV34AM1D/9gT4IW7hRw6vPKBYvto6y2uq6uomyH3/pfRy+4ZuyUqxM/lIoA5pgV7MPxEZrU5gjEPnjU+fQ== 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=kBwkxb/ViVlIf0edBsoM/uDr5+YMA7vVn+lz5WG12N8=; b=Lgo8N4pizZhtruhaHmlt1cuw2U+EW+j/OgrR1/Vlz3bxSmm8icmMYSROaONwg96ivNvhj+KpgOHlQrxzVfW8xfbGBsU7uzQXc6ntI0ytmqFu63958DBT9T+NJQihIhOXhLXrMbvUeqi8g8r19TznaYvt/PHmIcRSahtj3sDKA3kSy8l9sBcrczywgCZP0rM3OFWTw+qSNpNyckfocNgtXWq/ta3k14MwwOOTFg3tp1Di0cm/2S5OUAW9Azqw+nk/YSIqcPy3P4Wq0RwrhAEEE3Jm+wSSh9HL66Lch6aj32dZ+jm/OjTmCkWC8ki6q/a/ALbiB0frRGysIjrbIZlgiA== 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=kBwkxb/ViVlIf0edBsoM/uDr5+YMA7vVn+lz5WG12N8=; b=ZIy+G1W9al0DUpossO/RNL4Xf6kFwkJTBxnQ89eJI6binM9AfEtMqf9Sw//GH/sH9JRST76f4NWhmOAWUzlwzskppywYxA83jIo0HRIllZfU0ii4e528+9+4oN9GtcD2Y9TcBnVH0iVhrsHAij5M+PQewqKWVPvf3fnSjnNOjxVCWSmAR+kfjTAuMtJg61SKh9evL/oba1tgVnln0bEND61PoUX2MvckCHPrsRVeq9q1OmGIGxMGO/n4w+b/aaynHoKV7Kk5hBxenVSgLlIsyGPQyBfTap7XzX0LIE6m2l8rixruozvAhtdJjBlvKBcIl31LZ/IOw6seSuvgBO8CTg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB8205.eurprd04.prod.outlook.com (2603:10a6:102:1c2::20) by AS8PR04MB8387.eurprd04.prod.outlook.com (2603:10a6:20b:3f7::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.11; Tue, 6 Aug 2024 03:41:36 +0000 Received: from PAXPR04MB8205.eurprd04.prod.outlook.com ([fe80::7633:884d:5973:174f]) by PAXPR04MB8205.eurprd04.prod.outlook.com ([fe80::7633:884d:5973:174f%7]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 03:41:36 +0000 From: Gagandeep Singh To: dev@dpdk.org Subject: [v2 0/3] L3fwd changes Date: Tue, 6 Aug 2024 09:11:17 +0530 Message-Id: <20240806034120.3165295-1-g.singh@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240715101458.645014-1-g.singh@nxp.com> References: <20240715101458.645014-1-g.singh@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0112.apcprd02.prod.outlook.com (2603:1096:4:92::28) To PAXPR04MB8205.eurprd04.prod.outlook.com (2603:10a6:102:1c2::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8205:EE_|AS8PR04MB8387:EE_ X-MS-Office365-Filtering-Correlation-Id: cb2fca71-fe6d-4733-ac39-08dcb5c9abf7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|52116014|376014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?4V3hvIwEWrULdDZ5DU8/mTAVtlF0C5Fo2/CJvf3ml/mQk3gM2YQ6/wA2F2i8?= =?us-ascii?Q?tgnTnpOCangE9Hxbzi6gPqumbezJWBhvTImmdjqKOwcFpRKOQYS4jyAI9XGO?= =?us-ascii?Q?q1auVEeUZLfIy+3DBlAkzWHjUUgBy4ijVwwQj+ezm5FM6kyF+WEb+F7KBvXv?= =?us-ascii?Q?L9Hx52dLScLUiGJI6hLcMT/F1G26an9cVz32ZlIwX+vurwaDxzj3pisONKjJ?= =?us-ascii?Q?7o9isguWl5GyrB/lLuJZXcH/NMJ+v2Ky4GHQfMBo+e3XDNCT3EEdLCbMsAOh?= =?us-ascii?Q?VJiZxiIOVoCk5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?PCcdgVD6I5rdIcQ4ZHcdCnxK1Jvga7Ih//cw68Dnm/4cXvwC/qQeErlt570w?= =?us-ascii?Q?0zDHI0IlJb4iGLM715ubeLaJUmadQuf0/6F8gzczKKJN9qElDFaDETLZU2DX?= =?us-ascii?Q?S3/FRlcc11WD9ULhRwSzgHZ2jzfsLssm7WsdFlGuYnFtGaN8YnQVAatUColW?= =?us-ascii?Q?M79PDKANzaAgHmjIpdyfuyUmK4kvqdo86/9Y2bpLQXxpgIAJ2A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB8205.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(52116014)(376014)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZTpPUCZZu9BJjb3okt+3cp82uUXKcCnHMOfIMP6UfGciCA3plHarc/UT5l4z?= =?us-ascii?Q?sJF/sJqSQPhy75LqoNT5zS15oghEb0UDzNKacufepc+ADe6T/PJw3RbSFcbs?= =?us-ascii?Q?KLOgjledfmfI2NRm+Xfzh8Adx1urWkM68VRhB0cRXXd1iY5YmiAIhdx7EFW3?= =?us-ascii?Q?3gTv8177MHmBypvZxwm7DEOiH38p2qAvBRWQFMMLyls2/COJh55QuOurNarh?= =?us-ascii?Q?E/GxhQkOv2aUW2AmDYifblMxaqcqoFtRXnqqUl74AmoU3WtfXVV6HIjDkOoB?= =?us-ascii?Q?l4WrLCICRePd4/N6Zjsfz2SPf9XnZbdp+HKMBcDvb1tAdF0MkqyYRJ0mroz8?= =?us-ascii?Q?86MNtMSM0B5G1GL5IUyHgsoPZ9aMhtDEpcbgdiMamzz6M4GLtp2mWj56rrYR?= =?us-ascii?Q?+3VRBtopB9Yk6e/XRu8la+YJ12DzuTEw4CLeSkAn6Q4wGmUs2Qt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FepiFulkSGRM0Sg2QMiuZupMcqRy?= =?us-ascii?Q?fL/vJU146Zz0fsG0afDj/QHcdkp9N5dBMFxsr03VGF3Ek+hY8dyB9MKih5yU?= =?us-ascii?Q?/Nl1zYysINJk+eeTZ8QEMiMWVUeFJfV+K08j+M4/91PdBYUfQJjgFRc5frVs?= =?us-ascii?Q?tQZrO5Yslb81N6v+NTLx53tJHF1277SVLz+DaEBftB72To5LisvVWhdOdHYL?= =?us-ascii?Q?oxzsNGwqyyumb3I6+Aw=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb2fca71-fe6d-4733-ac39-08dcb5c9abf7 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8205.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 03:41:36.2432 (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: BEa3QYzkr+l6ViyzDJutuXSR57shNQPzRg2i+mYc1f3yTpvtbaKvy7/st4qNwYcZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8387 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 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 | 60 ++++++++++++++++++++++++++------ 8 files changed, 154 insertions(+), 59 deletions(-) -- 2.25.1