mbox

[v3,0/2] Add config file support for l3fwd

Message ID 20211221123037.1037203-1-sean.morrissey@intel.com (mailing list archive)
Headers

Message

Sean Morrissey Dec. 21, 2021, 12:30 p.m. UTC
  This patchset introduces config file support for l3fwd
and its lookup methods LPM, FIB, and EM, similar to
that of l3fwd-acl. This allows for route rules to be
defined in configuration files and edited there instead
of in each of the lookup methods hardcoded route tables.

Sean Morrissey (2):
  examples/l3fwd: add config file support for LPM/FIB
  examples/l3fwd: add config file support for EM

 doc/guides/sample_app_ug/l3_forward.rst |  89 +++--
 examples/l3fwd/em_default_v4.cfg        |  17 +
 examples/l3fwd/em_default_v6.cfg        |  17 +
 examples/l3fwd/l3fwd.h                  |  35 ++
 examples/l3fwd/l3fwd_em.c               | 479 ++++++++++++++----------
 examples/l3fwd/l3fwd_fib.c              |  52 +--
 examples/l3fwd/l3fwd_lpm.c              | 281 +++++++++++++-
 examples/l3fwd/l3fwd_route.h            |  49 ++-
 examples/l3fwd/lpm_default_v4.cfg       |  17 +
 examples/l3fwd/lpm_default_v6.cfg       |  17 +
 examples/l3fwd/main.c                   |  99 ++---
 11 files changed, 847 insertions(+), 305 deletions(-)
 create mode 100644 examples/l3fwd/em_default_v4.cfg
 create mode 100644 examples/l3fwd/em_default_v6.cfg
 create mode 100644 examples/l3fwd/lpm_default_v4.cfg
 create mode 100644 examples/l3fwd/lpm_default_v6.cfg