Kconfig 19.7 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
L
Linus Torvalds 已提交
2 3 4 5
#
# Network device configuration
#

6
menuconfig NETDEVICES
7
	default y if UML
8
	depends on NET
L
Linus Torvalds 已提交
9
	bool "Network device support"
10
	help
L
Linus Torvalds 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24
	  You can say N here if you don't intend to connect your Linux box to
	  any other computer at all.

	  You'll have to say Y if your computer contains a network card that
	  you want to use under Linux. If you are going to run SLIP or PPP over
	  telephone line or null modem cable you need say Y here. Connecting
	  two machines with parallel ports using PLIP needs this, as well as
	  AX.25/KISS for sending Internet traffic over amateur radio links.

	  See also "The Linux Network Administrator's Guide" by Olaf Kirch and
	  Terry Dawson. Available at <http://www.tldp.org/guides.html>.

	  If unsure, say Y.

25 26 27
# All the following symbols are dependent on NETDEVICES - do not repeat
# that for each of the symbols.
if NETDEVICES
28

29 30 31
config MII
	tristate

32 33 34
config NET_CORE
	default y
	bool "Network core driver support"
35
	help
36 37 38 39 40 41 42 43 44
	  You can say N here if you do not intend to use any of the
	  networking core drivers (i.e. VLAN, bridging, bonding, etc.)

if NET_CORE

config BONDING
	tristate "Bonding driver support"
	depends on INET
	depends on IPV6 || IPV6=n
45
	help
46 47 48 49 50 51 52
	  Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet
	  Channels together. This is called 'Etherchannel' by Cisco,
	  'Trunking' by Sun, 802.3ad by the IEEE, and 'Bonding' in Linux.

	  The driver supports multiple bonding modes to allow for both high
	  performance and high availability operation.

53
	  Refer to <file:Documentation/networking/bonding.rst> for more
54 55
	  information.

56
	  To compile this driver as a module, choose M here: the module
57
	  will be called bonding.
58

L
Linus Torvalds 已提交
59 60
config DUMMY
	tristate "Dummy net driver support"
61
	help
L
Linus Torvalds 已提交
62 63 64 65
	  This is essentially a bit-bucket device (i.e. traffic you send to
	  this device is consigned into oblivion) with a configurable IP
	  address. It is most commonly used in order to make your currently
	  inactive SLIP address seem like a real address for local programs.
66 67
	  If you use SLIP or PPP, you might want to say Y here. It won't
	  enlarge your kernel. What a deal. Read about it in the Network
L
Linus Torvalds 已提交
68 69 70 71
	  Administrator's Guide, available from
	  <http://www.tldp.org/docs.html#guide>.

	  To compile this driver as a module, choose M here: the module
A
Alan Cox 已提交
72
	  will be called dummy.
L
Linus Torvalds 已提交
73

74 75 76 77 78 79 80 81 82 83 84 85 86 87
config WIREGUARD
	tristate "WireGuard secure network tunnel"
	depends on NET && INET
	depends on IPV6 || !IPV6
	select NET_UDP_TUNNEL
	select DST_CACHE
	select CRYPTO
	select CRYPTO_LIB_CURVE25519
	select CRYPTO_LIB_CHACHA20POLY1305
	select CRYPTO_LIB_BLAKE2S
	select CRYPTO_CHACHA20_X86_64 if X86 && 64BIT
	select CRYPTO_POLY1305_X86_64 if X86 && 64BIT
	select CRYPTO_BLAKE2S_X86 if X86 && 64BIT
	select CRYPTO_CURVE25519_X86 if X86 && 64BIT
88 89
	select ARM_CRYPTO if ARM
	select ARM64_CRYPTO if ARM64
90 91 92
	select CRYPTO_CHACHA20_NEON if (ARM || ARM64) && KERNEL_MODE_NEON
	select CRYPTO_POLY1305_NEON if ARM64 && KERNEL_MODE_NEON
	select CRYPTO_POLY1305_ARM if ARM
93
	select CRYPTO_BLAKE2S_ARM if ARM
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
	select CRYPTO_CURVE25519_NEON if ARM && KERNEL_MODE_NEON
	select CRYPTO_CHACHA_MIPS if CPU_MIPS32_R2
	select CRYPTO_POLY1305_MIPS if CPU_MIPS32 || (CPU_MIPS64 && 64BIT)
	help
	  WireGuard is a secure, fast, and easy to use replacement for IPSec
	  that uses modern cryptography and clever networking tricks. It's
	  designed to be fairly general purpose and abstract enough to fit most
	  use cases, while at the same time remaining extremely simple to
	  configure. See www.wireguard.com for more info.

	  It's safe to say Y or M here, as the driver is very lightweight and
	  is only in use when an administrator chooses to add an interface.

config WIREGUARD_DEBUG
	bool "Debugging checks and verbose messages"
	depends on WIREGUARD
	help
	  This will write log messages for handshake and other events
	  that occur for a WireGuard interface. It will also perform some
	  extra validation checks and unit tests at various points. This is
	  only useful for debugging.

	  Say N here unless you know what you're doing.

118 119
config EQUALIZER
	tristate "EQL (serial line load balancing) support"
120
	help
121 122 123 124 125 126 127
	  If you have two serial connections to some other computer (this
	  usually requires two modems and two telephone lines) and you use
	  SLIP (the protocol for sending Internet traffic over telephone
	  lines) or PPP (a better SLIP) on them, you can make them behave like
	  one double speed connection using this driver.  Naturally, this has
	  to be supported at the other end as well, either with a similar EQL
	  Linux driver or with a Livingston Portmaster 2e.
L
Linus Torvalds 已提交
128

129
	  Say Y if you want this and read
130
	  <file:Documentation/networking/eql.rst>.  You may also want to read
131 132
	  section 6.2 of the NET-3-HOWTO, available from
	  <http://www.tldp.org/docs.html#howto>.
L
Linus Torvalds 已提交
133

134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
	  To compile this driver as a module, choose M here: the module
	  will be called eql.  If unsure, say N.

config NET_FC
	bool "Fibre Channel driver support"
	depends on SCSI && PCI
	help
	  Fibre Channel is a high speed serial protocol mainly used to connect
	  large storage devices to the computer; it is compatible with and
	  intended to replace SCSI.

	  If you intend to use Fibre Channel, you need to have a Fibre channel
	  adaptor card in your computer; say Y here and to the driver for your
	  adaptor below. You also should have said Y to "SCSI support" and
	  "SCSI generic support".
L
Linus Torvalds 已提交
149

150 151 152
config IFB
	tristate "Intermediate Functional Block support"
	depends on NET_CLS_ACT
153
	select NET_REDIRECT
154
	help
155 156
	  This is an intermediate driver that allows sharing of
	  resources.
L
Linus Torvalds 已提交
157
	  To compile this driver as a module, choose M here: the module
158 159 160 161 162
	  will be called ifb.  If you want to use more than one ifb
	  device at a time, you need to compile this driver as a module.
	  Instead of 'ifb', the devices will then be called 'ifb0',
	  'ifb1' etc.
	  Look at the iproute2 documentation directory for usage etc
L
Linus Torvalds 已提交
163

164 165
source "drivers/net/team/Kconfig"

P
Patrick McHardy 已提交
166
config MACVLAN
167
	tristate "MAC-VLAN support"
168
	help
P
Patrick McHardy 已提交
169 170 171
	  This allows one to create virtual interfaces that map packets to
	  or from specific MAC addresses to a particular interface.

172 173 174 175 176
	  Macvlan devices can be added using the "ip" command from the
	  iproute2 package starting with the iproute2-2.6.23 release:

	  "ip link add link <real dev> [ address MAC ] [ NAME ] type macvlan"

P
Patrick McHardy 已提交
177 178 179
	  To compile this driver as a module, choose M here: the module
	  will be called macvlan.

A
Arnd Bergmann 已提交
180
config MACVTAP
181
	tristate "MAC-VLAN based tap driver"
A
Arnd Bergmann 已提交
182
	depends on MACVLAN
183
	depends on INET
184
	select TAP
A
Arnd Bergmann 已提交
185 186 187 188
	help
	  This adds a specialized tap character device driver that is based
	  on the MAC-VLAN network interface, called macvtap. A macvtap device
	  can be added in the same way as a macvlan device, using 'type
189
	  macvtap', and then be accessed through the tap user space interface.
A
Arnd Bergmann 已提交
190 191 192 193

	  To compile this driver as a module, choose M here: the module
	  will be called macvtap.

194 195
config IPVLAN_L3S
	depends on NETFILTER
196
	depends on IPVLAN
197 198
	def_bool y
	select NET_L3_MASTER_DEV
199 200

config IPVLAN
201 202 203
	tristate "IP-VLAN support"
	depends on INET
	depends on IPV6 || !IPV6
204
	help
205 206 207 208
	  This allows one to create virtual devices off of a main interface
	  and packets will be delivered based on the dest L3 (IPv6/IPv4 addr)
	  on packets. All interfaces (including the main interface) share L2
	  making it transparent to the connected L2 switch.
209

210 211
	  Ipvlan devices can be added using the "ip" command from the
	  iproute2 package starting with the iproute2-3.19 release:
212

213
	  "ip link add link <main-dev> [ NAME ] type ipvlan"
214

215 216
	  To compile this driver as a module, choose M here: the module
	  will be called ipvlan.
217

218 219 220 221 222
config IPVTAP
	tristate "IP-VLAN based tap driver"
	depends on IPVLAN
	depends on INET
	select TAP
223
	help
224 225 226 227 228 229 230
	  This adds a specialized tap character device driver that is based
	  on the IP-VLAN network interface, called ipvtap. An ipvtap device
	  can be added in the same way as a ipvlan device, using 'type
	  ipvtap', and then be accessed through the tap user space interface.

	  To compile this driver as a module, choose M here: the module
	  will be called ipvtap.
231

S
stephen hemminger 已提交
232
config VXLAN
233 234 235 236
	tristate "Virtual eXtensible Local Area Network (VXLAN)"
	depends on INET
	select NET_UDP_TUNNEL
	select GRO_CELLS
237
	help
S
stephen hemminger 已提交
238 239 240 241 242 243 244 245 246
	  This allows one to create vxlan virtual interfaces that provide
	  Layer 2 Networks over Layer 3 Networks. VXLAN is often used
	  to tunnel virtual network infrastructure in virtualized environments.
	  For more information see:
	    http://tools.ietf.org/html/draft-mahalingam-dutt-dcops-vxlan-02

	  To compile this driver as a module, choose M here: the module
	  will be called vxlan.

247
config GENEVE
248 249 250 251 252
	tristate "Generic Network Virtualization Encapsulation"
	depends on INET
	depends on IPV6 || !IPV6
	select NET_UDP_TUNNEL
	select GRO_CELLS
253
	help
254 255 256 257 258 259 260 261 262
	  This allows one to create geneve virtual interfaces that provide
	  Layer 2 Networks over Layer 3 Networks. GENEVE is often used
	  to tunnel virtual network infrastructure in virtualized environments.
	  For more information see:
	    http://tools.ietf.org/html/draft-gross-geneve-02

	  To compile this driver as a module, choose M here: the module
	  will be called geneve.

263 264 265 266 267 268 269 270 271 272 273 274 275
config BAREUDP
       tristate "Bare UDP Encapsulation"
       depends on INET
       depends on IPV6 || !IPV6
       select NET_UDP_TUNNEL
       select GRO_CELLS
       help
          This adds a bare UDP tunnel module for tunnelling different
          kinds of traffic like MPLS, IP, etc. inside a UDP tunnel.

          To compile this driver as a module, choose M here: the module
          will be called bareudp.

276 277
config GTP
	tristate "GPRS Tunneling Protocol datapath (GTP-U)"
278 279
	depends on INET
	select NET_UDP_TUNNEL
280
	help
281 282 283 284 285 286 287 288 289 290
	  This allows one to create gtp virtual interfaces that provide
	  the GPRS Tunneling Protocol datapath (GTP-U). This tunneling protocol
	  is used to prevent subscribers from accessing mobile carrier core
	  network infrastructure. This driver requires a userspace software that
	  implements the signaling protocol (GTP-C) to update its PDP context
	  base, such as OpenGGSN <http://git.osmocom.org/openggsn/). This
	  tunneling protocol is implemented according to the GSM TS 09.60 and
	  3GPP TS 29.060 standards.

	  To compile this drivers as a module, choose M here: the module
291
	  will be called gtp.
292

293 294
config MACSEC
	tristate "IEEE 802.1AE MAC-level encryption (MACsec)"
295
	select CRYPTO
296 297
	select CRYPTO_AES
	select CRYPTO_GCM
298
	select GRO_CELLS
299
	help
300 301
	   MACsec is an encryption standard for Ethernet.

302 303
config NETCONSOLE
	tristate "Network console logging support"
304
	help
305
	  If you want to log kernel messages over the network, enable this.
306
	  See <file:Documentation/networking/netconsole.rst> for details.
L
Linus Torvalds 已提交
307

308 309 310 311 312 313 314 315
config NETCONSOLE_DYNAMIC
	bool "Dynamic reconfiguration of logging targets"
	depends on NETCONSOLE && SYSFS && CONFIGFS_FS && \
			!(NETCONSOLE=y && CONFIGFS_FS=m)
	help
	  This option enables the ability to dynamically reconfigure target
	  parameters (interface, IP addresses, port numbers, MAC addresses)
	  at runtime through a userspace interface exported using configfs.
316
	  See <file:Documentation/networking/netconsole.rst> for details.
L
Linus Torvalds 已提交
317

318 319
config NETPOLL
	def_bool NETCONSOLE
320
	select SRCU
321 322 323 324

config NET_POLL_CONTROLLER
	def_bool NETPOLL

325
config NTB_NETDEV
326 327
	tristate "Virtual Ethernet over NTB Transport"
	depends on NTB_TRANSPORT
328

329 330 331 332 333 334 335 336 337 338 339 340 341
config RIONET
	tristate "RapidIO Ethernet over messaging driver support"
	depends on RAPIDIO

config RIONET_TX_SIZE
	int "Number of outbound queue entries"
	depends on RIONET
	default "128"

config RIONET_RX_SIZE
	int "Number of inbound queue entries"
	depends on RIONET
	default "128"
L
Linus Torvalds 已提交
342 343 344

config TUN
	tristate "Universal TUN/TAP device driver support"
345
	depends on INET
L
Linus Torvalds 已提交
346
	select CRC32
347
	help
L
Linus Torvalds 已提交
348 349 350 351 352 353 354 355 356 357 358
	  TUN/TAP provides packet reception and transmission for user space
	  programs.  It can be viewed as a simple Point-to-Point or Ethernet
	  device, which instead of receiving packets from a physical media,
	  receives them from user space program and instead of sending packets
	  via physical media writes them to the user space program.

	  When a program opens /dev/net/tun, driver creates and registers
	  corresponding net device tunX or tapX.  After a program closed above
	  devices, driver will automatically delete tunXX or tapXX device and
	  all routes corresponding to it.

359
	  Please read <file:Documentation/networking/tuntap.rst> for more
L
Linus Torvalds 已提交
360 361 362 363 364 365 366
	  information.

	  To compile this driver as a module, choose M here: the module
	  will be called tun.

	  If you don't know what to use this for, you don't need it.

367 368
config TAP
	tristate
369
	help
370 371 372
	  This option is selected by any driver implementing tap user space
	  interface for a virtual interface to re-use core tap functionality.

373 374 375
config TUN_VNET_CROSS_LE
	bool "Support for cross-endian vnet headers on little-endian kernels"
	default n
376
	help
377 378 379 380 381 382 383 384 385 386
	  This option allows TUN/TAP and MACVTAP device drivers in a
	  little-endian kernel to parse vnet headers that come from a
	  big-endian legacy virtio device.

	  Userspace programs can control the feature using the TUNSETVNETBE
	  and TUNGETVNETBE ioctls.

	  Unless you have a little-endian system hosting a big-endian virtual
	  machine with a legacy virtio NIC, you should say N.

387
config VETH
388
	tristate "Virtual ethernet pair device"
389
	help
390 391 392
	  This device is a local ethernet tunnel. Devices are created in pairs.
	  When one end receives the packet it appears on its pair and vice
	  versa.
393

394
config VIRTIO_NET
395 396
	tristate "Virtio network driver"
	depends on VIRTIO
397
	select NET_FAILOVER
398
	help
399
	  This is the virtual network driver for virtio.  It can be used with
400
	  QEMU based VMMs (like KVM or Xen).  Say Y or M.
401

402 403
config NLMON
	tristate "Virtual netlink monitoring device"
404
	help
405 406 407 408 409 410 411
	  This option enables a monitoring net device for netlink skbs. The
	  purpose of this is to analyze netlink messages with packet sockets.
	  Thus applications like tcpdump will be able to see local netlink
	  messages if they tap into the netlink device, record pcaps for further
	  diagnostics, etc. This is mostly intended for developers or support
	  to debug netlink issues. If unsure, say N.

D
David Ahern 已提交
412 413
config NET_VRF
	tristate "Virtual Routing and Forwarding (Lite)"
D
David Ahern 已提交
414
	depends on IP_MULTIPLE_TABLES
415
	depends on NET_L3_MASTER_DEV
D
David Ahern 已提交
416 417
	depends on IPV6 || IPV6=n
	depends on IPV6_MULTIPLE_TABLES || IPV6=n
418
	help
D
David Ahern 已提交
419 420 421
	  This option enables the support for mapping interfaces into VRF's. The
	  support enables VRF devices.

G
Gerard Garcia 已提交
422
config VSOCKMON
423 424
	tristate "Virtual vsock monitoring device"
	depends on VHOST_VSOCK
425
	help
426 427 428
	  This option enables a monitoring net device for vsock sockets. It is
	  mostly intended for developers or support to debug vsock issues. If
	  unsure, say N.
G
Gerard Garcia 已提交
429

L
Loic Poulain 已提交
430 431 432 433 434 435 436
config MHI_NET
	tristate "MHI network driver"
	depends on MHI_BUS
	help
	  This is the network driver for MHI bus.  It can be used with
	  QCOM based WWAN modems (like SDX55).  Say Y or M.

437 438 439 440 441 442 443 444 445 446 447
endif # NET_CORE

config SUNGEM_PHY
	tristate

source "drivers/net/arcnet/Kconfig"

source "drivers/atm/Kconfig"

source "drivers/net/caif/Kconfig"

448 449
source "drivers/net/dsa/Kconfig"

450 451 452 453
source "drivers/net/ethernet/Kconfig"

source "drivers/net/fddi/Kconfig"

454 455
source "drivers/net/hippi/Kconfig"

456 457
source "drivers/net/ipa/Kconfig"

L
Linus Torvalds 已提交
458 459
config NET_SB1000
	tristate "General Instruments Surfboard 1000"
460
	depends on PNP
461
	help
L
Linus Torvalds 已提交
462 463 464 465 466 467 468 469 470
	  This is a driver for the General Instrument (also known as
	  NextLevel) SURFboard 1000 internal
	  cable modem. This is an ISA card which is used by a number of cable
	  TV companies to provide cable modem access. It's a one-way
	  downstream-only cable modem, meaning that your upstream net link is
	  provided by your regular phone modem.

	  At present this driver only compiles as a module, so say M here if
	  you have this card. The module will be called sb1000. Then read
471
	  <file:Documentation/networking/device_drivers/cable/sb1000.rst> for
472 473 474
	  information on how to use this module, as it needs special ppp
	  scripts for establishing a connection. Further documentation
	  and the necessary scripts can be found at:
L
Linus Torvalds 已提交
475 476 477 478 479 480 481

	  <http://www.jacksonville.net/~fventuri/>
	  <http://home.adelphia.net/~siglercm/sb1000.html>
	  <http://linuxpower.cx/~cable/>

	  If you don't have this card, of course say N.

482 483
source "drivers/net/phy/Kconfig"

484 485
source "drivers/net/mdio/Kconfig"

486 487
source "drivers/net/pcs/Kconfig"

J
Jeff Kirsher 已提交
488 489
source "drivers/net/plip/Kconfig"

490 491
source "drivers/net/ppp/Kconfig"

J
Jeff Kirsher 已提交
492 493
source "drivers/net/slip/Kconfig"

494 495 496 497
source "drivers/s390/net/Kconfig"

source "drivers/net/usb/Kconfig"

L
Linus Torvalds 已提交
498 499 500 501
source "drivers/net/wireless/Kconfig"

source "drivers/net/wan/Kconfig"

502 503
source "drivers/net/ieee802154/Kconfig"

504 505 506
config XEN_NETDEV_FRONTEND
	tristate "Xen network device frontend driver"
	depends on XEN
507
	select XEN_XENBUS_FRONTEND
508
	select PAGE_POOL
509 510
	default y
	help
I
Ian Campbell 已提交
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
	  This driver provides support for Xen paravirtual network
	  devices exported by a Xen network driver domain (often
	  domain 0).

	  The corresponding Linux backend driver is enabled by the
	  CONFIG_XEN_NETDEV_BACKEND option.

	  If you are compiling a kernel for use as Xen guest, you
	  should say Y here. To compile this driver as a module, chose
	  M here: the module will be called xen-netfront.

config XEN_NETDEV_BACKEND
	tristate "Xen backend network device"
	depends on XEN_BACKEND
	help
	  This driver allows the kernel to act as a Xen network driver
	  domain which exports paravirtual network devices to other
	  Xen domains. These devices can be accessed by any operating
	  system that implements a compatible front end.

	  The corresponding Linux frontend driver is enabled by the
	  CONFIG_XEN_NETDEV_FRONTEND configuration option.

	  The backend driver presents a standard network device
	  endpoint for each paravirtual network device to the driver
	  domain network stack. These can then be bridged or routed
	  etc in order to provide full network connectivity.

	  If you are compiling a kernel to run in a Xen network driver
	  domain (often this is domain 0) you should say Y here. To
	  compile this driver as a module, chose M here: the module
	  will be called xen-netback.
543

544
config VMXNET3
545 546
	tristate "VMware VMXNET3 ethernet driver"
	depends on PCI && INET
547 548 549
	depends on !(PAGE_SIZE_64KB || ARM64_64K_PAGES || \
		     IA64_PAGE_SIZE_64KB || MICROBLAZE_64K_PAGES || \
		     PARISC_PAGE_SIZE_64KB || PPC_64K_PAGES)
550 551 552 553
	help
	  This driver supports VMware's vmxnet3 virtual ethernet NIC.
	  To compile this driver as a module, choose M here: the
	  module will be called vmxnet3.
554

555 556 557 558 559
config FUJITSU_ES
	tristate "FUJITSU Extended Socket Network Device driver"
	depends on ACPI
	help
	  This driver provides support for Extended Socket network device
560
	  on Extended Partitioning of FUJITSU PRIMEQUEST 2000 E2 series.
561

562 563 564
config USB4_NET
	tristate "Networking over USB4 and Thunderbolt cables"
	depends on USB4 && INET
565
	help
566 567
	  Select this if you want to create network between two computers
	  over a USB4 and Thunderbolt cables. The driver supports Apple
568 569 570 571 572 573
	  ThunderboltIP protocol and allows communication with any host
	  supporting the same protocol including Windows and macOS.

	  To compile this driver a module, choose M here. The module will be
	  called thunderbolt-net.

574 575
source "drivers/net/hyperv/Kconfig"

576 577 578
config NETDEVSIM
	tristate "Simulated networking device"
	depends on DEBUG_FS
579
	depends on INET
580
	depends on IPV6 || IPV6=n
581
	select NET_DEVLINK
582 583 584 585 586 587 588 589
	help
	  This driver is a developer testing tool and software model that can
	  be used to test various control path networking APIs, especially
	  HW-offload related.

	  To compile this driver as a module, choose M here: the module
	  will be called netdevsim.

590 591 592 593 594 595 596 597
config NET_FAILOVER
	tristate "Failover driver"
	select FAILOVER
	help
	  This provides an automated failover mechanism via APIs to create
	  and destroy a failover master netdev and manages a primary and
	  standby slave netdevs that get registered via the generic failover
	  infrastructure. This can be used by paravirtual drivers to enable
598
	  an alternate low latency datapath. It also enables live migration of
599 600 601
	  a VM with direct attached VF by failing over to the paravirtual
	  datapath when the VF is unplugged.

602
endif # NETDEVICES