Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. #
  2. # Network configuration
  3. #
  4. menuconfig NET
  5. bool "Networking support"
  6. select NLATTR
  7. select GENERIC_NET_UTILS
  8. select BPF
  9. ---help---
  10. Unless you really know what you are doing, you should say Y here.
  11. The reason is that some programs need kernel networking support even
  12. when running on a stand-alone machine that isn't connected to any
  13. other computer.
  14. If you are upgrading from an older kernel, you
  15. should consider updating your networking tools too because changes
  16. in the kernel and the tools often go hand in hand. The tools are
  17. contained in the package net-tools, the location and version number
  18. of which are given in <file:Documentation/Changes>.
  19. For a general introduction to Linux networking, it is highly
  20. recommended to read the NET-HOWTO, available from
  21. <http://www.tldp.org/docs.html#howto>.
  22. if NET
  23. config WANT_COMPAT_NETLINK_MESSAGES
  24. bool
  25. help
  26. This option can be selected by other options that need compat
  27. netlink messages.
  28. config COMPAT_NETLINK_MESSAGES
  29. def_bool y
  30. depends on COMPAT
  31. depends on WEXT_CORE || WANT_COMPAT_NETLINK_MESSAGES
  32. help
  33. This option makes it possible to send different netlink messages
  34. to tasks depending on whether the task is a compat task or not. To
  35. achieve this, you need to set skb_shinfo(skb)->frag_list to the
  36. compat skb before sending the skb, the netlink code will sort out
  37. which message to actually pass to the task.
  38. Newly written code should NEVER need this option but do
  39. compat-independent messages instead!
  40. config NET_INGRESS
  41. bool
  42. config NET_EGRESS
  43. bool
  44. menu "Networking options"
  45. source "net/packet/Kconfig"
  46. source "net/unix/Kconfig"
  47. source "net/tls/Kconfig"
  48. source "net/xfrm/Kconfig"
  49. source "net/iucv/Kconfig"
  50. source "net/smc/Kconfig"
  51. source "net/xdp/Kconfig"
  52. config INET
  53. bool "TCP/IP networking"
  54. select CRYPTO
  55. select CRYPTO_AES
  56. ---help---
  57. These are the protocols used on the Internet and on most local
  58. Ethernets. It is highly recommended to say Y here (this will enlarge
  59. your kernel by about 400 KB), since some programs (e.g. the X window
  60. system) use TCP/IP even if your machine is not connected to any
  61. other computer. You will get the so-called loopback device which
  62. allows you to ping yourself (great fun, that!).
  63. For an excellent introduction to Linux networking, please read the
  64. Linux Networking HOWTO, available from
  65. <http://www.tldp.org/docs.html#howto>.
  66. If you say Y here and also to "/proc file system support" and
  67. "Sysctl support" below, you can change various aspects of the
  68. behavior of the TCP/IP code by writing to the (virtual) files in
  69. /proc/sys/net/ipv4/*; the options are explained in the file
  70. <file:Documentation/networking/ip-sysctl.txt>.
  71. Short answer: say Y.
  72. if INET
  73. source "net/ipv4/Kconfig"
  74. source "net/ipv6/Kconfig"
  75. source "net/netlabel/Kconfig"
  76. endif # if INET
  77. config NETWORK_SECMARK
  78. bool "Security Marking"
  79. help
  80. This enables security marking of network packets, similar
  81. to nfmark, but designated for security purposes.
  82. If you are unsure how to answer this question, answer N.
  83. config NET_PTP_CLASSIFY
  84. def_bool n
  85. config NETWORK_PHY_TIMESTAMPING
  86. bool "Timestamping in PHY devices"
  87. select NET_PTP_CLASSIFY
  88. help
  89. This allows timestamping of network packets by PHYs with
  90. hardware timestamping capabilities. This option adds some
  91. overhead in the transmit and receive paths.
  92. If you are unsure how to answer this question, answer N.
  93. menuconfig NETFILTER
  94. bool "Network packet filtering framework (Netfilter)"
  95. ---help---
  96. Netfilter is a framework for filtering and mangling network packets
  97. that pass through your Linux box.
  98. The most common use of packet filtering is to run your Linux box as
  99. a firewall protecting a local network from the Internet. The type of
  100. firewall provided by this kernel support is called a "packet
  101. filter", which means that it can reject individual network packets
  102. based on type, source, destination etc. The other kind of firewall,
  103. a "proxy-based" one, is more secure but more intrusive and more
  104. bothersome to set up; it inspects the network traffic much more
  105. closely, modifies it and has knowledge about the higher level
  106. protocols, which a packet filter lacks. Moreover, proxy-based
  107. firewalls often require changes to the programs running on the local
  108. clients. Proxy-based firewalls don't need support by the kernel, but
  109. they are often combined with a packet filter, which only works if
  110. you say Y here.
  111. You should also say Y here if you intend to use your Linux box as
  112. the gateway to the Internet for a local network of machines without
  113. globally valid IP addresses. This is called "masquerading": if one
  114. of the computers on your local network wants to send something to
  115. the outside, your box can "masquerade" as that computer, i.e. it
  116. forwards the traffic to the intended outside destination, but
  117. modifies the packets to make it look like they came from the
  118. firewall box itself. It works both ways: if the outside host
  119. replies, the Linux box will silently forward the traffic to the
  120. correct local computer. This way, the computers on your local net
  121. are completely invisible to the outside world, even though they can
  122. reach the outside and can receive replies. It is even possible to
  123. run globally visible servers from within a masqueraded local network
  124. using a mechanism called portforwarding. Masquerading is also often
  125. called NAT (Network Address Translation).
  126. Another use of Netfilter is in transparent proxying: if a machine on
  127. the local network tries to connect to an outside host, your Linux
  128. box can transparently forward the traffic to a local server,
  129. typically a caching proxy server.
  130. Yet another use of Netfilter is building a bridging firewall. Using
  131. a bridge with Network packet filtering enabled makes iptables "see"
  132. the bridged traffic. For filtering on the lower network and Ethernet
  133. protocols over the bridge, use ebtables (under bridge netfilter
  134. configuration).
  135. Various modules exist for netfilter which replace the previous
  136. masquerading (ipmasqadm), packet filtering (ipchains), transparent
  137. proxying, and portforwarding mechanisms. Please see
  138. <file:Documentation/Changes> under "iptables" for the location of
  139. these packages.
  140. if NETFILTER
  141. config NETFILTER_ADVANCED
  142. bool "Advanced netfilter configuration"
  143. depends on NETFILTER
  144. default y
  145. help
  146. If you say Y here you can select between all the netfilter modules.
  147. If you say N the more unusual ones will not be shown and the
  148. basic ones needed by most people will default to 'M'.
  149. If unsure, say Y.
  150. config BRIDGE_NETFILTER
  151. tristate "Bridged IP/ARP packets filtering"
  152. depends on BRIDGE
  153. depends on NETFILTER && INET
  154. depends on NETFILTER_ADVANCED
  155. select NETFILTER_FAMILY_BRIDGE
  156. default m
  157. ---help---
  158. Enabling this option will let arptables resp. iptables see bridged
  159. ARP resp. IP traffic. If you want a bridging firewall, you probably
  160. want this option enabled.
  161. Enabling or disabling this option doesn't enable or disable
  162. ebtables.
  163. If unsure, say N.
  164. source "net/netfilter/Kconfig"
  165. source "net/ipv4/netfilter/Kconfig"
  166. source "net/ipv6/netfilter/Kconfig"
  167. source "net/decnet/netfilter/Kconfig"
  168. source "net/bridge/netfilter/Kconfig"
  169. endif
  170. source "net/bpfilter/Kconfig"
  171. source "net/dccp/Kconfig"
  172. source "net/sctp/Kconfig"
  173. source "net/rds/Kconfig"
  174. source "net/tipc/Kconfig"
  175. source "net/atm/Kconfig"
  176. source "net/l2tp/Kconfig"
  177. source "net/802/Kconfig"
  178. source "net/bridge/Kconfig"
  179. source "net/dsa/Kconfig"
  180. source "net/8021q/Kconfig"
  181. source "net/decnet/Kconfig"
  182. source "net/llc/Kconfig"
  183. source "drivers/net/appletalk/Kconfig"
  184. source "net/x25/Kconfig"
  185. source "net/lapb/Kconfig"
  186. source "net/phonet/Kconfig"
  187. source "net/6lowpan/Kconfig"
  188. source "net/ieee802154/Kconfig"
  189. source "net/mac802154/Kconfig"
  190. source "net/sched/Kconfig"
  191. source "net/dcb/Kconfig"
  192. source "net/dns_resolver/Kconfig"
  193. source "net/batman-adv/Kconfig"
  194. source "net/openvswitch/Kconfig"
  195. source "net/vmw_vsock/Kconfig"
  196. source "net/netlink/Kconfig"
  197. source "net/mpls/Kconfig"
  198. source "net/nsh/Kconfig"
  199. source "net/hsr/Kconfig"
  200. source "net/switchdev/Kconfig"
  201. source "net/l3mdev/Kconfig"
  202. source "net/qrtr/Kconfig"
  203. source "net/ncsi/Kconfig"
  204. config RPS
  205. bool
  206. depends on SMP && SYSFS
  207. default y
  208. config RFS_ACCEL
  209. bool
  210. depends on RPS
  211. select CPU_RMAP
  212. default y
  213. config XPS
  214. bool
  215. depends on SMP
  216. default y
  217. config HWBM
  218. bool
  219. config CGROUP_NET_PRIO
  220. bool "Network priority cgroup"
  221. depends on CGROUPS
  222. select SOCK_CGROUP_DATA
  223. ---help---
  224. Cgroup subsystem for use in assigning processes to network priorities on
  225. a per-interface basis.
  226. config CGROUP_NET_CLASSID
  227. bool "Network classid cgroup"
  228. depends on CGROUPS
  229. select SOCK_CGROUP_DATA
  230. ---help---
  231. Cgroup subsystem for use as general purpose socket classid marker that is
  232. being used in cls_cgroup and for netfilter matching.
  233. config NET_RX_BUSY_POLL
  234. bool
  235. default y
  236. config BQL
  237. bool
  238. depends on SYSFS
  239. select DQL
  240. default y
  241. config BPF_JIT
  242. bool "enable BPF Just In Time compiler"
  243. depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT
  244. depends on MODULES
  245. ---help---
  246. Berkeley Packet Filter filtering capabilities are normally handled
  247. by an interpreter. This option allows kernel to generate a native
  248. code when filter is loaded in memory. This should speedup
  249. packet sniffing (libpcap/tcpdump).
  250. Note, admin should enable this feature changing:
  251. /proc/sys/net/core/bpf_jit_enable
  252. /proc/sys/net/core/bpf_jit_harden (optional)
  253. /proc/sys/net/core/bpf_jit_kallsyms (optional)
  254. config BPF_STREAM_PARSER
  255. bool "enable BPF STREAM_PARSER"
  256. depends on BPF_SYSCALL
  257. select STREAM_PARSER
  258. ---help---
  259. Enabling this allows a stream parser to be used with
  260. BPF_MAP_TYPE_SOCKMAP.
  261. BPF_MAP_TYPE_SOCKMAP provides a map type to use with network sockets.
  262. It can be used to enforce socket policy, implement socket redirects,
  263. etc.
  264. config NET_FLOW_LIMIT
  265. bool
  266. depends on RPS
  267. default y
  268. ---help---
  269. The network stack has to drop packets when a receive processing CPU's
  270. backlog reaches netdev_max_backlog. If a few out of many active flows
  271. generate the vast majority of load, drop their traffic earlier to
  272. maintain capacity for the other flows. This feature provides servers
  273. with many clients some protection against DoS by a single (spoofed)
  274. flow that greatly exceeds average workload.
  275. menu "Network testing"
  276. config NET_PKTGEN
  277. tristate "Packet Generator (USE WITH CAUTION)"
  278. depends on INET && PROC_FS
  279. ---help---
  280. This module will inject preconfigured packets, at a configurable
  281. rate, out of a given interface. It is used for network interface
  282. stress testing and performance analysis. If you don't understand
  283. what was just said, you don't need it: say N.
  284. Documentation on how to use the packet generator can be found
  285. at <file:Documentation/networking/pktgen.txt>.
  286. To compile this code as a module, choose M here: the
  287. module will be called pktgen.
  288. config NET_DROP_MONITOR
  289. tristate "Network packet drop alerting service"
  290. depends on INET && TRACEPOINTS
  291. ---help---
  292. This feature provides an alerting service to userspace in the
  293. event that packets are discarded in the network stack. Alerts
  294. are broadcast via netlink socket to any listening user space
  295. process. If you don't need network drop alerts, or if you are ok
  296. just checking the various proc files and other utilities for
  297. drop statistics, say N here.
  298. endmenu
  299. endmenu
  300. source "net/ax25/Kconfig"
  301. source "net/can/Kconfig"
  302. source "net/bluetooth/Kconfig"
  303. source "net/rxrpc/Kconfig"
  304. source "net/kcm/Kconfig"
  305. source "net/strparser/Kconfig"
  306. config FIB_RULES
  307. bool
  308. menuconfig WIRELESS
  309. bool "Wireless"
  310. depends on !S390
  311. default y
  312. if WIRELESS
  313. source "net/wireless/Kconfig"
  314. source "net/mac80211/Kconfig"
  315. endif # WIRELESS
  316. source "net/wimax/Kconfig"
  317. source "net/rfkill/Kconfig"
  318. source "net/9p/Kconfig"
  319. source "net/caif/Kconfig"
  320. source "net/ceph/Kconfig"
  321. source "net/nfc/Kconfig"
  322. source "net/psample/Kconfig"
  323. source "net/ife/Kconfig"
  324. config LWTUNNEL
  325. bool "Network light weight tunnels"
  326. ---help---
  327. This feature provides an infrastructure to support light weight
  328. tunnels like mpls. There is no netdevice associated with a light
  329. weight tunnel endpoint. Tunnel encapsulation parameters are stored
  330. with light weight tunnel state associated with fib routes.
  331. config LWTUNNEL_BPF
  332. bool "Execute BPF program as route nexthop action"
  333. depends on LWTUNNEL
  334. default y if LWTUNNEL=y
  335. ---help---
  336. Allows to run BPF programs as a nexthop action following a route
  337. lookup for incoming and outgoing packets.
  338. config DST_CACHE
  339. bool
  340. default n
  341. config GRO_CELLS
  342. bool
  343. default n
  344. config SOCK_VALIDATE_XMIT
  345. bool
  346. config NET_DEVLINK
  347. tristate "Network physical/parent device Netlink interface"
  348. help
  349. Network physical/parent device Netlink interface provides
  350. infrastructure to support access to physical chip-wide config and
  351. monitoring.
  352. config MAY_USE_DEVLINK
  353. tristate
  354. default m if NET_DEVLINK=m
  355. default y if NET_DEVLINK=y || NET_DEVLINK=n
  356. help
  357. Drivers using the devlink infrastructure should have a dependency
  358. on MAY_USE_DEVLINK to ensure they do not cause link errors when
  359. devlink is a loadable module and the driver using it is built-in.
  360. config PAGE_POOL
  361. bool
  362. config FAILOVER
  363. tristate "Generic failover module"
  364. help
  365. The failover module provides a generic interface for paravirtual
  366. drivers to register a netdev and a set of ops with a failover
  367. instance. The ops are used as event handlers that get called to
  368. handle netdev register/unregister/link change/name change events
  369. on slave pci ethernet devices with the same mac address as the
  370. failover netdev. This enables paravirtual drivers to use a
  371. VF as an accelerated low latency datapath. It also allows live
  372. migration of VMs with direct attached VFs by failing over to the
  373. paravirtual datapath when the VF is unplugged.
  374. endif # if NET
  375. # Used by archs to tell that they support BPF JIT compiler plus which flavour.
  376. # Only one of the two can be selected for a specific arch since eBPF JIT supersedes
  377. # the cBPF JIT.
  378. # Classic BPF JIT (cBPF)
  379. config HAVE_CBPF_JIT
  380. bool
  381. # Extended BPF JIT (eBPF)
  382. config HAVE_EBPF_JIT
  383. bool