linux-stable-rt/net/sched
Peter P Waskiewicz Jr 5f1a485d59 [PKT_SCHED]: Check subqueue status before calling hard_start_xmit
The only qdiscs that check subqueue state before dequeue'ing are PRIO
and RR.  The other qdiscs, including the default pfifo_fast qdisc,
will allow traffic bound for subqueue 0 through to hard_start_xmit.
The check for netif_queue_stopped() is done above in pkt_sched.h, so
it is unnecessary for qdisc_restart().  However, if the underlying
driver is multiqueue capable, and only sets queue states on subqueues,
this will allow packets to enter the driver when it's currently unable
to process packets, resulting in expensive requeues and driver
entries.  This patch re-adds the check for the subqueue status before
calling hard_start_xmit, so we can try and avoid the driver entry when
the queues are stopped.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-11-13 20:40:55 -08:00
..
Kconfig [NET]: QoS/Sched as menuconfig 2007-10-18 21:56:38 -07:00
Makefile
act_api.c
act_gact.c
act_ipt.c [NETFILTER]: Replace sk_buff ** with sk_buff * 2007-10-15 12:26:29 -07:00
act_mirred.c [NET_CLS_ACT]: Use skb_act_clone 2007-10-26 02:47:54 -07:00
act_nat.c
act_pedit.c
act_police.c
act_simple.c
cls_api.c
cls_basic.c
cls_fw.c
cls_route.c
cls_rsvp.c
cls_rsvp.h
cls_rsvp6.c
cls_tcindex.c
cls_u32.c [PKT_SCHED] CLS_U32: Use ffs() instead of C code on hash mask to get first set bit. 2007-11-10 21:54:50 -08:00
em_cmp.c
em_meta.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
em_nbyte.c
em_text.c
em_u32.c
ematch.c
sch_api.c
sch_atm.c
sch_blackhole.c
sch_cbq.c
sch_dsmark.c
sch_fifo.c
sch_generic.c [PKT_SCHED]: Check subqueue status before calling hard_start_xmit 2007-11-13 20:40:55 -08:00
sch_gred.c
sch_hfsc.c
sch_htb.c
sch_ingress.c [NETFILTER]: Replace sk_buff ** with sk_buff * 2007-10-15 12:26:29 -07:00
sch_netem.c
sch_prio.c [PKT_SCHED]: Fix sch_prio.c build with CONFIG_NETDEVICES_MULTIQUEUE 2007-10-23 21:27:53 -07:00
sch_red.c
sch_sfq.c
sch_tbf.c
sch_teql.c [PKT_SCHED]: Fix OOPS when removing devices from a teql queuing discipline 2007-11-07 04:09:17 -08:00