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 <cristian.dumitrescu at intel.com> 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