From: "Michael S. Tsirkin" <mst@redhat.com>
To: Heng Qi <hengqi@linux.alibaba.com>
Cc: netdev@vger.kernel.org, virtualization@lists.linux.dev,
Jakub Kicinski <kuba@kernel.org>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Jason Wang <jasowang@redhat.com>,
Brett Creeley <bcreeley@amd.com>,
Ratheesh Kannoth <rkannoth@marvell.com>,
Alexander Lobakin <aleksander.lobakin@intel.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Subject: Re: [PATCH RESEND net-next v7 0/4] ethtool: provide the dim profile fine-tuning channel
Date: Mon, 22 Apr 2024 16:55:04 -0400 [thread overview]
Message-ID: <20240422165456-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20240415133807.116394-1-hengqi@linux.alibaba.com>
On Mon, Apr 15, 2024 at 09:38:03PM +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 way which the NIC can
> be custom configured is necessary.
>
> Currently, interaction with the driver is still based on the commonly
> used "ethtool -C".
>
> Since the profile now exists in netdevice, adding a function similar
> to net_dim_get_rx_moderation_dev() with netdevice as argument is
> nice, but this would be better along with cleaning up the rest of
> the drivers, which we can get to very soon after this set.
>
> Please review, thank you very much!
Acked-by: Michael S. Tsirkin <mst@redhat.com>
> Changelog
> =====
> v6->v7:
> - A new wrapper struct pointer is used in struct net_device.
> - Add IS_ENABLED(CONFIG_DIMLIB) to avoid compiler warnings.
> - Profile fields changed from u16 to u32.
>
> v5->v6:
> - Place the profile in netdevice to bypass the driver.
> The interaction code of ethtool <-> kernel has not changed at all,
> only the interaction part of kernel <-> driver has changed.
>
> v4->v5:
> - Update some snippets from Kuba, Thanks.
>
> v3->v4:
> - Some tiny updates and patch 1 only add a new comment.
>
> v2->v3:
> - Break up the attributes to avoid the use of raw c structs.
> - Use per-device profile instead of global profile in the driver.
>
> v1->v2:
> - Use ethtool tool instead of net-sysfs
>
> Heng Qi (4):
> linux/dim: move useful macros to .h file
> ethtool: provide customized dim profile management
> virtio-net: refactor dim initialization/destruction
> virtio-net: support dim profile fine-tuning
>
> Heng Qi (4):
> linux/dim: move useful macros to .h file
> ethtool: provide customized dim profile management
> virtio-net: refactor dim initialization/destruction
> virtio-net: support dim profile fine-tuning
>
> Documentation/netlink/specs/ethtool.yaml | 33 +++
> Documentation/networking/ethtool-netlink.rst | 8 +
> drivers/net/virtio_net.c | 46 +++--
> include/linux/dim.h | 13 ++
> include/linux/ethtool.h | 11 +-
> include/linux/netdevice.h | 24 +++
> include/uapi/linux/ethtool_netlink.h | 24 +++
> lib/dim/net_dim.c | 10 +-
> net/core/dev.c | 83 ++++++++
> net/ethtool/coalesce.c | 201 ++++++++++++++++++-
> 10 files changed, 430 insertions(+), 23 deletions(-)
>
> --
> 2.32.0.3.g01195cf9f
next prev parent reply other threads:[~2024-04-22 20:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-15 13:38 [PATCH RESEND net-next v7 0/4] ethtool: provide the dim profile fine-tuning channel Heng Qi
2024-04-15 13:38 ` [PATCH RESEND net-next v7 1/4] linux/dim: move useful macros to .h file Heng Qi
2024-04-15 13:38 ` [PATCH RESEND net-next v7 2/4] ethtool: provide customized dim profile management Heng Qi
2024-04-15 13:38 ` [PATCH RESEND net-next v7 3/4] virtio-net: refactor dim initialization/destruction Heng Qi
2024-04-15 13:38 ` [PATCH RESEND net-next v7 4/4] virtio-net: support dim profile fine-tuning Heng Qi
2024-04-22 20:55 ` Michael S. Tsirkin [this message]
2024-04-24 14:26 ` [PATCH RESEND net-next v7 0/4] ethtool: provide the dim profile fine-tuning channel Heng Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240422165456-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=aleksander.lobakin@intel.com \
--cc=bcreeley@amd.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hengqi@linux.alibaba.com \
--cc=jasowang@redhat.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rkannoth@marvell.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).