Message ID | 20210402105252.1145821-1-conor.walsh@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 213A6A0548; Fri, 2 Apr 2021 12:53:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA164140F47; Fri, 2 Apr 2021 12:53:08 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id A4EA340141 for <dev@dpdk.org>; Fri, 2 Apr 2021 12:53:06 +0200 (CEST) IronPort-SDR: 3XEErengHup0gHbi3I9WC5O64TNU1XXvQaD/8FVHV9kqnP4121NkzWeg2nXUc8ZfQ3sHddePNy wOaPUc2EQO2w== X-IronPort-AV: E=McAfee;i="6000,8403,9941"; a="179581673" X-IronPort-AV: E=Sophos;i="5.81,299,1610438400"; d="scan'208";a="179581673" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2021 03:53:03 -0700 IronPort-SDR: shPlU8k4jAilTIvcnm9Dr/JJEQ2nFxYZVqnoprhWhdnHQjlg4fMM2krFMViADgHva2YupxIcB3 D3YcB6oIAEiw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,299,1610438400"; d="scan'208";a="517739727" Received: from silpixa00400466.ir.intel.com ([10.237.213.210]) by fmsmga001.fm.intel.com with ESMTP; 02 Apr 2021 03:53:00 -0700 From: Conor Walsh <conor.walsh@intel.com> 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 <conor.walsh@intel.com> Date: Fri, 2 Apr 2021 10:52:47 +0000 Message-Id: <20210402105252.1145821-1-conor.walsh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315113439.1045223-1-conor.walsh@intel.com> References: <20210315113439.1045223-1-conor.walsh@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
examples/l3fwd: add FIB lookup method to l3fwd
|
|
Message
Conor Walsh
April 2, 2021, 10:52 a.m. UTC
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. --- v6: - rte_exit no longer used within parse_lookup, exiting due to incorrect config is now handled the same as the other config options - Corrected a typo within print usage - Moved -E and -L to the bottom of print usage as they are now legacy flags v5: - Removed runtime checks to ensure desired port is within portmask, unused ports are still removed during setup 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 | 528 ++++++++++++++++++++++++ examples/l3fwd/l3fwd_lpm.c | 68 +-- examples/l3fwd/main.c | 114 +++-- examples/l3fwd/meson.build | 4 +- 10 files changed, 814 insertions(+), 100 deletions(-) create mode 100644 examples/l3fwd/l3fwd_common_route.h create mode 100644 examples/l3fwd/l3fwd_fib.c