Virtio-net has different types of back-end device implementations.
In order to effectively optimize the dim library's gains for different
device implementations, let's use the new interface params to
initialize and query dim results from a customized profile list.
Signed-off-by: Heng Qi
---
driv
Useful macros will be used effectively elsewhere.
These will be utilized in subsequent patches.
Signed-off-by: Heng Qi
---
include/linux/dim.h | 7 +++
lib/dim/net_dim.c | 6 --
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/include/linux/dim.h b/include/linux/dim.h
ind
The NetDIM library, currently leveraged by an array of NICs, delivers
excellent acceleration benefits. Nevertheless, NICs vary significantly
in their dim profile list prerequisites.
Specifically, virtio-net backends may present diverse sw or hw device
implementation, making a one-size-fits-all par
DIM-related mode and work have been collected in one same place,
so new interfaces are added to provide convenience.
Signed-off-by: Heng Qi
---
include/linux/dim.h | 48
lib/dim/net_dim.c | 68 +
2 files changed, 116
The NetDIM library provides excellent acceleration for many modern
network cards. However, the default profiles of DIM limits its maximum
capabilities for different NICs, so providing a way which the NIC can
be custom configured is necessary.
Currently, the way is based on the commonly used "ethto
On Fri, 3 May 2024 14:52:44 +0100, Simon Horman wrote:
> On Wed, May 01, 2024 at 01:31:34AM +0800, Heng Qi wrote:
>
> ...
>
> > diff --git a/include/linux/dim.h b/include/linux/dim.h
>
> ...
>
> > @@ -198,6 +234,32 @@ enum dim_step_result {
> > DIM_ON_EDGE,
> > };
> >
> > +/**
> > + * n
On Wed, May 01, 2024 at 01:31:34AM +0800, Heng Qi wrote:
...
> diff --git a/include/linux/dim.h b/include/linux/dim.h
...
> @@ -198,6 +234,32 @@ enum dim_step_result {
> DIM_ON_EDGE,
> };
>
> +/**
> + * net_dim_init_irq_moder - collect information to initialize irq moderation
> + * @de
On Fri, Apr 26, 2024 at 04:10:49PM -0700, Kees Cook wrote:
> On Tue, Apr 09, 2024 at 08:57:49PM +0300, Adrian Ratiu wrote:
> > Prior to v2.6.39 write access to /proc//mem was restricted,
> > after which it got allowed in commit 198214a7ee50 ("proc: enable
> > writing to /proc/pid/mem"). Famous last