[PATCH net-next v13 4/4] virtio-net: support dim profile fine-tuning

2024-05-08 Thread Heng Qi
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

[PATCH net-next v13 1/4] linux/dim: move useful macros to .h file

2024-05-08 Thread Heng Qi
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

[PATCH net-next v13 2/4] ethtool: provide customized dim profile management

2024-05-08 Thread Heng Qi
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

[PATCH net-next v13 0/4] ethtool: provide the dim profile fine-tuning channel

2024-05-08 Thread Heng Qi
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

[PATCH net-next v13 3/4] dim: add new interfaces for initialization and getting results

2024-05-08 Thread Heng Qi
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

Re: [PATCH net-next v12 0/4] ethtool: provide the dim profile fine-tuning channel

2024-05-08 Thread Heng Qi
On Tue, 7 May 2024 19:47:07 -0700, Jakub Kicinski wrote: > On Wed, 8 May 2024 10:12:35 +0800 Heng Qi wrote: > > I would like to confirm if there are still comments on the current version, > > since the current series and the just merged "Remove RTNL lock protection of > > CVQ" conflict with a line

Re: [PATCH net-next v12 2/4] ethtool: provide customized dim profile management

2024-05-08 Thread Heng Qi
On Wed, 8 May 2024 08:11:39 -0700, Jakub Kicinski wrote: > On Wed, 8 May 2024 21:26:46 +0800 Heng Qi wrote: > > On Tue, 7 May 2024 19:57:52 -0700, Jakub Kicinski wrote: > > > On Sat, 4 May 2024 14:44:45 +0800 Heng Qi wrote: > > > > @@ -1325,6 +1354,8 @@ operations: > > > > - tx-ag

Re: [PATCH net-next v12 2/4] ethtool: provide customized dim profile management

2024-05-08 Thread Jakub Kicinski
On Wed, 8 May 2024 21:26:46 +0800 Heng Qi wrote: > On Tue, 7 May 2024 19:57:52 -0700, Jakub Kicinski wrote: > > On Sat, 4 May 2024 14:44:45 +0800 Heng Qi wrote: > > > @@ -1325,6 +1354,8 @@ operations: > > > - tx-aggr-max-bytes > > > - tx-aggr-max-frames > > >

Re: [PATCH net-next v12 2/4] ethtool: provide customized dim profile management

2024-05-08 Thread Heng Qi
On Tue, 7 May 2024 19:57:52 -0700, Jakub Kicinski wrote: > On Sat, 4 May 2024 14:44:45 +0800 Heng Qi wrote: > > @@ -1325,6 +1354,8 @@ operations: > > - tx-aggr-max-bytes > > - tx-aggr-max-frames > > - tx-aggr-time-usecs > > +- rx-profile > > +