]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pkt_sched: Add 'deactivated' state.
authorDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 04:51:03 +0000 (21:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Aug 2008 04:51:03 +0000 (21:51 -0700)
commita9312ae89324438b0edc554eb36c3ec6bf927d04
tree8a440aa75a9ac5aba1447082ec43ed48951aa121
parent08013fa353fdcfc0a03cae805393abfc56722387
pkt_sched: Add 'deactivated' state.

This new state lets dev_deactivate() mark a qdisc as having been
deactivated.

dev_queue_xmit() and ing_filter() check for this bit and do not
try to process the qdisc if the bit is set.

dev_deactivate() polls the qdisc after setting the bit, waiting
for both __QDISC_STATE_RUNNING and __QDISC_STATE_SCHED to clear.

This isn't perfect yet, but subsequent changesets will make it so.
This part is just one piece of the puzzle.

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