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 933B9A00BE; Mon, 20 Dec 2021 12:08:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 407D440395; Mon, 20 Dec 2021 12:08:48 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 3665D40040 for ; Mon, 20 Dec 2021 12:08:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639998526; x=1671534526; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sNIvxvG951clKSeMxIQROzwyQq4jiucYVdDqA1tS9UM=; b=FaWkX8Jr41s4LTs23ZcZgJ5L8PSwYlwNczq4jKCUeEoZyNfjxsisHoau bFfi4LG4iqZRFPmg1ZN/sQUBC9wMitemijwjiPBHl2NOTj9b9buDP6Kv5 Q9e+9/QaxFnhApYfck22dSHFL8EambWOR/QXJKzbZPlgWbk8n9vVBFiB+ +hNIBFYkhnIO2gahs1DRRfK4WUF2cfVlWF7Xwo8nxsq3fxOmA7ntms6xG g1SzqcKI+goS+R/5fYgY9qu/5eKAHeuo+j44AmczSZkgMP0w+SgHOCjit TUmGtQxgH6O6mCl8OubzeKRUfZcxaT+Zk1u3m8z+tinOlZOvYL9Slilb3 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10203"; a="237682853" X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="237682853" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2021 03:08:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,220,1635231600"; d="scan'208";a="507645754" Received: from silpixa00401215.ir.intel.com ([10.55.128.96]) by orsmga007.jf.intel.com with ESMTP; 20 Dec 2021 03:08:40 -0800 From: Sean Morrissey To: Cc: dev@dpdk.org, Sean Morrissey Subject: [PATCH v2 0/2] Add config file support for l3fwd Date: Mon, 20 Dec 2021 11:08:35 +0000 Message-Id: <20211220110837.970261-1-sean.morrissey@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211216150104.860924-1-sean.morrissey@intel.com> References: <20211216150104.860924-1-sean.morrissey@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This patchset introduces config file support for l3fwd and its lookup methods LPM, FIB, and EM, similar to that of l3fwd-acl. This allows for route rules to be defined in configuration files and edited there instead of in each of the lookup methods hardcoded route tables. Sean Morrissey (2): examples/l3fwd: add config file support for LPM/FIB examples/l3fwd: add config file support for EM doc/guides/sample_app_ug/l3_forward.rst | 89 +++-- examples/l3fwd/em_default_v4.cfg | 17 + examples/l3fwd/em_default_v6.cfg | 17 + examples/l3fwd/l3fwd.h | 35 ++ examples/l3fwd/l3fwd_em.c | 478 ++++++++++++++---------- examples/l3fwd/l3fwd_fib.c | 52 +-- examples/l3fwd/l3fwd_lpm.c | 281 +++++++++++++- examples/l3fwd/l3fwd_route.h | 49 ++- examples/l3fwd/lpm_default_v4.cfg | 17 + examples/l3fwd/lpm_default_v6.cfg | 17 + examples/l3fwd/main.c | 99 ++--- 11 files changed, 846 insertions(+), 305 deletions(-) create mode 100644 examples/l3fwd/em_default_v4.cfg create mode 100644 examples/l3fwd/em_default_v6.cfg create mode 100644 examples/l3fwd/lpm_default_v4.cfg create mode 100644 examples/l3fwd/lpm_default_v6.cfg -- 2.25.1