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 C4BC3A0575; Thu, 11 Mar 2021 13:02:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 537C640689; Thu, 11 Mar 2021 13:02:07 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 5BF5F40141 for ; Thu, 11 Mar 2021 13:02:05 +0100 (CET) IronPort-SDR: 5rSSQze6XBom2GfS91K8gvgCTpbHTKbxCDADv8PcNHosICzAESK7E5aiqx/9Wwir8rIqqzixjn raD5/O4tt2pw== X-IronPort-AV: E=McAfee;i="6000,8403,9919"; a="188753148" X-IronPort-AV: E=Sophos;i="5.81,240,1610438400"; d="scan'208";a="188753148" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 04:02:03 -0800 IronPort-SDR: eUptkZlCV5oWm6G85VA8x/52ZJxE3Oqs6Bc5IMHpEh9amACiFKpbyBX9ZePBvlmqqGUhniL1UV lNlAEMNSlVNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,240,1610438400"; d="scan'208";a="410583622" Received: from silpixa00400466.ir.intel.com ([10.237.213.210]) by orsmga008.jf.intel.com with ESMTP; 11 Mar 2021 04:02:01 -0800 From: Conor Walsh To: jerinj@marvell.com, stephen@networkplumber.org, bernard.iremonger@intel.com, konstantin.ananyev@intel.com, vladimir.medvedkin@intel.com, anatoly.burakov@intel.com Cc: dev@dpdk.org, Conor Walsh Date: Thu, 11 Mar 2021 12:01:48 +0000 Message-Id: <20210311120153.186213-1-conor.walsh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210219150945.2071651-1-conor.walsh@intel.com> References: <20210219150945.2071651-1-conor.walsh@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/5] examples/l3fwd: add FIB lookup method to l3fwd 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 Sender: "dev" Currently the l3fwd sample app supports LPM and EM lookup methods this patchset implements the FIB library as another lookup method for l3fwd. Instead of adding an individual flag for FIB, a new flag '--lookup' has been added that allows the user to select their desired lookup method. The flags '-E' and '-L' have been retained for backwards compatibility. --- v4: - Changed individual switches for lookup methods to an enum for all lookup methods - Removed '-F' and introduced '--lookup' flag to select lookup methods - Fixed indentation issues - Renamed some variables for increased clarity - Minor changes to some logic for readability - Implemented MAC updating for FIB on non-SSE machines - Implemented RFC1812 for FIB on non-SSE machines - Added checks to ensure desired port is within portmask v3: add support for NEON, PPC 64 and machines that do not support SSE, NEON or PPC 64. v2: added the socket header file to fix FreeBSD build. Conor Walsh (5): examples/l3fwd: fix LPM IPv6 subnets examples/l3fwd: move l3fwd routes to common header examples/l3fwd: add FIB infrastructure examples/l3fwd: implement FIB lookup method doc/guides/l3_forward: update documentation for FIB doc/guides/sample_app_ug/l3_forward.rst | 113 ++++- examples/l3fwd/Makefile | 2 +- examples/l3fwd/l3fwd.h | 27 +- examples/l3fwd/l3fwd_common_route.h | 48 +++ examples/l3fwd/l3fwd_event.c | 9 + examples/l3fwd/l3fwd_event.h | 1 + examples/l3fwd/l3fwd_fib.c | 530 ++++++++++++++++++++++++ examples/l3fwd/l3fwd_lpm.c | 68 +-- examples/l3fwd/main.c | 107 +++-- examples/l3fwd/meson.build | 4 +- 10 files changed, 811 insertions(+), 98 deletions(-) create mode 100644 examples/l3fwd/l3fwd_common_route.h create mode 100644 examples/l3fwd/l3fwd_fib.c -- 2.25.1