[v6,0/2] Add config file support for l3fwd
Message ID | 20220301144908.1449465-1-sean.morrissey@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 D87A9A04A4; Tue, 1 Mar 2022 15:50:14 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F541426DE; Tue, 1 Mar 2022 15:50:14 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id D69924067B for <dev@dpdk.org>; Tue, 1 Mar 2022 15:50:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646146213; x=1677682213; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YQ5UHVkdPzCdINF0e2haH2iFN8u33s0L1JA6aZrUx2k=; b=GSL0oS2ZvLvyl8CoYDVNu/xA4h9/w3ZBKwKeOUWeH82fF1Q5+FC+EfKx u50yBcg1KRQ+Y9s4Ds7SeoLvmrz98Ex02iGbTGxt4ge8jvPo4+jSxA3pj eJhrj17XqhIZZY/woDowjlkYaHkLK8gn6X8YJgOo7fH46kibjOm5fahzy prHJ+fPU3NxP0S21pu8XBx9OBG8Ip/CWwg3Ky6CEgghRXbi49RJ01yPA4 EK+8pLFsqSSW3+zJTSFRs16VC9xLAngoKHMRgEClJAo9m5H/XYBDsp9nJ 7+9x4+LClt2TmK4fXVC8D6zchLTyaWk0s37k0aeAkE+mQKpapVAaJjSJM A==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="339576530" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="339576530" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 06:50:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="510535014" Received: from silpixa00401215.ir.intel.com ([10.55.128.96]) by orsmga006.jf.intel.com with ESMTP; 01 Mar 2022 06:50:10 -0800 From: Sean Morrissey <sean.morrissey@intel.com> To: Cc: dev@dpdk.org, Sean Morrissey <sean.morrissey@intel.com> Subject: [PATCH v6 0/2] Add config file support for l3fwd Date: Tue, 1 Mar 2022 14:49:06 +0000 Message-Id: <20220301144908.1449465-1-sean.morrissey@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220204195905.449192-1-sean.morrissey@intel.com> References: <20220204195905.449192-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 <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 |
Message
Sean Morrissey
March 1, 2022, 2:49 p.m. UTC
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. V6: * Move config file parsing functions to separate files as to not bloat l3fwd code. V5: * Reintroduce hardcoded tables as to not break dts and allow for hardcoded tables to be used if no config files presented. V4: * Fix nondeterministic bug of segfault on termination of sample app. 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/em_route_parse.c | 280 ++++++++++++++++++++++ examples/l3fwd/l3fwd.h | 7 + examples/l3fwd/l3fwd_em.c | 220 ++++++----------- examples/l3fwd/l3fwd_fib.c | 50 ++-- examples/l3fwd/l3fwd_lpm.c | 46 ++-- examples/l3fwd/l3fwd_route.h | 89 ++++++- examples/l3fwd/lpm_default_v4.cfg | 17 ++ examples/l3fwd/lpm_default_v6.cfg | 17 ++ examples/l3fwd/lpm_route_parse.c | 302 ++++++++++++++++++++++++ examples/l3fwd/main.c | 50 +++- 13 files changed, 992 insertions(+), 209 deletions(-) create mode 100644 examples/l3fwd/em_default_v4.cfg create mode 100644 examples/l3fwd/em_default_v6.cfg create mode 100644 examples/l3fwd/em_route_parse.c create mode 100644 examples/l3fwd/lpm_default_v4.cfg create mode 100644 examples/l3fwd/lpm_default_v6.cfg create mode 100644 examples/l3fwd/lpm_route_parse.c