Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55954
b: refs/heads/master
c: 4cd8c9e
h: refs/heads/master
v: v3
  • Loading branch information
Krishna Kumar authored and David S. Miller committed May 11, 2007
1 parent 597b359 commit 0d4b476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 5b323edbf9daf287fed50dcc63a85589ba24887b
refs/heads/master: 4cd8c9e87be7ea891050ff1bebbf767a837eb5cf
5 changes: 2 additions & 3 deletions trunk/net/sched/sch_teql.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,13 @@ teql_enqueue(struct sk_buff *skb, struct Qdisc* sch)
struct net_device *dev = sch->dev;
struct teql_sched_data *q = qdisc_priv(sch);

__skb_queue_tail(&q->q, skb);
if (q->q.qlen <= dev->tx_queue_len) {
if (q->q.qlen < dev->tx_queue_len) {
__skb_queue_tail(&q->q, skb);
sch->bstats.bytes += skb->len;
sch->bstats.packets++;
return 0;
}

__skb_unlink(skb, &q->q);
kfree_skb(skb);
sch->qstats.drops++;
return NET_XMIT_DROP;
Expand Down

0 comments on commit 0d4b476

Please sign in to comment.