[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKgT0Udmm9UbQjC3Zcikykcd7e_yvoPayFXA6Kq+TZ_hbqi-4Q@mail.gmail.com>
Date: Tue, 1 Dec 2015 17:57:45 -0800
From: Alexander Duyck <alexander.duyck@...il.com>
To: Jesse Brandeburg <jesse.brandeburg@...el.com>
Cc: Florian Fainelli <f.fainelli@...il.com>, kan.liang@...el.com,
Netdev <netdev@...r.kernel.org>,
intel-wired-lan <intel-wired-lan@...ts.osuosl.org>,
David Miller <davem@...emloft.net>,
Andi Kleen <andi@...stfloor.org>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
"Nelson, Shannon" <shannon.nelson@...el.com>,
Carolyn Wyborny <carolyn.wyborny@...el.com>,
"Skidmore, Donald C" <donald.c.skidmore@...el.com>,
"Vick, Matthew" <matthew.vick@...el.com>,
"Ronciak, John" <john.ronciak@...el.com>,
Mitch Williams <mitch.a.williams@...el.com>,
John Fastabend <john.r.fastabend@...el.com>,
Or Gerlitz <ogerlitz@...lanox.com>,
Eric Dumazet <edumazet@...gle.com>,
Jiri Pirko <jiri@...lanox.com>,
Scott Feldman <sfeldma@...il.com>,
andy gospodarek <gospo@...ulusnetworks.com>,
sasha.levin@...cle.com, David Ahern <dsahern@...il.com>,
tj@...nel.org, cascardo@...hat.com, corbet@....net
Subject: Re: [RFC 1/4] net: support per queue tx_usecs in sysfs
On Tue, Dec 1, 2015 at 3:44 PM, Jesse Brandeburg
<jesse.brandeburg@...el.com> wrote:
> On Tue, 1 Dec 2015 14:13:34 -0800
> Florian Fainelli <f.fainelli@...il.com> wrote:
>
>> On 01/12/15 00:01, kan.liang@...el.com wrote:
>> > From: Kan Liang <kan.liang@...el.com>
>> >
>> > Network devices usually have many queues. Each queue has its own
>> > tx_usecs options. Currently, we can only set all the queues with same
>> > value by ethtool. This patch expose the tx_usecs in sysfs. So the user
>> > can set/get per queue coalesce parameter tx_usecs by sysfs.
>>
>> The new interface you propose makes things inconsistent, since we have
>> two separate configuration paths (sysfs and ethtool), and it would seem
>> better to have per-queue awareness in ethtool, since there is a whole
>> bunch of other parameters that could be configured on a per-queue basis.
>>
>> Have you tried to extend existing ethtool interfaces to cover the need
>> for multiple queues?
>
> While I agree that ethtool provides a similar functionality, ethtool
> was designed (particularly the ethtool -C/c commands) around one queue
> NICs. We can't change the output or functionality of the user
> interface without breaking a bunch of user's scripts and stuff.
Actually it seems like it should be fairly easy to extend the existing
interface. If for example you were to add a couple new keywords such
as rx-queue or tx-queue what you could do is make it so that you would
then specifically overwrite or access the values of a given Tx queue
or Rx queue instead of doing it generically for the entire device.
> With this effort, Kan is laying groundwork for making further kernel
> changes, and having the kernel call back in to drivers via ethtool
> mechanisms that were designed before multiple queue adapters.
>
> We can also next migrate the legacy ethtool interfaces to use these
> new .ndo_ops should we wish.
Maybe that is the path this should start taking now. Another thing to
keep in mind is that not all drivers make use of the rx-usecs value
the way the Intel drivers do. As such we need to be able to still
support all the various interrupt moderation types that are supported
by any NICs that might make use of this feature.
> These patches were provided with the intent of getting some feedback
> about going down this path of making a *consistent* user interface that
> is driver agnostic in sysfs, and supports multiple queue adapters.
If you are truly going for something that is driver agnostic you need
to start looking at other drivers. For example I don't see how this
current implementation deals with the tx/rx_frames values provided in
the mlx4 drivers for their interrupt moderation. Also it seems like
the assumption here is that you are going to want to run all of the
queues statically without allowing dynamic interrupt moderation. I
would think that this might be something that could be managed per
queue as well.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists