]> git.baikalelectronics.ru Git - kernel.git/commit
pkt_sched: Check the state of tx_queue in dequeue_skb()
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 23 Sep 2008 05:16:23 +0000 (22:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Sep 2008 05:16:23 +0000 (22:16 -0700)
commit820885463ec162cc00b68bc073affefc6b1ac4bb
tree44b2ee2887113ea5d90b35f4c4ae1a376f38e94f
parent071922d09406fd408d6d9220f5efeb9ba410cce4
pkt_sched: Check the state of tx_queue in dequeue_skb()

Check in dequeue_skb() the state of tx_queue for requeued skb to save
on locking and re-requeuing, and possibly remove the current check in
qdisc_run(). Based on the idea of Alexander Duyck.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c