aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-23 03:42:10 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-27 03:58:49 -0400
commit88491d8103498a6166f70d5999902fec70924314 (patch)
treed22646735d94ad81597b535e9e56131cc1896d71
parent330278cde612888e79fc4ab13d8f725258e903dd (diff)
drivers/net: Kconfig & Makefile cleanup
The is does a general cleanup of the drivers/net/ Kconfig and Makefile. This patch create a "core" option and places all the networking core drivers into this option (default is yes for this option). In addition, it alphabitizes the Kconfig driver options. As a side cleanup, found that the arcnet, token ring, and PHY Kconfig options were a tri-state option and should have been a bool option. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r--drivers/net/Kconfig267
-rw-r--r--drivers/net/Makefile64
-rw-r--r--drivers/net/arcnet/Kconfig2
-rw-r--r--drivers/net/phy/Kconfig2
-rw-r--r--drivers/net/tokenring/Kconfig2
5 files changed, 168 insertions, 169 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 5762370ed43c..583f66cd5bbd 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -25,18 +25,32 @@ menuconfig NETDEVICES
25# that for each of the symbols. 25# that for each of the symbols.
26if NETDEVICES 26if NETDEVICES
27 27
28config IFB 28config NET_CORE
29 tristate "Intermediate Functional Block support" 29 default y
30 depends on NET_CLS_ACT 30 bool "Network core driver support"
31 ---help--- 31 ---help---
32 This is an intermediate driver that allows sharing of 32 You can say N here if you do not intend to use any of the
33 resources. 33 networking core drivers (i.e. VLAN, bridging, bonding, etc.)
34
35if NET_CORE
36
37config BONDING
38 tristate "Bonding driver support"
39 depends on INET
40 depends on IPV6 || IPV6=n
41 ---help---
42 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
43 Channels together. This is called 'Etherchannel' by Cisco,
44 'Trunking' by Sun, 802.3ad by the IEEE, and 'Bonding' in Linux.
45
46 The driver supports multiple bonding modes to allow for both high
47 performance and high availability operation.
48
49 Refer to <file:Documentation/networking/bonding.txt> for more
50 information.
51
34 To compile this driver as a module, choose M here: the module 52 To compile this driver as a module, choose M here: the module
35 will be called ifb. If you want to use more than one ifb 53 will be called bonding.
36 device at a time, you need to compile this driver as a module.
37 Instead of 'ifb', the devices will then be called 'ifb0',
38 'ifb1' etc.
39 Look at the iproute2 documentation directory for usage etc
40 54
41config DUMMY 55config DUMMY
42 tristate "Dummy net driver support" 56 tristate "Dummy net driver support"
@@ -57,23 +71,59 @@ config DUMMY
57 Instead of 'dummy', the devices will then be called 'dummy0', 71 Instead of 'dummy', the devices will then be called 'dummy0',
58 'dummy1' etc. 72 'dummy1' etc.
59 73
60config BONDING 74config EQUALIZER
61 tristate "Bonding driver support" 75 tristate "EQL (serial line load balancing) support"
62 depends on INET
63 depends on IPV6 || IPV6=n
64 ---help--- 76 ---help---
65 Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet 77 If you have two serial connections to some other computer (this
66 Channels together. This is called 'Etherchannel' by Cisco, 78 usually requires two modems and two telephone lines) and you use
67 'Trunking' by Sun, 802.3ad by the IEEE, and 'Bonding' in Linux. 79 SLIP (the protocol for sending Internet traffic over telephone
80 lines) or PPP (a better SLIP) on them, you can make them behave like
81 one double speed connection using this driver. Naturally, this has
82 to be supported at the other end as well, either with a similar EQL
83 Linux driver or with a Livingston Portmaster 2e.
68 84
69 The driver supports multiple bonding modes to allow for both high 85 Say Y if you want this and read
70 performance and high availability operation. 86 <file:Documentation/networking/eql.txt>. You may also want to read
87 section 6.2 of the NET-3-HOWTO, available from
88 <http://www.tldp.org/docs.html#howto>.
71 89
72 Refer to <file:Documentation/networking/bonding.txt> for more 90 To compile this driver as a module, choose M here: the module
73 information. 91 will be called eql. If unsure, say N.
92
93config NET_FC
94 bool "Fibre Channel driver support"
95 depends on SCSI && PCI
96 help
97 Fibre Channel is a high speed serial protocol mainly used to connect
98 large storage devices to the computer; it is compatible with and
99 intended to replace SCSI.
100
101 If you intend to use Fibre Channel, you need to have a Fibre channel
102 adaptor card in your computer; say Y here and to the driver for your
103 adaptor below. You also should have said Y to "SCSI support" and
104 "SCSI generic support".
74 105
106config MII
107 tristate "Generic Media Independent Interface device support"
108 help
109 Most ethernet controllers have MII transceiver either as an external
110 or internal device. It is safe to say Y or M here even if your
111 ethernet card lacks MII.
112
113source "drivers/ieee802154/Kconfig"
114
115config IFB
116 tristate "Intermediate Functional Block support"
117 depends on NET_CLS_ACT
118 ---help---
119 This is an intermediate driver that allows sharing of
120 resources.
75 To compile this driver as a module, choose M here: the module 121 To compile this driver as a module, choose M here: the module
76 will be called bonding. 122 will be called ifb. If you want to use more than one ifb
123 device at a time, you need to compile this driver as a module.
124 Instead of 'ifb', the devices will then be called 'ifb0',
125 'ifb1' etc.
126 Look at the iproute2 documentation directory for usage etc
77 127
78config MACVLAN 128config MACVLAN
79 tristate "MAC-VLAN support (EXPERIMENTAL)" 129 tristate "MAC-VLAN support (EXPERIMENTAL)"
@@ -102,24 +152,46 @@ config MACVTAP
102 To compile this driver as a module, choose M here: the module 152 To compile this driver as a module, choose M here: the module
103 will be called macvtap. 153 will be called macvtap.
104 154
105config EQUALIZER 155config NETCONSOLE
106 tristate "EQL (serial line load balancing) support" 156 tristate "Network console logging support"
107 ---help--- 157 ---help---
108 If you have two serial connections to some other computer (this 158 If you want to log kernel messages over the network, enable this.
109 usually requires two modems and two telephone lines) and you use 159 See <file:Documentation/networking/netconsole.txt> for details.
110 SLIP (the protocol for sending Internet traffic over telephone
111 lines) or PPP (a better SLIP) on them, you can make them behave like
112 one double speed connection using this driver. Naturally, this has
113 to be supported at the other end as well, either with a similar EQL
114 Linux driver or with a Livingston Portmaster 2e.
115 160
116 Say Y if you want this and read 161config NETCONSOLE_DYNAMIC
117 <file:Documentation/networking/eql.txt>. You may also want to read 162 bool "Dynamic reconfiguration of logging targets"
118 section 6.2 of the NET-3-HOWTO, available from 163 depends on NETCONSOLE && SYSFS && CONFIGFS_FS && \
119 <http://www.tldp.org/docs.html#howto>. 164 !(NETCONSOLE=y && CONFIGFS_FS=m)
165 help
166 This option enables the ability to dynamically reconfigure target
167 parameters (interface, IP addresses, port numbers, MAC addresses)
168 at runtime through a userspace interface exported using configfs.
169 See <file:Documentation/networking/netconsole.txt> for details.
120 170
121 To compile this driver as a module, choose M here: the module 171config NETPOLL
122 will be called eql. If unsure, say N. 172 def_bool NETCONSOLE
173
174config NETPOLL_TRAP
175 bool "Netpoll traffic trapping"
176 default n
177 depends on NETPOLL
178
179config NET_POLL_CONTROLLER
180 def_bool NETPOLL
181
182config RIONET
183 tristate "RapidIO Ethernet over messaging driver support"
184 depends on RAPIDIO
185
186config RIONET_TX_SIZE
187 int "Number of outbound queue entries"
188 depends on RIONET
189 default "128"
190
191config RIONET_RX_SIZE
192 int "Number of inbound queue entries"
193 depends on RIONET
194 default "128"
123 195
124config TUN 196config TUN
125 tristate "Universal TUN/TAP device driver support" 197 tristate "Universal TUN/TAP device driver support"
@@ -151,6 +223,28 @@ config VETH
151 When one end receives the packet it appears on its pair and vice 223 When one end receives the packet it appears on its pair and vice
152 versa. 224 versa.
153 225
226config VIRTIO_NET
227 tristate "Virtio network driver (EXPERIMENTAL)"
228 depends on EXPERIMENTAL && VIRTIO
229 ---help---
230 This is the virtual network driver for virtio. It can be used with
231 lguest or QEMU based VMMs (like KVM or Xen). Say Y or M.
232
233endif # NET_CORE
234
235config SUNGEM_PHY
236 tristate
237
238source "drivers/net/arcnet/Kconfig"
239
240source "drivers/atm/Kconfig"
241
242source "drivers/net/caif/Kconfig"
243
244source "drivers/net/ethernet/Kconfig"
245
246source "drivers/net/fddi/Kconfig"
247
154config NET_SB1000 248config NET_SB1000
155 tristate "General Instruments Surfboard 1000" 249 tristate "General Instruments Surfboard 1000"
156 depends on PNP 250 depends on PNP
@@ -175,52 +269,26 @@ config NET_SB1000
175 269
176 If you don't have this card, of course say N. 270 If you don't have this card, of course say N.
177 271
178source "drivers/net/arcnet/Kconfig"
179
180config MII
181 tristate "Generic Media Independent Interface device support"
182 help
183 Most ethernet controllers have MII transceiver either as an external
184 or internal device. It is safe to say Y or M here even if your
185 ethernet card lacks MII.
186
187source "drivers/net/phy/Kconfig" 272source "drivers/net/phy/Kconfig"
188 273
189config SUNGEM_PHY
190 tristate
191
192#
193# Ethernet
194#
195
196source "drivers/net/ethernet/Kconfig"
197
198source "drivers/net/fddi/Kconfig"
199
200source "drivers/net/plip/Kconfig" 274source "drivers/net/plip/Kconfig"
201 275
276source "drivers/net/ppp/Kconfig"
277
202source "drivers/net/slip/Kconfig" 278source "drivers/net/slip/Kconfig"
203 279
280source "drivers/s390/net/Kconfig"
281
204source "drivers/net/tokenring/Kconfig" 282source "drivers/net/tokenring/Kconfig"
205 283
284source "drivers/net/usb/Kconfig"
285
206source "drivers/net/wireless/Kconfig" 286source "drivers/net/wireless/Kconfig"
207 287
208source "drivers/net/wimax/Kconfig" 288source "drivers/net/wimax/Kconfig"
209 289
210source "drivers/net/usb/Kconfig"
211
212source "drivers/net/ppp/Kconfig"
213
214source "drivers/net/wan/Kconfig" 290source "drivers/net/wan/Kconfig"
215 291
216source "drivers/atm/Kconfig"
217
218source "drivers/ieee802154/Kconfig"
219
220source "drivers/s390/net/Kconfig"
221
222source "drivers/net/caif/Kconfig"
223
224config XEN_NETDEV_FRONTEND 292config XEN_NETDEV_FRONTEND
225 tristate "Xen network device frontend driver" 293 tristate "Xen network device frontend driver"
226 depends on XEN 294 depends on XEN
@@ -260,67 +328,6 @@ config XEN_NETDEV_BACKEND
260 compile this driver as a module, chose M here: the module 328 compile this driver as a module, chose M here: the module
261 will be called xen-netback. 329 will be called xen-netback.
262 330
263config RIONET
264 tristate "RapidIO Ethernet over messaging driver support"
265 depends on RAPIDIO
266
267config RIONET_TX_SIZE
268 int "Number of outbound queue entries"
269 depends on RIONET
270 default "128"
271
272config RIONET_RX_SIZE
273 int "Number of inbound queue entries"
274 depends on RIONET
275 default "128"
276
277config NET_FC
278 bool "Fibre Channel driver support"
279 depends on SCSI && PCI
280 help
281 Fibre Channel is a high speed serial protocol mainly used to connect
282 large storage devices to the computer; it is compatible with and
283 intended to replace SCSI.
284
285 If you intend to use Fibre Channel, you need to have a Fibre channel
286 adaptor card in your computer; say Y here and to the driver for your
287 adaptor below. You also should have said Y to "SCSI support" and
288 "SCSI generic support".
289
290config NETCONSOLE
291 tristate "Network console logging support"
292 ---help---
293 If you want to log kernel messages over the network, enable this.
294 See <file:Documentation/networking/netconsole.txt> for details.
295
296config NETCONSOLE_DYNAMIC
297 bool "Dynamic reconfiguration of logging targets"
298 depends on NETCONSOLE && SYSFS && CONFIGFS_FS && \
299 !(NETCONSOLE=y && CONFIGFS_FS=m)
300 help
301 This option enables the ability to dynamically reconfigure target
302 parameters (interface, IP addresses, port numbers, MAC addresses)
303 at runtime through a userspace interface exported using configfs.
304 See <file:Documentation/networking/netconsole.txt> for details.
305
306config NETPOLL
307 def_bool NETCONSOLE
308
309config NETPOLL_TRAP
310 bool "Netpoll traffic trapping"
311 default n
312 depends on NETPOLL
313
314config NET_POLL_CONTROLLER
315 def_bool NETPOLL
316
317config VIRTIO_NET
318 tristate "Virtio network driver (EXPERIMENTAL)"
319 depends on EXPERIMENTAL && VIRTIO
320 ---help---
321 This is the virtual network driver for virtio. It can be used with
322 lguest or QEMU based VMMs (like KVM or Xen). Say Y or M.
323
324config VMXNET3 331config VMXNET3
325 tristate "VMware VMXNET3 ethernet driver" 332 tristate "VMware VMXNET3 ethernet driver"
326 depends on PCI && INET 333 depends on PCI && INET
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 99327a4a3f7c..1f52e73547b0 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -2,40 +2,38 @@
2# Makefile for the Linux network device drivers. 2# Makefile for the Linux network device drivers.
3# 3#
4 4
5obj-$(CONFIG_MII) += mii.o
6obj-$(CONFIG_MDIO) += mdio.o
7obj-$(CONFIG_PHYLIB) += phy/
8obj-$(CONFIG_CAN) += can/
9obj-$(CONFIG_BONDING) += bonding/
10obj-$(CONFIG_VMXNET3) += vmxnet3/
11
12# 5#
13# link order important here 6# Networking Core Drivers
14# 7#
15obj-$(CONFIG_RIONET) += rionet.o 8obj-$(CONFIG_BONDING) += bonding/
16
17#
18# end link order section
19#
20
21obj-$(CONFIG_NET) += Space.o loopback.o
22obj-$(CONFIG_NET_SB1000) += sb1000.o
23
24obj-$(CONFIG_XEN_NETDEV_FRONTEND) += xen-netfront.o
25obj-$(CONFIG_XEN_NETDEV_BACKEND) += xen-netback/
26
27obj-$(CONFIG_DUMMY) += dummy.o 9obj-$(CONFIG_DUMMY) += dummy.o
10obj-$(CONFIG_EQUALIZER) += eql.o
28obj-$(CONFIG_IFB) += ifb.o 11obj-$(CONFIG_IFB) += ifb.o
29obj-$(CONFIG_MACVLAN) += macvlan.o 12obj-$(CONFIG_MACVLAN) += macvlan.o
30obj-$(CONFIG_MACVTAP) += macvtap.o 13obj-$(CONFIG_MACVTAP) += macvtap.o
31obj-$(CONFIG_EQUALIZER) += eql.o 14obj-$(CONFIG_MII) += mii.o
15obj-$(CONFIG_MDIO) += mdio.o
16obj-$(CONFIG_NET) += Space.o loopback.o
17obj-$(CONFIG_NETCONSOLE) += netconsole.o
18obj-$(CONFIG_PHYLIB) += phy/
19obj-$(CONFIG_RIONET) += rionet.o
32obj-$(CONFIG_TUN) += tun.o 20obj-$(CONFIG_TUN) += tun.o
33obj-$(CONFIG_VETH) += veth.o 21obj-$(CONFIG_VETH) += veth.o
22obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
34 23
24#
25# Networking Drivers
26#
27obj-$(CONFIG_ARCNET) += arcnet/
35obj-$(CONFIG_DEV_APPLETALK) += appletalk/ 28obj-$(CONFIG_DEV_APPLETALK) += appletalk/
29obj-$(CONFIG_CAIF) += caif/
30obj-$(CONFIG_CAN) += can/
31obj-$(CONFIG_ETRAX_ETHERNET) += cris/
36obj-$(CONFIG_ETHERNET) += ethernet/ 32obj-$(CONFIG_ETHERNET) += ethernet/
37obj-$(CONFIG_FDDI) += fddi/ 33obj-$(CONFIG_FDDI) += fddi/
38obj-$(CONFIG_HIPPI) += hippi/ 34obj-$(CONFIG_HIPPI) += hippi/
35obj-$(CONFIG_HAMRADIO) += hamradio/
36obj-$(CONFIG_IRDA) += irda/
39obj-$(CONFIG_PLIP) += plip/ 37obj-$(CONFIG_PLIP) += plip/
40onj-$(CONFIG_PPP) += ppp/ 38onj-$(CONFIG_PPP) += ppp/
41obj-$(CONFIG_PPP_ASYNC) += ppp/ 39obj-$(CONFIG_PPP_ASYNC) += ppp/
@@ -48,9 +46,17 @@ obj-$(CONFIG_PPPOL2TP) += ppp/
48obj-$(CONFIG_PPTP) += ppp/ 46obj-$(CONFIG_PPTP) += ppp/
49onj-$(CONFIG_SLIP) += slip/ 47onj-$(CONFIG_SLIP) += slip/
50obj-$(CONFIG_SLHC) += slip/ 48obj-$(CONFIG_SLHC) += slip/
49obj-$(CONFIG_NET_SB1000) += sb1000.o
50onj-$(CONFIG_SLIP) += slip/
51obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
51obj-$(CONFIG_TR) += tokenring/ 52obj-$(CONFIG_TR) += tokenring/
52obj-$(CONFIG_WAN) += wan/ 53obj-$(CONFIG_WAN) += wan/
53obj-$(CONFIG_ARCNET) += arcnet/ 54obj-$(CONFIG_WLAN) += wireless/
55obj-$(CONFIG_WIMAX) += wimax/
56
57obj-$(CONFIG_VMXNET3) += vmxnet3/
58obj-$(CONFIG_XEN_NETDEV_FRONTEND) += xen-netfront.o
59obj-$(CONFIG_XEN_NETDEV_BACKEND) += xen-netback/
54 60
55obj-$(CONFIG_USB_CATC) += usb/ 61obj-$(CONFIG_USB_CATC) += usb/
56obj-$(CONFIG_USB_KAWETH) += usb/ 62obj-$(CONFIG_USB_KAWETH) += usb/
@@ -61,17 +67,3 @@ obj-$(CONFIG_USB_USBNET) += usb/
61obj-$(CONFIG_USB_ZD1201) += usb/ 67obj-$(CONFIG_USB_ZD1201) += usb/
62obj-$(CONFIG_USB_IPHETH) += usb/ 68obj-$(CONFIG_USB_IPHETH) += usb/
63obj-$(CONFIG_USB_CDC_PHONET) += usb/ 69obj-$(CONFIG_USB_CDC_PHONET) += usb/
64
65obj-$(CONFIG_WLAN) += wireless/
66obj-$(CONFIG_HAMRADIO) += hamradio/
67obj-$(CONFIG_IRDA) += irda/
68obj-$(CONFIG_ETRAX_ETHERNET) += cris/
69
70obj-$(CONFIG_NETCONSOLE) += netconsole.o
71
72obj-$(CONFIG_VIRTIO_NET) += virtio_net.o
73
74obj-$(CONFIG_WIMAX) += wimax/
75obj-$(CONFIG_CAIF) += caif/
76
77obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
diff --git a/drivers/net/arcnet/Kconfig b/drivers/net/arcnet/Kconfig
index 84fb6349a59a..a73d9dc80ff6 100644
--- a/drivers/net/arcnet/Kconfig
+++ b/drivers/net/arcnet/Kconfig
@@ -4,7 +4,7 @@
4 4
5menuconfig ARCNET 5menuconfig ARCNET
6 depends on NETDEVICES && (ISA || PCI || PCMCIA) 6 depends on NETDEVICES && (ISA || PCI || PCMCIA)
7 tristate "ARCnet support" 7 bool "ARCnet support"
8 ---help--- 8 ---help---
9 If you have a network card of this type, say Y and check out the 9 If you have a network card of this type, say Y and check out the
10 (arguably) beautiful poetry in 10 (arguably) beautiful poetry in
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index a70244306c94..bb88e12101c7 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -3,7 +3,7 @@
3# 3#
4 4
5menuconfig PHYLIB 5menuconfig PHYLIB
6 tristate "PHY Device support and infrastructure" 6 bool "PHY Device support and infrastructure"
7 depends on !S390 7 depends on !S390
8 depends on NETDEVICES 8 depends on NETDEVICES
9 help 9 help
diff --git a/drivers/net/tokenring/Kconfig b/drivers/net/tokenring/Kconfig
index 0f701588c7eb..c7e0149d1514 100644
--- a/drivers/net/tokenring/Kconfig
+++ b/drivers/net/tokenring/Kconfig
@@ -4,7 +4,7 @@
4 4
5# So far, we only have PCI, ISA, and MCA token ring devices 5# So far, we only have PCI, ISA, and MCA token ring devices
6menuconfig TR 6menuconfig TR
7 tristate "Token Ring driver support" 7 bool "Token Ring driver support"
8 depends on NETDEVICES && !UML 8 depends on NETDEVICES && !UML
9 depends on (PCI || ISA || MCA || CCW || PCMCIA) 9 depends on (PCI || ISA || MCA || CCW || PCMCIA)
10 select LLC 10 select LLC