Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111787
b: refs/heads/master
c: ebf0598
h: refs/heads/master
i:
  111785: e0d913b
  111783: 72a0544
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Sep 23, 2008
1 parent 1409146 commit 8543e39
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 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: f0876520b0b721bedafd9cec3b1b0624ae566eee
refs/heads/master: ebf059821ed8a36acd706484b719d14d212ada32
18 changes: 14 additions & 4 deletions trunk/net/sched/sch_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,21 @@ static inline int dev_requeue_skb(struct sk_buff *skb, struct Qdisc *q)

static inline struct sk_buff *dequeue_skb(struct Qdisc *q)
{
struct sk_buff *skb;

skb = __skb_dequeue(&q->requeue);
if (!skb)
struct sk_buff *skb = skb_peek(&q->requeue);

if (unlikely(skb)) {
struct net_device *dev = qdisc_dev(q);
struct netdev_queue *txq;

/* check the reason of requeuing without tx lock first */
txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb));
if (!netif_tx_queue_stopped(txq) && !netif_tx_queue_frozen(txq))
__skb_unlink(skb, &q->requeue);
else
skb = NULL;
} else {
skb = q->dequeue(q);
}

return skb;
}
Expand Down

0 comments on commit 8543e39

Please sign in to comment.