Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Network configuration |
| 4 | # |
| 5 | |
Robert P. J. Day | 031cf19 | 2008-07-30 03:14:01 -0700 | [diff] [blame] | 6 | menuconfig NET |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | bool "Networking support" |
Geert Uytterhoeven | e9cc8bd | 2009-03-04 14:53:30 +0800 | [diff] [blame] | 8 | select NLATTR |
Andy Shevchenko | 4cd5773 | 2013-06-04 19:46:26 +0300 | [diff] [blame] | 9 | select GENERIC_NET_UTILS |
Alexei Starovoitov | f89b775 | 2014-10-23 18:41:08 -0700 | [diff] [blame] | 10 | select BPF |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 11 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | Unless you really know what you are doing, you should say Y here. |
| 13 | The reason is that some programs need kernel networking support even |
| 14 | when running on a stand-alone machine that isn't connected to any |
Sam Ravnborg | d5950b4 | 2005-07-11 21:03:49 -0700 | [diff] [blame] | 15 | other computer. |
Stephen Hemminger | e446a27 | 2018-07-24 12:29:18 -0700 | [diff] [blame] | 16 | |
Sam Ravnborg | d5950b4 | 2005-07-11 21:03:49 -0700 | [diff] [blame] | 17 | If you are upgrading from an older kernel, you |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | should consider updating your networking tools too because changes |
| 19 | in the kernel and the tools often go hand in hand. The tools are |
| 20 | contained in the package net-tools, the location and version number |
| 21 | of which are given in <file:Documentation/Changes>. |
| 22 | |
| 23 | For a general introduction to Linux networking, it is highly |
| 24 | recommended to read the NET-HOWTO, available from |
| 25 | <http://www.tldp.org/docs.html#howto>. |
| 26 | |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 27 | if NET |
| 28 | |
Johannes Berg | 1dacc76 | 2009-07-01 11:26:02 +0000 | [diff] [blame] | 29 | config WANT_COMPAT_NETLINK_MESSAGES |
| 30 | bool |
| 31 | help |
| 32 | This option can be selected by other options that need compat |
| 33 | netlink messages. |
| 34 | |
| 35 | config COMPAT_NETLINK_MESSAGES |
| 36 | def_bool y |
| 37 | depends on COMPAT |
David S. Miller | 40b53d8 | 2010-07-26 13:13:49 -0700 | [diff] [blame] | 38 | depends on WEXT_CORE || WANT_COMPAT_NETLINK_MESSAGES |
Johannes Berg | 1dacc76 | 2009-07-01 11:26:02 +0000 | [diff] [blame] | 39 | help |
| 40 | This option makes it possible to send different netlink messages |
| 41 | to tasks depending on whether the task is a compat task or not. To |
| 42 | achieve this, you need to set skb_shinfo(skb)->frag_list to the |
| 43 | compat skb before sending the skb, the netlink code will sort out |
| 44 | which message to actually pass to the task. |
| 45 | |
| 46 | Newly written code should NEVER need this option but do |
| 47 | compat-independent messages instead! |
| 48 | |
Pablo Neira | 1cf51900 | 2015-05-13 18:19:37 +0200 | [diff] [blame] | 49 | config NET_INGRESS |
| 50 | bool |
| 51 | |
Daniel Borkmann | 1f211a1 | 2016-01-07 22:29:47 +0100 | [diff] [blame] | 52 | config NET_EGRESS |
| 53 | bool |
| 54 | |
Pablo Neira Ayuso | 2c64605 | 2020-03-25 13:47:18 +0100 | [diff] [blame] | 55 | config NET_REDIRECT |
| 56 | bool |
| 57 | |
Florian Westphal | df5042f | 2018-12-18 17:15:16 +0100 | [diff] [blame] | 58 | config SKB_EXTENSIONS |
| 59 | bool |
| 60 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | menu "Networking options" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 63 | source "net/packet/Kconfig" |
| 64 | source "net/unix/Kconfig" |
Dave Watson | 3c4d755 | 2017-06-14 11:37:39 -0700 | [diff] [blame] | 65 | source "net/tls/Kconfig" |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 66 | source "net/xfrm/Kconfig" |
Martin Schwidefsky | 2356f4c | 2007-02-08 13:37:42 -0800 | [diff] [blame] | 67 | source "net/iucv/Kconfig" |
Ursula Braun | ac71387 | 2017-01-09 16:55:13 +0100 | [diff] [blame] | 68 | source "net/smc/Kconfig" |
Björn Töpel | 68e8b84 | 2018-05-02 13:01:22 +0200 | [diff] [blame] | 69 | source "net/xdp/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | |
| 71 | config INET |
| 72 | bool "TCP/IP networking" |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 73 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | These are the protocols used on the Internet and on most local |
| 75 | Ethernets. It is highly recommended to say Y here (this will enlarge |
YOSHIFUJI Hideaki | cf80efc | 2008-02-12 17:35:16 +0900 | [diff] [blame] | 76 | your kernel by about 400 KB), since some programs (e.g. the X window |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | system) use TCP/IP even if your machine is not connected to any |
| 78 | other computer. You will get the so-called loopback device which |
| 79 | allows you to ping yourself (great fun, that!). |
| 80 | |
| 81 | For an excellent introduction to Linux networking, please read the |
| 82 | Linux Networking HOWTO, available from |
| 83 | <http://www.tldp.org/docs.html#howto>. |
| 84 | |
| 85 | If you say Y here and also to "/proc file system support" and |
| 86 | "Sysctl support" below, you can change various aspects of the |
| 87 | behavior of the TCP/IP code by writing to the (virtual) files in |
| 88 | /proc/sys/net/ipv4/*; the options are explained in the file |
Mauro Carvalho Chehab | 1cec2ca | 2020-04-28 00:01:49 +0200 | [diff] [blame] | 89 | <file:Documentation/networking/ip-sysctl.rst>. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | |
| 91 | Short answer: say Y. |
| 92 | |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 93 | if INET |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 94 | source "net/ipv4/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 95 | source "net/ipv6/Kconfig" |
Paul Moore | 38c9437 | 2006-11-05 16:44:06 -0800 | [diff] [blame] | 96 | source "net/netlabel/Kconfig" |
Mat Martineau | f870fa0 | 2020-01-21 16:56:15 -0800 | [diff] [blame] | 97 | source "net/mptcp/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 98 | |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 99 | endif # if INET |
| 100 | |
James Morris | 984bc16 | 2006-06-09 00:29:17 -0700 | [diff] [blame] | 101 | config NETWORK_SECMARK |
| 102 | bool "Security Marking" |
| 103 | help |
| 104 | This enables security marking of network packets, similar |
| 105 | to nfmark, but designated for security purposes. |
| 106 | If you are unsure how to answer this question, answer N. |
| 107 | |
Daniel Borkmann | 408eccc | 2014-04-01 16:20:23 +0200 | [diff] [blame] | 108 | config NET_PTP_CLASSIFY |
| 109 | def_bool n |
| 110 | |
Richard Cochran | c1f19b5 | 2010-07-17 08:49:36 +0000 | [diff] [blame] | 111 | config NETWORK_PHY_TIMESTAMPING |
| 112 | bool "Timestamping in PHY devices" |
Daniel Borkmann | 408eccc | 2014-04-01 16:20:23 +0200 | [diff] [blame] | 113 | select NET_PTP_CLASSIFY |
Richard Cochran | c1f19b5 | 2010-07-17 08:49:36 +0000 | [diff] [blame] | 114 | help |
Richard Cochran | 767ff48 | 2019-12-25 18:16:16 -0800 | [diff] [blame] | 115 | This allows timestamping of network packets by PHYs (or |
| 116 | other MII bus snooping devices) with hardware timestamping |
| 117 | capabilities. This option adds some overhead in the transmit |
| 118 | and receive paths. |
Richard Cochran | c1f19b5 | 2010-07-17 08:49:36 +0000 | [diff] [blame] | 119 | |
| 120 | If you are unsure how to answer this question, answer N. |
| 121 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | menuconfig NETFILTER |
Pablo Neira Ayuso | ef91fd5 | 2006-11-29 02:35:43 +0100 | [diff] [blame] | 123 | bool "Network packet filtering framework (Netfilter)" |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 124 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | Netfilter is a framework for filtering and mangling network packets |
| 126 | that pass through your Linux box. |
| 127 | |
| 128 | The most common use of packet filtering is to run your Linux box as |
| 129 | a firewall protecting a local network from the Internet. The type of |
| 130 | firewall provided by this kernel support is called a "packet |
| 131 | filter", which means that it can reject individual network packets |
| 132 | based on type, source, destination etc. The other kind of firewall, |
| 133 | a "proxy-based" one, is more secure but more intrusive and more |
| 134 | bothersome to set up; it inspects the network traffic much more |
| 135 | closely, modifies it and has knowledge about the higher level |
| 136 | protocols, which a packet filter lacks. Moreover, proxy-based |
| 137 | firewalls often require changes to the programs running on the local |
| 138 | clients. Proxy-based firewalls don't need support by the kernel, but |
| 139 | they are often combined with a packet filter, which only works if |
| 140 | you say Y here. |
| 141 | |
| 142 | You should also say Y here if you intend to use your Linux box as |
| 143 | the gateway to the Internet for a local network of machines without |
| 144 | globally valid IP addresses. This is called "masquerading": if one |
| 145 | of the computers on your local network wants to send something to |
| 146 | the outside, your box can "masquerade" as that computer, i.e. it |
| 147 | forwards the traffic to the intended outside destination, but |
| 148 | modifies the packets to make it look like they came from the |
| 149 | firewall box itself. It works both ways: if the outside host |
| 150 | replies, the Linux box will silently forward the traffic to the |
| 151 | correct local computer. This way, the computers on your local net |
| 152 | are completely invisible to the outside world, even though they can |
| 153 | reach the outside and can receive replies. It is even possible to |
| 154 | run globally visible servers from within a masqueraded local network |
| 155 | using a mechanism called portforwarding. Masquerading is also often |
| 156 | called NAT (Network Address Translation). |
| 157 | |
| 158 | Another use of Netfilter is in transparent proxying: if a machine on |
| 159 | the local network tries to connect to an outside host, your Linux |
| 160 | box can transparently forward the traffic to a local server, |
| 161 | typically a caching proxy server. |
| 162 | |
| 163 | Yet another use of Netfilter is building a bridging firewall. Using |
| 164 | a bridge with Network packet filtering enabled makes iptables "see" |
| 165 | the bridged traffic. For filtering on the lower network and Ethernet |
| 166 | protocols over the bridge, use ebtables (under bridge netfilter |
| 167 | configuration). |
| 168 | |
| 169 | Various modules exist for netfilter which replace the previous |
| 170 | masquerading (ipmasqadm), packet filtering (ipchains), transparent |
| 171 | proxying, and portforwarding mechanisms. Please see |
| 172 | <file:Documentation/Changes> under "iptables" for the location of |
| 173 | these packages. |
| 174 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 175 | if NETFILTER |
| 176 | |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 177 | config NETFILTER_ADVANCED |
| 178 | bool "Advanced netfilter configuration" |
| 179 | depends on NETFILTER |
| 180 | default y |
| 181 | help |
| 182 | If you say Y here you can select between all the netfilter modules. |
Matt LaPlante | 692105b | 2009-01-26 11:12:25 +0100 | [diff] [blame] | 183 | If you say N the more unusual ones will not be shown and the |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 184 | basic ones needed by most people will default to 'M'. |
| 185 | |
| 186 | If unsure, say Y. |
| 187 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 188 | config BRIDGE_NETFILTER |
Pablo Neira Ayuso | 34666d4 | 2014-09-18 11:29:03 +0200 | [diff] [blame] | 189 | tristate "Bridged IP/ARP packets filtering" |
Florian Westphal | 57f5877 | 2014-09-30 10:59:18 +0200 | [diff] [blame] | 190 | depends on BRIDGE |
Pablo Neira Ayuso | 34666d4 | 2014-09-18 11:29:03 +0200 | [diff] [blame] | 191 | depends on NETFILTER && INET |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 192 | depends on NETFILTER_ADVANCED |
Florian Westphal | 2a95183 | 2017-12-07 16:28:26 +0100 | [diff] [blame] | 193 | select NETFILTER_FAMILY_BRIDGE |
Florian Westphal | de8bda1 | 2018-12-18 17:15:17 +0100 | [diff] [blame] | 194 | select SKB_EXTENSIONS |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 195 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | Enabling this option will let arptables resp. iptables see bridged |
| 197 | ARP resp. IP traffic. If you want a bridging firewall, you probably |
| 198 | want this option enabled. |
| 199 | Enabling or disabling this option doesn't enable or disable |
| 200 | ebtables. |
| 201 | |
| 202 | If unsure, say N. |
| 203 | |
Harald Welte | 9eb0eec | 2005-09-17 00:41:21 -0700 | [diff] [blame] | 204 | source "net/netfilter/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | source "net/ipv4/netfilter/Kconfig" |
| 206 | source "net/ipv6/netfilter/Kconfig" |
| 207 | source "net/decnet/netfilter/Kconfig" |
| 208 | source "net/bridge/netfilter/Kconfig" |
| 209 | |
| 210 | endif |
| 211 | |
Alexei Starovoitov | d2ba09c | 2018-05-21 19:22:30 -0700 | [diff] [blame] | 212 | source "net/bpfilter/Kconfig" |
| 213 | |
Arnaldo Carvalho de Melo | 7c65787 | 2005-08-09 20:14:34 -0700 | [diff] [blame] | 214 | source "net/dccp/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 215 | source "net/sctp/Kconfig" |
Andy Grover | fe17f84 | 2009-02-24 15:30:39 +0000 | [diff] [blame] | 216 | source "net/rds/Kconfig" |
Per Liden | 1e63e68 | 2006-01-16 16:39:13 +0100 | [diff] [blame] | 217 | source "net/tipc/Kconfig" |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 218 | source "net/atm/Kconfig" |
James Chapman | fd558d1 | 2010-04-02 06:18:33 +0000 | [diff] [blame] | 219 | source "net/l2tp/Kconfig" |
Patrick McHardy | a19800d | 2008-07-05 21:25:39 -0700 | [diff] [blame] | 220 | source "net/802/Kconfig" |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 221 | source "net/bridge/Kconfig" |
Lennert Buytenhek | 91da11f | 2008-10-07 13:44:02 +0000 | [diff] [blame] | 222 | source "net/dsa/Kconfig" |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 223 | source "net/8021q/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 224 | source "net/decnet/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | source "net/llc/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 226 | source "drivers/net/appletalk/Kconfig" |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 227 | source "net/x25/Kconfig" |
| 228 | source "net/lapb/Kconfig" |
remi.denis-courmont@nokia | 5075138 | 2009-01-23 03:00:25 +0000 | [diff] [blame] | 229 | source "net/phonet/Kconfig" |
Alexander Aring | 2c6bed7 | 2014-07-11 10:24:18 +0200 | [diff] [blame] | 230 | source "net/6lowpan/Kconfig" |
Sergey Lapin | 9ec7671 | 2009-06-08 12:18:48 +0000 | [diff] [blame] | 231 | source "net/ieee802154/Kconfig" |
alex.bluesman.smirnov@gmail.com | 1010f54 | 2012-05-15 20:50:20 +0000 | [diff] [blame] | 232 | source "net/mac802154/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 233 | source "net/sched/Kconfig" |
Alexander Duyck | 2f90b86 | 2008-11-20 20:52:10 -0800 | [diff] [blame] | 234 | source "net/dcb/Kconfig" |
Wang Lei | 1a4240f | 2010-08-04 15:16:33 +0100 | [diff] [blame] | 235 | source "net/dns_resolver/Kconfig" |
Sven Eckelmann | c6c8fea | 2010-12-13 11:19:28 +0000 | [diff] [blame] | 236 | source "net/batman-adv/Kconfig" |
Jesse Gross | ccb1352 | 2011-10-25 19:26:31 -0700 | [diff] [blame] | 237 | source "net/openvswitch/Kconfig" |
Andy King | d021c34 | 2013-02-06 14:23:56 +0000 | [diff] [blame] | 238 | source "net/vmw_vsock/Kconfig" |
Andrey Vagin | eaaa313 | 2013-03-21 20:33:48 +0400 | [diff] [blame] | 239 | source "net/netlink/Kconfig" |
Simon Horman | 0d89d20 | 2013-05-23 21:02:52 +0000 | [diff] [blame] | 240 | source "net/mpls/Kconfig" |
Jiri Benc | c411ed8 | 2017-08-28 21:43:24 +0200 | [diff] [blame] | 241 | source "net/nsh/Kconfig" |
Arvid Brodin | f421436 | 2013-10-30 21:10:47 +0100 | [diff] [blame] | 242 | source "net/hsr/Kconfig" |
Jiri Pirko | 007f790 | 2014-11-28 14:34:17 +0100 | [diff] [blame] | 243 | source "net/switchdev/Kconfig" |
David Ahern | 1b69c6d | 2015-09-29 20:07:11 -0700 | [diff] [blame] | 244 | source "net/l3mdev/Kconfig" |
Courtney Cavin | bdabad3 | 2016-05-06 07:09:08 -0700 | [diff] [blame] | 245 | source "net/qrtr/Kconfig" |
Gavin Shan | 2d283bd | 2016-07-19 11:54:16 +1000 | [diff] [blame] | 246 | source "net/ncsi/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 247 | |
Eric Dumazet | 919067c | 2021-03-19 10:39:33 -0700 | [diff] [blame] | 248 | config PCPU_DEV_REFCNT |
| 249 | bool "Use percpu variables to maintain network device refcount" |
| 250 | depends on SMP |
| 251 | default y |
| 252 | help |
| 253 | network device refcount are using per cpu variables if this option is set. |
| 254 | This can be forced to N to detect underflows (with a performance drop). |
| 255 | |
Eric Dumazet | df33454 | 2010-03-24 19:13:54 +0000 | [diff] [blame] | 256 | config RPS |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 257 | bool |
Yuanhan Liu | 044c8d4 | 2013-11-21 14:32:01 -0800 | [diff] [blame] | 258 | depends on SMP && SYSFS |
Eric Dumazet | df33454 | 2010-03-24 19:13:54 +0000 | [diff] [blame] | 259 | default y |
| 260 | |
Ben Hutchings | c445477 | 2011-01-19 11:03:53 +0000 | [diff] [blame] | 261 | config RFS_ACCEL |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 262 | bool |
Martin Schwidefsky | 0244ad0 | 2013-08-30 09:39:53 +0200 | [diff] [blame] | 263 | depends on RPS |
Ben Hutchings | c445477 | 2011-01-19 11:03:53 +0000 | [diff] [blame] | 264 | select CPU_RMAP |
| 265 | default y |
| 266 | |
Tariq Toukan | 4e1beec | 2021-02-11 13:35:51 +0200 | [diff] [blame] | 267 | config SOCK_RX_QUEUE_MAPPING |
| 268 | bool |
| 269 | |
Tom Herbert | bf26414 | 2010-11-26 08:36:09 +0000 | [diff] [blame] | 270 | config XPS |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 271 | bool |
Yuanhan Liu | 044c8d4 | 2013-11-21 14:32:01 -0800 | [diff] [blame] | 272 | depends on SMP |
Tariq Toukan | 4e1beec | 2021-02-11 13:35:51 +0200 | [diff] [blame] | 273 | select SOCK_RX_QUEUE_MAPPING |
Tom Herbert | bf26414 | 2010-11-26 08:36:09 +0000 | [diff] [blame] | 274 | default y |
| 275 | |
Gregory CLEMENT | 8cb2d8b | 2016-03-14 09:39:04 +0100 | [diff] [blame] | 276 | config HWBM |
Krzysztof Kozlowski | 43da141 | 2019-11-21 21:28:35 +0800 | [diff] [blame] | 277 | bool |
Gregory CLEMENT | 8cb2d8b | 2016-03-14 09:39:04 +0100 | [diff] [blame] | 278 | |
Daniel Borkmann | 86f8515 | 2013-12-29 17:27:11 +0100 | [diff] [blame] | 279 | config CGROUP_NET_PRIO |
Tejun Heo | af63633 | 2014-02-08 10:36:58 -0500 | [diff] [blame] | 280 | bool "Network priority cgroup" |
Neil Horman | 5bc1421 | 2011-11-22 05:10:51 +0000 | [diff] [blame] | 281 | depends on CGROUPS |
Tejun Heo | 2a56a1f | 2015-12-07 17:38:52 -0500 | [diff] [blame] | 282 | select SOCK_CGROUP_DATA |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 283 | help |
Neil Horman | 5bc1421 | 2011-11-22 05:10:51 +0000 | [diff] [blame] | 284 | Cgroup subsystem for use in assigning processes to network priorities on |
Daniel Borkmann | 86f8515 | 2013-12-29 17:27:11 +0100 | [diff] [blame] | 285 | a per-interface basis. |
Neil Horman | 5bc1421 | 2011-11-22 05:10:51 +0000 | [diff] [blame] | 286 | |
Daniel Borkmann | fe1217c | 2013-12-29 18:27:10 +0100 | [diff] [blame] | 287 | config CGROUP_NET_CLASSID |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 288 | bool "Network classid cgroup" |
Daniel Borkmann | fe1217c | 2013-12-29 18:27:10 +0100 | [diff] [blame] | 289 | depends on CGROUPS |
Tejun Heo | 2a56a1f | 2015-12-07 17:38:52 -0500 | [diff] [blame] | 290 | select SOCK_CGROUP_DATA |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 291 | help |
Daniel Borkmann | fe1217c | 2013-12-29 18:27:10 +0100 | [diff] [blame] | 292 | Cgroup subsystem for use as general purpose socket classid marker that is |
| 293 | being used in cls_cgroup and for netfilter matching. |
| 294 | |
Cong Wang | e0d1095 | 2013-08-01 11:10:25 +0800 | [diff] [blame] | 295 | config NET_RX_BUSY_POLL |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 296 | bool |
Sebastian Andrzej Siewior | 20ab39d | 2021-10-01 16:58:41 +0200 | [diff] [blame] | 297 | default y if !PREEMPT_RT |
Eliezer Tamir | 0602129 | 2013-06-10 11:39:50 +0300 | [diff] [blame] | 298 | |
Tom Herbert | 114cf58 | 2011-11-28 16:33:09 +0000 | [diff] [blame] | 299 | config BQL |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 300 | bool |
Tom Herbert | 114cf58 | 2011-11-28 16:33:09 +0000 | [diff] [blame] | 301 | depends on SYSFS |
| 302 | select DQL |
| 303 | default y |
| 304 | |
John Fastabend | 0884824 | 2017-08-28 07:12:21 -0700 | [diff] [blame] | 305 | config BPF_STREAM_PARSER |
| 306 | bool "enable BPF STREAM_PARSER" |
Daniel Borkmann | 604326b | 2018-10-13 02:45:58 +0200 | [diff] [blame] | 307 | depends on INET |
John Fastabend | 0884824 | 2017-08-28 07:12:21 -0700 | [diff] [blame] | 308 | depends on BPF_SYSCALL |
Daniel Borkmann | 604326b | 2018-10-13 02:45:58 +0200 | [diff] [blame] | 309 | depends on CGROUP_BPF |
John Fastabend | 0884824 | 2017-08-28 07:12:21 -0700 | [diff] [blame] | 310 | select STREAM_PARSER |
Daniel Borkmann | 604326b | 2018-10-13 02:45:58 +0200 | [diff] [blame] | 311 | select NET_SOCK_MSG |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 312 | help |
Cong Wang | 8875960 | 2021-02-23 10:49:26 -0800 | [diff] [blame] | 313 | Enabling this allows a TCP stream parser to be used with |
Krzysztof Kozlowski | 43da141 | 2019-11-21 21:28:35 +0800 | [diff] [blame] | 314 | BPF_MAP_TYPE_SOCKMAP. |
John Fastabend | 0884824 | 2017-08-28 07:12:21 -0700 | [diff] [blame] | 315 | |
Willem de Bruijn | 99bbc70 | 2013-05-20 04:02:32 +0000 | [diff] [blame] | 316 | config NET_FLOW_LIMIT |
Christoph Jaeger | 6341e62 | 2014-12-20 15:41:11 -0500 | [diff] [blame] | 317 | bool |
Willem de Bruijn | 99bbc70 | 2013-05-20 04:02:32 +0000 | [diff] [blame] | 318 | depends on RPS |
| 319 | default y |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 320 | help |
Willem de Bruijn | 99bbc70 | 2013-05-20 04:02:32 +0000 | [diff] [blame] | 321 | The network stack has to drop packets when a receive processing CPU's |
| 322 | backlog reaches netdev_max_backlog. If a few out of many active flows |
| 323 | generate the vast majority of load, drop their traffic earlier to |
| 324 | maintain capacity for the other flows. This feature provides servers |
| 325 | with many clients some protection against DoS by a single (spoofed) |
| 326 | flow that greatly exceeds average workload. |
| 327 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 328 | menu "Network testing" |
| 329 | |
| 330 | config NET_PKTGEN |
| 331 | tristate "Packet Generator (USE WITH CAUTION)" |
Thomas Graf | ffd756b | 2013-07-29 13:44:15 +0200 | [diff] [blame] | 332 | depends on INET && PROC_FS |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 333 | help |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 334 | This module will inject preconfigured packets, at a configurable |
| 335 | rate, out of a given interface. It is used for network interface |
| 336 | stress testing and performance analysis. If you don't understand |
| 337 | what was just said, you don't need it: say N. |
| 338 | |
| 339 | Documentation on how to use the packet generator can be found |
Mauro Carvalho Chehab | c1e4535f | 2020-04-30 18:04:13 +0200 | [diff] [blame] | 340 | at <file:Documentation/networking/pktgen.rst>. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 341 | |
| 342 | To compile this code as a module, choose M here: the |
| 343 | module will be called pktgen. |
| 344 | |
Neil Horman | 273ae44 | 2009-03-11 09:53:16 +0000 | [diff] [blame] | 345 | config NET_DROP_MONITOR |
Neil Horman | cad456d | 2012-05-17 10:04:00 +0000 | [diff] [blame] | 346 | tristate "Network packet drop alerting service" |
Kees Cook | 911f863 | 2012-10-02 11:19:40 -0700 | [diff] [blame] | 347 | depends on INET && TRACEPOINTS |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 348 | help |
Krzysztof Kozlowski | 43da141 | 2019-11-21 21:28:35 +0800 | [diff] [blame] | 349 | This feature provides an alerting service to userspace in the |
| 350 | event that packets are discarded in the network stack. Alerts |
| 351 | are broadcast via netlink socket to any listening user space |
| 352 | process. If you don't need network drop alerts, or if you are ok |
| 353 | just checking the various proc files and other utilities for |
| 354 | drop statistics, say N here. |
Neil Horman | 273ae44 | 2009-03-11 09:53:16 +0000 | [diff] [blame] | 355 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 356 | endmenu |
| 357 | |
| 358 | endmenu |
| 359 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 360 | source "net/ax25/Kconfig" |
Oliver Hartkopp | 0d66548 | 2007-11-16 15:52:17 -0800 | [diff] [blame] | 361 | source "net/can/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 362 | source "net/bluetooth/Kconfig" |
David Howells | 17926a7 | 2007-04-26 15:48:28 -0700 | [diff] [blame] | 363 | source "net/rxrpc/Kconfig" |
Tom Herbert | ab7ac4e | 2016-03-07 14:11:06 -0800 | [diff] [blame] | 364 | source "net/kcm/Kconfig" |
Tom Herbert | 43a0c67 | 2016-08-15 14:51:01 -0700 | [diff] [blame] | 365 | source "net/strparser/Kconfig" |
Jeremy Kerr | bc49d81 | 2021-07-29 10:20:39 +0800 | [diff] [blame] | 366 | source "net/mctp/Kconfig" |
Adrian Bunk | d86b5e0 | 2006-01-21 00:46:55 +0100 | [diff] [blame] | 367 | |
Thomas Graf | 14c0b97 | 2006-08-04 03:38:38 -0700 | [diff] [blame] | 368 | config FIB_RULES |
| 369 | bool |
| 370 | |
Robert P. J. Day | 5442060 | 2008-07-24 12:20:09 -0400 | [diff] [blame] | 371 | menuconfig WIRELESS |
| 372 | bool "Wireless" |
Martin Schwidefsky | f54bfc0 | 2007-05-10 15:46:01 +0200 | [diff] [blame] | 373 | depends on !S390 |
Robert P. J. Day | 5442060 | 2008-07-24 12:20:09 -0400 | [diff] [blame] | 374 | default y |
| 375 | |
| 376 | if WIRELESS |
Johannes Berg | 2a5e1c0 | 2007-04-23 12:19:12 -0700 | [diff] [blame] | 377 | |
| 378 | source "net/wireless/Kconfig" |
Jiri Benc | f0706e8 | 2007-05-05 11:45:53 -0700 | [diff] [blame] | 379 | source "net/mac80211/Kconfig" |
Johannes Berg | 2a5e1c0 | 2007-04-23 12:19:12 -0700 | [diff] [blame] | 380 | |
Robert P. J. Day | 5442060 | 2008-07-24 12:20:09 -0400 | [diff] [blame] | 381 | endif # WIRELESS |
Johannes Berg | 2a5e1c0 | 2007-04-23 12:19:12 -0700 | [diff] [blame] | 382 | |
Ivo van Doorn | cf4328c | 2007-05-07 00:34:20 -0700 | [diff] [blame] | 383 | source "net/rfkill/Kconfig" |
Latchesar Ionkov | bd238fb | 2007-07-10 17:57:28 -0500 | [diff] [blame] | 384 | source "net/9p/Kconfig" |
Sjur Braendeland | 3908c69 | 2010-03-30 13:56:28 +0000 | [diff] [blame] | 385 | source "net/caif/Kconfig" |
Yehuda Sadeh | 3d14c5d | 2010-04-06 15:14:15 -0700 | [diff] [blame] | 386 | source "net/ceph/Kconfig" |
Lauro Ramos Venancio | 3e256b8 | 2011-07-01 19:31:33 -0300 | [diff] [blame] | 387 | source "net/nfc/Kconfig" |
Yotam Gigi | 6ae0a62 | 2017-01-23 11:07:08 +0100 | [diff] [blame] | 388 | source "net/psample/Kconfig" |
Yotam Gigi | 1ce8460 | 2017-02-01 15:30:02 +0200 | [diff] [blame] | 389 | source "net/ife/Kconfig" |
Sjur Braendeland | 3908c69 | 2010-03-30 13:56:28 +0000 | [diff] [blame] | 390 | |
Roopa Prabhu | 499a242 | 2015-07-21 10:43:46 +0200 | [diff] [blame] | 391 | config LWTUNNEL |
| 392 | bool "Network light weight tunnels" |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 393 | help |
Roopa Prabhu | 499a242 | 2015-07-21 10:43:46 +0200 | [diff] [blame] | 394 | This feature provides an infrastructure to support light weight |
| 395 | tunnels like mpls. There is no netdevice associated with a light |
| 396 | weight tunnel endpoint. Tunnel encapsulation parameters are stored |
| 397 | with light weight tunnel state associated with fib routes. |
Ivo van Doorn | cf4328c | 2007-05-07 00:34:20 -0700 | [diff] [blame] | 398 | |
Thomas Graf | 3a0af8f | 2016-11-30 17:10:10 +0100 | [diff] [blame] | 399 | config LWTUNNEL_BPF |
| 400 | bool "Execute BPF program as route nexthop action" |
Peter Oskolkov | b251f9f | 2019-02-15 09:51:35 -0800 | [diff] [blame] | 401 | depends on LWTUNNEL && INET |
Thomas Graf | 3a0af8f | 2016-11-30 17:10:10 +0100 | [diff] [blame] | 402 | default y if LWTUNNEL=y |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 403 | help |
Thomas Graf | 3a0af8f | 2016-11-30 17:10:10 +0100 | [diff] [blame] | 404 | Allows to run BPF programs as a nexthop action following a route |
| 405 | lookup for incoming and outgoing packets. |
| 406 | |
Paolo Abeni | 911362c | 2016-02-12 15:43:53 +0100 | [diff] [blame] | 407 | config DST_CACHE |
Dave Jones | 9b24684 | 2016-03-21 18:37:22 -0400 | [diff] [blame] | 408 | bool |
Paolo Abeni | 911362c | 2016-02-12 15:43:53 +0100 | [diff] [blame] | 409 | default n |
| 410 | |
Eric Dumazet | 97e219b | 2017-02-07 15:37:15 -0800 | [diff] [blame] | 411 | config GRO_CELLS |
| 412 | bool |
| 413 | default n |
| 414 | |
Ilya Lesokhin | ebf4e80 | 2018-04-30 10:16:12 +0300 | [diff] [blame] | 415 | config SOCK_VALIDATE_XMIT |
| 416 | bool |
| 417 | |
Oleksij Rempel | 3e1e58d | 2021-04-19 15:01:03 +0200 | [diff] [blame] | 418 | config NET_SELFTESTS |
| 419 | def_tristate PHYLIB |
Oleksij Rempel | 4a52dd8 | 2021-04-28 15:09:46 +0200 | [diff] [blame] | 420 | depends on PHYLIB && INET |
Oleksij Rempel | 3e1e58d | 2021-04-19 15:01:03 +0200 | [diff] [blame] | 421 | |
Daniel Borkmann | 604326b | 2018-10-13 02:45:58 +0200 | [diff] [blame] | 422 | config NET_SOCK_MSG |
| 423 | bool |
| 424 | default n |
| 425 | help |
| 426 | The NET_SOCK_MSG provides a framework for plain sockets (e.g. TCP) or |
| 427 | ULPs (upper layer modules, e.g. TLS) to process L7 application data |
| 428 | with the help of BPF programs. |
| 429 | |
Jiri Pirko | bfcd3a4 | 2016-02-26 17:32:23 +0100 | [diff] [blame] | 430 | config NET_DEVLINK |
Jiri Pirko | f6b19b3 | 2019-03-24 11:14:38 +0100 | [diff] [blame] | 431 | bool |
| 432 | default n |
Jiri Pirko | bfcd3a4 | 2016-02-26 17:32:23 +0100 | [diff] [blame] | 433 | |
Jesper Dangaard Brouer | ff7d6b2 | 2018-04-17 16:46:17 +0200 | [diff] [blame] | 434 | config PAGE_POOL |
Krzysztof Kozlowski | 43da141 | 2019-11-21 21:28:35 +0800 | [diff] [blame] | 435 | bool |
Jesper Dangaard Brouer | ff7d6b2 | 2018-04-17 16:46:17 +0200 | [diff] [blame] | 436 | |
Sridhar Samudrala | 30c8bd5 | 2018-05-24 09:55:13 -0700 | [diff] [blame] | 437 | config FAILOVER |
| 438 | tristate "Generic failover module" |
| 439 | help |
| 440 | The failover module provides a generic interface for paravirtual |
| 441 | drivers to register a netdev and a set of ops with a failover |
| 442 | instance. The ops are used as event handlers that get called to |
| 443 | handle netdev register/unregister/link change/name change events |
| 444 | on slave pci ethernet devices with the same mac address as the |
| 445 | failover netdev. This enables paravirtual drivers to use a |
| 446 | VF as an accelerated low latency datapath. It also allows live |
| 447 | migration of VMs with direct attached VFs by failing over to the |
| 448 | paravirtual datapath when the VF is unplugged. |
| 449 | |
Michal Kubecek | 2b4a899 | 2019-12-27 15:55:18 +0100 | [diff] [blame] | 450 | config ETHTOOL_NETLINK |
| 451 | bool "Netlink interface for ethtool" |
| 452 | default y |
| 453 | help |
| 454 | An alternative userspace interface for ethtool based on generic |
| 455 | netlink. It provides better extensibility and some new features, |
| 456 | e.g. notification messages. |
| 457 | |
Jakub Kicinski | 2c193f2 | 2021-11-19 06:21:55 -0800 | [diff] [blame] | 458 | config NETDEV_ADDR_LIST_TEST |
| 459 | tristate "Unit tests for device address list" |
| 460 | default KUNIT_ALL_TESTS |
| 461 | depends on KUNIT |
| 462 | |
Sam Ravnborg | 6a2e9b7 | 2005-07-11 21:13:56 -0700 | [diff] [blame] | 463 | endif # if NET |