Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0876520 authored by David S. Miller's avatar David S. Miller
Browse files

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.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 242f8bfe
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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);

	__netif_schedule(q);
	return 0;