Re: [dpdk-dev] [PATCH 3/4] examples/l3fwd: eliminate unnecessary reloads in loop

2021-04-13 Thread Ruifeng Wang
: Re: [dpdk-dev] [PATCH 3/4] examples/l3fwd: eliminate unnecessary > reloads in loop > > On Thu, Mar 18, 2021 at 3:56 PM Ruifeng Wang > wrote: > > > > Number of rx queue and number of rx port in lcore config are constants > > during the period of l3 forward appl

Re: [dpdk-dev] [PATCH 3/4] examples/l3fwd: eliminate unnecessary reloads in loop

2021-04-13 Thread Jerin Jacob
On Thu, Mar 18, 2021 at 3:56 PM Ruifeng Wang wrote: > > Number of rx queue and number of rx port in lcore config are constants > during the period of l3 forward application running. But compiler has > no this information. > > Copied values from lcore config to local variables and used the local >

[dpdk-dev] [PATCH 3/4] examples/l3fwd: eliminate unnecessary reloads in loop

2021-03-18 Thread Ruifeng Wang
Number of rx queue and number of rx port in lcore config are constants during the period of l3 forward application running. But compiler has no this information. Copied values from lcore config to local variables and used the local variables for iteration. Compiler can see that the local variables