xref: /linux/net/sched/Kconfig (revision 8be4d31cb8aaeea27bde4b7ddb26e28a89062ebf)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Traffic control configuration.
41da177e4SLinus Torvalds#
56a2e9b73SSam Ravnborg
685ef3e5cSRandy Dunlapmenuconfig NET_SCHED
76a2e9b73SSam Ravnborg	bool "QoS and/or fair queueing"
83c62f75aSDavid Kimdon	select NET_SCH_FIFO
9a7f7f624SMasahiro Yamada	help
106a2e9b73SSam Ravnborg	  When the kernel has several packets to send out over a network
116a2e9b73SSam Ravnborg	  device, it has to decide which ones to send first, which ones to
1252ab4ac2SThomas Graf	  delay, and which ones to drop. This is the job of the queueing
1352ab4ac2SThomas Graf	  disciplines, several different algorithms for how to do this
146a2e9b73SSam Ravnborg	  "fairly" have been proposed.
156a2e9b73SSam Ravnborg
166a2e9b73SSam Ravnborg	  If you say N here, you will get the standard packet scheduler, which
176a2e9b73SSam Ravnborg	  is a FIFO (first come, first served). If you say Y here, you will be
186a2e9b73SSam Ravnborg	  able to choose from among several alternative algorithms which can
196a2e9b73SSam Ravnborg	  then be attached to different network devices. This is useful for
206a2e9b73SSam Ravnborg	  example if some of your network devices are real time devices that
216a2e9b73SSam Ravnborg	  need a certain minimum data flow rate, or if you need to limit the
226a2e9b73SSam Ravnborg	  maximum data flow rate for traffic which matches specified criteria.
236a2e9b73SSam Ravnborg	  This code is considered to be experimental.
246a2e9b73SSam Ravnborg
256a2e9b73SSam Ravnborg	  To administer these schedulers, you'll need the user-level utilities
265d330cddSAndrew Shewmaker	  from the package iproute2+tc at
275d330cddSAndrew Shewmaker	  <https://www.kernel.org/pub/linux/utils/net/iproute2/>.  That package
285d330cddSAndrew Shewmaker	  also contains some documentation; for more, check out
29c996d8b9SMichael Witten	  <http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2>.
306a2e9b73SSam Ravnborg
316a2e9b73SSam Ravnborg	  This Quality of Service (QoS) support will enable you to use
326a2e9b73SSam Ravnborg	  Differentiated Services (diffserv) and Resource Reservation Protocol
3352ab4ac2SThomas Graf	  (RSVP) on your Linux router if you also say Y to the corresponding
3452ab4ac2SThomas Graf	  classifiers below.  Documentation and software is at
3552ab4ac2SThomas Graf	  <http://diffserv.sourceforge.net/>.
366a2e9b73SSam Ravnborg
376a2e9b73SSam Ravnborg	  If you say Y here and to "/proc file system" below, you will be able
386a2e9b73SSam Ravnborg	  to read status information about packet schedulers from the file
396a2e9b73SSam Ravnborg	  /proc/net/psched.
406a2e9b73SSam Ravnborg
416a2e9b73SSam Ravnborg	  The available schedulers are listed in the following questions; you
426a2e9b73SSam Ravnborg	  can say Y to as many as you like. If unsure, say N now.
436a2e9b73SSam Ravnborg
4405b8b0faSRoman Zippelif NET_SCHED
4505b8b0faSRoman Zippel
4652ab4ac2SThomas Grafcomment "Queueing/Scheduling"
4752ab4ac2SThomas Graf
481da177e4SLinus Torvaldsconfig NET_SCH_HTB
4952ab4ac2SThomas Graf	tristate "Hierarchical Token Bucket (HTB)"
50a7f7f624SMasahiro Yamada	help
511da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Token Buckets (HTB)
5252ab4ac2SThomas Graf	  packet scheduling algorithm. See
531da177e4SLinus Torvalds	  <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
541da177e4SLinus Torvalds	  in-depth articles.
551da177e4SLinus Torvalds
5652ab4ac2SThomas Graf	  HTB is very similar to CBQ regarding its goals however is has
571da177e4SLinus Torvalds	  different properties and different algorithm.
581da177e4SLinus Torvalds
591da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
601da177e4SLinus Torvalds	  module will be called sch_htb.
611da177e4SLinus Torvalds
621da177e4SLinus Torvaldsconfig NET_SCH_HFSC
6352ab4ac2SThomas Graf	tristate "Hierarchical Fair Service Curve (HFSC)"
64a7f7f624SMasahiro Yamada	help
651da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Fair Service Curve
6652ab4ac2SThomas Graf	  (HFSC) packet scheduling algorithm.
671da177e4SLinus Torvalds
681da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
691da177e4SLinus Torvalds	  module will be called sch_hfsc.
701da177e4SLinus Torvalds
711da177e4SLinus Torvaldsconfig NET_SCH_PRIO
7252ab4ac2SThomas Graf	tristate "Multi Band Priority Queueing (PRIO)"
73a7f7f624SMasahiro Yamada	help
741da177e4SLinus Torvalds	  Say Y here if you want to use an n-band priority queue packet
7552ab4ac2SThomas Graf	  scheduler.
761da177e4SLinus Torvalds
771da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
781da177e4SLinus Torvalds	  module will be called sch_prio.
791da177e4SLinus Torvalds
8092651940SAlexander Duyckconfig NET_SCH_MULTIQ
8192651940SAlexander Duyck	tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)"
82a7f7f624SMasahiro Yamada	help
8392651940SAlexander Duyck	  Say Y here if you want to use an n-band queue packet scheduler
8492651940SAlexander Duyck	  to support devices that have multiple hardware transmit queues.
8592651940SAlexander Duyck
8692651940SAlexander Duyck	  To compile this code as a module, choose M here: the
8792651940SAlexander Duyck	  module will be called sch_multiq.
8892651940SAlexander Duyck
891da177e4SLinus Torvaldsconfig NET_SCH_RED
9052ab4ac2SThomas Graf	tristate "Random Early Detection (RED)"
91a7f7f624SMasahiro Yamada	help
921da177e4SLinus Torvalds	  Say Y here if you want to use the Random Early Detection (RED)
9352ab4ac2SThomas Graf	  packet scheduling algorithm.
9452ab4ac2SThomas Graf
9552ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_red.c> for more details.
961da177e4SLinus Torvalds
971da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
981da177e4SLinus Torvalds	  module will be called sch_red.
991da177e4SLinus Torvalds
100e13e02a3SEric Dumazetconfig NET_SCH_SFB
101e13e02a3SEric Dumazet	tristate "Stochastic Fair Blue (SFB)"
102a7f7f624SMasahiro Yamada	help
103e13e02a3SEric Dumazet	  Say Y here if you want to use the Stochastic Fair Blue (SFB)
104e13e02a3SEric Dumazet	  packet scheduling algorithm.
105e13e02a3SEric Dumazet
106e13e02a3SEric Dumazet	  See the top of <file:net/sched/sch_sfb.c> for more details.
107e13e02a3SEric Dumazet
108e13e02a3SEric Dumazet	  To compile this code as a module, choose M here: the
109e13e02a3SEric Dumazet	  module will be called sch_sfb.
110e13e02a3SEric Dumazet
1111da177e4SLinus Torvaldsconfig NET_SCH_SFQ
11252ab4ac2SThomas Graf	tristate "Stochastic Fairness Queueing (SFQ)"
113a7f7f624SMasahiro Yamada	help
1141da177e4SLinus Torvalds	  Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
11552ab4ac2SThomas Graf	  packet scheduling algorithm.
11652ab4ac2SThomas Graf
11752ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_sfq.c> for more details.
1181da177e4SLinus Torvalds
1191da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1201da177e4SLinus Torvalds	  module will be called sch_sfq.
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvaldsconfig NET_SCH_TEQL
12352ab4ac2SThomas Graf	tristate "True Link Equalizer (TEQL)"
124a7f7f624SMasahiro Yamada	help
1251da177e4SLinus Torvalds	  Say Y here if you want to use the True Link Equalizer (TLE) packet
12652ab4ac2SThomas Graf	  scheduling algorithm. This queueing discipline allows the combination
12752ab4ac2SThomas Graf	  of several physical devices into one virtual device.
12852ab4ac2SThomas Graf
12952ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_teql.c> for more details.
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1321da177e4SLinus Torvalds	  module will be called sch_teql.
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvaldsconfig NET_SCH_TBF
13552ab4ac2SThomas Graf	tristate "Token Bucket Filter (TBF)"
136a7f7f624SMasahiro Yamada	help
13752ab4ac2SThomas Graf	  Say Y here if you want to use the Token Bucket Filter (TBF) packet
13852ab4ac2SThomas Graf	  scheduling algorithm.
13952ab4ac2SThomas Graf
14052ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_tbf.c> for more details.
1411da177e4SLinus Torvalds
1421da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1431da177e4SLinus Torvalds	  module will be called sch_tbf.
1441da177e4SLinus Torvalds
145585d763aSVinicius Costa Gomesconfig NET_SCH_CBS
146585d763aSVinicius Costa Gomes	tristate "Credit Based Shaper (CBS)"
147a7f7f624SMasahiro Yamada	help
148585d763aSVinicius Costa Gomes	  Say Y here if you want to use the Credit Based Shaper (CBS) packet
149585d763aSVinicius Costa Gomes	  scheduling algorithm.
150585d763aSVinicius Costa Gomes
151585d763aSVinicius Costa Gomes	  See the top of <file:net/sched/sch_cbs.c> for more details.
152585d763aSVinicius Costa Gomes
153585d763aSVinicius Costa Gomes	  To compile this code as a module, choose M here: the
154585d763aSVinicius Costa Gomes	  module will be called sch_cbs.
155585d763aSVinicius Costa Gomes
15625db26a9SVinicius Costa Gomesconfig NET_SCH_ETF
15725db26a9SVinicius Costa Gomes	tristate "Earliest TxTime First (ETF)"
15825db26a9SVinicius Costa Gomes	help
15925db26a9SVinicius Costa Gomes	  Say Y here if you want to use the Earliest TxTime First (ETF) packet
16025db26a9SVinicius Costa Gomes	  scheduling algorithm.
16125db26a9SVinicius Costa Gomes
16225db26a9SVinicius Costa Gomes	  See the top of <file:net/sched/sch_etf.c> for more details.
16325db26a9SVinicius Costa Gomes
16425db26a9SVinicius Costa Gomes	  To compile this code as a module, choose M here: the
16525db26a9SVinicius Costa Gomes	  module will be called sch_etf.
16625db26a9SVinicius Costa Gomes
1671dfe086dSVladimir Olteanconfig NET_SCH_MQPRIO_LIB
1681dfe086dSVladimir Oltean	tristate
1691dfe086dSVladimir Oltean	help
1701dfe086dSVladimir Oltean	  Common library for manipulating mqprio queue configurations.
1711dfe086dSVladimir Oltean
1725a781ccbSVinicius Costa Gomesconfig NET_SCH_TAPRIO
1735a781ccbSVinicius Costa Gomes	tristate "Time Aware Priority (taprio) Scheduler"
1741dfe086dSVladimir Oltean	select NET_SCH_MQPRIO_LIB
1755a781ccbSVinicius Costa Gomes	help
1765a781ccbSVinicius Costa Gomes	  Say Y here if you want to use the Time Aware Priority (taprio) packet
1775a781ccbSVinicius Costa Gomes	  scheduling algorithm.
1785a781ccbSVinicius Costa Gomes
1795a781ccbSVinicius Costa Gomes	  See the top of <file:net/sched/sch_taprio.c> for more details.
1805a781ccbSVinicius Costa Gomes
1815a781ccbSVinicius Costa Gomes	  To compile this code as a module, choose M here: the
1825a781ccbSVinicius Costa Gomes	  module will be called sch_taprio.
1835a781ccbSVinicius Costa Gomes
1841da177e4SLinus Torvaldsconfig NET_SCH_GRED
18552ab4ac2SThomas Graf	tristate "Generic Random Early Detection (GRED)"
186a7f7f624SMasahiro Yamada	help
1871da177e4SLinus Torvalds	  Say Y here if you want to use the Generic Random Early Detection
18820cc6befSLucas Correia Villa Real	  (GRED) packet scheduling algorithm for some of your network devices
1891da177e4SLinus Torvalds	  (see the top of <file:net/sched/sch_red.c> for details and
1901da177e4SLinus Torvalds	  references about the algorithm).
1911da177e4SLinus Torvalds
1921da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1931da177e4SLinus Torvalds	  module will be called sch_gred.
1941da177e4SLinus Torvalds
1951da177e4SLinus Torvaldsconfig NET_SCH_NETEM
19652ab4ac2SThomas Graf	tristate "Network emulator (NETEM)"
197a7f7f624SMasahiro Yamada	help
1981da177e4SLinus Torvalds	  Say Y if you want to emulate network delay, loss, and packet
1991da177e4SLinus Torvalds	  re-ordering. This is often useful to simulate networks when
2001da177e4SLinus Torvalds	  testing applications or protocols.
2011da177e4SLinus Torvalds
2021da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
2031da177e4SLinus Torvalds	  will be called sch_netem.
2041da177e4SLinus Torvalds
2051da177e4SLinus Torvalds	  If unsure, say N.
2061da177e4SLinus Torvalds
20713d2a1d2SPatrick McHardyconfig NET_SCH_DRR
20813d2a1d2SPatrick McHardy	tristate "Deficit Round Robin scheduler (DRR)"
20913d2a1d2SPatrick McHardy	help
21013d2a1d2SPatrick McHardy	  Say Y here if you want to use the Deficit Round Robin (DRR) packet
21113d2a1d2SPatrick McHardy	  scheduling algorithm.
21213d2a1d2SPatrick McHardy
21313d2a1d2SPatrick McHardy	  To compile this driver as a module, choose M here: the module
21413d2a1d2SPatrick McHardy	  will be called sch_drr.
21513d2a1d2SPatrick McHardy
21613d2a1d2SPatrick McHardy	  If unsure, say N.
21713d2a1d2SPatrick McHardy
218b8970f0bSJohn Fastabendconfig NET_SCH_MQPRIO
219b8970f0bSJohn Fastabend	tristate "Multi-queue priority scheduler (MQPRIO)"
2201dfe086dSVladimir Oltean	select NET_SCH_MQPRIO_LIB
221b8970f0bSJohn Fastabend	help
222b8970f0bSJohn Fastabend	  Say Y here if you want to use the Multi-queue Priority scheduler.
223b8970f0bSJohn Fastabend	  This scheduler allows QOS to be offloaded on NICs that have support
224b8970f0bSJohn Fastabend	  for offloading QOS schedulers.
225b8970f0bSJohn Fastabend
226b8970f0bSJohn Fastabend	  To compile this driver as a module, choose M here: the module will
227b8970f0bSJohn Fastabend	  be called sch_mqprio.
228b8970f0bSJohn Fastabend
229b8970f0bSJohn Fastabend	  If unsure, say N.
230b8970f0bSJohn Fastabend
231aea5f654SNishanth Devarajanconfig NET_SCH_SKBPRIO
232aea5f654SNishanth Devarajan	tristate "SKB priority queue scheduler (SKBPRIO)"
233aea5f654SNishanth Devarajan	help
234aea5f654SNishanth Devarajan	  Say Y here if you want to use the SKB priority queue
235aea5f654SNishanth Devarajan	  scheduler. This schedules packets according to skb->priority,
236aea5f654SNishanth Devarajan	  which is useful for request packets in DoS mitigation systems such
237aea5f654SNishanth Devarajan	  as Gatekeeper.
238aea5f654SNishanth Devarajan
239aea5f654SNishanth Devarajan	  To compile this driver as a module, choose M here: the module will
240aea5f654SNishanth Devarajan	  be called sch_skbprio.
241aea5f654SNishanth Devarajan
242aea5f654SNishanth Devarajan	  If unsure, say N.
243aea5f654SNishanth Devarajan
24445e14433Sstephen hemmingerconfig NET_SCH_CHOKE
24545e14433Sstephen hemminger	tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
24645e14433Sstephen hemminger	help
24745e14433Sstephen hemminger	  Say Y here if you want to use the CHOKe packet scheduler (CHOose
24845e14433Sstephen hemminger	  and Keep for responsive flows, CHOose and Kill for unresponsive
2498354bcbeSColin Ian King	  flows). This is a variation of RED which tries to penalize flows
25045e14433Sstephen hemminger	  that monopolize the queue.
25145e14433Sstephen hemminger
25245e14433Sstephen hemminger	  To compile this code as a module, choose M here: the
25345e14433Sstephen hemminger	  module will be called sch_choke.
25445e14433Sstephen hemminger
2550545a303Sstephen hemmingerconfig NET_SCH_QFQ
2560545a303Sstephen hemminger	tristate "Quick Fair Queueing scheduler (QFQ)"
2570545a303Sstephen hemminger	help
2580545a303Sstephen hemminger	  Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ)
2590545a303Sstephen hemminger	  packet scheduling algorithm.
2600545a303Sstephen hemminger
2610545a303Sstephen hemminger	  To compile this driver as a module, choose M here: the module
2620545a303Sstephen hemminger	  will be called sch_qfq.
2630545a303Sstephen hemminger
2640545a303Sstephen hemminger	  If unsure, say N.
2650545a303Sstephen hemminger
26676e3cc12SEric Dumazetconfig NET_SCH_CODEL
26776e3cc12SEric Dumazet	tristate "Controlled Delay AQM (CODEL)"
26876e3cc12SEric Dumazet	help
26976e3cc12SEric Dumazet	  Say Y here if you want to use the Controlled Delay (CODEL)
27076e3cc12SEric Dumazet	  packet scheduling algorithm.
27176e3cc12SEric Dumazet
27276e3cc12SEric Dumazet	  To compile this driver as a module, choose M here: the module
27376e3cc12SEric Dumazet	  will be called sch_codel.
27476e3cc12SEric Dumazet
27576e3cc12SEric Dumazet	  If unsure, say N.
27676e3cc12SEric Dumazet
2774b549a2eSEric Dumazetconfig NET_SCH_FQ_CODEL
2784b549a2eSEric Dumazet	tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)"
2794b549a2eSEric Dumazet	help
2804b549a2eSEric Dumazet	  Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL)
2814b549a2eSEric Dumazet	  packet scheduling algorithm.
2824b549a2eSEric Dumazet
2834b549a2eSEric Dumazet	  To compile this driver as a module, choose M here: the module
2844b549a2eSEric Dumazet	  will be called sch_fq_codel.
2854b549a2eSEric Dumazet
2864b549a2eSEric Dumazet	  If unsure, say N.
2874b549a2eSEric Dumazet
288046f6fd5SToke Høiland-Jørgensenconfig NET_SCH_CAKE
289046f6fd5SToke Høiland-Jørgensen	tristate "Common Applications Kept Enhanced (CAKE)"
290046f6fd5SToke Høiland-Jørgensen	help
291046f6fd5SToke Høiland-Jørgensen	  Say Y here if you want to use the Common Applications Kept Enhanced
292046f6fd5SToke Høiland-Jørgensen	  (CAKE) queue management algorithm.
293046f6fd5SToke Høiland-Jørgensen
294046f6fd5SToke Høiland-Jørgensen	  To compile this driver as a module, choose M here: the module
295046f6fd5SToke Høiland-Jørgensen	  will be called sch_cake.
296046f6fd5SToke Høiland-Jørgensen
297046f6fd5SToke Høiland-Jørgensen	  If unsure, say N.
298046f6fd5SToke Høiland-Jørgensen
299afe4fd06SEric Dumazetconfig NET_SCH_FQ
300afe4fd06SEric Dumazet	tristate "Fair Queue"
301afe4fd06SEric Dumazet	help
302afe4fd06SEric Dumazet	  Say Y here if you want to use the FQ packet scheduling algorithm.
303afe4fd06SEric Dumazet
304afe4fd06SEric Dumazet	  FQ does flow separation, and is able to respect pacing requirements
3056a7a2c18SRandy Dunlap	  set by TCP stack into sk->sk_pacing_rate (for locally generated
306afe4fd06SEric Dumazet	  traffic)
307afe4fd06SEric Dumazet
308afe4fd06SEric Dumazet	  To compile this driver as a module, choose M here: the module
309afe4fd06SEric Dumazet	  will be called sch_fq.
310afe4fd06SEric Dumazet
311afe4fd06SEric Dumazet	  If unsure, say N.
312afe4fd06SEric Dumazet
31310239edfSTerry Lamconfig NET_SCH_HHF
31410239edfSTerry Lam	tristate "Heavy-Hitter Filter (HHF)"
31510239edfSTerry Lam	help
31610239edfSTerry Lam	  Say Y here if you want to use the Heavy-Hitter Filter (HHF)
31710239edfSTerry Lam	  packet scheduling algorithm.
31810239edfSTerry Lam
31910239edfSTerry Lam	  To compile this driver as a module, choose M here: the module
32010239edfSTerry Lam	  will be called sch_hhf.
32110239edfSTerry Lam
322d4b36210SVijay Subramanianconfig NET_SCH_PIE
323d4b36210SVijay Subramanian	tristate "Proportional Integral controller Enhanced (PIE) scheduler"
324d4b36210SVijay Subramanian	help
325d4b36210SVijay Subramanian	  Say Y here if you want to use the Proportional Integral controller
326d4b36210SVijay Subramanian	  Enhanced scheduler packet scheduling algorithm.
3271f8389bfSLeslie Monis	  For more information, please see https://tools.ietf.org/html/rfc8033
328d4b36210SVijay Subramanian
329d4b36210SVijay Subramanian	  To compile this driver as a module, choose M here: the module
330d4b36210SVijay Subramanian	  will be called sch_pie.
331d4b36210SVijay Subramanian
332d4b36210SVijay Subramanian	  If unsure, say N.
333d4b36210SVijay Subramanian
334ec97ecf1SMohit P. Tahilianiconfig NET_SCH_FQ_PIE
335ec97ecf1SMohit P. Tahiliani	depends on NET_SCH_PIE
336ec97ecf1SMohit P. Tahiliani	tristate "Flow Queue Proportional Integral controller Enhanced (FQ-PIE)"
337ec97ecf1SMohit P. Tahiliani	help
338ec97ecf1SMohit P. Tahiliani	  Say Y here if you want to use the Flow Queue Proportional Integral
339ec97ecf1SMohit P. Tahiliani	  controller Enhanced (FQ-PIE) packet scheduling algorithm.
340ec97ecf1SMohit P. Tahiliani	  For more information, please see https://tools.ietf.org/html/rfc8033
341ec97ecf1SMohit P. Tahiliani
342ec97ecf1SMohit P. Tahiliani	  To compile this driver as a module, choose M here: the module
343ec97ecf1SMohit P. Tahiliani	  will be called sch_fq_pie.
344ec97ecf1SMohit P. Tahiliani
345ec97ecf1SMohit P. Tahiliani	  If unsure, say N.
346ec97ecf1SMohit P. Tahiliani
3471da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
3481f211a1bSDaniel Borkmann	tristate "Ingress/classifier-action Qdisc"
34972eb7bd2SPatrick McHardy	depends on NET_CLS_ACT
350e420bed0SDaniel Borkmann	select NET_XGRESS
351a7f7f624SMasahiro Yamada	help
3521f211a1bSDaniel Borkmann	  Say Y here if you want to use classifiers for incoming and/or outgoing
3531f211a1bSDaniel Borkmann	  packets. This qdisc doesn't do anything else besides running classifiers,
3541f211a1bSDaniel Borkmann	  which can also have actions attached to them. In case of outgoing packets,
3551f211a1bSDaniel Borkmann	  classifiers that this qdisc holds are executed in the transmit path
3561f211a1bSDaniel Borkmann	  before real enqueuing to an egress qdisc happens.
3571f211a1bSDaniel Borkmann
3581da177e4SLinus Torvalds	  If unsure, say Y.
3591da177e4SLinus Torvalds
3601f211a1bSDaniel Borkmann	  To compile this code as a module, choose M here: the module will be
3611f211a1bSDaniel Borkmann	  called sch_ingress with alias of sch_clsact.
3621da177e4SLinus Torvalds
363c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG
364c3059be1SShriram Rajagopalan	tristate "Plug network traffic until release (PLUG)"
365a7f7f624SMasahiro Yamada	help
366c3059be1SShriram Rajagopalan
367c3059be1SShriram Rajagopalan	  This queuing discipline allows userspace to plug/unplug a network
368c3059be1SShriram Rajagopalan	  output queue, using the netlink interface.  When it receives an
369c3059be1SShriram Rajagopalan	  enqueue command it inserts a plug into the outbound queue that
370c3059be1SShriram Rajagopalan	  causes following packets to enqueue until a dequeue command arrives
371c3059be1SShriram Rajagopalan	  over netlink, causing the plug to be removed and resuming the normal
372c3059be1SShriram Rajagopalan	  packet flow.
373c3059be1SShriram Rajagopalan
374c3059be1SShriram Rajagopalan	  This module also provides a generic "network output buffering"
375c3059be1SShriram Rajagopalan	  functionality (aka output commit), wherein upon arrival of a dequeue
376c3059be1SShriram Rajagopalan	  command, only packets up to the first plug are released for delivery.
377c3059be1SShriram Rajagopalan	  The Remus HA project uses this module to enable speculative execution
378c3059be1SShriram Rajagopalan	  of virtual machines by allowing the generated network output to be rolled
379c3059be1SShriram Rajagopalan	  back if needed.
380c3059be1SShriram Rajagopalan
3815d330cddSAndrew Shewmaker	  For more information, please refer to <http://wiki.xenproject.org/wiki/Remus>
382c3059be1SShriram Rajagopalan
383c3059be1SShriram Rajagopalan	  Say Y here if you are using this kernel for Xen dom0 and
384c3059be1SShriram Rajagopalan	  want to protect Xen guests with Remus.
385c3059be1SShriram Rajagopalan
386c3059be1SShriram Rajagopalan	  To compile this code as a module, choose M here: the
387c3059be1SShriram Rajagopalan	  module will be called sch_plug.
388c3059be1SShriram Rajagopalan
389dcc68b4dSPetr Machataconfig NET_SCH_ETS
390dcc68b4dSPetr Machata	tristate "Enhanced transmission selection scheduler (ETS)"
391dcc68b4dSPetr Machata	help
392dcc68b4dSPetr Machata          The Enhanced Transmission Selection scheduler is a classful
393dcc68b4dSPetr Machata          queuing discipline that merges functionality of PRIO and DRR
394dcc68b4dSPetr Machata          qdiscs in one scheduler. ETS makes it easy to configure a set of
395dcc68b4dSPetr Machata          strict and bandwidth-sharing bands to implement the transmission
396dcc68b4dSPetr Machata          selection described in 802.1Qaz.
397dcc68b4dSPetr Machata
398dcc68b4dSPetr Machata	  Say Y here if you want to use the ETS packet scheduling
399dcc68b4dSPetr Machata	  algorithm.
400dcc68b4dSPetr Machata
401dcc68b4dSPetr Machata	  To compile this driver as a module, choose M here: the module
402dcc68b4dSPetr Machata	  will be called sch_ets.
403dcc68b4dSPetr Machata
404dcc68b4dSPetr Machata	  If unsure, say N.
405dcc68b4dSPetr Machata
406c8240344SAmery Hungconfig NET_SCH_BPF
407c8240344SAmery Hung	bool "BPF-based Qdisc"
408c8240344SAmery Hung	depends on BPF_SYSCALL && BPF_JIT && DEBUG_INFO_BTF
409c8240344SAmery Hung	help
410c8240344SAmery Hung	  This option allows BPF-based queueing disiplines. With BPF struct_ops,
411c8240344SAmery Hung	  users can implement supported operators in Qdisc_ops using BPF programs.
412c8240344SAmery Hung	  The queue holding skb can be built with BPF maps or graphs.
413c8240344SAmery Hung
414c8240344SAmery Hung	  Say Y here if you want to use BPF-based Qdisc.
415c8240344SAmery Hung
416c8240344SAmery Hung	  If unsure, say N.
417c8240344SAmery Hung
418*8f9516daSKoen De Schepperconfig NET_SCH_DUALPI2
419*8f9516daSKoen De Schepper	tristate "Dual Queue PI Square (DUALPI2) scheduler"
420*8f9516daSKoen De Schepper	help
421*8f9516daSKoen De Schepper	  Say Y here if you want to use the Dual Queue Proportional Integral
422*8f9516daSKoen De Schepper	  Controller Improved with a Square scheduling algorithm.
423*8f9516daSKoen De Schepper	  For more information, please see https://tools.ietf.org/html/rfc9332
424*8f9516daSKoen De Schepper
425*8f9516daSKoen De Schepper	  To compile this driver as a module, choose M here: the module
426*8f9516daSKoen De Schepper	  will be called sch_dualpi2.
427*8f9516daSKoen De Schepper
428*8f9516daSKoen De Schepper	  If unsure, say N.
429*8f9516daSKoen De Schepper
4308ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT
4318ea3e439Sstephen hemminger	bool "Allow override default queue discipline"
432a7f7f624SMasahiro Yamada	help
4338ea3e439Sstephen hemminger	  Support for selection of default queuing discipline.
4348ea3e439Sstephen hemminger
4358ea3e439Sstephen hemminger	  Nearly all users can safely say no here, and the default
4368ea3e439Sstephen hemminger	  of pfifo_fast will be used. Many distributions already set
4378ea3e439Sstephen hemminger	  the default value via /proc/sys/net/core/default_qdisc.
4388ea3e439Sstephen hemminger
4398ea3e439Sstephen hemminger	  If unsure, say N.
4408ea3e439Sstephen hemminger
4418ea3e439Sstephen hemmingerif NET_SCH_DEFAULT
4428ea3e439Sstephen hemminger
4438ea3e439Sstephen hemmingerchoice
4448ea3e439Sstephen hemminger	prompt "Default queuing discipline"
4458ea3e439Sstephen hemminger	default DEFAULT_PFIFO_FAST
4468ea3e439Sstephen hemminger	help
4478ea3e439Sstephen hemminger	  Select the queueing discipline that will be used by default
4488ea3e439Sstephen hemminger	  for all network devices.
4498ea3e439Sstephen hemminger
4508ea3e439Sstephen hemminger	config DEFAULT_FQ
4518ea3e439Sstephen hemminger		bool "Fair Queue" if NET_SCH_FQ
4528ea3e439Sstephen hemminger
4538ea3e439Sstephen hemminger	config DEFAULT_CODEL
4548ea3e439Sstephen hemminger		bool "Controlled Delay" if NET_SCH_CODEL
4558ea3e439Sstephen hemminger
4568ea3e439Sstephen hemminger	config DEFAULT_FQ_CODEL
4578ea3e439Sstephen hemminger		bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL
4588ea3e439Sstephen hemminger
459b97e9d9dSDanny Lin	config DEFAULT_FQ_PIE
460b97e9d9dSDanny Lin		bool "Flow Queue Proportional Integral controller Enhanced" if NET_SCH_FQ_PIE
461b97e9d9dSDanny Lin
4628ea3e439Sstephen hemminger	config DEFAULT_SFQ
4638ea3e439Sstephen hemminger		bool "Stochastic Fair Queue" if NET_SCH_SFQ
4648ea3e439Sstephen hemminger
4658ea3e439Sstephen hemminger	config DEFAULT_PFIFO_FAST
4668ea3e439Sstephen hemminger		bool "Priority FIFO Fast"
4678ea3e439Sstephen hemmingerendchoice
4688ea3e439Sstephen hemminger
4698ea3e439Sstephen hemmingerconfig DEFAULT_NET_SCH
4708ea3e439Sstephen hemminger	string
4718ea3e439Sstephen hemminger	default "pfifo_fast" if DEFAULT_PFIFO_FAST
4728ea3e439Sstephen hemminger	default "fq" if DEFAULT_FQ
4738ea3e439Sstephen hemminger	default "fq_codel" if DEFAULT_FQ_CODEL
474b97e9d9dSDanny Lin	default "fq_pie" if DEFAULT_FQ_PIE
4758ea3e439Sstephen hemminger	default "sfq" if DEFAULT_SFQ
4768ea3e439Sstephen hemminger	default "pfifo_fast"
4778ea3e439Sstephen hemmingerendif
4788ea3e439Sstephen hemminger
47952ab4ac2SThomas Grafcomment "Classification"
4801da177e4SLinus Torvalds
4811da177e4SLinus Torvaldsconfig NET_CLS
4826341e62bSChristoph Jaeger	bool
4831da177e4SLinus Torvalds
4841da177e4SLinus Torvaldsconfig NET_CLS_BASIC
48552ab4ac2SThomas Graf	tristate "Elementary classification (BASIC)"
48652ab4ac2SThomas Graf	select NET_CLS
487a7f7f624SMasahiro Yamada	help
4881da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
4891da177e4SLinus Torvalds	  only extended matches and actions.
4901da177e4SLinus Torvalds
4911da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4921da177e4SLinus Torvalds	  module will be called cls_basic.
4931da177e4SLinus Torvalds
4941da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
49552ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
496034cfe48SRandy Dunlap	depends on INET
497c7066f70SPatrick McHardy	select IP_ROUTE_CLASSID
49852ab4ac2SThomas Graf	select NET_CLS
499a7f7f624SMasahiro Yamada	help
50052ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
50152ab4ac2SThomas Graf	  according to the route table entry they matched.
5021da177e4SLinus Torvalds
5031da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5041da177e4SLinus Torvalds	  module will be called cls_route.
5051da177e4SLinus Torvalds
5061da177e4SLinus Torvaldsconfig NET_CLS_FW
50752ab4ac2SThomas Graf	tristate "Netfilter mark (FW)"
50852ab4ac2SThomas Graf	select NET_CLS
509a7f7f624SMasahiro Yamada	help
51052ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
51152ab4ac2SThomas Graf	  according to netfilter/firewall marks.
5121da177e4SLinus Torvalds
5131da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5141da177e4SLinus Torvalds	  module will be called cls_fw.
5151da177e4SLinus Torvalds
5161da177e4SLinus Torvaldsconfig NET_CLS_U32
51752ab4ac2SThomas Graf	tristate "Universal 32bit comparisons w/ hashing (U32)"
51852ab4ac2SThomas Graf	select NET_CLS
519a7f7f624SMasahiro Yamada	help
5203539c272SMatt LaPlante	  Say Y here to be able to classify packets using a universal
52152ab4ac2SThomas Graf	  32bit pieces based comparison scheme.
5221da177e4SLinus Torvalds
5231da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5241da177e4SLinus Torvalds	  module will be called cls_u32.
5251da177e4SLinus Torvalds
5261da177e4SLinus Torvaldsconfig CLS_U32_PERF
52752ab4ac2SThomas Graf	bool "Performance counters support"
5281da177e4SLinus Torvalds	depends on NET_CLS_U32
529a7f7f624SMasahiro Yamada	help
53052ab4ac2SThomas Graf	  Say Y here to make u32 gather additional statistics useful for
53152ab4ac2SThomas Graf	  fine tuning u32 classifiers.
5321da177e4SLinus Torvalds
5331da177e4SLinus Torvaldsconfig CLS_U32_MARK
53452ab4ac2SThomas Graf	bool "Netfilter marks support"
53582e91ffeSThomas Graf	depends on NET_CLS_U32
536a7f7f624SMasahiro Yamada	help
53752ab4ac2SThomas Graf	  Say Y here to be able to use netfilter marks as u32 key.
5381da177e4SLinus Torvalds
539e5dfb815SPatrick McHardyconfig NET_CLS_FLOW
540e5dfb815SPatrick McHardy	tristate "Flow classifier"
541e5dfb815SPatrick McHardy	select NET_CLS
542a7f7f624SMasahiro Yamada	help
543e5dfb815SPatrick McHardy	  If you say Y here, you will be able to classify packets based on
544e5dfb815SPatrick McHardy	  a configurable combination of packet keys. This is mostly useful
545e5dfb815SPatrick McHardy	  in combination with SFQ.
546e5dfb815SPatrick McHardy
547e5dfb815SPatrick McHardy	  To compile this code as a module, choose M here: the
548e5dfb815SPatrick McHardy	  module will be called cls_flow.
549e5dfb815SPatrick McHardy
550f4009237SThomas Grafconfig NET_CLS_CGROUP
5518e039d84SBen Blum	tristate "Control Group Classifier"
552f4009237SThomas Graf	select NET_CLS
553fe1217c4SDaniel Borkmann	select CGROUP_NET_CLASSID
554f4009237SThomas Graf	depends on CGROUPS
555a7f7f624SMasahiro Yamada	help
556f4009237SThomas Graf	  Say Y here if you want to classify packets based on the control
557f4009237SThomas Graf	  cgroup of their process.
558f4009237SThomas Graf
5598e039d84SBen Blum	  To compile this code as a module, choose M here: the
5608e039d84SBen Blum	  module will be called cls_cgroup.
5618e039d84SBen Blum
5627d1d65cbSDaniel Borkmannconfig NET_CLS_BPF
5637d1d65cbSDaniel Borkmann	tristate "BPF-based classifier"
5647d1d65cbSDaniel Borkmann	select NET_CLS
565a7f7f624SMasahiro Yamada	help
5667d1d65cbSDaniel Borkmann	  If you say Y here, you will be able to classify packets based on
5677d1d65cbSDaniel Borkmann	  programmable BPF (JIT'ed) filters as an alternative to ematches.
5687d1d65cbSDaniel Borkmann
5697d1d65cbSDaniel Borkmann	  To compile this code as a module, choose M here: the module will
5707d1d65cbSDaniel Borkmann	  be called cls_bpf.
5717d1d65cbSDaniel Borkmann
57277b9900eSJiri Pirkoconfig NET_CLS_FLOWER
57377b9900eSJiri Pirko	tristate "Flower classifier"
57477b9900eSJiri Pirko	select NET_CLS
575a7f7f624SMasahiro Yamada	help
57677b9900eSJiri Pirko	  If you say Y here, you will be able to classify packets based on
57777b9900eSJiri Pirko	  a configurable combination of packet keys and masks.
57877b9900eSJiri Pirko
57977b9900eSJiri Pirko	  To compile this code as a module, choose M here: the module will
58077b9900eSJiri Pirko	  be called cls_flower.
58177b9900eSJiri Pirko
582bf3994d2SJiri Pirkoconfig NET_CLS_MATCHALL
583bf3994d2SJiri Pirko	tristate "Match-all classifier"
584bf3994d2SJiri Pirko	select NET_CLS
585a7f7f624SMasahiro Yamada	help
586bf3994d2SJiri Pirko	  If you say Y here, you will be able to classify packets based on
587bf3994d2SJiri Pirko	  nothing. Every packet will match.
588bf3994d2SJiri Pirko
589bf3994d2SJiri Pirko	  To compile this code as a module, choose M here: the module will
590bf3994d2SJiri Pirko	  be called cls_matchall.
591bf3994d2SJiri Pirko
5921da177e4SLinus Torvaldsconfig NET_EMATCH
5931da177e4SLinus Torvalds	bool "Extended Matches"
59452ab4ac2SThomas Graf	select NET_CLS
595a7f7f624SMasahiro Yamada	help
5961da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
5971da177e4SLinus Torvalds	  and select the extended matches below.
5981da177e4SLinus Torvalds
5991da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
60052ab4ac2SThomas Graf	  a separate classifier for.
6011da177e4SLinus Torvalds
60252ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
6031da177e4SLinus Torvalds	  extended matches.
6041da177e4SLinus Torvalds
6051da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
6061da177e4SLinus Torvalds	int "Stack size"
6071da177e4SLinus Torvalds	depends on NET_EMATCH
6081da177e4SLinus Torvalds	default "32"
609a7f7f624SMasahiro Yamada	help
6101da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
6111da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
612b824979aSThomas Graf	  encapsulated precedences. Every level requires 4 bytes of additional
6131da177e4SLinus Torvalds	  stack space.
6141da177e4SLinus Torvalds
6151da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
6161da177e4SLinus Torvalds	tristate "Simple packet data comparison"
6171da177e4SLinus Torvalds	depends on NET_EMATCH
618a7f7f624SMasahiro Yamada	help
6191da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6201da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
6211da177e4SLinus Torvalds
6221da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6231da177e4SLinus Torvalds	  module will be called em_cmp.
6241da177e4SLinus Torvalds
6251da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
6261da177e4SLinus Torvalds	tristate "Multi byte comparison"
6271da177e4SLinus Torvalds	depends on NET_EMATCH
628a7f7f624SMasahiro Yamada	help
6291da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6301da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
6311da177e4SLinus Torvalds
6321da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6331da177e4SLinus Torvalds	  module will be called em_nbyte.
6341da177e4SLinus Torvalds
6351da177e4SLinus Torvaldsconfig NET_EMATCH_U32
63652ab4ac2SThomas Graf	tristate "U32 key"
6371da177e4SLinus Torvalds	depends on NET_EMATCH
638a7f7f624SMasahiro Yamada	help
6391da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
6401da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
6411da177e4SLinus Torvalds
6421da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6431da177e4SLinus Torvalds	  module will be called em_u32.
6441da177e4SLinus Torvalds
6451da177e4SLinus Torvaldsconfig NET_EMATCH_META
6461da177e4SLinus Torvalds	tristate "Metadata"
6471da177e4SLinus Torvalds	depends on NET_EMATCH
648a7f7f624SMasahiro Yamada	help
649bb7e8c5aSAdrian Bunk	  Say Y here if you want to be able to classify packets based on
6501da177e4SLinus Torvalds	  metadata such as load average, netfilter attributes, socket
6511da177e4SLinus Torvalds	  attributes and routing decisions.
6521da177e4SLinus Torvalds
6531da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6541da177e4SLinus Torvalds	  module will be called em_meta.
6551da177e4SLinus Torvalds
656d675c989SThomas Grafconfig NET_EMATCH_TEXT
657d675c989SThomas Graf	tristate "Textsearch"
658d675c989SThomas Graf	depends on NET_EMATCH
659f2d368faSDavid S. Miller	select TEXTSEARCH
660f7704347SDavid S. Miller	select TEXTSEARCH_KMP
66129cb9f9cSDavid S. Miller	select TEXTSEARCH_BM
662f7704347SDavid S. Miller	select TEXTSEARCH_FSM
663a7f7f624SMasahiro Yamada	help
66452ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
665f7704347SDavid S. Miller	  textsearch comparisons.
666d675c989SThomas Graf
667d675c989SThomas Graf	  To compile this code as a module, choose M here: the
668d675c989SThomas Graf	  module will be called em_text.
669d675c989SThomas Graf
670f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID
671f057bbb6SRostislav Lisovy	tristate "CAN Identifier"
672a303fbf3SMarc Kleine-Budde	depends on NET_EMATCH && (CAN=y || CAN=m)
673a7f7f624SMasahiro Yamada	help
674f057bbb6SRostislav Lisovy	  Say Y here if you want to be able to classify CAN frames based
675f057bbb6SRostislav Lisovy	  on CAN Identifier.
676f057bbb6SRostislav Lisovy
677f057bbb6SRostislav Lisovy	  To compile this code as a module, choose M here: the
678f057bbb6SRostislav Lisovy	  module will be called em_canid.
679f057bbb6SRostislav Lisovy
6806d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET
6816d4fa852SFlorian Westphal	tristate "IPset"
6826d4fa852SFlorian Westphal	depends on NET_EMATCH && IP_SET
683a7f7f624SMasahiro Yamada	help
6846d4fa852SFlorian Westphal	  Say Y here if you want to be able to classify packets based on
6856d4fa852SFlorian Westphal	  ipset membership.
6866d4fa852SFlorian Westphal
6876d4fa852SFlorian Westphal	  To compile this code as a module, choose M here: the
6886d4fa852SFlorian Westphal	  module will be called em_ipset.
6896d4fa852SFlorian Westphal
690ccc007e4SEyal Birgerconfig NET_EMATCH_IPT
691ccc007e4SEyal Birger	tristate "IPtables Matches"
692ccc007e4SEyal Birger	depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES
693a7f7f624SMasahiro Yamada	help
694ccc007e4SEyal Birger	  Say Y here to be able to classify packets based on iptables
695ccc007e4SEyal Birger	  matches.
696ccc007e4SEyal Birger	  Current supported match is "policy" which allows packet classification
697ccc007e4SEyal Birger	  based on IPsec policy that was used during decapsulation
698ccc007e4SEyal Birger
699ccc007e4SEyal Birger	  To compile this code as a module, choose M here: the
700ccc007e4SEyal Birger	  module will be called em_ipt.
701ccc007e4SEyal Birger
7021da177e4SLinus Torvaldsconfig NET_CLS_ACT
70352ab4ac2SThomas Graf	bool "Actions"
7048ec1507dSJiri Pirko	select NET_CLS
705e420bed0SDaniel Borkmann	select NET_XGRESS
706a7f7f624SMasahiro Yamada	help
70752ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
70852ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
70952ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
71052ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
71152ab4ac2SThomas Graf
71252ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
71352ab4ac2SThomas Graf	  extended matches.
7141da177e4SLinus Torvalds
7151da177e4SLinus Torvaldsconfig NET_ACT_POLICE
71652ab4ac2SThomas Graf	tristate "Traffic Policing"
7171da177e4SLinus Torvalds	depends on NET_CLS_ACT
718a7f7f624SMasahiro Yamada	help
71952ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
72052ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
72152ab4ac2SThomas Graf	  module.
72252ab4ac2SThomas Graf
72352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
724d4ae20b3SJan Luebbe	  module will be called act_police.
7251da177e4SLinus Torvalds
7261da177e4SLinus Torvaldsconfig NET_ACT_GACT
72752ab4ac2SThomas Graf	tristate "Generic actions"
7281da177e4SLinus Torvalds	depends on NET_CLS_ACT
729a7f7f624SMasahiro Yamada	help
73052ab4ac2SThomas Graf	  Say Y here to take generic actions such as dropping and
73152ab4ac2SThomas Graf	  accepting packets.
73252ab4ac2SThomas Graf
73352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
734d4ae20b3SJan Luebbe	  module will be called act_gact.
7351da177e4SLinus Torvalds
7361da177e4SLinus Torvaldsconfig GACT_PROB
73752ab4ac2SThomas Graf	bool "Probability support"
7381da177e4SLinus Torvalds	depends on NET_ACT_GACT
739a7f7f624SMasahiro Yamada	help
74052ab4ac2SThomas Graf	  Say Y here to use the generic action randomly or deterministically.
7411da177e4SLinus Torvalds
7421da177e4SLinus Torvaldsconfig NET_ACT_MIRRED
74352ab4ac2SThomas Graf	tristate "Redirecting and Mirroring"
7441da177e4SLinus Torvalds	depends on NET_CLS_ACT
745a7f7f624SMasahiro Yamada	help
74652ab4ac2SThomas Graf	  Say Y here to allow packets to be mirrored or redirected to
74752ab4ac2SThomas Graf	  other devices.
74852ab4ac2SThomas Graf
74952ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
750d4ae20b3SJan Luebbe	  module will be called act_mirred.
7511da177e4SLinus Torvalds
7525c5670faSYotam Gigiconfig NET_ACT_SAMPLE
7535c5670faSYotam Gigi	tristate "Traffic Sampling"
7545c5670faSYotam Gigi	depends on NET_CLS_ACT
7555c5670faSYotam Gigi	select PSAMPLE
756a7f7f624SMasahiro Yamada	help
7575c5670faSYotam Gigi	  Say Y here to allow packet sampling tc action. The packet sample
7585c5670faSYotam Gigi	  action consists of statistically choosing packets and sampling
7595c5670faSYotam Gigi	  them using the psample module.
7605c5670faSYotam Gigi
7615c5670faSYotam Gigi	  To compile this code as a module, choose M here: the
7625c5670faSYotam Gigi	  module will be called act_sample.
7635c5670faSYotam Gigi
764b4219952SHerbert Xuconfig NET_ACT_NAT
765b4219952SHerbert Xu	tristate "Stateless NAT"
766b4219952SHerbert Xu	depends on NET_CLS_ACT
767a7f7f624SMasahiro Yamada	help
768b4219952SHerbert Xu	  Say Y here to do stateless NAT on IPv4 packets.  You should use
769b4219952SHerbert Xu	  netfilter for NAT unless you know what you are doing.
770b4219952SHerbert Xu
771b4219952SHerbert Xu	  To compile this code as a module, choose M here: the
772d4ae20b3SJan Luebbe	  module will be called act_nat.
773b4219952SHerbert Xu
7741da177e4SLinus Torvaldsconfig NET_ACT_PEDIT
77552ab4ac2SThomas Graf	tristate "Packet Editing"
7761da177e4SLinus Torvalds	depends on NET_CLS_ACT
777a7f7f624SMasahiro Yamada	help
77852ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
7791da177e4SLinus Torvalds
78052ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
781d4ae20b3SJan Luebbe	  module will be called act_pedit.
7821da177e4SLinus Torvalds
783db753079SJamal Hadi Salimconfig NET_ACT_SIMP
78452ab4ac2SThomas Graf	tristate "Simple Example (Debug)"
785db753079SJamal Hadi Salim	depends on NET_CLS_ACT
786a7f7f624SMasahiro Yamada	help
78752ab4ac2SThomas Graf	  Say Y here to add a simple action for demonstration purposes.
78852ab4ac2SThomas Graf	  It is meant as an example and for debugging purposes. It will
78952ab4ac2SThomas Graf	  print a configured policy string followed by the packet count
79052ab4ac2SThomas Graf	  to the console for every packet that passes by.
791db753079SJamal Hadi Salim
79252ab4ac2SThomas Graf	  If unsure, say N.
79352ab4ac2SThomas Graf
79452ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
795d4ae20b3SJan Luebbe	  module will be called act_simple.
79652ab4ac2SThomas Graf
797ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT
798ca9b0e27SAlexander Duyck	tristate "SKB Editing"
799ca9b0e27SAlexander Duyck	depends on NET_CLS_ACT
800a7f7f624SMasahiro Yamada	help
801ca9b0e27SAlexander Duyck	  Say Y here to change skb priority or queue_mapping settings.
802ca9b0e27SAlexander Duyck
803ca9b0e27SAlexander Duyck	  If unsure, say N.
804ca9b0e27SAlexander Duyck
805ca9b0e27SAlexander Duyck	  To compile this code as a module, choose M here: the
806d4ae20b3SJan Luebbe	  module will be called act_skbedit.
807ca9b0e27SAlexander Duyck
808eb4d4065SGrégoire Baronconfig NET_ACT_CSUM
809eb4d4065SGrégoire Baron	tristate "Checksum Updating"
8107abac686SDavid S. Miller	depends on NET_CLS_ACT && INET
81199de9d40SEric Biggers	select NET_CRC32C
812a7f7f624SMasahiro Yamada	help
813eb4d4065SGrégoire Baron	  Say Y here to update some common checksum after some direct
814eb4d4065SGrégoire Baron	  packet alterations.
815eb4d4065SGrégoire Baron
816eb4d4065SGrégoire Baron	  To compile this code as a module, choose M here: the
817eb4d4065SGrégoire Baron	  module will be called act_csum.
818eb4d4065SGrégoire Baron
8192a2ea508SJohn Hurleyconfig NET_ACT_MPLS
8202a2ea508SJohn Hurley	tristate "MPLS manipulation"
8212a2ea508SJohn Hurley	depends on NET_CLS_ACT
8222a2ea508SJohn Hurley	help
8232a2ea508SJohn Hurley	  Say Y here to push or pop MPLS headers.
8242a2ea508SJohn Hurley
8252a2ea508SJohn Hurley	  If unsure, say N.
8262a2ea508SJohn Hurley
8272a2ea508SJohn Hurley	  To compile this code as a module, choose M here: the
8282a2ea508SJohn Hurley	  module will be called act_mpls.
8292a2ea508SJohn Hurley
830c7e2b968SJiri Pirkoconfig NET_ACT_VLAN
831c7e2b968SJiri Pirko	tristate "Vlan manipulation"
832c7e2b968SJiri Pirko	depends on NET_CLS_ACT
833a7f7f624SMasahiro Yamada	help
834c7e2b968SJiri Pirko	  Say Y here to push or pop vlan headers.
835c7e2b968SJiri Pirko
836c7e2b968SJiri Pirko	  If unsure, say N.
837c7e2b968SJiri Pirko
838c7e2b968SJiri Pirko	  To compile this code as a module, choose M here: the
839c7e2b968SJiri Pirko	  module will be called act_vlan.
840c7e2b968SJiri Pirko
841d23b8ad8SJiri Pirkoconfig NET_ACT_BPF
842d23b8ad8SJiri Pirko	tristate "BPF based action"
843d23b8ad8SJiri Pirko	depends on NET_CLS_ACT
844a7f7f624SMasahiro Yamada	help
845d23b8ad8SJiri Pirko	  Say Y here to execute BPF code on packets. The BPF code will decide
846d23b8ad8SJiri Pirko	  if the packet should be dropped or not.
847d23b8ad8SJiri Pirko
848d23b8ad8SJiri Pirko	  If unsure, say N.
849d23b8ad8SJiri Pirko
850d23b8ad8SJiri Pirko	  To compile this code as a module, choose M here: the
851d23b8ad8SJiri Pirko	  module will be called act_bpf.
852d23b8ad8SJiri Pirko
85322a5dc0eSFelix Fietkauconfig NET_ACT_CONNMARK
85422a5dc0eSFelix Fietkau	tristate "Netfilter Connection Mark Retriever"
855102e2c07SPablo Neira Ayuso	depends on NET_CLS_ACT && NETFILTER
8562dbce096SArnd Bergmann	depends on NF_CONNTRACK && NF_CONNTRACK_MARK
857a7f7f624SMasahiro Yamada	help
85822a5dc0eSFelix Fietkau	  Say Y here to allow retrieving of conn mark
85922a5dc0eSFelix Fietkau
86022a5dc0eSFelix Fietkau	  If unsure, say N.
86122a5dc0eSFelix Fietkau
86222a5dc0eSFelix Fietkau	  To compile this code as a module, choose M here: the
86322a5dc0eSFelix Fietkau	  module will be called act_connmark.
86422a5dc0eSFelix Fietkau
86524ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO
86624ec483cSKevin 'ldir' Darbyshire-Bryant	tristate "Netfilter Connection Mark Actions"
867102e2c07SPablo Neira Ayuso	depends on NET_CLS_ACT && NETFILTER
86824ec483cSKevin 'ldir' Darbyshire-Bryant	depends on NF_CONNTRACK && NF_CONNTRACK_MARK
86924ec483cSKevin 'ldir' Darbyshire-Bryant	help
87024ec483cSKevin 'ldir' Darbyshire-Bryant	  Say Y here to allow transfer of a connmark stored information.
87124ec483cSKevin 'ldir' Darbyshire-Bryant	  Current actions transfer connmark stored DSCP into
87224ec483cSKevin 'ldir' Darbyshire-Bryant	  ipv4/v6 diffserv and/or to transfer connmark to packet
87324ec483cSKevin 'ldir' Darbyshire-Bryant	  mark.  Both are useful for restoring egress based marks
87424ec483cSKevin 'ldir' Darbyshire-Bryant	  back onto ingress connections for qdisc priority mapping
87524ec483cSKevin 'ldir' Darbyshire-Bryant	  purposes.
87624ec483cSKevin 'ldir' Darbyshire-Bryant
87724ec483cSKevin 'ldir' Darbyshire-Bryant	  If unsure, say N.
87824ec483cSKevin 'ldir' Darbyshire-Bryant
87924ec483cSKevin 'ldir' Darbyshire-Bryant	  To compile this code as a module, choose M here: the
88024ec483cSKevin 'ldir' Darbyshire-Bryant	  module will be called act_ctinfo.
88124ec483cSKevin 'ldir' Darbyshire-Bryant
88286da71b5SJamal Hadi Salimconfig NET_ACT_SKBMOD
88386da71b5SJamal Hadi Salim	tristate "skb data modification action"
88486da71b5SJamal Hadi Salim	depends on NET_CLS_ACT
885a7f7f624SMasahiro Yamada	help
88686da71b5SJamal Hadi Salim	 Say Y here to allow modification of skb data
88786da71b5SJamal Hadi Salim
88886da71b5SJamal Hadi Salim	 If unsure, say N.
88986da71b5SJamal Hadi Salim
89086da71b5SJamal Hadi Salim	 To compile this code as a module, choose M here: the
89186da71b5SJamal Hadi Salim	 module will be called act_skbmod.
89286da71b5SJamal Hadi Salim
893ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE
894ef6980b6SJamal Hadi Salim	tristate "Inter-FE action based on IETF ForCES InterFE LFB"
895ef6980b6SJamal Hadi Salim	depends on NET_CLS_ACT
896295a6e06SYotam Gigi	select NET_IFE
897a7f7f624SMasahiro Yamada	help
898ef6980b6SJamal Hadi Salim	  Say Y here to allow for sourcing and terminating metadata
899ef6980b6SJamal Hadi Salim	  For details refer to netdev01 paper:
900ef6980b6SJamal Hadi Salim	  "Distributing Linux Traffic Control Classifier-Action Subsystem"
901ef6980b6SJamal Hadi Salim	   Authors: Jamal Hadi Salim and Damascene M. Joachimpillai
902ef6980b6SJamal Hadi Salim
903ef6980b6SJamal Hadi Salim	  To compile this code as a module, choose M here: the
904ef6980b6SJamal Hadi Salim	  module will be called act_ife.
905ef6980b6SJamal Hadi Salim
906d0f6dd8aSAmir Vadaiconfig NET_ACT_TUNNEL_KEY
907d0f6dd8aSAmir Vadai	tristate "IP tunnel metadata manipulation"
908d0f6dd8aSAmir Vadai	depends on NET_CLS_ACT
909a7f7f624SMasahiro Yamada	help
910d0f6dd8aSAmir Vadai	  Say Y here to set/release ip tunnel metadata.
911d0f6dd8aSAmir Vadai
912d0f6dd8aSAmir Vadai	  If unsure, say N.
913d0f6dd8aSAmir Vadai
914d0f6dd8aSAmir Vadai	  To compile this code as a module, choose M here: the
915d0f6dd8aSAmir Vadai	  module will be called act_tunnel_key.
916d0f6dd8aSAmir Vadai
917b57dc7c1SPaul Blakeyconfig NET_ACT_CT
918b57dc7c1SPaul Blakey	tristate "connection tracking tc action"
9198427fd10SXin Long	depends on NET_CLS_ACT && NF_CONNTRACK && (!NF_NAT || NF_NAT) && NF_FLOW_TABLE
920c0c3ab63SXin Long	select NF_CONNTRACK_OVS
921ebddb140SXin Long	select NF_NAT_OVS if NF_NAT
922b57dc7c1SPaul Blakey	help
923b57dc7c1SPaul Blakey	  Say Y here to allow sending the packets to conntrack module.
924b57dc7c1SPaul Blakey
925b57dc7c1SPaul Blakey	  If unsure, say N.
926b57dc7c1SPaul Blakey
927b57dc7c1SPaul Blakey	  To compile this code as a module, choose M here: the
928b57dc7c1SPaul Blakey	  module will be called act_ct.
929b57dc7c1SPaul Blakey
930a51c328dSPo Liuconfig NET_ACT_GATE
931a51c328dSPo Liu	tristate "Frame gate entry list control tc action"
932a51c328dSPo Liu	depends on NET_CLS_ACT
933a51c328dSPo Liu	help
934a51c328dSPo Liu	  Say Y here to allow to control the ingress flow to be passed at
935a51c328dSPo Liu	  specific time slot and be dropped at other specific time slot by
936a51c328dSPo Liu	  the gate entry list.
937a51c328dSPo Liu
938a51c328dSPo Liu	  If unsure, say N.
939a51c328dSPo Liu	  To compile this code as a module, choose M here: the
940a51c328dSPo Liu	  module will be called act_gate.
941a51c328dSPo Liu
942084e2f65SJamal Hadi Salimconfig NET_IFE_SKBMARK
943084e2f65SJamal Hadi Salim	tristate "Support to encoding decoding skb mark on IFE action"
944084e2f65SJamal Hadi Salim	depends on NET_ACT_IFE
945084e2f65SJamal Hadi Salim
946200e10f4SJamal Hadi Salimconfig NET_IFE_SKBPRIO
947200e10f4SJamal Hadi Salim	tristate "Support to encoding decoding skb prio on IFE action"
948200e10f4SJamal Hadi Salim	depends on NET_ACT_IFE
949200e10f4SJamal Hadi Salim
950408fbc22SJamal Hadi Salimconfig NET_IFE_SKBTCINDEX
951408fbc22SJamal Hadi Salim	tristate "Support to encoding decoding skb tcindex on IFE action"
952408fbc22SJamal Hadi Salim	depends on NET_ACT_IFE
953408fbc22SJamal Hadi Salim
95495a7233cSPaul Blakeyconfig NET_TC_SKB_EXT
95595a7233cSPaul Blakey	bool "TC recirculation support"
95695a7233cSPaul Blakey	depends on NET_CLS_ACT
95795a7233cSPaul Blakey	select SKB_EXTENSIONS
95895a7233cSPaul Blakey
95995a7233cSPaul Blakey	help
96095a7233cSPaul Blakey	  Say Y here to allow tc chain misses to continue in OvS datapath in
96195a7233cSPaul Blakey	  the correct recirc_id, and hardware chain misses to continue in
96295a7233cSPaul Blakey	  the correct chain in tc software datapath.
96395a7233cSPaul Blakey
96495a7233cSPaul Blakey	  Say N here if you won't be using tc<->ovs offload or tc chains offload.
96595a7233cSPaul Blakey
96605b8b0faSRoman Zippelendif # NET_SCHED
96705b8b0faSRoman Zippel
96885ef3e5cSRandy Dunlapconfig NET_SCH_FIFO
96985ef3e5cSRandy Dunlap	bool
970