* [LARTC] HTB Message Storm HTB Delay <large number> > 5 secs
@ 2001-12-08 3:14 John Huttley
2001-12-08 7:51 ` Martin Devera
0 siblings, 1 reply; 2+ messages in thread
From: John Huttley @ 2001-12-08 3:14 UTC (permalink / raw)
To: lartc
Hello I've set up a simple system. It seems to work for a short while,
but now I've got batches of 100's of these messages.
Also I can't connect through that box any more. It's as if forwarding
died.
Has anyone any advice?
Regards
John
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] HTB Message Storm HTB Delay <large number> > 5 secs
2001-12-08 3:14 [LARTC] HTB Message Storm HTB Delay <large number> > 5 secs John Huttley
@ 2001-12-08 7:51 ` Martin Devera
0 siblings, 0 replies; 2+ messages in thread
From: Martin Devera @ 2001-12-08 7:51 UTC (permalink / raw)
To: lartc
Yes of course ;) I have posted small patch to HTB
mailing list (qos-request@lists.cdi.cz) to solve it.
Here is copy:
--- sch_htb.c.old Fri Dec 7 13:49:07 2001
+++ sch_htb.c Fri Dec 7 13:48:32 2001
@@ -402,8 +402,12 @@ static enum htb_cmode
htb_class_mode(struct htb_sched *q, struct htb_class *cl)
{
long toks,diff;
diff = PSCHED_TDIFF_SAFE(q->now, cl->t_c, cl->mbuffer, 0);
+
+ /* BUG: this is only temporary workaround until next release */
+ if (diff < 0) diff = cl->mbuffer;
+
HTB_DBG(6,3,"htb_cm diff=%ld\n",diff);
/* check whether we are over ceil */
if ((toks = (cl->ctokens + diff)) < 0) {
@@ -480,8 +484,11 @@ htb_dequeue_class(struct Qdisc *sch, str
/* we have got skb, account it to victim and its parents
and also to all ceil estimators under victim */
while (cl) {
diff = PSCHED_TDIFF_SAFE(q->now, cl->t_c, cl->mbuffer, 0);
+
+ /* BUG: this is only temporary workaround until next release */
+ if (diff < 0) diff = cl->mbuffer;
#define HTB_ACCNT(T,B,R) toks = diff + cl->T; \
if (toks > cl->B) toks = cl->B; \
toks -= L2T(cl, cl->R, skb->len); \
On 8 Dec 2001, John Huttley wrote:
>
> Hello I've set up a simple system. It seems to work for a short while,
> but now I've got batches of 100's of these messages.
>
> Also I can't connect through that box any more. It's as if forwarding
> died.
>
>
> Has anyone any advice?
>
> Regards
>
> John
>
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-08 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-08 3:14 [LARTC] HTB Message Storm HTB Delay <large number> > 5 secs John Huttley
2001-12-08 7:51 ` Martin Devera
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.