Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122443
b: refs/heads/master
c: 23cb913
h: refs/heads/master
i:
  122441: 5fc7a9f
  122439: 5e862cf
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Dec 4, 2008
1 parent 1eb9bef commit 6130ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 244ef9b9176c7c7a095f4738d353a3a60b88097d
refs/heads/master: 23cb913d25b20ed88b36a26f337cfdb4605e63f4
9 changes: 1 addition & 8 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ struct htb_class {
psched_time_t t_c; /* checkpoint time */
};

static inline long L2T(struct htb_class *cl, struct qdisc_rate_table *rate,
int size)
{
long result = qdisc_l2t(rate, size);
return result;
}

struct htb_sched {
struct Qdisc_class_hash clhash;
struct list_head drops[TC_HTB_NUMPRIO];/* active leaves (for drops) */
Expand Down Expand Up @@ -604,7 +597,7 @@ static void htb_charge_class(struct htb_sched *q, struct htb_class *cl,

#define HTB_ACCNT(T,B,R) toks = diff + cl->T; \
if (toks > cl->B) toks = cl->B; \
toks -= L2T(cl, cl->R, bytes); \
toks -= (long) qdisc_l2t(cl->R, bytes); \
if (toks <= -cl->mbuffer) toks = 1-cl->mbuffer; \
cl->T = toks

Expand Down

0 comments on commit 6130ef2

Please sign in to comment.