examples/l3fwd: remove useless reloads in EM main loop
authorConor Walsh <conor.walsh@intel.com>
Tue, 6 Jul 2021 11:57:55 +0000 (11:57 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 7 Jul 2021 09:54:21 +0000 (11:54 +0200)
commit815611b3675bca733aa7e70b0c99a09ad0555aef
treebbed739eddb9d3b421eab769ce5027d515b1f5c6
parent6018b5ac7477c6ba8fbf28128dd4ebbafbeaffd0
examples/l3fwd: remove useless reloads in EM main loop

This patch aligns the l3fwd EM 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>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/l3fwd/l3fwd_em.c