[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090907182220.GB4451@ami.dom.local>
Date: Mon, 7 Sep 2009 20:22:20 +0200
From: Jarek Poplawski <jarkao2@...il.com>
To: Patrick McHardy <kaber@...sh.net>
Cc: netdev@...r.kernel.org
Subject: Re: net_sched 07/07: add classful multiqueue dummy scheduler
On Mon, Sep 07, 2009 at 03:27:37PM +0200, Patrick McHardy wrote:
> Jarek Poplawski wrote:
...
> >> @@ -1095,10 +1100,16 @@ create_n_graft:
> >> q = qdisc_create(dev, &dev->rx_queue,
> >> tcm->tcm_parent, tcm->tcm_parent,
> >> tca, &err);
> >> - else
> >> - q = qdisc_create(dev, netdev_get_tx_queue(dev, 0),
> >> + else {
> >> + unsigned int ntx = 0;
> >> +
> >> + if (p && p->ops->cl_ops && p->ops->cl_ops->select_queue)
> >> + ntx = p->ops->cl_ops->select_queue(p, tcm);
> >
> > So, this if could be probably made shorter with a common function, but
> > the main point is: this probably works only for qdiscs having mq as a
> > parent, and not below.
>
> Yes. mq can only be attached to the root however, so its not
> possible to use it as a child qdisc.
I mean this ->select_queue() works OK for a child qdisc of mq, e.g.
htb, but not for a child qdisc of this htb qdisc, e.g. sfq.
Jarek P.
--
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