Skip to content

examples/l3fwd: add FIB lookup method to l3fwd

Conor Walsh dpdk-dev 8 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest5 patches 1 replyApplied
  2. v75 patches 8 repliesSuperseded
  3. v65 patches 2 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v55 patches4 repliesSuperseded
v45 patches2 repliesSuperseded
v35 patches12 repliesSuperseded
v25 patches0 repliesSuperseded
v15 patches0 repliesSuperseded

Changes in v8 from the cover letter

- Updated commit log to better explain why subnets needed to be changed
- Changed the suffix on _common_route varibles to just _route
- Corrected spacing issue
- Route array symbols now only appear in binary once
- Added notice to release notes
- Removed large c blocks from doc and replaced with includes

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/5examples/l3fwd: fix LPM IPv6 subnetsexamples/l3fwd/l3fwd_lpm.c+16 -100 replies
2/5examples/l3fwd: move l3fwd routes to common headerexamples/l3fwd/l3fwd_lpm.c examples/l3fwd/l3fwd_route.h examples/l3fwd/main.c+67 -570 replies
3/5examples/l3fwd: add FIB infrastructureexamples/l3fwd/Makefile examples/l3fwd/l3fwd.h examples/l3fwd/l3fwd_event.c +4 more+186 -360 replies
4/5examples/l3fwd: implement FIB lookup methodexamples/l3fwd/l3fwd_fib.c+474 -60 replies
5/5doc/guides/l3_forward: update documentation for FIBdoc/guides/rel_notes/release_21_05.rst doc/guides/sample_app_ug/l3_forward.rst+42 -130 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchVladimir MedvedkinKonstantin AnanyevAnatoly BurakovJohn McNamara
1/5A-b
2/5A-b A-b
3/5A-b A-b A-b
4/5A-b A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v8 thread

Cover letter [dpdk-dev] [PATCH v8 0/5] examples/l3fwd: add FIB lookup method to l3fwd

Currently the l3fwd sample app supports LPM and EM lookup methods this patchset implements the FIB library as another lookup method for l3fwd. Instead of adding an individual flag for FIB, a new flag '--lookup' has been added that allows the user to select their desired lookup method. The flags '-E' and '-L' have been retained for backwards compatibility.

---
v8:
- Updated commit log to better explain why subnets needed to be changed
- Changed the suffix on _common_route varibles to just _route
- Corrected spacing issue
- Route array symbols now only appear in binary once
- Added notice to release notes
- Removed large c blocks from doc and replaced with includes

v7:
- Error log for invalid lookup method now runs within the parse_lookup function for better maintainability

v6:
- rte_exit no longer used within parse_lookup, exiting due to incorrect config is now handled the same as the other config options
- Corrected a typo within print usage
- Moved -E and -L to the bottom of print usage as they are now legacy flags

v5:
- Removed runtime checks to ensure desired port is within portmask, unused ports are still removed during setup

v4:
- Changed individual switches for lookup methods to an enum for all lookup methods
- Removed '-F' and introduced '--lookup' flag to select lookup methods
- Fixed indentation issues
- Renamed some variables for increased clarity
- Minor changes to some logic for readability
- Implemented MAC updating for FIB on non-SSE machines
- Implemented RFC1812 for FIB on non-SSE machines
- Added checks to ensure desired port is within portmask

v3: add support for NEON, PPC 64 and machines that do not support SSE,
NEON or PPC 64.

v2: added the socket header file to fix FreeBSD build.

Conor Walsh (5):
examples/l3fwd: fix LPM IPv6 subnets examples/l3fwd: move l3fwd routes to common header examples/l3fwd: add FIB infrastructure examples/l3fwd: implement FIB lookup method doc/guides/l3_forward: update documentation for FIB

 doc/guides/rel_notes/release_21_05.rst  |   5 +
 doc/guides/sample_app_ug/l3_forward.rst |  50 ++-
 examples/l3fwd/Makefile                 |   2 +-
 examples/l3fwd/l3fwd.h                  |  27 +-
 examples/l3fwd/l3fwd_event.c            |   9 +
 examples/l3fwd/l3fwd_event.h            |   1 +
 examples/l3fwd/l3fwd_fib.c              | 528 ++++++++++++++++++++++++
 examples/l3fwd/l3fwd_lpm.c              |  68 +--
 examples/l3fwd/l3fwd_route.h            |  19 +
 examples/l3fwd/main.c                   | 150 +++++--
 examples/l3fwd/meson.build              |   4 +-
 11 files changed, 763 insertions(+), 100 deletions(-)
 create mode 100644 examples/l3fwd/l3fwd_fib.c
 create mode 100644 examples/l3fwd/l3fwd_route.h
Signature · 1 line
2.25.1