From: John Fastabend <john.fastabend@gmail.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [net-next PATCH 3/3] net: Add support for XPS with QoS via traffic classes
Date: Fri, 28 Oct 2016 08:49:40 -0700 [thread overview]
Message-ID: <58137394.4050803@gmail.com> (raw)
In-Reply-To: <CAKgT0UcZY4eKP0ezsijiJquqGKEwap8kA3Kqmg0BRYL8JF_90g@mail.gmail.com>
On 16-10-28 07:58 AM, Alexander Duyck wrote:
> On Thu, Oct 27, 2016 at 7:38 PM, Tom Herbert <tom@herbertland.com> wrote:
>> On Thu, Oct 27, 2016 at 8:40 AM, Alexander Duyck
>> <alexander.h.duyck@intel.com> wrote:
>>> This patch adds support for setting and using XPS when QoS via traffic
>>> classes is enabled. With this change we will factor in the priority and
>>> traffic class mapping of the packet and use that information to correctly
>>> select the queue.
>>>
>>> This allows us to define a set of queues for a given traffic class via
>>> mqprio and then configure the XPS mapping for those queues so that the
>>> traffic flows can avoid head-of-line blocking between the individual CPUs
>>> if so desired.
>>>
>> Does this change the sys API for XPS? Is it up the user to know which
>> are priority queues in sys?
>
> The idea was to keep the change transparent. So for now the only
> change in relation to XPS from the XPS point of view is that the map
> for a given queue is invalidated when either the dev->num_tcs changes
> or if the queue is moved into a dev->tx_to_txq mapping. Otherwise the
> interface should behave exactly the same as before.
>
> One thing I could look at doing is adding a read-only sysfs value that
> the user could use to identify which traffic class a given queue
> belongs to. Then at least that way they would be able to dump both
> the XPS map and the tc to determine how the traffic will flow through
> the device.
>
I could see some value in a sysfs read-only tc-queue mapping might be
especially for devices that are negotiating these things using firmware.
.John
WARNING: multiple messages have this Message-ID (diff)
From: John Fastabend <john.fastabend@gmail.com>
To: Alexander Duyck <alexander.duyck@gmail.com>,
Tom Herbert <tom@herbertland.com>
Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>,
intel-wired-lan <intel-wired-lan@lists.osuosl.org>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [Intel-wired-lan] [net-next PATCH 3/3] net: Add support for XPS with QoS via traffic classes
Date: Fri, 28 Oct 2016 08:49:40 -0700 [thread overview]
Message-ID: <58137394.4050803@gmail.com> (raw)
In-Reply-To: <CAKgT0UcZY4eKP0ezsijiJquqGKEwap8kA3Kqmg0BRYL8JF_90g@mail.gmail.com>
On 16-10-28 07:58 AM, Alexander Duyck wrote:
> On Thu, Oct 27, 2016 at 7:38 PM, Tom Herbert <tom@herbertland.com> wrote:
>> On Thu, Oct 27, 2016 at 8:40 AM, Alexander Duyck
>> <alexander.h.duyck@intel.com> wrote:
>>> This patch adds support for setting and using XPS when QoS via traffic
>>> classes is enabled. With this change we will factor in the priority and
>>> traffic class mapping of the packet and use that information to correctly
>>> select the queue.
>>>
>>> This allows us to define a set of queues for a given traffic class via
>>> mqprio and then configure the XPS mapping for those queues so that the
>>> traffic flows can avoid head-of-line blocking between the individual CPUs
>>> if so desired.
>>>
>> Does this change the sys API for XPS? Is it up the user to know which
>> are priority queues in sys?
>
> The idea was to keep the change transparent. So for now the only
> change in relation to XPS from the XPS point of view is that the map
> for a given queue is invalidated when either the dev->num_tcs changes
> or if the queue is moved into a dev->tx_to_txq mapping. Otherwise the
> interface should behave exactly the same as before.
>
> One thing I could look at doing is adding a read-only sysfs value that
> the user could use to identify which traffic class a given queue
> belongs to. Then at least that way they would be able to dump both
> the XPS map and the tc to determine how the traffic will flow through
> the device.
>
I could see some value in a sysfs read-only tc-queue mapping might be
especially for devices that are negotiating these things using firmware.
.John
next prev parent reply other threads:[~2016-10-28 15:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-27 15:39 [Intel-wired-lan] [net-next PATCH 0/3] Add support for XPS when using DCB Alexander Duyck
2016-10-27 15:39 ` Alexander Duyck
2016-10-27 15:40 ` [Intel-wired-lan] [net-next PATCH 1/3] net: Move functions for configuring traffic classes out of inline headers Alexander Duyck
2016-10-27 15:40 ` Alexander Duyck
2016-10-27 15:40 ` [Intel-wired-lan] [net-next PATCH 2/3] net: Refactor removal of queues from XPS map and apply on num_tc changes Alexander Duyck
2016-10-27 15:40 ` Alexander Duyck
2016-10-28 2:35 ` [Intel-wired-lan] " Tom Herbert
2016-10-28 2:35 ` Tom Herbert
2016-10-28 14:54 ` [Intel-wired-lan] " Alexander Duyck
2016-10-28 14:54 ` Alexander Duyck
2016-10-27 15:40 ` [Intel-wired-lan] [net-next PATCH 3/3] net: Add support for XPS with QoS via traffic classes Alexander Duyck
2016-10-27 15:40 ` Alexander Duyck
2016-10-28 2:38 ` [Intel-wired-lan] " Tom Herbert
2016-10-28 2:38 ` Tom Herbert
2016-10-28 14:58 ` [Intel-wired-lan] " Alexander Duyck
2016-10-28 14:58 ` Alexander Duyck
2016-10-28 15:49 ` John Fastabend [this message]
2016-10-28 15:49 ` John Fastabend
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=58137394.4050803@gmail.com \
--to=john.fastabend@gmail.com \
--cc=intel-wired-lan@osuosl.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.