examples/l3fwd: fix scalar LPM
authorStanislaw Kardach <kda@semihalf.com>
Wed, 11 May 2022 14:56:50 +0000 (16:56 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 23 May 2022 13:26:09 +0000 (15:26 +0200)
commita137eb2b2512c202eb01ba96bb592a24cffc72c8
treece95a9c7fff40195e3c8465eeb246bf2ce2f8504
parent26d734b5d280b96f91f00f5e0c6c7eff99facef2
examples/l3fwd: fix scalar LPM

The lpm_process_event_pkt() can either process a packet using an
architecture specific (defined for X86/SSE, ARM/Neon and PPC64/Altivec)
path or a scalar one. The choice is however done using an ifdef
pre-processor macro. Because of that the scalar version was apparently
not widely exercised/compiled.
Due to some copy/paste errors, the scalar logic in
lpm_process_event_pkt() retained a "continue" statement where it should
utilize rfc1812_process() and return the port/BAD_PORT.

Fixes: 99fc91d18082 ("examples/l3fwd: add event lpm main loop")

Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/l3fwd/l3fwd_lpm.c