Skip to contentSkip to conversation

: pkt_sched: Always use q->requeue in dev_requeue_skb().

PATCH In review David Miller 1 participant 1 message Aug 18, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 2/9 : pkt_sched: Always use q->requeue in dev_requeue_skb().

pkt_sched: Always use q->requeue in dev_requeue_skb().

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.

---
 net/sched/sch_generic.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
net/sched/sch_generic.c +1 -4
index 39d969e..96d7d08 100644
@@ -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;
Signature · 1 line
1.5.6.5.GIT