aboutsummaryrefslogtreecommitdiff
path: root/example/m4
diff options
context:
space:
mode:
authorJuha-Matti Tilli <juha-matti.tilli@nokia.com>2016-02-29 11:28:52 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-03-04 13:24:49 +0300
commit6aa4e56fec65abe7b96a717b0c7f533b9975172f (patch)
treee96e7bc60d95d14114d6ee6d2edc6912fad75ed4 /example/m4
parentdcc37e3793202143a515a9ea3be69a61212967c7 (diff)
example: l2fwd_simple: add single-threaded l2fwd example
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>
Diffstat (limited to 'example/m4')
-rw-r--r--example/m4/configure.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/example/m4/configure.m4 b/example/m4/configure.m4
index bc90f820c..1710a31b8 100644
--- a/example/m4/configure.m4
+++ b/example/m4/configure.m4
@@ -4,4 +4,5 @@ AC_CONFIG_FILES([example/classifier/Makefile
example/Makefile
example/packet/Makefile
example/time/Makefile
- example/timer/Makefile])
+ example/timer/Makefile
+ example/l2fwd_simple/Makefile])