examples/l3fwd: remove useless reloads in FIB main loop
authorConor Walsh <conor.walsh@intel.com>
Mon, 5 Jul 2021 17:05:46 +0000 (17:05 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 7 Jul 2021 09:54:21 +0000 (11:54 +0200)
commit6018b5ac7477c6ba8fbf28128dd4ebbafbeaffd0
treeb84160c28421a81407a6acd1ab157f8dab9aa670
parentdbd4defea5c937078549c4289836745697d14459
examples/l3fwd: remove useless reloads in FIB main loop

This patch aligns the l3fwd FIB code with the changes made to LPM in
commit 74fb854a3de6 ("examples/l3fwd: remove useless reloads in LPM
main loop").
This change ensures the compiler knows that the lcore config variables
are constant values and the compiler will then optimize the code
accordingly.

Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/l3fwd/l3fwd_fib.c