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

Ruifeng Wang Ruifeng.Wang at arm.com
Tue Jul 6 03:38:37 CEST 2021


> -----Original Message-----
> From: Conor Walsh <conor.walsh at intel.com>
> Sent: Tuesday, July 6, 2021 1:06 AM
> To: konstantin.ananyev at intel.com; vladimir.medvedkin at intel.com; Ruifeng
> Wang <Ruifeng.Wang at arm.com>; jerinj at marvell.com
> Cc: dev at dpdk.org; paulis.gributs at intel.com; Conor Walsh
> <conor.walsh at intel.com>
> Subject: [PATCH] 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 at intel.com>
> ---
>  examples/l3fwd/l3fwd_fib.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 
Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>


More information about the dev mailing list