Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41953
b: refs/heads/master
c: e488eaf
h: refs/heads/master
i:
  41951: 81d7c51
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Dec 3, 2006
1 parent f01229f commit dcc437c
Show file tree
Hide file tree
Showing 4 changed files with 4 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: 256d61b87b2c2ac6fc333c1654d1abea61979006
refs/heads/master: e488eafcc50be296f0d1e1fd67c6b5d865183011
1 change: 1 addition & 0 deletions trunk/net/sched/sch_hfsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ qdisc_peek_len(struct Qdisc *sch)
if (unlikely(sch->ops->requeue(skb, sch) != NET_XMIT_SUCCESS)) {
if (net_ratelimit())
printk("qdisc_peek_len: failed to requeue\n");
qdisc_tree_decrease_qlen(sch, 1);
return 0;
}
return len;
Expand Down
5 changes: 1 addition & 4 deletions trunk/net/sched/sch_netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,10 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch)
psched_tdiff_t delay = PSCHED_TDIFF(cb->time_to_send, now);

if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
qdisc_tree_decrease_qlen(q->qdisc, 1);
sch->qstats.drops++;

/* After this qlen is confused */
printk(KERN_ERR "netem: queue discpline %s could not requeue\n",
q->qdisc->ops->id);

sch->q.qlen--;
}

mod_timer(&q->timer, jiffies + PSCHED_US2JIFFIE(delay));
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/sched/sch_tbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ static struct sk_buff *tbf_dequeue(struct Qdisc* sch)

if (q->qdisc->ops->requeue(skb, q->qdisc) != NET_XMIT_SUCCESS) {
/* When requeue fails skb is dropped */
sch->q.qlen--;
qdisc_tree_decrease_qlen(q->qdisc, 1);
sch->qstats.drops++;
}

Expand Down

0 comments on commit dcc437c

Please sign in to comment.