From: Martin Devera <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] HTB Message Storm HTB Delay <large number> > 5 secs
Date: Sat, 08 Dec 2001 07:51:23 +0000 [thread overview]
Message-ID: <marc-lartc-100779794827578@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100778132202347@msgid-missing>
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/
prev parent reply other threads:[~2001-12-08 7:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=marc-lartc-100779794827578@msgid-missing \
--to=devik@cdi.cz \
--cc=lartc@vger.kernel.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.