public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <bhutchings@solarflare.com>
To: John Fastabend <john.r.fastabend@intel.com>
Cc: davem@davemloft.net, jarkao2@gmail.com, hadi@cyberus.ca,
	eric.dumazet@gmail.com, shemminger@vyatta.com,
	tgraf@infradead.org, nhorman@tuxdriver.com,
	netdev@vger.kernel.org
Subject: Re: [net-next-2.6 PATCH v7 1/2] net: implement mechanism for HW based QOS
Date: Thu, 13 Jan 2011 22:30:32 +0000	[thread overview]
Message-ID: <1294957832.3946.61.camel@bwh-desktop> (raw)
In-Reply-To: <20110107224543.19830.74009.stgit@jf-dev1-dcblab>

I'm actually having a go at implementing this, as a result of which I
have some more questions:

On Fri, 2011-01-07 at 14:45 -0800, John Fastabend wrote:
[...]
> With the mechanism in this patch users can set skb priority using
> expected methods ie setsockopt() or the stack can set the priority
> directly. Then the skb will be steered to the correct tx queues
> aligned with hardware QOS traffic classes. In the normal case with
> a single traffic class and all queues in this class everything
> works as is until the LLD enables multiple tcs.
> 
> To steer the skb we mask out the lower 4 bits of the priority
> and allow the hardware to configure upto 15 distinct classes
> of traffic. This is expected to be sufficient for most applications
> at any rate it is more then the 8021Q spec designates and is
> equal to the number of prio bands currently implemented in
> the default qdisc.

What is the meaning of a class number?  Is it simply higher number =>
higher priority?  If there are exactly 8 classes, can they be assumed to
match the 802.1q priority classes?

> This in conjunction with a userspace application such as
> lldpad can be used to implement 8021Q transmission selection
> algorithms one of these algorithms being the extended transmission
> selection algorithm currently being used for DCB.

Should an Ethernet driver/hardware insert a 802.1q priority tag if it
implements this, or should that be left to higher levels?

> Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
> ---
> 
>  include/linux/netdevice.h |   65 +++++++++++++++++++++++++++++++++++++++++++++
>  net/core/dev.c            |   61 ++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 125 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 0f6b1c9..b1dbbed 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
[...]
> @@ -756,6 +764,7 @@ struct xps_dev_maps {
>   * int (*ndo_set_vf_port)(struct net_device *dev, int vf,
>   *			  struct nlattr *port[]);
>   * int (*ndo_get_vf_port)(struct net_device *dev, int vf, struct sk_buff *skb);
> + * void (*ndo_setup_tc)(struct net_device *dev, u8 tc, unsigned int txq)
[...]

This is not documentation, it is just repetition!

Please specify what the parameters mean.  In particular, what is the
purpose of the txq parameter; can it be different from
dev->real_num_tx_queues?

Is this operation allowed to change the number of TX queues?  I was
looking at scaling the number of queues according to the number of
classes.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.


  parent reply	other threads:[~2011-01-13 22:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 22:45 [net-next-2.6 PATCH v7 1/2] net: implement mechanism for HW based QOS John Fastabend
2011-01-07 22:45 ` [net-next-2.6 PATCH v7 2/2] net_sched: implement a root container qdisc sch_mqprio John Fastabend
2011-01-07 23:28   ` Jarek Poplawski
2011-01-13 22:30 ` Ben Hutchings [this message]
2011-01-14 16:01   ` [net-next-2.6 PATCH v7 1/2] net: implement mechanism for HW based QOS 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=1294957832.3946.61.camel@bwh-desktop \
    --to=bhutchings@solarflare.com \
    --cc=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=hadi@cyberus.ca \
    --cc=jarkao2@gmail.com \
    --cc=john.r.fastabend@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=shemminger@vyatta.com \
    --cc=tgraf@infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox