From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id BE424ADD5 for ; Fri, 20 May 2016 16:32:37 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 20 May 2016 07:32:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,339,1459839600"; d="scan'208";a="958894120" Received: from gklab-246-018.igk.intel.com (HELO stargo) ([10.217.246.18]) by orsmga001.jf.intel.com with SMTP; 20 May 2016 07:32:35 -0700 Received: by stargo (sSMTP sendmail emulation); Fri, 20 May 2016 16:35:54 +0200 From: Piotr Azarewicz To: dev@dpdk.org Cc: Piotr Azarewicz Date: Fri, 20 May 2016 16:35:33 +0200 Message-Id: <1463754940-8114-1-git-send-email-piotrx.t.azarewicz@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1462550250-1256-1-git-send-email-michalx.k.jastrzebski@intel.com> References: <1462550250-1256-1-git-send-email-michalx.k.jastrzebski@intel.com> Subject: [dpdk-dev] [PATCH v2 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: Fri, 20 May 2016 14:32:38 -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. 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 Piotr Azarewicz (7): examples/ip_pipeline: add helper functions for parsing string examples/ip_pipeline: modifies common pipeline CLI examples/ip_pipeline: modifies firewall pipeline CLI examples/ip_pipeline: modifies flow classifications pipeline CLI examples/ip_pipeline: modifies flow action pipeline CLI examples/ip_pipeline: modifies routing pipeline CLI examples/ip_pipeline: update edge router usecase 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