Re: [dpdk-dev] [PATCH] examples/l3fwd: remove useless reloads in EM main loop

2021-07-07 Thread David Marchand
On Tue, Jul 6, 2021 at 1:58 PM Conor Walsh wrote: > > 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 val

Re: [dpdk-dev] [PATCH] examples/l3fwd: remove useless reloads in EM main loop

2021-07-06 Thread David Marchand
On Tue, Jul 6, 2021 at 1:58 PM Conor Walsh wrote: > > 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 val

Re: [dpdk-dev] [PATCH] examples/l3fwd: remove useless reloads in EM main loop

2021-07-06 Thread Ruifeng Wang
> -Original Message- > From: Conor Walsh > Sent: Tuesday, July 6, 2021 7:58 PM > To: david.march...@redhat.com; konstantin.anan...@intel.com; > vladimir.medved...@intel.com; Ruifeng Wang ; > jer...@marvell.com > Cc: dev@dpdk.org; paulis.grib...@intel.com; Conor Walsh > > Subject: [PATCH]

[dpdk-dev] [PATCH] examples/l3fwd: remove useless reloads in EM main loop

2021-07-06 Thread Conor Walsh
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.