[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49808544.5010304@trash.net>
Date: Wed, 28 Jan 2009 17:18:12 +0100
From: Patrick McHardy <kaber@...sh.net>
To: Jarek Poplawski <jarkao2@...il.com>
CC: David Miller <davem@...emloft.net>, devik@....cz,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] pkt_sched: sch_htb: Warn on too many events.
Jarek Poplawski wrote:
> pkt_sched: sch_htb: Warn on too many events.
>
> Let's get some info on possible config problems. This patch brings
> back an old warning, but it's printed only once now. BTW a "class
> isn't work conserving" warning is also limited to once per qdisc
> instead of per class.
>
> With feedback from Patrick McHardy <kaber@...sh.net>
>
> Signed-off-by: Jarek Poplawski <jarkao2@...il.com>
> ---
>
> skb = cl->un.leaf.q->dequeue(cl->un.leaf.q);
> if (likely(skb != NULL))
> break;
> - if (!cl->warned) {
> + if (!(q->warned & HTB_WARN_NONCONSERVING)) {
> printk(KERN_WARNING
> "htb: class %X isn't work conserving ?!\n",
> cl->common.classid);
> - cl->warned = 1;
> + q->warned |= HTB_WARN_NONCONSERVING;
How about making this flag and the warning message (in a out-of-line
function) globally available? Other qdiscs (f.i. HFSC) can't deal with
inner non-work-conserving qdiscs 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