kernel_optimize_test/net/sched
David S. Miller 8d50b53d66 pkt_sched: Fix OOPS on ingress qdisc add.
Bug report from Steven Jan Springl:

	Issuing the following command causes a kernel oops:
		tc qdisc add dev eth0 handle ffff: ingress

The problem mostly stems from all of the special case handling of
ingress qdiscs.

So, to fix this, do the grafting operation the same way we do for TX
qdiscs.  Which means that dev_activate() and dev_deactivate() now do
the "qdisc_sleeping <--> qdisc" transitions on dev->rx_queue too.

Future simplifications are possible now, mainly because it is
impossible for dev_queue->{qdisc,qdisc_sleeping} to be NULL.  There
are NULL checks all over to handle the ingress qdisc special case
that used to exist before this commit.

Signed-off-by: David S. Miller <davem@davemloft.net>
2008-07-30 02:44:25 -07:00
..
act_api.c net: convert BUG_TRAP to generic WARN_ON 2008-07-25 21:43:18 -07:00
act_gact.c
act_ipt.c
act_mirred.c
act_nat.c
act_pedit.c
act_police.c net: convert BUG_TRAP to generic WARN_ON 2008-07-25 21:43:18 -07:00
act_simple.c
cls_api.c
cls_basic.c
cls_flow.c
cls_fw.c
cls_route.c
cls_rsvp6.c
cls_rsvp.c
cls_rsvp.h
cls_tcindex.c
cls_u32.c net: convert BUG_TRAP to generic WARN_ON 2008-07-25 21:43:18 -07:00
em_cmp.c
em_meta.c
em_nbyte.c
em_text.c
em_u32.c
ematch.c
Kconfig
Makefile
sch_api.c pkt_sched: Fix OOPS on ingress qdisc add. 2008-07-30 02:44:25 -07:00
sch_atm.c [PATCH] f_count may wrap around 2008-07-26 20:53:40 -04:00
sch_blackhole.c
sch_cbq.c net: convert BUG_TRAP to generic WARN_ON 2008-07-25 21:43:18 -07:00
sch_dsmark.c
sch_fifo.c
sch_generic.c pkt_sched: Fix OOPS on ingress qdisc add. 2008-07-30 02:44:25 -07:00
sch_gred.c
sch_hfsc.c
sch_htb.c net: convert BUG_TRAP to generic WARN_ON 2008-07-25 21:43:18 -07:00
sch_ingress.c
sch_netem.c net_sched: Add size table for qdiscs 2008-07-20 00:08:47 -07:00
sch_prio.c
sch_red.c
sch_sfq.c Revert "pkt_sched: sch_sfq: dump a real number of flows" 2008-07-26 02:28:09 -07:00
sch_tbf.c
sch_teql.c