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 B0F17A0032; Thu, 16 Dec 2021 16:02:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3542840696; Thu, 16 Dec 2021 16:02:19 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 4D4E540143 for ; Thu, 16 Dec 2021 16:02:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639666938; x=1671202938; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=X2cNV2SxQGivsFnKFNbvGIgmj+F3Y/mvIiXJ8bC6iZ4=; b=MJzGCBNX/G6uxjpBt6/io81lGQLf4XdwXzN3Kb5kNKsb6e21TUHVaGM4 ttMRrbHioWiJRQVgz/7u6gT/tHwvY4tOzl7zWMgxiXLZFLH2XVLN9MDMl 896GNNt0OaUktaaKwbx3gl4Y4zPsOEyfPSLWTufYhj2j7FNOE8oBHCedZ MeVal7ExeHFG67Iz8OYaffNwY5j942i+/sojMoinHGQ2Lmu69pUEEJ2EP KV/JJ4Jn01nASchrmoJrmK8jlBnf0RogYnkGAcAY7f4s7CchfjF+gu6De V44cwBMErMiBZn/3flGsQoyIdJbdG4JEN0clr5J8qVuuahX8kTZE3/+WN w==; X-IronPort-AV: E=McAfee;i="6200,9189,10199"; a="302889668" X-IronPort-AV: E=Sophos;i="5.88,211,1635231600"; d="scan'208";a="302889668" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2021 07:01:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,211,1635231600"; d="scan'208";a="615181335" Received: from silpixa00401215.ir.intel.com ([10.55.128.96]) by orsmga004.jf.intel.com with ESMTP; 16 Dec 2021 07:01:27 -0800 From: Sean Morrissey To: Cc: dev@dpdk.org, Sean Morrissey Subject: [PATCH v1 0/2] Add config file support for l3fwd Date: Thu, 16 Dec 2021 15:01:02 +0000 Message-Id: <20211216150104.860924-1-sean.morrissey@intel.com> X-Mailer: git-send-email 2.25.1 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 | 97 ++--- 11 files changed, 845 insertions(+), 304 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