[RFC PATCH 0/2] net: provides dim profile fine-tuning channels

Heng Qi posted 2 patches 1 year, 11 months ago
Documentation/ABI/testing/sysfs-class-net |  17 +++
drivers/net/virtio_net.c                  |  64 ++++++++++-
include/linux/dim.h                       |   7 ++
include/linux/netdevice.h                 |  35 ++++++
lib/dim/net_dim.c                         |   6 --
net/core/net-sysfs.c                      | 172 ++++++++++++++++++++++++++++++
6 files changed, 294 insertions(+), 7 deletions(-)
[RFC PATCH 0/2] net: provides dim profile fine-tuning channels
Posted by Heng Qi 1 year, 11 months ago
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 channel through which
the NIC can be custom configured is necessary.

Please review, thank you very much!

Heng Qi (2):
  net: add sysfs attributes for customized dim profile management
  virtio-net: support net sysfs to fine-tune dim profile

 Documentation/ABI/testing/sysfs-class-net |  17 +++
 drivers/net/virtio_net.c                  |  64 ++++++++++-
 include/linux/dim.h                       |   7 ++
 include/linux/netdevice.h                 |  35 ++++++
 lib/dim/net_dim.c                         |   6 --
 net/core/net-sysfs.c                      | 172 ++++++++++++++++++++++++++++++
 6 files changed, 294 insertions(+), 7 deletions(-)

-- 
1.8.3.1
Re: [RFC PATCH 0/2] net: provides dim profile fine-tuning channels
Posted by Jakub Kicinski 1 year, 11 months ago
On Thu, 14 Mar 2024 21:09:31 +0800 Heng Qi wrote:
> 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 channel through which
> the NIC can be custom configured is necessary.

Given that DIM is currently enabled and disable via ethtool
why are you putting the API is sysfs and ops in ndo?
Re: [RFC PATCH 0/2] net: provides dim profile fine-tuning channels
Posted by Heng Qi 1 year, 11 months ago

在 2024/3/15 上午2:49, Jakub Kicinski 写道:
> On Thu, 14 Mar 2024 21:09:31 +0800 Heng Qi wrote:
>> 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 channel through which
>> the NIC can be custom configured is necessary.
> Given that DIM is currently enabled and disable via ethtool
> why are you putting the API is sysfs and ops in ndo?

Hi Jakub,

Thank you for reaching out. We're flexible regarding configuration 
methods and are
open to using either sysfs or ethtool, depending on what's most 
appropriate for the task at hand.

If the ethtool is favored, I am happy to proceed with it!

Best regards,
Heng