RE: [PATCH] examples/l3fwd: add option to set refetch offset

2025-02-19 Thread Konstantin Ananyev
> Subject: [PATCH] examples/l3fwd: add option to set refetch offset I suppose it should be 'prefetch'. > The prefetch window depending on the HW platform. It is difficult to > measure the prefetch window of a HW platform. Therefore, the prefetch > offset option is added

Re: [PATCH] examples/l3fwd: add option to set refetch offset

2025-01-14 Thread Stephen Hemminger
On Tue, 14 Jan 2025 08:07:52 -0800 Stephen Hemminger wrote: > On Tue, 14 Jan 2025 17:22:08 +0800 > huangdengdui wrote: > > > On 2025/1/11 1:20, Stephen Hemminger wrote: > > > This will make it slower for many platforms. > > > GCC will unroll a loop of fixed small size, which is what we want.

Re: [PATCH] examples/l3fwd: add option to set refetch offset

2025-01-14 Thread Stephen Hemminger
On Tue, 14 Jan 2025 17:22:08 +0800 huangdengdui wrote: > On 2025/1/11 1:20, Stephen Hemminger wrote: > > This will make it slower for many platforms. > > GCC will unroll a loop of fixed small size, which is what we want. > > Do you mean to replace option with a macro? > But most of prefetch_of

Re: [PATCH] examples/l3fwd: add option to set refetch offset

2025-01-14 Thread huangdengdui
On 2025/1/11 1:19, Stephen Hemminger wrote: > On Fri, 10 Jan 2025 17:37:15 +0800 > Dengdui Huang wrote: > >> +#define DEFAULT_PREFECH_OFFSET 4 > > Spelling I made a mistake. I'll fix it for the next version.

Re: [PATCH] examples/l3fwd: add option to set refetch offset

2025-01-14 Thread huangdengdui
On 2025/1/11 1:20, Stephen Hemminger wrote: > This will make it slower for many platforms. > GCC will unroll a loop of fixed small size, which is what we want. Do you mean to replace option with a macro? But most of prefetch_offset are used with the nb_rx, So using macros is the same as using o

Re: [PATCH] examples/l3fwd: add option to set refetch offset

2025-01-10 Thread Stephen Hemminger
On Fri, 10 Jan 2025 17:37:15 +0800 Dengdui Huang wrote: > The prefetch window depending on the HW platform. It is difficult to > measure the prefetch window of a HW platform. Therefore, the prefetch > offset option is added to change the prefetch window. User can adjust > the refetch offset to ac

Re: [PATCH] examples/l3fwd: add option to set refetch offset

2025-01-10 Thread Stephen Hemminger
On Fri, 10 Jan 2025 17:37:15 +0800 Dengdui Huang wrote: > +#define DEFAULT_PREFECH_OFFSET 4 Spelling

[PATCH] examples/l3fwd: add option to set refetch offset

2025-01-10 Thread Dengdui Huang
The prefetch window depending on the HW platform. It is difficult to measure the prefetch window of a HW platform. Therefore, the prefetch offset option is added to change the prefetch window. User can adjust the refetch offset to achieve the best prefetch effect. In addition, this option is used