aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kimdon <david.kimdon@devicescape.com>2006-11-09 19:16:21 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:21:43 -0500
commit3c62f75aac7348ee262b1295cfcfeb3473f76815 (patch)
treece7acdf403d50224bfc4250c7f0ff8f9281f56e4
parent3dfbcc411e461db51a1ac1aa1c6ebe2c5a0275a0 (diff)
[PKT_SCHED]: Make sch_fifo.o available when CONFIG_NET_SCHED is not set.
Based on patch by Patrick McHardy. Add a new option, NET_SCH_FIFO, which provides a simple fifo qdisc without requiring CONFIG_NET_SCHED. The d80211 stack needs a generic fifo qdisc for WME. At present it uses net/d80211/fifo_qdisc.c which is functionally equivalent to sch_fifo.c. This patch will allow the d80211 stack to remove net/d80211/fifo_qdisc.c and use sch_fifo.c instead. Signed-off-by: David Kimdon <david.kimdon@devicescape.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/Kconfig4
-rw-r--r--net/sched/Makefile3
2 files changed, 6 insertions, 1 deletions
diff --git a/net/sched/Kconfig b/net/sched/Kconfig
index b2437092978c..f4544dd86476 100644
--- a/net/sched/Kconfig
+++ b/net/sched/Kconfig
@@ -6,6 +6,7 @@ menu "QoS and/or fair queueing"
6 6
7config NET_SCHED 7config NET_SCHED
8 bool "QoS and/or fair queueing" 8 bool "QoS and/or fair queueing"
9 select NET_SCH_FIFO
9 ---help--- 10 ---help---
10 When the kernel has several packets to send out over a network 11 When the kernel has several packets to send out over a network
11 device, it has to decide which ones to send first, which ones to 12 device, it has to decide which ones to send first, which ones to
@@ -40,6 +41,9 @@ config NET_SCHED
40 The available schedulers are listed in the following questions; you 41 The available schedulers are listed in the following questions; you
41 can say Y to as many as you like. If unsure, say N now. 42 can say Y to as many as you like. If unsure, say N now.
42 43
44config NET_SCH_FIFO
45 bool
46
43if NET_SCHED 47if NET_SCHED
44 48
45choice 49choice
diff --git a/net/sched/Makefile b/net/sched/Makefile
index 0f06aec66094..ff2d6e5e282c 100644
--- a/net/sched/Makefile
+++ b/net/sched/Makefile
@@ -4,7 +4,7 @@
4 4
5obj-y := sch_generic.o 5obj-y := sch_generic.o
6 6
7obj-$(CONFIG_NET_SCHED) += sch_api.o sch_fifo.o sch_blackhole.o 7obj-$(CONFIG_NET_SCHED) += sch_api.o sch_blackhole.o
8obj-$(CONFIG_NET_CLS) += cls_api.o 8obj-$(CONFIG_NET_CLS) += cls_api.o
9obj-$(CONFIG_NET_CLS_ACT) += act_api.o 9obj-$(CONFIG_NET_CLS_ACT) += act_api.o
10obj-$(CONFIG_NET_ACT_POLICE) += act_police.o 10obj-$(CONFIG_NET_ACT_POLICE) += act_police.o
@@ -14,6 +14,7 @@ obj-$(CONFIG_NET_ACT_MIRRED) += act_mirred.o
14obj-$(CONFIG_NET_ACT_IPT) += act_ipt.o 14obj-$(CONFIG_NET_ACT_IPT) += act_ipt.o
15obj-$(CONFIG_NET_ACT_PEDIT) += act_pedit.o 15obj-$(CONFIG_NET_ACT_PEDIT) += act_pedit.o
16obj-$(CONFIG_NET_ACT_SIMP) += act_simple.o 16obj-$(CONFIG_NET_ACT_SIMP) += act_simple.o
17obj-$(CONFIG_NET_SCH_FIFO) += sch_fifo.o
17obj-$(CONFIG_NET_SCH_CBQ) += sch_cbq.o 18obj-$(CONFIG_NET_SCH_CBQ) += sch_cbq.o
18obj-$(CONFIG_NET_SCH_HTB) += sch_htb.o 19obj-$(CONFIG_NET_SCH_HTB) += sch_htb.o
19obj-$(CONFIG_NET_SCH_HPFQ) += sch_hpfq.o 20obj-$(CONFIG_NET_SCH_HPFQ) += sch_hpfq.o