search for: htb_cant_send

Displaying 2 results from an estimated 2 matches for "htb_cant_send".

Did you mean: htb_can_send
2006 Jun 15
0
[PATCH 1/2] Runtime configuration of HTB''s HYSTERESIS option (kernel)
...#39;t use hysteresis htb_class_mode */ int warned; /* only one warning about non work conserving .. */ @@ -622,20 +622,14 @@ static __inline__ enum htb_cmode htb_class_mode(struct htb_class *cl,long *diff) { long toks; + long hysteresis = + (cl->nohyst || cl->cmode == HTB_CANT_SEND) ? 0 : -cl->cbuffer; - if ((toks = (cl->ctokens + *diff)) < ( -#if HTB_HYSTERESIS - cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : -#endif - 0)) { + if ((toks = (cl->ctokens + *diff)) < hysteresis) { *diff = -toks; return HTB_CANT_SEND; } -...
2006 Aug 02
10
[PATCH 0/6] htb: cleanup
The HTB scheduler code is a mess, this patch set does some basic house cleaning. The first four should cause no code change, but the last two need more testing. -- Stephen Hemminger <shemminger@osdl.org> "And in the Packet there writ down that doome" - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to