pkt_sched: Schedule qdiscs instead of netdev_queue.
authorDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2008 09:15:04 +0000 (02:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:20 +0000 (19:21 -0700)
commit37437bb2e1ae8af470dfcd5b4ff454110894ccaf
tree1795e78a7648252b0c92c972df12b776a28437d7
parent7698b4fcabcd790efc4f226bada1e7b5870653af
pkt_sched: Schedule qdiscs instead of netdev_queue.

When we have shared qdiscs, packets come out of the qdiscs
for multiple transmit queues.

Therefore it doesn't make any sense to schedule the transmit
queue when logically we cannot know ahead of time the TX
queue of the SKB that the qdisc->dequeue() will give us.

Just for sanity I added a BUG check to make sure we never
get into a state where the noop_qdisc is scheduled.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/pkt_sched.h
include/net/sch_generic.h
net/core/dev.c
net/sched/sch_api.c
net/sched/sch_cbq.c
net/sched/sch_generic.c