aboutsummaryrefslogtreecommitdiff
path: root/example/m4
AgeCommit message (Collapse)Author
2024-02-29example: generator: remove odp_generator example applicationMatias Elo
The odp_generator example application has been made redundant by odp_packet_gen application. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2024-02-29example: time: remove odp_time_global_test example applicationMatias Elo
Remove unnecessary old example/test application. A similar test has been added to time validation suite ('time_test_global_mt'). Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2021-02-23example: add CLI helper exampleJere Leppänen
This example shows how to start and stop ODP CLI using the CLI helper API functions. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2021-02-05example: remove ipsec_offload applicationAakash Sasidharan
Remove ipsec_offload application as it is mostly duplicate of the ipsec_api application. Signed-off-by: Aakash Sasidharan <asasidharan@marvell.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2020-09-28example: ipsec_crypto: rename ipsec application to ipsec_cryptoMatias Elo
Rename ipsec application to ipsec_crypto to better distinguish it from the ipsec api example. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
2020-09-15example: debug: add new debug example applicationPetri Savolainen
This application can be used to test various debug print functions of ODP API. Debug functions to be called are selected with command line options. E.g. -s option reserves a SHM area and calls odp_shm_print() to print debug information about it. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2020-09-07build: re-format autoconf argument defaultsStanislaw Kardach
Make sure that all autoconf arguments defined by ODP use default value description similar to built-in arguments. That is: [default=<value>]. Also make sure that all arguments use AS_HELP_STRING for uniform text formatting. Signed-off-by: Stanislaw Kardach <skardach@marvell.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2019-10-08example: odp_ping: add new example applicationPetri Savolainen
This application replies to IPv4 ping requests. It can be used to test connectivity with standard ping utility. ARP table needs to be setup manually on the sender side as the application does not reply to ARP requests. Test uses pcap packet IO to send 100 ICMP echo requests and receive the same number of echo replies. Pcap file sizes are compared to check that all packets were received. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
2019-03-29example: add new pipeline example applicationMatias Elo
Add new simple pipeline example application. The application receives packets from one interface and passes them through 0-N worker stages before outputting them from a second network interface. The RX, worker, and TX stages are connected using plain queues and each stage is run on a separate CPU thread. Optionally, the worker stages calculate CRC-32C over packet data. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
2018-10-09example: build: configure option to disable example buildPetri Savolainen
Example applications are not always needed. Added a configuration option to disable example application build and install. This makes build faster and install footprint smaller. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2018-07-05example: sysinfo: application to print system informationPetri Savolainen
Add new application that simply queries and prints out various system information which is available through ODP APIs. This can be useful e.g. when examining HW or ODP implementation capabilities, when debugging other ODP applications, etc. Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-12-27example: adapt ipsec example to use IPsec APIDmitry Eremin-Solenikov
Adapt old (crypto-only) IPsec example to use IPsec API. Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-12-27example: ipsec_offload: add ipsec_offload exampleNikhil Agarwal
[DES: adapted example to updated API.] [DES: minor rework to drop odp_ prefix from function names.] Signed-off-by: Nikhil Agarwal <nikhil.agarwal@linaro.org> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-09-04configure: enable all tests by defaultDmitry Eremin-Solenikov
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2017-06-21example: add IPv4 fragmentation/reassembly exampleJoe Savage
Add an example application implementing lock-free IPv4 fragmentation and reassembly functionality using ODP's packet "concat" and "split". Signed-off-by: Joe Savage <joe.savage@arm.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-09-05example: introducing l3fwdXuelin Shi
multi-thread, multi-queues and bi-directional forwarding. support (port, queue, thread) arguments in cmdline which specify how the threads handle which rx queue at which port, if no this argument, default specification used. both hash and lpm based lookup methods are supported, default lpm. Signed-off-by: Xuelin Shi <forrest.shi@linaro.org> Reviewed-and-tested-by: Matias Elo <matias.elo@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-07-05example: hello: add hello world example applicationPetri Savolainen
This is a minimal application which demonstrates the startup and shutdown steps of an ODP application. It can be also used to debug API related build problems, etc. It does not use helpers to minimize dependency to anything else than the ODP API header file. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-04-27configure: fix broken conditional example executionMike Holmes
The configure environment was incorrect and the examples always run with make check Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-04-13example: switch: add new minimal learning switch exampleMatias Elo
Add new learning Ethernet switch example application. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Yogesh Tillu <yogesh.tillu@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-03-30example: m4: configure option to check examplesAnders Roxell
Suggested-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Tested-and-reviewed-by: Mike Holmes <mike.holmes@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-03-04example: tm: traffic manager exampleBill Fischofer
This commit includes all of the changes to build the traffic_mgr example application. Signed-off-by: Barry Spinney <spinney@ezchip.com> Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-03-04example: l2fwd_simple: add single-threaded l2fwd exampleJuha-Matti Tilli
The ODP distribution is lacking a simple example how to receive and send packets. The l2fwd is overly complicated because it supports an arbitrary number of interfaces, bi-directional operation and an arbitrary number of threads. To remedy this situation, add l2fwd_simple which is a single-threaded unidirectional variant of l2fwd for exactly two interfaces. l2fwd_simple can be used as an example application when learning how to use ODP. The focus when developing l2fwd_simple was to reduce the code line count to as small value as possible, and it turned out it requires 165 lines of code. For unidirectional traffic in single-threaded use cases, l2fwd_simple performs actually better than l2fwd with single thread, because l2fwd_simple does not need to poll two interfaces in a single thread. Signed-off-by: Juha-Matti Tilli <juha-matti.tilli@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
2016-03-02configure.ac: distribute the AC_CONFIG_FILESMike Holmes
Signed-off-by: Mike Holmes <mike.holmes@linaro.org> Reviewed-by: Christophe Milard <christophe.milard@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>