examples/l3fwd: support config file for LPM/FIB
authorSean Morrissey <sean.morrissey@intel.com>
Tue, 1 Mar 2022 14:49:07 +0000 (14:49 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Mar 2022 08:59:42 +0000 (09:59 +0100)
commit52def963fc1c5aa8eae51ea2f87e0a34be4e53ee
tree4f218c29be6b6f99132ecd29bff8c1cf8381dc78
parenta8dde09f97dfdec56bfb43fb7392eb9835bf414e
examples/l3fwd: support config file for LPM/FIB

Add support to define ipv4 and ipv6 forwarding tables
from reading from a config file for LPM and FIB,
with format similar to l3fwd-acl one.

Users can now use the default hardcoded route tables
or optionally config files. Default config files have
been provided for use with LPM and FIB.

Signed-off-by: Sean Morrissey <sean.morrissey@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Tested-by: Yingya Han <yingyax.han@intel.com>
examples/l3fwd/em_route_parse.c [new file with mode: 0644]
examples/l3fwd/l3fwd.h
examples/l3fwd/l3fwd_em.c
examples/l3fwd/l3fwd_fib.c
examples/l3fwd/l3fwd_lpm.c
examples/l3fwd/l3fwd_route.h
examples/l3fwd/lpm_default_v4.cfg [new file with mode: 0644]
examples/l3fwd/lpm_default_v6.cfg [new file with mode: 0644]
examples/l3fwd/lpm_route_parse.c [new file with mode: 0644]
examples/l3fwd/main.c