From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 6644D12A8 for ; Wed, 8 Jun 2016 12:29:53 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 08 Jun 2016 03:29:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,438,1459839600"; d="scan'208";a="997688662" Received: from gklab-246-018.igk.intel.com (HELO stargo) ([10.217.246.18]) by fmsmga002.fm.intel.com with SMTP; 08 Jun 2016 03:29:50 -0700 Received: by stargo (sSMTP sendmail emulation); Wed, 08 Jun 2016 12:35:32 +0200 From: Piotr Azarewicz To: dev@dpdk.org Cc: Piotr Azarewicz Date: Wed, 8 Jun 2016 12:35:18 +0200 Message-Id: <1465382125-2747-1-git-send-email-piotrx.t.azarewicz@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1463754940-8114-1-git-send-email-piotrx.t.azarewicz@intel.com> References: <1463754940-8114-1-git-send-email-piotrx.t.azarewicz@intel.com> Subject: [dpdk-dev] [PATCH v3 0/7] examples/ip_pipeline: CLI rework and improvements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2016 10:29:54 -0000 Using the latest librte_cmdline improvements, the CLI implementation of the ip_pipeline application is streamlined and improved, which results in eliminating thousands of lines of code from the application, thus leading to code that is easier to maintain and extend. v3 changes: - fix the authorship in patches v2 changes: - added functions for parsing hex values - added standard error messages for CLI and file bulk - for all CLI commands: separate code paths for each flavor of each command (e.g. route add, route add default, route ls, route del, route del default, etc do not share any line of code) - for bulk commands: simplified error checking - added additional config files Acked-by: Cristian Dumitrescu Daniel Mrzyglod (1): examples/ip_pipeline: modifies firewall pipeline CLI Piotr Azarewicz (4): examples/ip_pipeline: add helper functions for parsing string examples/ip_pipeline: modifies flow action pipeline CLI examples/ip_pipeline: modifies routing pipeline CLI examples/ip_pipeline: update edge router usecase Tomasz Kulasek (2): examples/ip_pipeline: modifies common pipeline CLI examples/ip_pipeline: modifies flow classifications pipeline CLI examples/ip_pipeline/Makefile | 1 + examples/ip_pipeline/config/action.cfg | 68 + examples/ip_pipeline/config/action.sh | 119 ++ examples/ip_pipeline/config/action.txt | 8 + .../ip_pipeline/config/edge_router_downstream.cfg | 30 +- .../ip_pipeline/config/edge_router_downstream.sh | 7 +- .../ip_pipeline/config/edge_router_upstream.cfg | 36 +- .../ip_pipeline/config/edge_router_upstream.sh | 37 +- examples/ip_pipeline/config/firewall.cfg | 68 + examples/ip_pipeline/config/firewall.sh | 13 + examples/ip_pipeline/config/firewall.txt | 9 + examples/ip_pipeline/config/flow.cfg | 72 + examples/ip_pipeline/config/flow.sh | 25 + examples/ip_pipeline/config/flow.txt | 17 + examples/ip_pipeline/config/l2fwd.cfg | 5 +- examples/ip_pipeline/config/l3fwd.cfg | 9 +- examples/ip_pipeline/config/l3fwd.sh | 32 +- examples/ip_pipeline/config/l3fwd_arp.cfg | 70 + examples/ip_pipeline/config/l3fwd_arp.sh | 43 + examples/ip_pipeline/config_parse.c | 257 +-- examples/ip_pipeline/parser.c | 745 +++++++ examples/ip_pipeline/parser.h | 54 +- examples/ip_pipeline/pipeline/pipeline_common_fe.c | 452 ++--- examples/ip_pipeline/pipeline/pipeline_common_fe.h | 9 + examples/ip_pipeline/pipeline/pipeline_firewall.c | 1461 +++++--------- examples/ip_pipeline/pipeline/pipeline_firewall.h | 12 + .../ip_pipeline/pipeline/pipeline_flow_actions.c | 1505 +++++--------- .../ip_pipeline/pipeline/pipeline_flow_actions.h | 11 + .../pipeline/pipeline_flow_classification.c | 2082 +++++++++----------- .../pipeline/pipeline_flow_classification.h | 28 + examples/ip_pipeline/pipeline/pipeline_routing.c | 1636 ++++----------- examples/ip_pipeline/thread_fe.c | 36 +- 32 files changed, 4009 insertions(+), 4948 deletions(-) create mode 100644 examples/ip_pipeline/config/action.cfg create mode 100644 examples/ip_pipeline/config/action.sh create mode 100644 examples/ip_pipeline/config/action.txt create mode 100644 examples/ip_pipeline/config/firewall.cfg create mode 100644 examples/ip_pipeline/config/firewall.sh create mode 100644 examples/ip_pipeline/config/firewall.txt create mode 100644 examples/ip_pipeline/config/flow.cfg create mode 100644 examples/ip_pipeline/config/flow.sh create mode 100644 examples/ip_pipeline/config/flow.txt create mode 100644 examples/ip_pipeline/config/l3fwd_arp.cfg create mode 100644 examples/ip_pipeline/config/l3fwd_arp.sh create mode 100644 examples/ip_pipeline/parser.c -- 1.7.9.5