Skip to content

Commit

Permalink
pkt_sched: Always use q->requeue in dev_requeue_skb().
Browse files Browse the repository at this point in the history
There is no reason to call into the complicated qdiscs
just to remember the last SKB where we found the device
blocked.

The SKB is outside of the qdiscs realm at this point.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 23, 2008
1 parent 242f8bf commit f087652
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/sched/sch_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ static inline int qdisc_qlen(struct Qdisc *q)

static inline int dev_requeue_skb(struct sk_buff *skb, struct Qdisc *q)
{
if (unlikely(skb->next))
__skb_queue_head(&q->requeue, skb);
else
q->ops->requeue(skb, q);
__skb_queue_head(&q->requeue, skb);

__netif_schedule(q);
return 0;
Expand Down

0 comments on commit f087652

Please sign in to comment.