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 61E55A034E; Tue, 21 Dec 2021 13:30:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F041340040; Tue, 21 Dec 2021 13:30:46 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id BAFF44003C for ; Tue, 21 Dec 2021 13:30:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1640089845; x=1671625845; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=s3mPQpfnvgcD/GA+IwLH/UrWSXakKiUutdG+t8mzdco=; b=UQK/zg3ItXobCZOjT4Wa7kG2BOJDWIZaqcia9JEHiMoE+E64F63r6M26 BGxrJiynXWN4wpT16sXTalWJ5Koz1YlJcx3ePSemIuDeRWk16woi9azNg WLtCn5S7ZSQcxH+OLO3jT6c8h3WdVjECaZYzm9cuUv25lofi+8R5Z033N HV0lWs0kc8LBi9EqkAlAjnt+YAuTPYB28buR8OfDkS+WEGxHANMIxxinA MD1MOIPgYfpQ3hObLmdDsxpA+hEzd1hFx3/sUk/2KVPqIDRFTFuACp1yr hZQ1k1DTMQawsvWPldenPX/SJpaiWp0Lk+a0gyY3DUuxgObyt7GbSSwNA w==; X-IronPort-AV: E=McAfee;i="6200,9189,10204"; a="240607534" X-IronPort-AV: E=Sophos;i="5.88,223,1635231600"; d="scan'208";a="240607534" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2021 04:30:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,223,1635231600"; d="scan'208";a="548022995" Received: from silpixa00401215.ir.intel.com ([10.55.128.96]) by orsmga001.jf.intel.com with ESMTP; 21 Dec 2021 04:30:42 -0800 From: Sean Morrissey To: Cc: dev@dpdk.org, Sean Morrissey Subject: [PATCH v3 0/2] Add config file support for l3fwd Date: Tue, 21 Dec 2021 12:30:35 +0000 Message-Id: <20211221123037.1037203-1-sean.morrissey@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211220110837.970261-1-sean.morrissey@intel.com> References: <20211220110837.970261-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 | 479 ++++++++++++++---------- 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, 847 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