[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240410185442.7ff17c47@kernel.org>
Date: Wed, 10 Apr 2024 18:54:42 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Heng Qi <hengqi@...ux.alibaba.com>
Cc: netdev@...r.kernel.org, virtualization@...ts.linux.dev, "David S.
Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Paolo
Abeni <pabeni@...hat.com>, Jason Wang <jasowang@...hat.com>, "Michael S.
Tsirkin" <mst@...hat.com>, Ratheesh Kannoth <rkannoth@...vell.com>,
Alexander Lobakin <aleksander.lobakin@...el.com>, Xuan Zhuo
<xuanzhuo@...ux.alibaba.com>
Subject: Re: [PATCH net-next v5 4/4] virtio-net: support dim profile
fine-tuning
On Wed, 10 Apr 2024 11:09:16 +0800 Heng Qi wrote:
> The point is that the driver may check whether the user has set
> parameters that it does not want.
> For example, virtio may not want the modification of comps, and ice/idpf
> may not want the modification
> of comps and pkts.
If it's simply about the fields, not the range of values, flags of
what's supported would suffice. If we need more complicated checks
you can treat the driver callback as a validation callback, and
when driver returns success - copy in the core.
> But you inspired me to think from another perspective. If parameters are
> placed in netdevice, the
> goal of user modification is to modify the profile of netdevice, and the
> driver can obtain its own
> target parameters from it as needed. Do you like this?
Yes, IIUC.
> In addition, if the netdevice way is preferred, I would like to confirm
> whether we still continue the
> "ethtool -C" way, that is, complete the modification of netdevice
> profile in __ethnl_set_coalesce()?
That'd be great. If the driver validation is complex we can keep some
form of the SET callback. But we definitely don't need to extend the
GET callback since core will have the values, and can return them to
the user.
Powered by blists - more mailing lists