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 DB823A04A2; Fri, 4 Feb 2022 20:59:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 61EC14013F; Fri, 4 Feb 2022 20:59:18 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 65F8840041 for ; Fri, 4 Feb 2022 20:59:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644004756; x=1675540756; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mqm+S8EzeeN00kmrdBZjcyoavr8o3fEQbTDEGmtn524=; b=QPz8D1oJSkxY/3Y4bsVbgZO78oTRe/w0FOUcEpaSemVIj65AV0iwudS4 S1YQrzyXkJQATbDBwJrshkKcbKzYd38tftbJqG5vH7+lQPEy0S4oc8HoF nnCdwN8cuaLQyQrF8wtpkHVYD4RjeQMH17dE1aXqHWx8/Kv4sxW4CkxGa wvaSgEduj/WeHZEcLj6bfdqF0rJkylChClmKocgHsE0iM5SebYhDDSJ3L 0d4Gb1yIbHG6OdMrD/GA+ls6TlpdIzV6oglIhZRaIwI34rgdfm1b/FgKU waU43f0QU4/pe2zefcxzyx5ONZbynD+ripaHSESGSNgxidrX6nfDdbAUa A==; X-IronPort-AV: E=McAfee;i="6200,9189,10248"; a="231999767" X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="231999767" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2022 11:59:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,343,1635231600"; d="scan'208";a="566843337" Received: from silpixa00401215.ir.intel.com ([10.55.128.96]) by orsmga001.jf.intel.com with ESMTP; 04 Feb 2022 11:59:13 -0800 From: Sean Morrissey To: Cc: dev@dpdk.org, Sean Morrissey Subject: [PATCH v5 0/2] Add config file support for l3fwd Date: Fri, 4 Feb 2022 19:59:03 +0000 Message-Id: <20220204195905.449192-1-sean.morrissey@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220126124459.2469838-1-sean.morrissey@intel.com> References: <20220126124459.2469838-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. V4: * Fix nondeterministic bug of segfault on termination of sample app. V5: * Reintroduce hardcoded tables as to not break dts and allow for hardcoded tables to be used if no config files presented. 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 | 41 +++ examples/l3fwd/l3fwd_em.c | 471 +++++++++++++++++------- examples/l3fwd/l3fwd_fib.c | 50 +-- examples/l3fwd/l3fwd_lpm.c | 315 +++++++++++++++- examples/l3fwd/l3fwd_route.h | 41 +++ examples/l3fwd/lpm_default_v4.cfg | 17 + examples/l3fwd/lpm_default_v6.cfg | 17 + examples/l3fwd/main.c | 68 +++- 11 files changed, 949 insertions(+), 194 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