xref: /linux/net/Kconfig (revision 3fd6c59042dbba50391e30862beac979491145fe)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Network configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
6031cf19eSRobert P. J. Daymenuconfig NET
71da177e4SLinus Torvalds	bool "Networking support"
8e9cc8bddSGeert Uytterhoeven	select NLATTR
94cd5773aSAndy Shevchenko	select GENERIC_NET_UTILS
10f89b7755SAlexei Starovoitov	select BPF
11a7f7f624SMasahiro Yamada	help
121da177e4SLinus Torvalds	  Unless you really know what you are doing, you should say Y here.
131da177e4SLinus Torvalds	  The reason is that some programs need kernel networking support even
141da177e4SLinus Torvalds	  when running on a stand-alone machine that isn't connected to any
15d5950b43SSam Ravnborg	  other computer.
16d5950b43SSam Ravnborg
17d5950b43SSam Ravnborg	  If you are upgrading from an older kernel, you
181da177e4SLinus Torvalds	  should consider updating your networking tools too because changes
191da177e4SLinus Torvalds	  in the kernel and the tools often go hand in hand. The tools are
201da177e4SLinus Torvalds	  contained in the package net-tools, the location and version number
211da177e4SLinus Torvalds	  of which are given in <file:Documentation/Changes>.
221da177e4SLinus Torvalds
231da177e4SLinus Torvalds	  For a general introduction to Linux networking, it is highly
241da177e4SLinus Torvalds	  recommended to read the NET-HOWTO, available from
251da177e4SLinus Torvalds	  <http://www.tldp.org/docs.html#howto>.
261da177e4SLinus Torvalds
276a2e9b73SSam Ravnborgif NET
286a2e9b73SSam Ravnborg
291dacc76dSJohannes Bergconfig WANT_COMPAT_NETLINK_MESSAGES
301dacc76dSJohannes Berg	bool
311dacc76dSJohannes Berg	help
321dacc76dSJohannes Berg	  This option can be selected by other options that need compat
331dacc76dSJohannes Berg	  netlink messages.
341dacc76dSJohannes Berg
351dacc76dSJohannes Bergconfig COMPAT_NETLINK_MESSAGES
361dacc76dSJohannes Berg	def_bool y
371dacc76dSJohannes Berg	depends on COMPAT
3840b53d8aSDavid S. Miller	depends on WEXT_CORE || WANT_COMPAT_NETLINK_MESSAGES
391dacc76dSJohannes Berg	help
401dacc76dSJohannes Berg	  This option makes it possible to send different netlink messages
411dacc76dSJohannes Berg	  to tasks depending on whether the task is a compat task or not. To
421dacc76dSJohannes Berg	  achieve this, you need to set skb_shinfo(skb)->frag_list to the
431dacc76dSJohannes Berg	  compat skb before sending the skb, the netlink code will sort out
441dacc76dSJohannes Berg	  which message to actually pass to the task.
451dacc76dSJohannes Berg
461dacc76dSJohannes Berg	  Newly written code should NEVER need this option but do
471dacc76dSJohannes Berg	  compat-independent messages instead!
481dacc76dSJohannes Berg
491cf51900SPablo Neiraconfig NET_INGRESS
501cf51900SPablo Neira	bool
511cf51900SPablo Neira
521f211a1bSDaniel Borkmannconfig NET_EGRESS
531f211a1bSDaniel Borkmann	bool
541f211a1bSDaniel Borkmann
55e420bed0SDaniel Borkmannconfig NET_XGRESS
56e420bed0SDaniel Borkmann	select NET_INGRESS
57e420bed0SDaniel Borkmann	select NET_EGRESS
58e420bed0SDaniel Borkmann	bool
59e420bed0SDaniel Borkmann
602c64605bSPablo Neira Ayusoconfig NET_REDIRECT
612c64605bSPablo Neira Ayuso	bool
622c64605bSPablo Neira Ayuso
639f06f87fSJakub Kicinskiconfig SKB_DECRYPTED
649f06f87fSJakub Kicinski	bool
659f06f87fSJakub Kicinski
66df5042f4SFlorian Westphalconfig SKB_EXTENSIONS
67df5042f4SFlorian Westphal	bool
68df5042f4SFlorian Westphal
69170aafe3SMina Almasryconfig NET_DEVMEM
70170aafe3SMina Almasry	def_bool y
71170aafe3SMina Almasry	depends on DMA_SHARED_BUFFER
72170aafe3SMina Almasry	depends on GENERIC_ALLOCATOR
73*26d74602SMina Almasry	depends on PAGE_POOL
74170aafe3SMina Almasry
751da177e4SLinus Torvaldsconfig NET_SHAPER
761da177e4SLinus Torvalds	bool
776a2e9b73SSam Ravnborg
786a2e9b73SSam Ravnborgmenu "Networking options"
793c4d7559SDave Watson
806a2e9b73SSam Ravnborgsource "net/packet/Kconfig"
812356f4cbSMartin Schwidefskysource "net/unix/Kconfig"
82ac713874SUrsula Braunsource "net/tls/Kconfig"
8368e8b849SBjörn Töpelsource "net/xfrm/Kconfig"
841da177e4SLinus Torvaldssource "net/iucv/Kconfig"
853b3009eaSChuck Leversource "net/smc/Kconfig"
863b3009eaSChuck Leversource "net/xdp/Kconfig"
873b3009eaSChuck Lever
883b3009eaSChuck Leverconfig NET_HANDSHAKE
893b3009eaSChuck Lever	bool
9088232ec1SChuck Lever	depends on SUNRPC || NVME_TARGET_TCP || NVME_TCP
9188232ec1SChuck Lever	default y
9288232ec1SChuck Lever
9388232ec1SChuck Leverconfig NET_HANDSHAKE_KUNIT_TEST
9488232ec1SChuck Lever	tristate "KUnit tests for the handshake upcall mechanism" if !KUNIT_ALL_TESTS
9588232ec1SChuck Lever	default KUNIT_ALL_TESTS
9688232ec1SChuck Lever	depends on KUNIT
9788232ec1SChuck Lever	help
9888232ec1SChuck Lever	  This builds the KUnit tests for the handshake upcall mechanism.
9988232ec1SChuck Lever
10088232ec1SChuck Lever	  KUnit tests run during boot and output the results to the debug
10188232ec1SChuck Lever	  log in TAP format (https://testanything.org/). Only useful for
10288232ec1SChuck Lever	  kernel devs running KUnit test harness and are not for inclusion
10388232ec1SChuck Lever	  into a production build.
10488232ec1SChuck Lever
1051da177e4SLinus Torvalds	  For more information on KUnit and unit tests in general, refer
1061da177e4SLinus Torvalds	  to the KUnit documentation in Documentation/dev-tools/kunit/.
107a7f7f624SMasahiro Yamada
1081da177e4SLinus Torvaldsconfig INET
1091da177e4SLinus Torvalds	bool "TCP/IP networking"
110cf80efc2SYOSHIFUJI Hideaki	help
1111da177e4SLinus Torvalds	  These are the protocols used on the Internet and on most local
1121da177e4SLinus Torvalds	  Ethernets. It is highly recommended to say Y here (this will enlarge
1131da177e4SLinus Torvalds	  your kernel by about 400 KB), since some programs (e.g. the X window
1141da177e4SLinus Torvalds	  system) use TCP/IP even if your machine is not connected to any
1151da177e4SLinus Torvalds	  other computer. You will get the so-called loopback device which
1161da177e4SLinus Torvalds	  allows you to ping yourself (great fun, that!).
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvalds	  For an excellent introduction to Linux networking, please read the
1191da177e4SLinus Torvalds	  Linux Networking HOWTO, available from
1201da177e4SLinus Torvalds	  <http://www.tldp.org/docs.html#howto>.
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvalds	  If you say Y here and also to "/proc file system support" and
1231cec2cacSMauro Carvalho Chehab	  "Sysctl support" below, you can change various aspects of the
1241da177e4SLinus Torvalds	  behavior of the TCP/IP code by writing to the (virtual) files in
1251da177e4SLinus Torvalds	  /proc/sys/net/ipv4/*; the options are explained in the file
1261da177e4SLinus Torvalds	  <file:Documentation/networking/ip-sysctl.rst>.
1276a2e9b73SSam Ravnborg
1281da177e4SLinus Torvalds	  Short answer: say Y.
1291da177e4SLinus Torvalds
13038c94377SPaul Mooreif INET
131f870fa0bSMat Martineausource "net/ipv4/Kconfig"
1321da177e4SLinus Torvaldssource "net/ipv6/Kconfig"
1336a2e9b73SSam Ravnborgsource "net/netlabel/Kconfig"
1346a2e9b73SSam Ravnborgsource "net/mptcp/Kconfig"
135984bc16cSJames Morris
136984bc16cSJames Morrisendif # if INET
137984bc16cSJames Morris
138984bc16cSJames Morrisconfig NETWORK_SECMARK
139984bc16cSJames Morris	bool "Security Marking"
140984bc16cSJames Morris	help
141984bc16cSJames Morris	  This enables security marking of network packets, similar
142408eccceSDaniel Borkmann	  to nfmark, but designated for security purposes.
143408eccceSDaniel Borkmann	  If you are unsure how to answer this question, answer N.
144408eccceSDaniel Borkmann
145c1f19b51SRichard Cochranconfig NET_PTP_CLASSIFY
146c1f19b51SRichard Cochran	def_bool n
147408eccceSDaniel Borkmann
148c1f19b51SRichard Cochranconfig NETWORK_PHY_TIMESTAMPING
149767ff483SRichard Cochran	bool "Timestamping in PHY devices"
150767ff483SRichard Cochran	select NET_PTP_CLASSIFY
151767ff483SRichard Cochran	help
152767ff483SRichard Cochran	  This allows timestamping of network packets by PHYs (or
153c1f19b51SRichard Cochran	  other MII bus snooping devices) with hardware timestamping
154c1f19b51SRichard Cochran	  capabilities. This option adds some overhead in the transmit
155c1f19b51SRichard Cochran	  and receive paths.
1561da177e4SLinus Torvalds
157ef91fd52SPablo Neira Ayuso	  If you are unsure how to answer this question, answer N.
158a7f7f624SMasahiro Yamada
1591da177e4SLinus Torvaldsmenuconfig NETFILTER
1601da177e4SLinus Torvalds	bool "Network packet filtering framework (Netfilter)"
1611da177e4SLinus Torvalds	help
1621da177e4SLinus Torvalds	  Netfilter is a framework for filtering and mangling network packets
1631da177e4SLinus Torvalds	  that pass through your Linux box.
1641da177e4SLinus Torvalds
1651da177e4SLinus Torvalds	  The most common use of packet filtering is to run your Linux box as
1661da177e4SLinus Torvalds	  a firewall protecting a local network from the Internet. The type of
1671da177e4SLinus Torvalds	  firewall provided by this kernel support is called a "packet
1681da177e4SLinus Torvalds	  filter", which means that it can reject individual network packets
1691da177e4SLinus Torvalds	  based on type, source, destination etc. The other kind of firewall,
1701da177e4SLinus Torvalds	  a "proxy-based" one, is more secure but more intrusive and more
1711da177e4SLinus Torvalds	  bothersome to set up; it inspects the network traffic much more
1721da177e4SLinus Torvalds	  closely, modifies it and has knowledge about the higher level
1731da177e4SLinus Torvalds	  protocols, which a packet filter lacks. Moreover, proxy-based
1741da177e4SLinus Torvalds	  firewalls often require changes to the programs running on the local
1751da177e4SLinus Torvalds	  clients. Proxy-based firewalls don't need support by the kernel, but
1761da177e4SLinus Torvalds	  they are often combined with a packet filter, which only works if
1771da177e4SLinus Torvalds	  you say Y here.
1781da177e4SLinus Torvalds
1791da177e4SLinus Torvalds	  You should also say Y here if you intend to use your Linux box as
1801da177e4SLinus Torvalds	  the gateway to the Internet for a local network of machines without
1811da177e4SLinus Torvalds	  globally valid IP addresses. This is called "masquerading": if one
1821da177e4SLinus Torvalds	  of the computers on your local network wants to send something to
1831da177e4SLinus Torvalds	  the outside, your box can "masquerade" as that computer, i.e. it
1841da177e4SLinus Torvalds	  forwards the traffic to the intended outside destination, but
1851da177e4SLinus Torvalds	  modifies the packets to make it look like they came from the
1861da177e4SLinus Torvalds	  firewall box itself. It works both ways: if the outside host
1871da177e4SLinus Torvalds	  replies, the Linux box will silently forward the traffic to the
1881da177e4SLinus Torvalds	  correct local computer. This way, the computers on your local net
1891da177e4SLinus Torvalds	  are completely invisible to the outside world, even though they can
1901da177e4SLinus Torvalds	  reach the outside and can receive replies. It is even possible to
1911da177e4SLinus Torvalds	  run globally visible servers from within a masqueraded local network
1921da177e4SLinus Torvalds	  using a mechanism called portforwarding. Masquerading is also often
1931da177e4SLinus Torvalds	  called NAT (Network Address Translation).
1941da177e4SLinus Torvalds
1951da177e4SLinus Torvalds	  Another use of Netfilter is in transparent proxying: if a machine on
1961da177e4SLinus Torvalds	  the local network tries to connect to an outside host, your Linux
1971da177e4SLinus Torvalds	  box can transparently forward the traffic to a local server,
1981da177e4SLinus Torvalds	  typically a caching proxy server.
1991da177e4SLinus Torvalds
2001da177e4SLinus Torvalds	  Yet another use of Netfilter is building a bridging firewall. Using
2011da177e4SLinus Torvalds	  a bridge with Network packet filtering enabled makes iptables "see"
2021da177e4SLinus Torvalds	  the bridged traffic. For filtering on the lower network and Ethernet
2031da177e4SLinus Torvalds	  protocols over the bridge, use ebtables (under bridge netfilter
2041da177e4SLinus Torvalds	  configuration).
2051da177e4SLinus Torvalds
2061da177e4SLinus Torvalds	  Various modules exist for netfilter which replace the previous
2071da177e4SLinus Torvalds	  masquerading (ipmasqadm), packet filtering (ipchains), transparent
2081da177e4SLinus Torvalds	  proxying, and portforwarding mechanisms. Please see
2091da177e4SLinus Torvalds	  <file:Documentation/Changes> under "iptables" for the location of
2101da177e4SLinus Torvalds	  these packages.
21133b8e776SPatrick McHardy
21233b8e776SPatrick McHardyif NETFILTER
21333b8e776SPatrick McHardy
21433b8e776SPatrick McHardyconfig NETFILTER_ADVANCED
21533b8e776SPatrick McHardy	bool "Advanced netfilter configuration"
21633b8e776SPatrick McHardy	depends on NETFILTER
217692105b8SMatt LaPlante	default y
21833b8e776SPatrick McHardy	help
21933b8e776SPatrick McHardy	  If you say Y here you can select between all the netfilter modules.
22033b8e776SPatrick McHardy	  If you say N the more unusual ones will not be shown and the
22133b8e776SPatrick McHardy	  basic ones needed by most people will default to 'M'.
2221da177e4SLinus Torvalds
22334666d46SPablo Neira Ayuso	  If unsure, say Y.
22457f5877cSFlorian Westphal
22534666d46SPablo Neira Ayusoconfig BRIDGE_NETFILTER
22633b8e776SPatrick McHardy	tristate "Bridged IP/ARP packets filtering"
2272a95183aSFlorian Westphal	depends on BRIDGE
228de8bda1dSFlorian Westphal	depends on NETFILTER && INET
229a7f7f624SMasahiro Yamada	depends on NETFILTER_ADVANCED
2301da177e4SLinus Torvalds	select NETFILTER_FAMILY_BRIDGE
2311da177e4SLinus Torvalds	select SKB_EXTENSIONS
2321da177e4SLinus Torvalds	help
2331da177e4SLinus Torvalds	  Enabling this option will let arptables resp. iptables see bridged
2341da177e4SLinus Torvalds	  ARP resp. IP traffic. If you want a bridging firewall, you probably
2351da177e4SLinus Torvalds	  want this option enabled.
2361da177e4SLinus Torvalds	  Enabling or disabling this option doesn't enable or disable
2371da177e4SLinus Torvalds	  ebtables.
2389eb0eec7SHarald Welte
2391da177e4SLinus Torvalds	  If unsure, say N.
2401da177e4SLinus Torvalds
2411da177e4SLinus Torvaldssource "net/netfilter/Kconfig"
2421da177e4SLinus Torvaldssource "net/ipv4/netfilter/Kconfig"
2431da177e4SLinus Torvaldssource "net/ipv6/netfilter/Kconfig"
2441da177e4SLinus Torvaldssource "net/bridge/netfilter/Kconfig"
2457c657876SArnaldo Carvalho de Melo
2461da177e4SLinus Torvaldsendif
247fe17f84fSAndy Grover
2481e63e681SPer Lidensource "net/dccp/Kconfig"
2496a2e9b73SSam Ravnborgsource "net/sctp/Kconfig"
250fd558d18SJames Chapmansource "net/rds/Kconfig"
251a19800d7SPatrick McHardysource "net/tipc/Kconfig"
2526a2e9b73SSam Ravnborgsource "net/atm/Kconfig"
25391da11f8SLennert Buytenheksource "net/l2tp/Kconfig"
2546a2e9b73SSam Ravnborgsource "net/802/Kconfig"
2551da177e4SLinus Torvaldssource "net/bridge/Kconfig"
2561dab4713SArnd Bergmannsource "net/dsa/Kconfig"
2576a2e9b73SSam Ravnborgsource "net/8021q/Kconfig"
2586a2e9b73SSam Ravnborgsource "net/llc/Kconfig"
2595075138dSremi.denis-courmont@nokiasource "net/appletalk/Kconfig"
2602c6bed7cSAlexander Aringsource "net/x25/Kconfig"
2619ec76716SSergey Lapinsource "net/lapb/Kconfig"
2621010f540Salex.bluesman.smirnov@gmail.comsource "net/phonet/Kconfig"
2631da177e4SLinus Torvaldssource "net/6lowpan/Kconfig"
2642f90b865SAlexander Duycksource "net/ieee802154/Kconfig"
2651a4240f4SWang Leisource "net/mac802154/Kconfig"
266c6c8fea2SSven Eckelmannsource "net/sched/Kconfig"
267ccb1352eSJesse Grosssource "net/dcb/Kconfig"
268d021c344SAndy Kingsource "net/dns_resolver/Kconfig"
269eaaa3139SAndrey Vaginsource "net/batman-adv/Kconfig"
2700d89d203SSimon Hormansource "net/openvswitch/Kconfig"
271c411ed85SJiri Bencsource "net/vmw_vsock/Kconfig"
272f421436aSArvid Brodinsource "net/netlink/Kconfig"
273007f790cSJiri Pirkosource "net/mpls/Kconfig"
2741b69c6d0SDavid Ahernsource "net/nsh/Kconfig"
275bdabad3eSCourtney Cavinsource "net/hsr/Kconfig"
2762d283bddSGavin Shansource "net/switchdev/Kconfig"
2771da177e4SLinus Torvaldssource "net/l3mdev/Kconfig"
278919067ccSEric Dumazetsource "net/qrtr/Kconfig"
279919067ccSEric Dumazetsource "net/ncsi/Kconfig"
280919067ccSEric Dumazet
281919067ccSEric Dumazetconfig PCPU_DEV_REFCNT
282919067ccSEric Dumazet	bool "Use percpu variables to maintain network device refcount"
283919067ccSEric Dumazet	depends on SMP
284919067ccSEric Dumazet	default y
285919067ccSEric Dumazet	help
2863948b059SEric Dumazet	  network device refcount are using per cpu variables if this option is set.
2873948b059SEric Dumazet	  This can be forced to N to detect underflows (with a performance drop).
2883948b059SEric Dumazet
2893948b059SEric Dumazetconfig MAX_SKB_FRAGS
2903948b059SEric Dumazet	int "Maximum number of fragments per skb_shared_info"
2913948b059SEric Dumazet	range 17 45
2923948b059SEric Dumazet	default 17
2933948b059SEric Dumazet	help
2943948b059SEric Dumazet	  Having more fragments per skb_shared_info can help GRO efficiency.
2953948b059SEric Dumazet	  This helps BIG TCP workloads, but might expose bugs in some
2963948b059SEric Dumazet	  legacy drivers.
2973948b059SEric Dumazet	  This also increases memory overhead of small packets,
298df334545SEric Dumazet	  and in drivers using build_skb().
2999b6a30feSJason Xing	  If unsure, say 17.
300044c8d4bSYuanhan Liu
301df334545SEric Dumazetconfig RPS
3029b6a30feSJason Xing	bool "Receive packet steering"
3039b6a30feSJason Xing	depends on SMP && SYSFS
3049b6a30feSJason Xing	default y
305df334545SEric Dumazet	help
306c445477dSBen Hutchings	  Software receive side packet steering (RPS) distributes the
3079b6a30feSJason Xing	  load of received packet processing across multiple CPUs.
3080244ad00SMartin Schwidefsky
309c445477dSBen Hutchingsconfig RFS_ACCEL
310c445477dSBen Hutchings	bool "Hardware acceleration of RFS"
3119b6a30feSJason Xing	depends on RPS
3129b6a30feSJason Xing	select CPU_RMAP
3139b6a30feSJason Xing	default y
314c445477dSBen Hutchings	help
3154e1beeccSTariq Toukan	  Allowing drivers for multiqueue hardware with flow filter tables to
3164e1beeccSTariq Toukan	  accelerate RFS.
3174e1beeccSTariq Toukan
318bf264145STom Herbertconfig SOCK_RX_QUEUE_MAPPING
3196341e62bSChristoph Jaeger	bool
320044c8d4bSYuanhan Liu
3214e1beeccSTariq Toukanconfig XPS
322bf264145STom Herbert	bool
323bf264145STom Herbert	depends on SMP
3248cb2d8bfSGregory CLEMENT	select SOCK_RX_QUEUE_MAPPING
3258cb2d8bfSGregory CLEMENT	default y
3268cb2d8bfSGregory CLEMENT
32786f8515fSDaniel Borkmannconfig HWBM
328af636337STejun Heo	bool
3295bc1421eSNeil Horman
3302a56a1feSTejun Heoconfig CGROUP_NET_PRIO
331a7f7f624SMasahiro Yamada	bool "Network priority cgroup"
3325bc1421eSNeil Horman	depends on CGROUPS
33386f8515fSDaniel Borkmann	select SOCK_CGROUP_DATA
3345bc1421eSNeil Horman	help
335fe1217c4SDaniel Borkmann	  Cgroup subsystem for use in assigning processes to network priorities on
3366341e62bSChristoph Jaeger	  a per-interface basis.
337fe1217c4SDaniel Borkmann
3382a56a1feSTejun Heoconfig CGROUP_NET_CLASSID
339a7f7f624SMasahiro Yamada	bool "Network classid cgroup"
340fe1217c4SDaniel Borkmann	depends on CGROUPS
341fe1217c4SDaniel Borkmann	select SOCK_CGROUP_DATA
342fe1217c4SDaniel Borkmann	help
343e0d1095aSCong Wang	  Cgroup subsystem for use as general purpose socket classid marker that is
3446341e62bSChristoph Jaeger	  being used in cls_cgroup and for netfilter matching.
345c857946aSKurt Kanzenbach
34606021292SEliezer Tamirconfig NET_RX_BUSY_POLL
347114cf580STom Herbert	bool
3486341e62bSChristoph Jaeger	default y if !PREEMPT_RT || (PREEMPT_RT && !NETCONSOLE)
349ea7f3cfaSBreno Leitao
350114cf580STom Herbertconfig BQL
351114cf580STom Herbert	bool
352114cf580STom Herbert	prompt "Enable Byte Queue Limits"
353114cf580STom Herbert	depends on SYSFS
35408848246SJohn Fastabend	select DQL
35508848246SJohn Fastabend	default y
356604326b4SDaniel Borkmann
35708848246SJohn Fastabendconfig BPF_STREAM_PARSER
358604326b4SDaniel Borkmann	bool "enable BPF STREAM_PARSER"
35908848246SJohn Fastabend	depends on INET
360604326b4SDaniel Borkmann	depends on BPF_SYSCALL
361a7f7f624SMasahiro Yamada	depends on CGROUP_BPF
36288759609SCong Wang	select STREAM_PARSER
36308848246SJohn Fastabend	select NET_SOCK_MSG
36408848246SJohn Fastabend	help
36599bbc707SWillem de Bruijn	  Enabling this allows a TCP stream parser to be used with
3669b6a30feSJason Xing	  BPF_MAP_TYPE_SOCKMAP.
36799bbc707SWillem de Bruijn
36899bbc707SWillem de Bruijnconfig NET_FLOW_LIMIT
369a7f7f624SMasahiro Yamada	bool "Net flow limit"
37099bbc707SWillem de Bruijn	depends on RPS
37199bbc707SWillem de Bruijn	default y
37299bbc707SWillem de Bruijn	help
37399bbc707SWillem de Bruijn	  The network stack has to drop packets when a receive processing CPU's
37499bbc707SWillem de Bruijn	  backlog reaches netdev_max_backlog. If a few out of many active flows
37599bbc707SWillem de Bruijn	  generate the vast majority of load, drop their traffic earlier to
37699bbc707SWillem de Bruijn	  maintain capacity for the other flows. This feature provides servers
3771da177e4SLinus Torvalds	  with many clients some protection against DoS by a single (spoofed)
3781da177e4SLinus Torvalds	  flow that greatly exceeds average workload.
3791da177e4SLinus Torvalds
3801da177e4SLinus Torvaldsmenu "Network testing"
381ffd756b3SThomas Graf
382a7f7f624SMasahiro Yamadaconfig NET_PKTGEN
3831da177e4SLinus Torvalds	tristate "Packet Generator (USE WITH CAUTION)"
3841da177e4SLinus Torvalds	depends on INET && PROC_FS
3851da177e4SLinus Torvalds	help
3861da177e4SLinus Torvalds	  This module will inject preconfigured packets, at a configurable
3871da177e4SLinus Torvalds	  rate, out of a given interface.  It is used for network interface
3881da177e4SLinus Torvalds	  stress testing and performance analysis.  If you don't understand
389c1e4535fSMauro Carvalho Chehab	  what was just said, you don't need it: say N.
3901da177e4SLinus Torvalds
3911da177e4SLinus Torvalds	  Documentation on how to use the packet generator can be found
3921da177e4SLinus Torvalds	  at <file:Documentation/networking/pktgen.rst>.
3931da177e4SLinus Torvalds
394273ae44bSNeil Horman	  To compile this code as a module, choose M here: the
395cad456d5SNeil Horman	  module will be called pktgen.
396911f8635SKees Cook
397a7f7f624SMasahiro Yamadaconfig NET_DROP_MONITOR
398273ae44bSNeil Horman	tristate "Network packet drop alerting service"
399273ae44bSNeil Horman	depends on INET && TRACEPOINTS
400273ae44bSNeil Horman	help
401273ae44bSNeil Horman	  This feature provides an alerting service to userspace in the
402273ae44bSNeil Horman	  event that packets are discarded in the network stack.  Alerts
403273ae44bSNeil Horman	  are broadcast via netlink socket to any listening user space
404273ae44bSNeil Horman	  process.  If you don't need network drop alerts, or if you are ok
4051da177e4SLinus Torvalds	  just checking the various proc files and other utilities for
4061da177e4SLinus Torvalds	  drop statistics, say N here.
4071da177e4SLinus Torvalds
4081da177e4SLinus Torvaldsendmenu
4091da177e4SLinus Torvalds
4100d66548aSOliver Hartkoppendmenu
4111da177e4SLinus Torvalds
41217926a79SDavid Howellssource "net/ax25/Kconfig"
413ab7ac4ebSTom Herbertsource "net/can/Kconfig"
41443a0c675STom Herbertsource "net/bluetooth/Kconfig"
415bc49d816SJeremy Kerrsource "net/rxrpc/Kconfig"
416d86b5e0eSAdrian Bunksource "net/kcm/Kconfig"
41714c0b97dSThomas Grafsource "net/strparser/Kconfig"
41814c0b97dSThomas Grafsource "net/mctp/Kconfig"
41914c0b97dSThomas Graf
4205442060cSRobert P. J. Dayconfig FIB_RULES
4215442060cSRobert P. J. Day	bool
422f54bfc0eSMartin Schwidefsky
4235442060cSRobert P. J. Daymenuconfig WIRELESS
4245442060cSRobert P. J. Day	bool "Wireless"
4255442060cSRobert P. J. Day	depends on !S390
4262a5e1c0eSJohannes Berg	default y
4272a5e1c0eSJohannes Berg
428f0706e82SJiri Bencif WIRELESS
4292a5e1c0eSJohannes Berg
4305442060cSRobert P. J. Daysource "net/wireless/Kconfig"
4312a5e1c0eSJohannes Bergsource "net/mac80211/Kconfig"
432cf4328cdSIvo van Doorn
433bd238fb4SLatchesar Ionkovendif # WIRELESS
4343908c690SSjur Braendeland
4353d14c5d2SYehuda Sadehsource "net/rfkill/Kconfig"
4363e256b8fSLauro Ramos Venanciosource "net/9p/Kconfig"
4376ae0a628SYotam Gigisource "net/caif/Kconfig"
4381ce84604SYotam Gigisource "net/ceph/Kconfig"
4393908c690SSjur Braendelandsource "net/nfc/Kconfig"
440499a2425SRoopa Prabhusource "net/psample/Kconfig"
441499a2425SRoopa Prabhusource "net/ife/Kconfig"
442a7f7f624SMasahiro Yamada
443499a2425SRoopa Prabhuconfig LWTUNNEL
444499a2425SRoopa Prabhu	bool "Network light weight tunnels"
445499a2425SRoopa Prabhu	help
446499a2425SRoopa Prabhu	  This feature provides an infrastructure to support light weight
447cf4328cdSIvo van Doorn	  tunnels like mpls. There is no netdevice associated with a light
4483a0af8fdSThomas Graf	  weight tunnel endpoint. Tunnel encapsulation parameters are stored
4493a0af8fdSThomas Graf	  with light weight tunnel state associated with fib routes.
450b251f9f6SPeter Oskolkov
4513a0af8fdSThomas Grafconfig LWTUNNEL_BPF
452a7f7f624SMasahiro Yamada	bool "Execute BPF program as route nexthop action"
4533a0af8fdSThomas Graf	depends on LWTUNNEL && INET
4543a0af8fdSThomas Graf	default y if LWTUNNEL=y
4553a0af8fdSThomas Graf	help
456911362c7SPaolo Abeni	  Allows to run BPF programs as a nexthop action following a route
4579b246841SDave Jones	  lookup for incoming and outgoing packets.
458911362c7SPaolo Abeni
459911362c7SPaolo Abeniconfig DST_CACHE
46097e219b7SEric Dumazet	bool
46197e219b7SEric Dumazet	default n
46297e219b7SEric Dumazet
46397e219b7SEric Dumazetconfig GRO_CELLS
464ebf4e808SIlya Lesokhin	bool
465ebf4e808SIlya Lesokhin	default n
466ebf4e808SIlya Lesokhin
467768cf841SOleksij Rempelconfig SOCK_VALIDATE_XMIT
468768cf841SOleksij Rempel	bool
469768cf841SOleksij Rempel
4703e1e58d6SOleksij Rempelconfig NET_IEEE8021Q_HELPERS
4713e1e58d6SOleksij Rempel	bool
4724a52dd8fSOleksij Rempel
4733e1e58d6SOleksij Rempelconfig NET_SELFTESTS
474604326b4SDaniel Borkmann	def_tristate PHYLIB
475604326b4SDaniel Borkmann	depends on PHYLIB && INET
476604326b4SDaniel Borkmann
477604326b4SDaniel Borkmannconfig NET_SOCK_MSG
478604326b4SDaniel Borkmann	bool
479604326b4SDaniel Borkmann	default n
480604326b4SDaniel Borkmann	help
481604326b4SDaniel Borkmann	  The NET_SOCK_MSG provides a framework for plain sockets (e.g. TCP) or
482bfcd3a46SJiri Pirko	  ULPs (upper layer modules, e.g. TLS) to process L7 application data
483f6b19b35SJiri Pirko	  with the help of BPF programs.
484f6b19b35SJiri Pirko
485bfcd3a46SJiri Pirkoconfig NET_DEVLINK
486ff7d6b27SJesper Dangaard Brouer	bool
487ff7d6b27SJesper Dangaard Brouer	default n
488ff7d6b27SJesper Dangaard Brouer
4898610037eSJoe Damatoconfig PAGE_POOL
4908610037eSJoe Damato	bool
4918610037eSJoe Damato
4928610037eSJoe Damatoconfig PAGE_POOL_STATS
4938610037eSJoe Damato	default n
4948610037eSJoe Damato	bool "Page pool stats"
4958610037eSJoe Damato	depends on PAGE_POOL
4968610037eSJoe Damato	help
4978610037eSJoe Damato	  Enable page pool statistics to track page allocation and recycling
4988610037eSJoe Damato	  in page pools. This option incurs additional CPU cost in allocation
4998610037eSJoe Damato	  and recycle paths and additional memory cost to store the statistics.
5008610037eSJoe Damato	  These statistics are only available if this option is enabled and if
5018610037eSJoe Damato	  the driver using the page pool supports exporting this data.
50230c8bd5aSSridhar Samudrala
50330c8bd5aSSridhar Samudrala	  If unsure, say N.
50430c8bd5aSSridhar Samudrala
50530c8bd5aSSridhar Samudralaconfig FAILOVER
50630c8bd5aSSridhar Samudrala	tristate "Generic failover module"
50730c8bd5aSSridhar Samudrala	help
50830c8bd5aSSridhar Samudrala	  The failover module provides a generic interface for paravirtual
50930c8bd5aSSridhar Samudrala	  drivers to register a netdev and a set of ops with a failover
51030c8bd5aSSridhar Samudrala	  instance. The ops are used as event handlers that get called to
51130c8bd5aSSridhar Samudrala	  handle netdev register/unregister/link change/name change events
51230c8bd5aSSridhar Samudrala	  on slave pci ethernet devices with the same mac address as the
51330c8bd5aSSridhar Samudrala	  failover netdev. This enables paravirtual drivers to use a
51430c8bd5aSSridhar Samudrala	  VF as an accelerated low latency datapath. It also allows live
5152b4a8990SMichal Kubecek	  migration of VMs with direct attached VFs by failing over to the
5162b4a8990SMichal Kubecek	  paravirtual datapath when the VF is unplugged.
517f750dfe8SHeng Qi
5182b4a8990SMichal Kubecekconfig ETHTOOL_NETLINK
5192b4a8990SMichal Kubecek	bool "Netlink interface for ethtool"
5202b4a8990SMichal Kubecek	select DIMLIB
5212b4a8990SMichal Kubecek	default y
5222b4a8990SMichal Kubecek	help
5232b4a8990SMichal Kubecek	  An alternative userspace interface for ethtool based on generic
5242c193f2cSJakub Kicinski	  netlink. It provides better extensibility and some new features,
5252c193f2cSJakub Kicinski	  e.g. notification messages.
5262c193f2cSJakub Kicinski
5272c193f2cSJakub Kicinskiconfig NETDEV_ADDR_LIST_TEST
5282c193f2cSJakub Kicinski	tristate "Unit tests for device address list"
529b3098d32SWillem de Bruijn	default KUNIT_ALL_TESTS
530b3098d32SWillem de Bruijn	depends on KUNIT
531b3098d32SWillem de Bruijn
532b3098d32SWillem de Bruijnconfig NET_TEST
533b3098d32SWillem de Bruijn	tristate "KUnit tests for networking" if !KUNIT_ALL_TESTS
534b3098d32SWillem de Bruijn	depends on KUNIT
535b3098d32SWillem de Bruijn	default KUNIT_ALL_TESTS
536b3098d32SWillem de Bruijn	help
537b3098d32SWillem de Bruijn	  KUnit tests covering core networking infra, such as sk_buff.
5386a2e9b73SSam Ravnborg
539	  If unsure, say N.
540
541endif   # if NET
542