Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122438
b: refs/heads/master
c: 633fe66
h: refs/heads/master
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Dec 4, 2008
1 parent c9710e0 commit 03b0b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 4164d661b8c9602fbbf651a33377d2c51f68c451
refs/heads/master: 633fe66ed8385ccf8b4a74a00a4c6eb40850d65f
7 changes: 2 additions & 5 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ struct htb_sched {
/* time of nearest event per level (row) */
psched_time_t near_ev_cache[TC_HTB_MAXDEPTH];

/* whether we hit non-work conserving class during this dequeue; we use */
int nwc_hit; /* this to disable mindelay complaint in dequeue */

int defcls; /* class where unclassified flows go to */

/* filters for qdisc itself */
Expand Down Expand Up @@ -807,7 +804,7 @@ static struct sk_buff *htb_dequeue_tree(struct htb_sched *q, int prio,
cl->common.classid);
cl->warned = 1;
}
q->nwc_hit++;

htb_next_rb_node((level ? cl->parent->un.inner.ptr : q->
ptr[0]) + prio);
cl = htb_lookup_leaf(q->row[level] + prio, prio,
Expand Down Expand Up @@ -852,7 +849,7 @@ static struct sk_buff *htb_dequeue(struct Qdisc *sch)
q->now = psched_get_time();

next_event = q->now + 5 * PSCHED_TICKS_PER_SEC;
q->nwc_hit = 0;

for (level = 0; level < TC_HTB_MAXDEPTH; level++) {
/* common case optimization - skip event handler quickly */
int m;
Expand Down

0 comments on commit 03b0b41

Please sign in to comment.