xref: /linux/net/sched/Kconfig (revision b97e9d9d67c88bc413a3c27734d45d98d8d52b00)
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_CBQ
4952ab4ac2SThomas Graf	tristate "Class Based Queueing (CBQ)"
50a7f7f624SMasahiro Yamada	help
511da177e4SLinus Torvalds	  Say Y here if you want to use the Class-Based Queueing (CBQ) packet
5252ab4ac2SThomas Graf	  scheduling algorithm. This algorithm classifies the waiting packets
5352ab4ac2SThomas Graf	  into a tree-like hierarchy of classes; the leaves of this tree are
5452ab4ac2SThomas Graf	  in turn scheduled by separate algorithms.
551da177e4SLinus Torvalds
5652ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_cbq.c> for more details.
571da177e4SLinus Torvalds
581da177e4SLinus Torvalds	  CBQ is a commonly used scheduler, so if you're unsure, you should
591da177e4SLinus Torvalds	  say Y here. Then say Y to all the queueing algorithms below that you
6052ab4ac2SThomas Graf	  want to use as leaf disciplines.
611da177e4SLinus Torvalds
621da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
631da177e4SLinus Torvalds	  module will be called sch_cbq.
641da177e4SLinus Torvalds
651da177e4SLinus Torvaldsconfig NET_SCH_HTB
6652ab4ac2SThomas Graf	tristate "Hierarchical Token Bucket (HTB)"
67a7f7f624SMasahiro Yamada	help
681da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Token Buckets (HTB)
6952ab4ac2SThomas Graf	  packet scheduling algorithm. See
701da177e4SLinus Torvalds	  <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
711da177e4SLinus Torvalds	  in-depth articles.
721da177e4SLinus Torvalds
7352ab4ac2SThomas Graf	  HTB is very similar to CBQ regarding its goals however is has
741da177e4SLinus Torvalds	  different properties and different algorithm.
751da177e4SLinus Torvalds
761da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
771da177e4SLinus Torvalds	  module will be called sch_htb.
781da177e4SLinus Torvalds
791da177e4SLinus Torvaldsconfig NET_SCH_HFSC
8052ab4ac2SThomas Graf	tristate "Hierarchical Fair Service Curve (HFSC)"
81a7f7f624SMasahiro Yamada	help
821da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Fair Service Curve
8352ab4ac2SThomas Graf	  (HFSC) packet scheduling algorithm.
841da177e4SLinus Torvalds
851da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
861da177e4SLinus Torvalds	  module will be called sch_hfsc.
871da177e4SLinus Torvalds
881da177e4SLinus Torvaldsconfig NET_SCH_ATM
8952ab4ac2SThomas Graf	tristate "ATM Virtual Circuits (ATM)"
9005b8b0faSRoman Zippel	depends on ATM
91a7f7f624SMasahiro Yamada	help
921da177e4SLinus Torvalds	  Say Y here if you want to use the ATM pseudo-scheduler.  This
9352ab4ac2SThomas Graf	  provides a framework for invoking classifiers, which in turn
9452ab4ac2SThomas Graf	  select classes of this queuing discipline.  Each class maps
9552ab4ac2SThomas Graf	  the flow(s) it is handling to a given virtual circuit.
9652ab4ac2SThomas Graf
9799acaeb9SGabriel Craciunescu	  See the top of <file:net/sched/sch_atm.c> for more details.
981da177e4SLinus Torvalds
991da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1001da177e4SLinus Torvalds	  module will be called sch_atm.
1011da177e4SLinus Torvalds
1021da177e4SLinus Torvaldsconfig NET_SCH_PRIO
10352ab4ac2SThomas Graf	tristate "Multi Band Priority Queueing (PRIO)"
104a7f7f624SMasahiro Yamada	help
1051da177e4SLinus Torvalds	  Say Y here if you want to use an n-band priority queue packet
10652ab4ac2SThomas Graf	  scheduler.
1071da177e4SLinus Torvalds
1081da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1091da177e4SLinus Torvalds	  module will be called sch_prio.
1101da177e4SLinus Torvalds
11192651940SAlexander Duyckconfig NET_SCH_MULTIQ
11292651940SAlexander Duyck	tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)"
113a7f7f624SMasahiro Yamada	help
11492651940SAlexander Duyck	  Say Y here if you want to use an n-band queue packet scheduler
11592651940SAlexander Duyck	  to support devices that have multiple hardware transmit queues.
11692651940SAlexander Duyck
11792651940SAlexander Duyck	  To compile this code as a module, choose M here: the
11892651940SAlexander Duyck	  module will be called sch_multiq.
11992651940SAlexander Duyck
1201da177e4SLinus Torvaldsconfig NET_SCH_RED
12152ab4ac2SThomas Graf	tristate "Random Early Detection (RED)"
122a7f7f624SMasahiro Yamada	help
1231da177e4SLinus Torvalds	  Say Y here if you want to use the Random Early Detection (RED)
12452ab4ac2SThomas Graf	  packet scheduling algorithm.
12552ab4ac2SThomas Graf
12652ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_red.c> for more details.
1271da177e4SLinus Torvalds
1281da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1291da177e4SLinus Torvalds	  module will be called sch_red.
1301da177e4SLinus Torvalds
131e13e02a3SEric Dumazetconfig NET_SCH_SFB
132e13e02a3SEric Dumazet	tristate "Stochastic Fair Blue (SFB)"
133a7f7f624SMasahiro Yamada	help
134e13e02a3SEric Dumazet	  Say Y here if you want to use the Stochastic Fair Blue (SFB)
135e13e02a3SEric Dumazet	  packet scheduling algorithm.
136e13e02a3SEric Dumazet
137e13e02a3SEric Dumazet	  See the top of <file:net/sched/sch_sfb.c> for more details.
138e13e02a3SEric Dumazet
139e13e02a3SEric Dumazet	  To compile this code as a module, choose M here: the
140e13e02a3SEric Dumazet	  module will be called sch_sfb.
141e13e02a3SEric Dumazet
1421da177e4SLinus Torvaldsconfig NET_SCH_SFQ
14352ab4ac2SThomas Graf	tristate "Stochastic Fairness Queueing (SFQ)"
144a7f7f624SMasahiro Yamada	help
1451da177e4SLinus Torvalds	  Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
14652ab4ac2SThomas Graf	  packet scheduling algorithm.
14752ab4ac2SThomas Graf
14852ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_sfq.c> for more details.
1491da177e4SLinus Torvalds
1501da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1511da177e4SLinus Torvalds	  module will be called sch_sfq.
1521da177e4SLinus Torvalds
1531da177e4SLinus Torvaldsconfig NET_SCH_TEQL
15452ab4ac2SThomas Graf	tristate "True Link Equalizer (TEQL)"
155a7f7f624SMasahiro Yamada	help
1561da177e4SLinus Torvalds	  Say Y here if you want to use the True Link Equalizer (TLE) packet
15752ab4ac2SThomas Graf	  scheduling algorithm. This queueing discipline allows the combination
15852ab4ac2SThomas Graf	  of several physical devices into one virtual device.
15952ab4ac2SThomas Graf
16052ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_teql.c> for more details.
1611da177e4SLinus Torvalds
1621da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1631da177e4SLinus Torvalds	  module will be called sch_teql.
1641da177e4SLinus Torvalds
1651da177e4SLinus Torvaldsconfig NET_SCH_TBF
16652ab4ac2SThomas Graf	tristate "Token Bucket Filter (TBF)"
167a7f7f624SMasahiro Yamada	help
16852ab4ac2SThomas Graf	  Say Y here if you want to use the Token Bucket Filter (TBF) packet
16952ab4ac2SThomas Graf	  scheduling algorithm.
17052ab4ac2SThomas Graf
17152ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_tbf.c> for more details.
1721da177e4SLinus Torvalds
1731da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1741da177e4SLinus Torvalds	  module will be called sch_tbf.
1751da177e4SLinus Torvalds
176585d763aSVinicius Costa Gomesconfig NET_SCH_CBS
177585d763aSVinicius Costa Gomes	tristate "Credit Based Shaper (CBS)"
178a7f7f624SMasahiro Yamada	help
179585d763aSVinicius Costa Gomes	  Say Y here if you want to use the Credit Based Shaper (CBS) packet
180585d763aSVinicius Costa Gomes	  scheduling algorithm.
181585d763aSVinicius Costa Gomes
182585d763aSVinicius Costa Gomes	  See the top of <file:net/sched/sch_cbs.c> for more details.
183585d763aSVinicius Costa Gomes
184585d763aSVinicius Costa Gomes	  To compile this code as a module, choose M here: the
185585d763aSVinicius Costa Gomes	  module will be called sch_cbs.
186585d763aSVinicius Costa Gomes
18725db26a9SVinicius Costa Gomesconfig NET_SCH_ETF
18825db26a9SVinicius Costa Gomes	tristate "Earliest TxTime First (ETF)"
18925db26a9SVinicius Costa Gomes	help
19025db26a9SVinicius Costa Gomes	  Say Y here if you want to use the Earliest TxTime First (ETF) packet
19125db26a9SVinicius Costa Gomes	  scheduling algorithm.
19225db26a9SVinicius Costa Gomes
19325db26a9SVinicius Costa Gomes	  See the top of <file:net/sched/sch_etf.c> for more details.
19425db26a9SVinicius Costa Gomes
19525db26a9SVinicius Costa Gomes	  To compile this code as a module, choose M here: the
19625db26a9SVinicius Costa Gomes	  module will be called sch_etf.
19725db26a9SVinicius Costa Gomes
1985a781ccbSVinicius Costa Gomesconfig NET_SCH_TAPRIO
1995a781ccbSVinicius Costa Gomes	tristate "Time Aware Priority (taprio) Scheduler"
2005a781ccbSVinicius Costa Gomes	help
2015a781ccbSVinicius Costa Gomes	  Say Y here if you want to use the Time Aware Priority (taprio) packet
2025a781ccbSVinicius Costa Gomes	  scheduling algorithm.
2035a781ccbSVinicius Costa Gomes
2045a781ccbSVinicius Costa Gomes	  See the top of <file:net/sched/sch_taprio.c> for more details.
2055a781ccbSVinicius Costa Gomes
2065a781ccbSVinicius Costa Gomes	  To compile this code as a module, choose M here: the
2075a781ccbSVinicius Costa Gomes	  module will be called sch_taprio.
2085a781ccbSVinicius Costa Gomes
2091da177e4SLinus Torvaldsconfig NET_SCH_GRED
21052ab4ac2SThomas Graf	tristate "Generic Random Early Detection (GRED)"
211a7f7f624SMasahiro Yamada	help
2121da177e4SLinus Torvalds	  Say Y here if you want to use the Generic Random Early Detection
21320cc6befSLucas Correia Villa Real	  (GRED) packet scheduling algorithm for some of your network devices
2141da177e4SLinus Torvalds	  (see the top of <file:net/sched/sch_red.c> for details and
2151da177e4SLinus Torvalds	  references about the algorithm).
2161da177e4SLinus Torvalds
2171da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2181da177e4SLinus Torvalds	  module will be called sch_gred.
2191da177e4SLinus Torvalds
2201da177e4SLinus Torvaldsconfig NET_SCH_DSMARK
22152ab4ac2SThomas Graf	tristate "Differentiated Services marker (DSMARK)"
222a7f7f624SMasahiro Yamada	help
2231da177e4SLinus Torvalds	  Say Y if you want to schedule packets according to the
2241da177e4SLinus Torvalds	  Differentiated Services architecture proposed in RFC 2475.
2251da177e4SLinus Torvalds	  Technical information on this method, with pointers to associated
2261da177e4SLinus Torvalds	  RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
2271da177e4SLinus Torvalds
2281da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2291da177e4SLinus Torvalds	  module will be called sch_dsmark.
2301da177e4SLinus Torvalds
2311da177e4SLinus Torvaldsconfig NET_SCH_NETEM
23252ab4ac2SThomas Graf	tristate "Network emulator (NETEM)"
233a7f7f624SMasahiro Yamada	help
2341da177e4SLinus Torvalds	  Say Y if you want to emulate network delay, loss, and packet
2351da177e4SLinus Torvalds	  re-ordering. This is often useful to simulate networks when
2361da177e4SLinus Torvalds	  testing applications or protocols.
2371da177e4SLinus Torvalds
2381da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
2391da177e4SLinus Torvalds	  will be called sch_netem.
2401da177e4SLinus Torvalds
2411da177e4SLinus Torvalds	  If unsure, say N.
2421da177e4SLinus Torvalds
24313d2a1d2SPatrick McHardyconfig NET_SCH_DRR
24413d2a1d2SPatrick McHardy	tristate "Deficit Round Robin scheduler (DRR)"
24513d2a1d2SPatrick McHardy	help
24613d2a1d2SPatrick McHardy	  Say Y here if you want to use the Deficit Round Robin (DRR) packet
24713d2a1d2SPatrick McHardy	  scheduling algorithm.
24813d2a1d2SPatrick McHardy
24913d2a1d2SPatrick McHardy	  To compile this driver as a module, choose M here: the module
25013d2a1d2SPatrick McHardy	  will be called sch_drr.
25113d2a1d2SPatrick McHardy
25213d2a1d2SPatrick McHardy	  If unsure, say N.
25313d2a1d2SPatrick McHardy
254b8970f0bSJohn Fastabendconfig NET_SCH_MQPRIO
255b8970f0bSJohn Fastabend	tristate "Multi-queue priority scheduler (MQPRIO)"
256b8970f0bSJohn Fastabend	help
257b8970f0bSJohn Fastabend	  Say Y here if you want to use the Multi-queue Priority scheduler.
258b8970f0bSJohn Fastabend	  This scheduler allows QOS to be offloaded on NICs that have support
259b8970f0bSJohn Fastabend	  for offloading QOS schedulers.
260b8970f0bSJohn Fastabend
261b8970f0bSJohn Fastabend	  To compile this driver as a module, choose M here: the module will
262b8970f0bSJohn Fastabend	  be called sch_mqprio.
263b8970f0bSJohn Fastabend
264b8970f0bSJohn Fastabend	  If unsure, say N.
265b8970f0bSJohn Fastabend
266aea5f654SNishanth Devarajanconfig NET_SCH_SKBPRIO
267aea5f654SNishanth Devarajan	tristate "SKB priority queue scheduler (SKBPRIO)"
268aea5f654SNishanth Devarajan	help
269aea5f654SNishanth Devarajan	  Say Y here if you want to use the SKB priority queue
270aea5f654SNishanth Devarajan	  scheduler. This schedules packets according to skb->priority,
271aea5f654SNishanth Devarajan	  which is useful for request packets in DoS mitigation systems such
272aea5f654SNishanth Devarajan	  as Gatekeeper.
273aea5f654SNishanth Devarajan
274aea5f654SNishanth Devarajan	  To compile this driver as a module, choose M here: the module will
275aea5f654SNishanth Devarajan	  be called sch_skbprio.
276aea5f654SNishanth Devarajan
277aea5f654SNishanth Devarajan	  If unsure, say N.
278aea5f654SNishanth Devarajan
27945e14433Sstephen hemmingerconfig NET_SCH_CHOKE
28045e14433Sstephen hemminger	tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
28145e14433Sstephen hemminger	help
28245e14433Sstephen hemminger	  Say Y here if you want to use the CHOKe packet scheduler (CHOose
28345e14433Sstephen hemminger	  and Keep for responsive flows, CHOose and Kill for unresponsive
28445e14433Sstephen hemminger	  flows). This is a variation of RED which trys to penalize flows
28545e14433Sstephen hemminger	  that monopolize the queue.
28645e14433Sstephen hemminger
28745e14433Sstephen hemminger	  To compile this code as a module, choose M here: the
28845e14433Sstephen hemminger	  module will be called sch_choke.
28945e14433Sstephen hemminger
2900545a303Sstephen hemmingerconfig NET_SCH_QFQ
2910545a303Sstephen hemminger	tristate "Quick Fair Queueing scheduler (QFQ)"
2920545a303Sstephen hemminger	help
2930545a303Sstephen hemminger	  Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ)
2940545a303Sstephen hemminger	  packet scheduling algorithm.
2950545a303Sstephen hemminger
2960545a303Sstephen hemminger	  To compile this driver as a module, choose M here: the module
2970545a303Sstephen hemminger	  will be called sch_qfq.
2980545a303Sstephen hemminger
2990545a303Sstephen hemminger	  If unsure, say N.
3000545a303Sstephen hemminger
30176e3cc12SEric Dumazetconfig NET_SCH_CODEL
30276e3cc12SEric Dumazet	tristate "Controlled Delay AQM (CODEL)"
30376e3cc12SEric Dumazet	help
30476e3cc12SEric Dumazet	  Say Y here if you want to use the Controlled Delay (CODEL)
30576e3cc12SEric Dumazet	  packet scheduling algorithm.
30676e3cc12SEric Dumazet
30776e3cc12SEric Dumazet	  To compile this driver as a module, choose M here: the module
30876e3cc12SEric Dumazet	  will be called sch_codel.
30976e3cc12SEric Dumazet
31076e3cc12SEric Dumazet	  If unsure, say N.
31176e3cc12SEric Dumazet
3124b549a2eSEric Dumazetconfig NET_SCH_FQ_CODEL
3134b549a2eSEric Dumazet	tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)"
3144b549a2eSEric Dumazet	help
3154b549a2eSEric Dumazet	  Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL)
3164b549a2eSEric Dumazet	  packet scheduling algorithm.
3174b549a2eSEric Dumazet
3184b549a2eSEric Dumazet	  To compile this driver as a module, choose M here: the module
3194b549a2eSEric Dumazet	  will be called sch_fq_codel.
3204b549a2eSEric Dumazet
3214b549a2eSEric Dumazet	  If unsure, say N.
3224b549a2eSEric Dumazet
323046f6fd5SToke Høiland-Jørgensenconfig NET_SCH_CAKE
324046f6fd5SToke Høiland-Jørgensen	tristate "Common Applications Kept Enhanced (CAKE)"
325046f6fd5SToke Høiland-Jørgensen	help
326046f6fd5SToke Høiland-Jørgensen	  Say Y here if you want to use the Common Applications Kept Enhanced
327046f6fd5SToke Høiland-Jørgensen	  (CAKE) queue management algorithm.
328046f6fd5SToke Høiland-Jørgensen
329046f6fd5SToke Høiland-Jørgensen	  To compile this driver as a module, choose M here: the module
330046f6fd5SToke Høiland-Jørgensen	  will be called sch_cake.
331046f6fd5SToke Høiland-Jørgensen
332046f6fd5SToke Høiland-Jørgensen	  If unsure, say N.
333046f6fd5SToke Høiland-Jørgensen
334afe4fd06SEric Dumazetconfig NET_SCH_FQ
335afe4fd06SEric Dumazet	tristate "Fair Queue"
336afe4fd06SEric Dumazet	help
337afe4fd06SEric Dumazet	  Say Y here if you want to use the FQ packet scheduling algorithm.
338afe4fd06SEric Dumazet
339afe4fd06SEric Dumazet	  FQ does flow separation, and is able to respect pacing requirements
340afe4fd06SEric Dumazet	  set by TCP stack into sk->sk_pacing_rate (for localy generated
341afe4fd06SEric Dumazet	  traffic)
342afe4fd06SEric Dumazet
343afe4fd06SEric Dumazet	  To compile this driver as a module, choose M here: the module
344afe4fd06SEric Dumazet	  will be called sch_fq.
345afe4fd06SEric Dumazet
346afe4fd06SEric Dumazet	  If unsure, say N.
347afe4fd06SEric Dumazet
34810239edfSTerry Lamconfig NET_SCH_HHF
34910239edfSTerry Lam	tristate "Heavy-Hitter Filter (HHF)"
35010239edfSTerry Lam	help
35110239edfSTerry Lam	  Say Y here if you want to use the Heavy-Hitter Filter (HHF)
35210239edfSTerry Lam	  packet scheduling algorithm.
35310239edfSTerry Lam
35410239edfSTerry Lam	  To compile this driver as a module, choose M here: the module
35510239edfSTerry Lam	  will be called sch_hhf.
35610239edfSTerry Lam
357d4b36210SVijay Subramanianconfig NET_SCH_PIE
358d4b36210SVijay Subramanian	tristate "Proportional Integral controller Enhanced (PIE) scheduler"
359d4b36210SVijay Subramanian	help
360d4b36210SVijay Subramanian	  Say Y here if you want to use the Proportional Integral controller
361d4b36210SVijay Subramanian	  Enhanced scheduler packet scheduling algorithm.
3621f8389bfSLeslie Monis	  For more information, please see https://tools.ietf.org/html/rfc8033
363d4b36210SVijay Subramanian
364d4b36210SVijay Subramanian	  To compile this driver as a module, choose M here: the module
365d4b36210SVijay Subramanian	  will be called sch_pie.
366d4b36210SVijay Subramanian
367d4b36210SVijay Subramanian	  If unsure, say N.
368d4b36210SVijay Subramanian
369ec97ecf1SMohit P. Tahilianiconfig NET_SCH_FQ_PIE
370ec97ecf1SMohit P. Tahiliani	depends on NET_SCH_PIE
371ec97ecf1SMohit P. Tahiliani	tristate "Flow Queue Proportional Integral controller Enhanced (FQ-PIE)"
372ec97ecf1SMohit P. Tahiliani	help
373ec97ecf1SMohit P. Tahiliani	  Say Y here if you want to use the Flow Queue Proportional Integral
374ec97ecf1SMohit P. Tahiliani	  controller Enhanced (FQ-PIE) packet scheduling algorithm.
375ec97ecf1SMohit P. Tahiliani	  For more information, please see https://tools.ietf.org/html/rfc8033
376ec97ecf1SMohit P. Tahiliani
377ec97ecf1SMohit P. Tahiliani	  To compile this driver as a module, choose M here: the module
378ec97ecf1SMohit P. Tahiliani	  will be called sch_fq_pie.
379ec97ecf1SMohit P. Tahiliani
380ec97ecf1SMohit P. Tahiliani	  If unsure, say N.
381ec97ecf1SMohit P. Tahiliani
3821da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
3831f211a1bSDaniel Borkmann	tristate "Ingress/classifier-action Qdisc"
38472eb7bd2SPatrick McHardy	depends on NET_CLS_ACT
3851cf51900SPablo Neira	select NET_INGRESS
3861f211a1bSDaniel Borkmann	select NET_EGRESS
387a7f7f624SMasahiro Yamada	help
3881f211a1bSDaniel Borkmann	  Say Y here if you want to use classifiers for incoming and/or outgoing
3891f211a1bSDaniel Borkmann	  packets. This qdisc doesn't do anything else besides running classifiers,
3901f211a1bSDaniel Borkmann	  which can also have actions attached to them. In case of outgoing packets,
3911f211a1bSDaniel Borkmann	  classifiers that this qdisc holds are executed in the transmit path
3921f211a1bSDaniel Borkmann	  before real enqueuing to an egress qdisc happens.
3931f211a1bSDaniel Borkmann
3941da177e4SLinus Torvalds	  If unsure, say Y.
3951da177e4SLinus Torvalds
3961f211a1bSDaniel Borkmann	  To compile this code as a module, choose M here: the module will be
3971f211a1bSDaniel Borkmann	  called sch_ingress with alias of sch_clsact.
3981da177e4SLinus Torvalds
399c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG
400c3059be1SShriram Rajagopalan	tristate "Plug network traffic until release (PLUG)"
401a7f7f624SMasahiro Yamada	help
402c3059be1SShriram Rajagopalan
403c3059be1SShriram Rajagopalan	  This queuing discipline allows userspace to plug/unplug a network
404c3059be1SShriram Rajagopalan	  output queue, using the netlink interface.  When it receives an
405c3059be1SShriram Rajagopalan	  enqueue command it inserts a plug into the outbound queue that
406c3059be1SShriram Rajagopalan	  causes following packets to enqueue until a dequeue command arrives
407c3059be1SShriram Rajagopalan	  over netlink, causing the plug to be removed and resuming the normal
408c3059be1SShriram Rajagopalan	  packet flow.
409c3059be1SShriram Rajagopalan
410c3059be1SShriram Rajagopalan	  This module also provides a generic "network output buffering"
411c3059be1SShriram Rajagopalan	  functionality (aka output commit), wherein upon arrival of a dequeue
412c3059be1SShriram Rajagopalan	  command, only packets up to the first plug are released for delivery.
413c3059be1SShriram Rajagopalan	  The Remus HA project uses this module to enable speculative execution
414c3059be1SShriram Rajagopalan	  of virtual machines by allowing the generated network output to be rolled
415c3059be1SShriram Rajagopalan	  back if needed.
416c3059be1SShriram Rajagopalan
4175d330cddSAndrew Shewmaker	  For more information, please refer to <http://wiki.xenproject.org/wiki/Remus>
418c3059be1SShriram Rajagopalan
419c3059be1SShriram Rajagopalan	  Say Y here if you are using this kernel for Xen dom0 and
420c3059be1SShriram Rajagopalan	  want to protect Xen guests with Remus.
421c3059be1SShriram Rajagopalan
422c3059be1SShriram Rajagopalan	  To compile this code as a module, choose M here: the
423c3059be1SShriram Rajagopalan	  module will be called sch_plug.
424c3059be1SShriram Rajagopalan
425dcc68b4dSPetr Machataconfig NET_SCH_ETS
426dcc68b4dSPetr Machata	tristate "Enhanced transmission selection scheduler (ETS)"
427dcc68b4dSPetr Machata	help
428dcc68b4dSPetr Machata          The Enhanced Transmission Selection scheduler is a classful
429dcc68b4dSPetr Machata          queuing discipline that merges functionality of PRIO and DRR
430dcc68b4dSPetr Machata          qdiscs in one scheduler. ETS makes it easy to configure a set of
431dcc68b4dSPetr Machata          strict and bandwidth-sharing bands to implement the transmission
432dcc68b4dSPetr Machata          selection described in 802.1Qaz.
433dcc68b4dSPetr Machata
434dcc68b4dSPetr Machata	  Say Y here if you want to use the ETS packet scheduling
435dcc68b4dSPetr Machata	  algorithm.
436dcc68b4dSPetr Machata
437dcc68b4dSPetr Machata	  To compile this driver as a module, choose M here: the module
438dcc68b4dSPetr Machata	  will be called sch_ets.
439dcc68b4dSPetr Machata
440dcc68b4dSPetr Machata	  If unsure, say N.
441dcc68b4dSPetr Machata
4428ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT
4438ea3e439Sstephen hemminger	bool "Allow override default queue discipline"
444a7f7f624SMasahiro Yamada	help
4458ea3e439Sstephen hemminger	  Support for selection of default queuing discipline.
4468ea3e439Sstephen hemminger
4478ea3e439Sstephen hemminger	  Nearly all users can safely say no here, and the default
4488ea3e439Sstephen hemminger	  of pfifo_fast will be used. Many distributions already set
4498ea3e439Sstephen hemminger	  the default value via /proc/sys/net/core/default_qdisc.
4508ea3e439Sstephen hemminger
4518ea3e439Sstephen hemminger	  If unsure, say N.
4528ea3e439Sstephen hemminger
4538ea3e439Sstephen hemmingerif NET_SCH_DEFAULT
4548ea3e439Sstephen hemminger
4558ea3e439Sstephen hemmingerchoice
4568ea3e439Sstephen hemminger	prompt "Default queuing discipline"
4578ea3e439Sstephen hemminger	default DEFAULT_PFIFO_FAST
4588ea3e439Sstephen hemminger	help
4598ea3e439Sstephen hemminger	  Select the queueing discipline that will be used by default
4608ea3e439Sstephen hemminger	  for all network devices.
4618ea3e439Sstephen hemminger
4628ea3e439Sstephen hemminger	config DEFAULT_FQ
4638ea3e439Sstephen hemminger		bool "Fair Queue" if NET_SCH_FQ
4648ea3e439Sstephen hemminger
4658ea3e439Sstephen hemminger	config DEFAULT_CODEL
4668ea3e439Sstephen hemminger		bool "Controlled Delay" if NET_SCH_CODEL
4678ea3e439Sstephen hemminger
4688ea3e439Sstephen hemminger	config DEFAULT_FQ_CODEL
4698ea3e439Sstephen hemminger		bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL
4708ea3e439Sstephen hemminger
471*b97e9d9dSDanny Lin	config DEFAULT_FQ_PIE
472*b97e9d9dSDanny Lin		bool "Flow Queue Proportional Integral controller Enhanced" if NET_SCH_FQ_PIE
473*b97e9d9dSDanny Lin
4748ea3e439Sstephen hemminger	config DEFAULT_SFQ
4758ea3e439Sstephen hemminger		bool "Stochastic Fair Queue" if NET_SCH_SFQ
4768ea3e439Sstephen hemminger
4778ea3e439Sstephen hemminger	config DEFAULT_PFIFO_FAST
4788ea3e439Sstephen hemminger		bool "Priority FIFO Fast"
4798ea3e439Sstephen hemmingerendchoice
4808ea3e439Sstephen hemminger
4818ea3e439Sstephen hemmingerconfig DEFAULT_NET_SCH
4828ea3e439Sstephen hemminger	string
4838ea3e439Sstephen hemminger	default "pfifo_fast" if DEFAULT_PFIFO_FAST
4848ea3e439Sstephen hemminger	default "fq" if DEFAULT_FQ
4858ea3e439Sstephen hemminger	default "fq_codel" if DEFAULT_FQ_CODEL
486*b97e9d9dSDanny Lin	default "fq_pie" if DEFAULT_FQ_PIE
4878ea3e439Sstephen hemminger	default "sfq" if DEFAULT_SFQ
4888ea3e439Sstephen hemminger	default "pfifo_fast"
4898ea3e439Sstephen hemmingerendif
4908ea3e439Sstephen hemminger
49152ab4ac2SThomas Grafcomment "Classification"
4921da177e4SLinus Torvalds
4931da177e4SLinus Torvaldsconfig NET_CLS
4946341e62bSChristoph Jaeger	bool
4951da177e4SLinus Torvalds
4961da177e4SLinus Torvaldsconfig NET_CLS_BASIC
49752ab4ac2SThomas Graf	tristate "Elementary classification (BASIC)"
49852ab4ac2SThomas Graf	select NET_CLS
499a7f7f624SMasahiro Yamada	help
5001da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
5011da177e4SLinus Torvalds	  only extended matches and actions.
5021da177e4SLinus Torvalds
5031da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5041da177e4SLinus Torvalds	  module will be called cls_basic.
5051da177e4SLinus Torvalds
5061da177e4SLinus Torvaldsconfig NET_CLS_TCINDEX
50752ab4ac2SThomas Graf	tristate "Traffic-Control Index (TCINDEX)"
50852ab4ac2SThomas Graf	select NET_CLS
509a7f7f624SMasahiro Yamada	help
51052ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
51152ab4ac2SThomas Graf	  traffic control indices. You will want this feature if you want
51252ab4ac2SThomas Graf	  to implement Differentiated Services together with DSMARK.
5131da177e4SLinus Torvalds
5141da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5151da177e4SLinus Torvalds	  module will be called cls_tcindex.
5161da177e4SLinus Torvalds
5171da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
51852ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
519034cfe48SRandy Dunlap	depends on INET
520c7066f70SPatrick McHardy	select IP_ROUTE_CLASSID
52152ab4ac2SThomas Graf	select NET_CLS
522a7f7f624SMasahiro Yamada	help
52352ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
52452ab4ac2SThomas Graf	  according to the route table entry they matched.
5251da177e4SLinus Torvalds
5261da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5271da177e4SLinus Torvalds	  module will be called cls_route.
5281da177e4SLinus Torvalds
5291da177e4SLinus Torvaldsconfig NET_CLS_FW
53052ab4ac2SThomas Graf	tristate "Netfilter mark (FW)"
53152ab4ac2SThomas Graf	select NET_CLS
532a7f7f624SMasahiro Yamada	help
53352ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
53452ab4ac2SThomas Graf	  according to netfilter/firewall marks.
5351da177e4SLinus Torvalds
5361da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5371da177e4SLinus Torvalds	  module will be called cls_fw.
5381da177e4SLinus Torvalds
5391da177e4SLinus Torvaldsconfig NET_CLS_U32
54052ab4ac2SThomas Graf	tristate "Universal 32bit comparisons w/ hashing (U32)"
54152ab4ac2SThomas Graf	select NET_CLS
542a7f7f624SMasahiro Yamada	help
5433539c272SMatt LaPlante	  Say Y here to be able to classify packets using a universal
54452ab4ac2SThomas Graf	  32bit pieces based comparison scheme.
5451da177e4SLinus Torvalds
5461da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5471da177e4SLinus Torvalds	  module will be called cls_u32.
5481da177e4SLinus Torvalds
5491da177e4SLinus Torvaldsconfig CLS_U32_PERF
55052ab4ac2SThomas Graf	bool "Performance counters support"
5511da177e4SLinus Torvalds	depends on NET_CLS_U32
552a7f7f624SMasahiro Yamada	help
55352ab4ac2SThomas Graf	  Say Y here to make u32 gather additional statistics useful for
55452ab4ac2SThomas Graf	  fine tuning u32 classifiers.
5551da177e4SLinus Torvalds
5561da177e4SLinus Torvaldsconfig CLS_U32_MARK
55752ab4ac2SThomas Graf	bool "Netfilter marks support"
55882e91ffeSThomas Graf	depends on NET_CLS_U32
559a7f7f624SMasahiro Yamada	help
56052ab4ac2SThomas Graf	  Say Y here to be able to use netfilter marks as u32 key.
5611da177e4SLinus Torvalds
5621da177e4SLinus Torvaldsconfig NET_CLS_RSVP
56352ab4ac2SThomas Graf	tristate "IPv4 Resource Reservation Protocol (RSVP)"
56452ab4ac2SThomas Graf	select NET_CLS
565a7f7f624SMasahiro Yamada	help
5661da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
5671da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
5681da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
5691da177e4SLinus Torvalds
5701da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
5711da177e4SLinus Torvalds	  on their RSVP requests.
5721da177e4SLinus Torvalds
5731da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5741da177e4SLinus Torvalds	  module will be called cls_rsvp.
5751da177e4SLinus Torvalds
5761da177e4SLinus Torvaldsconfig NET_CLS_RSVP6
57752ab4ac2SThomas Graf	tristate "IPv6 Resource Reservation Protocol (RSVP6)"
57852ab4ac2SThomas Graf	select NET_CLS
579a7f7f624SMasahiro Yamada	help
5801da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
5811da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
5821da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
5831da177e4SLinus Torvalds
5841da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
58599acaeb9SGabriel Craciunescu	  on their RSVP requests and you are using the IPv6 protocol.
5861da177e4SLinus Torvalds
5871da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5881da177e4SLinus Torvalds	  module will be called cls_rsvp6.
5891da177e4SLinus Torvalds
590e5dfb815SPatrick McHardyconfig NET_CLS_FLOW
591e5dfb815SPatrick McHardy	tristate "Flow classifier"
592e5dfb815SPatrick McHardy	select NET_CLS
593a7f7f624SMasahiro Yamada	help
594e5dfb815SPatrick McHardy	  If you say Y here, you will be able to classify packets based on
595e5dfb815SPatrick McHardy	  a configurable combination of packet keys. This is mostly useful
596e5dfb815SPatrick McHardy	  in combination with SFQ.
597e5dfb815SPatrick McHardy
598e5dfb815SPatrick McHardy	  To compile this code as a module, choose M here: the
599e5dfb815SPatrick McHardy	  module will be called cls_flow.
600e5dfb815SPatrick McHardy
601f4009237SThomas Grafconfig NET_CLS_CGROUP
6028e039d84SBen Blum	tristate "Control Group Classifier"
603f4009237SThomas Graf	select NET_CLS
604fe1217c4SDaniel Borkmann	select CGROUP_NET_CLASSID
605f4009237SThomas Graf	depends on CGROUPS
606a7f7f624SMasahiro Yamada	help
607f4009237SThomas Graf	  Say Y here if you want to classify packets based on the control
608f4009237SThomas Graf	  cgroup of their process.
609f4009237SThomas Graf
6108e039d84SBen Blum	  To compile this code as a module, choose M here: the
6118e039d84SBen Blum	  module will be called cls_cgroup.
6128e039d84SBen Blum
6137d1d65cbSDaniel Borkmannconfig NET_CLS_BPF
6147d1d65cbSDaniel Borkmann	tristate "BPF-based classifier"
6157d1d65cbSDaniel Borkmann	select NET_CLS
616a7f7f624SMasahiro Yamada	help
6177d1d65cbSDaniel Borkmann	  If you say Y here, you will be able to classify packets based on
6187d1d65cbSDaniel Borkmann	  programmable BPF (JIT'ed) filters as an alternative to ematches.
6197d1d65cbSDaniel Borkmann
6207d1d65cbSDaniel Borkmann	  To compile this code as a module, choose M here: the module will
6217d1d65cbSDaniel Borkmann	  be called cls_bpf.
6227d1d65cbSDaniel Borkmann
62377b9900eSJiri Pirkoconfig NET_CLS_FLOWER
62477b9900eSJiri Pirko	tristate "Flower classifier"
62577b9900eSJiri Pirko	select NET_CLS
626a7f7f624SMasahiro Yamada	help
62777b9900eSJiri Pirko	  If you say Y here, you will be able to classify packets based on
62877b9900eSJiri Pirko	  a configurable combination of packet keys and masks.
62977b9900eSJiri Pirko
63077b9900eSJiri Pirko	  To compile this code as a module, choose M here: the module will
63177b9900eSJiri Pirko	  be called cls_flower.
63277b9900eSJiri Pirko
633bf3994d2SJiri Pirkoconfig NET_CLS_MATCHALL
634bf3994d2SJiri Pirko	tristate "Match-all classifier"
635bf3994d2SJiri Pirko	select NET_CLS
636a7f7f624SMasahiro Yamada	help
637bf3994d2SJiri Pirko	  If you say Y here, you will be able to classify packets based on
638bf3994d2SJiri Pirko	  nothing. Every packet will match.
639bf3994d2SJiri Pirko
640bf3994d2SJiri Pirko	  To compile this code as a module, choose M here: the module will
641bf3994d2SJiri Pirko	  be called cls_matchall.
642bf3994d2SJiri Pirko
6431da177e4SLinus Torvaldsconfig NET_EMATCH
6441da177e4SLinus Torvalds	bool "Extended Matches"
64552ab4ac2SThomas Graf	select NET_CLS
646a7f7f624SMasahiro Yamada	help
6471da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
6481da177e4SLinus Torvalds	  and select the extended matches below.
6491da177e4SLinus Torvalds
6501da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
65152ab4ac2SThomas Graf	  a separate classifier for.
6521da177e4SLinus Torvalds
65352ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
6541da177e4SLinus Torvalds	  extended matches.
6551da177e4SLinus Torvalds
6561da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
6571da177e4SLinus Torvalds	int "Stack size"
6581da177e4SLinus Torvalds	depends on NET_EMATCH
6591da177e4SLinus Torvalds	default "32"
660a7f7f624SMasahiro Yamada	help
6611da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
6621da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
663b824979aSThomas Graf	  encapsulated precedences. Every level requires 4 bytes of additional
6641da177e4SLinus Torvalds	  stack space.
6651da177e4SLinus Torvalds
6661da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
6671da177e4SLinus Torvalds	tristate "Simple packet data comparison"
6681da177e4SLinus Torvalds	depends on NET_EMATCH
669a7f7f624SMasahiro Yamada	help
6701da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6711da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
6721da177e4SLinus Torvalds
6731da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6741da177e4SLinus Torvalds	  module will be called em_cmp.
6751da177e4SLinus Torvalds
6761da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
6771da177e4SLinus Torvalds	tristate "Multi byte comparison"
6781da177e4SLinus Torvalds	depends on NET_EMATCH
679a7f7f624SMasahiro Yamada	help
6801da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6811da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
6821da177e4SLinus Torvalds
6831da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6841da177e4SLinus Torvalds	  module will be called em_nbyte.
6851da177e4SLinus Torvalds
6861da177e4SLinus Torvaldsconfig NET_EMATCH_U32
68752ab4ac2SThomas Graf	tristate "U32 key"
6881da177e4SLinus Torvalds	depends on NET_EMATCH
689a7f7f624SMasahiro Yamada	help
6901da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
6911da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
6921da177e4SLinus Torvalds
6931da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6941da177e4SLinus Torvalds	  module will be called em_u32.
6951da177e4SLinus Torvalds
6961da177e4SLinus Torvaldsconfig NET_EMATCH_META
6971da177e4SLinus Torvalds	tristate "Metadata"
6981da177e4SLinus Torvalds	depends on NET_EMATCH
699a7f7f624SMasahiro Yamada	help
700bb7e8c5aSAdrian Bunk	  Say Y here if you want to be able to classify packets based on
7011da177e4SLinus Torvalds	  metadata such as load average, netfilter attributes, socket
7021da177e4SLinus Torvalds	  attributes and routing decisions.
7031da177e4SLinus Torvalds
7041da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
7051da177e4SLinus Torvalds	  module will be called em_meta.
7061da177e4SLinus Torvalds
707d675c989SThomas Grafconfig NET_EMATCH_TEXT
708d675c989SThomas Graf	tristate "Textsearch"
709d675c989SThomas Graf	depends on NET_EMATCH
710f2d368faSDavid S. Miller	select TEXTSEARCH
711f7704347SDavid S. Miller	select TEXTSEARCH_KMP
71229cb9f9cSDavid S. Miller	select TEXTSEARCH_BM
713f7704347SDavid S. Miller	select TEXTSEARCH_FSM
714a7f7f624SMasahiro Yamada	help
71552ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
716f7704347SDavid S. Miller	  textsearch comparisons.
717d675c989SThomas Graf
718d675c989SThomas Graf	  To compile this code as a module, choose M here: the
719d675c989SThomas Graf	  module will be called em_text.
720d675c989SThomas Graf
721f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID
722f057bbb6SRostislav Lisovy	tristate "CAN Identifier"
723a303fbf3SMarc Kleine-Budde	depends on NET_EMATCH && (CAN=y || CAN=m)
724a7f7f624SMasahiro Yamada	help
725f057bbb6SRostislav Lisovy	  Say Y here if you want to be able to classify CAN frames based
726f057bbb6SRostislav Lisovy	  on CAN Identifier.
727f057bbb6SRostislav Lisovy
728f057bbb6SRostislav Lisovy	  To compile this code as a module, choose M here: the
729f057bbb6SRostislav Lisovy	  module will be called em_canid.
730f057bbb6SRostislav Lisovy
7316d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET
7326d4fa852SFlorian Westphal	tristate "IPset"
7336d4fa852SFlorian Westphal	depends on NET_EMATCH && IP_SET
734a7f7f624SMasahiro Yamada	help
7356d4fa852SFlorian Westphal	  Say Y here if you want to be able to classify packets based on
7366d4fa852SFlorian Westphal	  ipset membership.
7376d4fa852SFlorian Westphal
7386d4fa852SFlorian Westphal	  To compile this code as a module, choose M here: the
7396d4fa852SFlorian Westphal	  module will be called em_ipset.
7406d4fa852SFlorian Westphal
741ccc007e4SEyal Birgerconfig NET_EMATCH_IPT
742ccc007e4SEyal Birger	tristate "IPtables Matches"
743ccc007e4SEyal Birger	depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES
744a7f7f624SMasahiro Yamada	help
745ccc007e4SEyal Birger	  Say Y here to be able to classify packets based on iptables
746ccc007e4SEyal Birger	  matches.
747ccc007e4SEyal Birger	  Current supported match is "policy" which allows packet classification
748ccc007e4SEyal Birger	  based on IPsec policy that was used during decapsulation
749ccc007e4SEyal Birger
750ccc007e4SEyal Birger	  To compile this code as a module, choose M here: the
751ccc007e4SEyal Birger	  module will be called em_ipt.
752ccc007e4SEyal Birger
7531da177e4SLinus Torvaldsconfig NET_CLS_ACT
75452ab4ac2SThomas Graf	bool "Actions"
7558ec1507dSJiri Pirko	select NET_CLS
756a7f7f624SMasahiro Yamada	help
75752ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
75852ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
75952ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
76052ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
76152ab4ac2SThomas Graf
76252ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
76352ab4ac2SThomas Graf	  extended matches.
7641da177e4SLinus Torvalds
7651da177e4SLinus Torvaldsconfig NET_ACT_POLICE
76652ab4ac2SThomas Graf	tristate "Traffic Policing"
7671da177e4SLinus Torvalds	depends on NET_CLS_ACT
768a7f7f624SMasahiro Yamada	help
76952ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
77052ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
77152ab4ac2SThomas Graf	  module.
77252ab4ac2SThomas Graf
77352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
774d4ae20b3SJan Luebbe	  module will be called act_police.
7751da177e4SLinus Torvalds
7761da177e4SLinus Torvaldsconfig NET_ACT_GACT
77752ab4ac2SThomas Graf	tristate "Generic actions"
7781da177e4SLinus Torvalds	depends on NET_CLS_ACT
779a7f7f624SMasahiro Yamada	help
78052ab4ac2SThomas Graf	  Say Y here to take generic actions such as dropping and
78152ab4ac2SThomas Graf	  accepting packets.
78252ab4ac2SThomas Graf
78352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
784d4ae20b3SJan Luebbe	  module will be called act_gact.
7851da177e4SLinus Torvalds
7861da177e4SLinus Torvaldsconfig GACT_PROB
78752ab4ac2SThomas Graf	bool "Probability support"
7881da177e4SLinus Torvalds	depends on NET_ACT_GACT
789a7f7f624SMasahiro Yamada	help
79052ab4ac2SThomas Graf	  Say Y here to use the generic action randomly or deterministically.
7911da177e4SLinus Torvalds
7921da177e4SLinus Torvaldsconfig NET_ACT_MIRRED
79352ab4ac2SThomas Graf	tristate "Redirecting and Mirroring"
7941da177e4SLinus Torvalds	depends on NET_CLS_ACT
795a7f7f624SMasahiro Yamada	help
79652ab4ac2SThomas Graf	  Say Y here to allow packets to be mirrored or redirected to
79752ab4ac2SThomas Graf	  other devices.
79852ab4ac2SThomas Graf
79952ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
800d4ae20b3SJan Luebbe	  module will be called act_mirred.
8011da177e4SLinus Torvalds
8025c5670faSYotam Gigiconfig NET_ACT_SAMPLE
8035c5670faSYotam Gigi	tristate "Traffic Sampling"
8045c5670faSYotam Gigi	depends on NET_CLS_ACT
8055c5670faSYotam Gigi	select PSAMPLE
806a7f7f624SMasahiro Yamada	help
8075c5670faSYotam Gigi	  Say Y here to allow packet sampling tc action. The packet sample
8085c5670faSYotam Gigi	  action consists of statistically choosing packets and sampling
8095c5670faSYotam Gigi	  them using the psample module.
8105c5670faSYotam Gigi
8115c5670faSYotam Gigi	  To compile this code as a module, choose M here: the
8125c5670faSYotam Gigi	  module will be called act_sample.
8135c5670faSYotam Gigi
8141da177e4SLinus Torvaldsconfig NET_ACT_IPT
81552ab4ac2SThomas Graf	tristate "IPtables targets"
8161da177e4SLinus Torvalds	depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
817a7f7f624SMasahiro Yamada	help
8183539c272SMatt LaPlante	  Say Y here to be able to invoke iptables targets after successful
81952ab4ac2SThomas Graf	  classification.
82052ab4ac2SThomas Graf
82152ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
822d4ae20b3SJan Luebbe	  module will be called act_ipt.
8231da177e4SLinus Torvalds
824b4219952SHerbert Xuconfig NET_ACT_NAT
825b4219952SHerbert Xu	tristate "Stateless NAT"
826b4219952SHerbert Xu	depends on NET_CLS_ACT
827a7f7f624SMasahiro Yamada	help
828b4219952SHerbert Xu	  Say Y here to do stateless NAT on IPv4 packets.  You should use
829b4219952SHerbert Xu	  netfilter for NAT unless you know what you are doing.
830b4219952SHerbert Xu
831b4219952SHerbert Xu	  To compile this code as a module, choose M here: the
832d4ae20b3SJan Luebbe	  module will be called act_nat.
833b4219952SHerbert Xu
8341da177e4SLinus Torvaldsconfig NET_ACT_PEDIT
83552ab4ac2SThomas Graf	tristate "Packet Editing"
8361da177e4SLinus Torvalds	depends on NET_CLS_ACT
837a7f7f624SMasahiro Yamada	help
83852ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
8391da177e4SLinus Torvalds
84052ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
841d4ae20b3SJan Luebbe	  module will be called act_pedit.
8421da177e4SLinus Torvalds
843db753079SJamal Hadi Salimconfig NET_ACT_SIMP
84452ab4ac2SThomas Graf	tristate "Simple Example (Debug)"
845db753079SJamal Hadi Salim	depends on NET_CLS_ACT
846a7f7f624SMasahiro Yamada	help
84752ab4ac2SThomas Graf	  Say Y here to add a simple action for demonstration purposes.
84852ab4ac2SThomas Graf	  It is meant as an example and for debugging purposes. It will
84952ab4ac2SThomas Graf	  print a configured policy string followed by the packet count
85052ab4ac2SThomas Graf	  to the console for every packet that passes by.
851db753079SJamal Hadi Salim
85252ab4ac2SThomas Graf	  If unsure, say N.
85352ab4ac2SThomas Graf
85452ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
855d4ae20b3SJan Luebbe	  module will be called act_simple.
85652ab4ac2SThomas Graf
857ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT
858ca9b0e27SAlexander Duyck	tristate "SKB Editing"
859ca9b0e27SAlexander Duyck	depends on NET_CLS_ACT
860a7f7f624SMasahiro Yamada	help
861ca9b0e27SAlexander Duyck	  Say Y here to change skb priority or queue_mapping settings.
862ca9b0e27SAlexander Duyck
863ca9b0e27SAlexander Duyck	  If unsure, say N.
864ca9b0e27SAlexander Duyck
865ca9b0e27SAlexander Duyck	  To compile this code as a module, choose M here: the
866d4ae20b3SJan Luebbe	  module will be called act_skbedit.
867ca9b0e27SAlexander Duyck
868eb4d4065SGrégoire Baronconfig NET_ACT_CSUM
869eb4d4065SGrégoire Baron	tristate "Checksum Updating"
8707abac686SDavid S. Miller	depends on NET_CLS_ACT && INET
871ab9d226eSDavide Caratti	select LIBCRC32C
872a7f7f624SMasahiro Yamada	help
873eb4d4065SGrégoire Baron	  Say Y here to update some common checksum after some direct
874eb4d4065SGrégoire Baron	  packet alterations.
875eb4d4065SGrégoire Baron
876eb4d4065SGrégoire Baron	  To compile this code as a module, choose M here: the
877eb4d4065SGrégoire Baron	  module will be called act_csum.
878eb4d4065SGrégoire Baron
8792a2ea508SJohn Hurleyconfig NET_ACT_MPLS
8802a2ea508SJohn Hurley	tristate "MPLS manipulation"
8812a2ea508SJohn Hurley	depends on NET_CLS_ACT
8822a2ea508SJohn Hurley	help
8832a2ea508SJohn Hurley	  Say Y here to push or pop MPLS headers.
8842a2ea508SJohn Hurley
8852a2ea508SJohn Hurley	  If unsure, say N.
8862a2ea508SJohn Hurley
8872a2ea508SJohn Hurley	  To compile this code as a module, choose M here: the
8882a2ea508SJohn Hurley	  module will be called act_mpls.
8892a2ea508SJohn Hurley
890c7e2b968SJiri Pirkoconfig NET_ACT_VLAN
891c7e2b968SJiri Pirko	tristate "Vlan manipulation"
892c7e2b968SJiri Pirko	depends on NET_CLS_ACT
893a7f7f624SMasahiro Yamada	help
894c7e2b968SJiri Pirko	  Say Y here to push or pop vlan headers.
895c7e2b968SJiri Pirko
896c7e2b968SJiri Pirko	  If unsure, say N.
897c7e2b968SJiri Pirko
898c7e2b968SJiri Pirko	  To compile this code as a module, choose M here: the
899c7e2b968SJiri Pirko	  module will be called act_vlan.
900c7e2b968SJiri Pirko
901d23b8ad8SJiri Pirkoconfig NET_ACT_BPF
902d23b8ad8SJiri Pirko	tristate "BPF based action"
903d23b8ad8SJiri Pirko	depends on NET_CLS_ACT
904a7f7f624SMasahiro Yamada	help
905d23b8ad8SJiri Pirko	  Say Y here to execute BPF code on packets. The BPF code will decide
906d23b8ad8SJiri Pirko	  if the packet should be dropped or not.
907d23b8ad8SJiri Pirko
908d23b8ad8SJiri Pirko	  If unsure, say N.
909d23b8ad8SJiri Pirko
910d23b8ad8SJiri Pirko	  To compile this code as a module, choose M here: the
911d23b8ad8SJiri Pirko	  module will be called act_bpf.
912d23b8ad8SJiri Pirko
91322a5dc0eSFelix Fietkauconfig NET_ACT_CONNMARK
91422a5dc0eSFelix Fietkau	tristate "Netfilter Connection Mark Retriever"
91522a5dc0eSFelix Fietkau	depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
9162dbce096SArnd Bergmann	depends on NF_CONNTRACK && NF_CONNTRACK_MARK
917a7f7f624SMasahiro Yamada	help
91822a5dc0eSFelix Fietkau	  Say Y here to allow retrieving of conn mark
91922a5dc0eSFelix Fietkau
92022a5dc0eSFelix Fietkau	  If unsure, say N.
92122a5dc0eSFelix Fietkau
92222a5dc0eSFelix Fietkau	  To compile this code as a module, choose M here: the
92322a5dc0eSFelix Fietkau	  module will be called act_connmark.
92422a5dc0eSFelix Fietkau
92524ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO
92624ec483cSKevin 'ldir' Darbyshire-Bryant	tristate "Netfilter Connection Mark Actions"
92724ec483cSKevin 'ldir' Darbyshire-Bryant	depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
92824ec483cSKevin 'ldir' Darbyshire-Bryant	depends on NF_CONNTRACK && NF_CONNTRACK_MARK
92924ec483cSKevin 'ldir' Darbyshire-Bryant	help
93024ec483cSKevin 'ldir' Darbyshire-Bryant	  Say Y here to allow transfer of a connmark stored information.
93124ec483cSKevin 'ldir' Darbyshire-Bryant	  Current actions transfer connmark stored DSCP into
93224ec483cSKevin 'ldir' Darbyshire-Bryant	  ipv4/v6 diffserv and/or to transfer connmark to packet
93324ec483cSKevin 'ldir' Darbyshire-Bryant	  mark.  Both are useful for restoring egress based marks
93424ec483cSKevin 'ldir' Darbyshire-Bryant	  back onto ingress connections for qdisc priority mapping
93524ec483cSKevin 'ldir' Darbyshire-Bryant	  purposes.
93624ec483cSKevin 'ldir' Darbyshire-Bryant
93724ec483cSKevin 'ldir' Darbyshire-Bryant	  If unsure, say N.
93824ec483cSKevin 'ldir' Darbyshire-Bryant
93924ec483cSKevin 'ldir' Darbyshire-Bryant	  To compile this code as a module, choose M here: the
94024ec483cSKevin 'ldir' Darbyshire-Bryant	  module will be called act_ctinfo.
94124ec483cSKevin 'ldir' Darbyshire-Bryant
94286da71b5SJamal Hadi Salimconfig NET_ACT_SKBMOD
94386da71b5SJamal Hadi Salim	tristate "skb data modification action"
94486da71b5SJamal Hadi Salim	depends on NET_CLS_ACT
945a7f7f624SMasahiro Yamada	help
94686da71b5SJamal Hadi Salim	 Say Y here to allow modification of skb data
94786da71b5SJamal Hadi Salim
94886da71b5SJamal Hadi Salim	 If unsure, say N.
94986da71b5SJamal Hadi Salim
95086da71b5SJamal Hadi Salim	 To compile this code as a module, choose M here: the
95186da71b5SJamal Hadi Salim	 module will be called act_skbmod.
95286da71b5SJamal Hadi Salim
953ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE
954ef6980b6SJamal Hadi Salim	tristate "Inter-FE action based on IETF ForCES InterFE LFB"
955ef6980b6SJamal Hadi Salim	depends on NET_CLS_ACT
956295a6e06SYotam Gigi	select NET_IFE
957a7f7f624SMasahiro Yamada	help
958ef6980b6SJamal Hadi Salim	  Say Y here to allow for sourcing and terminating metadata
959ef6980b6SJamal Hadi Salim	  For details refer to netdev01 paper:
960ef6980b6SJamal Hadi Salim	  "Distributing Linux Traffic Control Classifier-Action Subsystem"
961ef6980b6SJamal Hadi Salim	   Authors: Jamal Hadi Salim and Damascene M. Joachimpillai
962ef6980b6SJamal Hadi Salim
963ef6980b6SJamal Hadi Salim	  To compile this code as a module, choose M here: the
964ef6980b6SJamal Hadi Salim	  module will be called act_ife.
965ef6980b6SJamal Hadi Salim
966d0f6dd8aSAmir Vadaiconfig NET_ACT_TUNNEL_KEY
967d0f6dd8aSAmir Vadai	tristate "IP tunnel metadata manipulation"
968d0f6dd8aSAmir Vadai	depends on NET_CLS_ACT
969a7f7f624SMasahiro Yamada	help
970d0f6dd8aSAmir Vadai	  Say Y here to set/release ip tunnel metadata.
971d0f6dd8aSAmir Vadai
972d0f6dd8aSAmir Vadai	  If unsure, say N.
973d0f6dd8aSAmir Vadai
974d0f6dd8aSAmir Vadai	  To compile this code as a module, choose M here: the
975d0f6dd8aSAmir Vadai	  module will be called act_tunnel_key.
976d0f6dd8aSAmir Vadai
977b57dc7c1SPaul Blakeyconfig NET_ACT_CT
978b57dc7c1SPaul Blakey	tristate "connection tracking tc action"
979c34b961aSPaul Blakey	depends on NET_CLS_ACT && NF_CONNTRACK && NF_NAT && NF_FLOW_TABLE
980b57dc7c1SPaul Blakey	help
981b57dc7c1SPaul Blakey	  Say Y here to allow sending the packets to conntrack module.
982b57dc7c1SPaul Blakey
983b57dc7c1SPaul Blakey	  If unsure, say N.
984b57dc7c1SPaul Blakey
985b57dc7c1SPaul Blakey	  To compile this code as a module, choose M here: the
986b57dc7c1SPaul Blakey	  module will be called act_ct.
987b57dc7c1SPaul Blakey
988a51c328dSPo Liuconfig NET_ACT_GATE
989a51c328dSPo Liu	tristate "Frame gate entry list control tc action"
990a51c328dSPo Liu	depends on NET_CLS_ACT
991a51c328dSPo Liu	help
992a51c328dSPo Liu	  Say Y here to allow to control the ingress flow to be passed at
993a51c328dSPo Liu	  specific time slot and be dropped at other specific time slot by
994a51c328dSPo Liu	  the gate entry list.
995a51c328dSPo Liu
996a51c328dSPo Liu	  If unsure, say N.
997a51c328dSPo Liu	  To compile this code as a module, choose M here: the
998a51c328dSPo Liu	  module will be called act_gate.
999a51c328dSPo Liu
1000084e2f65SJamal Hadi Salimconfig NET_IFE_SKBMARK
1001084e2f65SJamal Hadi Salim	tristate "Support to encoding decoding skb mark on IFE action"
1002084e2f65SJamal Hadi Salim	depends on NET_ACT_IFE
1003084e2f65SJamal Hadi Salim
1004200e10f4SJamal Hadi Salimconfig NET_IFE_SKBPRIO
1005200e10f4SJamal Hadi Salim	tristate "Support to encoding decoding skb prio on IFE action"
1006200e10f4SJamal Hadi Salim	depends on NET_ACT_IFE
1007200e10f4SJamal Hadi Salim
1008408fbc22SJamal Hadi Salimconfig NET_IFE_SKBTCINDEX
1009408fbc22SJamal Hadi Salim	tristate "Support to encoding decoding skb tcindex on IFE action"
1010408fbc22SJamal Hadi Salim	depends on NET_ACT_IFE
1011408fbc22SJamal Hadi Salim
101295a7233cSPaul Blakeyconfig NET_TC_SKB_EXT
101395a7233cSPaul Blakey	bool "TC recirculation support"
101495a7233cSPaul Blakey	depends on NET_CLS_ACT
101595a7233cSPaul Blakey	select SKB_EXTENSIONS
101695a7233cSPaul Blakey
101795a7233cSPaul Blakey	help
101895a7233cSPaul Blakey	  Say Y here to allow tc chain misses to continue in OvS datapath in
101995a7233cSPaul Blakey	  the correct recirc_id, and hardware chain misses to continue in
102095a7233cSPaul Blakey	  the correct chain in tc software datapath.
102195a7233cSPaul Blakey
102295a7233cSPaul Blakey	  Say N here if you won't be using tc<->ovs offload or tc chains offload.
102395a7233cSPaul Blakey
102405b8b0faSRoman Zippelendif # NET_SCHED
102505b8b0faSRoman Zippel
102685ef3e5cSRandy Dunlapconfig NET_SCH_FIFO
102785ef3e5cSRandy Dunlap	bool
1028