xref: /linux/net/sched/Kconfig (revision f11fe1dae1c46762a9a7b0dd142b6bfebe7783ff)
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
96a2e9b73SSam Ravnborg	---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)"
501da177e4SLinus Torvalds	---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)"
671da177e4SLinus Torvalds	---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)"
811da177e4SLinus Torvalds	---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
911da177e4SLinus Torvalds	---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)"
10452ab4ac2SThomas Graf	---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)"
11392651940SAlexander Duyck	---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)"
12252ab4ac2SThomas Graf	---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)"
133e13e02a3SEric Dumazet	---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)"
1441da177e4SLinus Torvalds	---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)"
1551da177e4SLinus Torvalds	---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)"
16752ab4ac2SThomas Graf	---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)"
178585d763aSVinicius Costa Gomes	---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)"
21152ab4ac2SThomas Graf	---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)"
22252ab4ac2SThomas Graf	---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)"
23352ab4ac2SThomas Graf	---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
3691da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
3701f211a1bSDaniel Borkmann	tristate "Ingress/classifier-action Qdisc"
37172eb7bd2SPatrick McHardy	depends on NET_CLS_ACT
3721cf51900SPablo Neira	select NET_INGRESS
3731f211a1bSDaniel Borkmann	select NET_EGRESS
37452ab4ac2SThomas Graf	---help---
3751f211a1bSDaniel Borkmann	  Say Y here if you want to use classifiers for incoming and/or outgoing
3761f211a1bSDaniel Borkmann	  packets. This qdisc doesn't do anything else besides running classifiers,
3771f211a1bSDaniel Borkmann	  which can also have actions attached to them. In case of outgoing packets,
3781f211a1bSDaniel Borkmann	  classifiers that this qdisc holds are executed in the transmit path
3791f211a1bSDaniel Borkmann	  before real enqueuing to an egress qdisc happens.
3801f211a1bSDaniel Borkmann
3811da177e4SLinus Torvalds	  If unsure, say Y.
3821da177e4SLinus Torvalds
3831f211a1bSDaniel Borkmann	  To compile this code as a module, choose M here: the module will be
3841f211a1bSDaniel Borkmann	  called sch_ingress with alias of sch_clsact.
3851da177e4SLinus Torvalds
386c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG
387c3059be1SShriram Rajagopalan	tristate "Plug network traffic until release (PLUG)"
388c3059be1SShriram Rajagopalan	---help---
389c3059be1SShriram Rajagopalan
390c3059be1SShriram Rajagopalan	  This queuing discipline allows userspace to plug/unplug a network
391c3059be1SShriram Rajagopalan	  output queue, using the netlink interface.  When it receives an
392c3059be1SShriram Rajagopalan	  enqueue command it inserts a plug into the outbound queue that
393c3059be1SShriram Rajagopalan	  causes following packets to enqueue until a dequeue command arrives
394c3059be1SShriram Rajagopalan	  over netlink, causing the plug to be removed and resuming the normal
395c3059be1SShriram Rajagopalan	  packet flow.
396c3059be1SShriram Rajagopalan
397c3059be1SShriram Rajagopalan	  This module also provides a generic "network output buffering"
398c3059be1SShriram Rajagopalan	  functionality (aka output commit), wherein upon arrival of a dequeue
399c3059be1SShriram Rajagopalan	  command, only packets up to the first plug are released for delivery.
400c3059be1SShriram Rajagopalan	  The Remus HA project uses this module to enable speculative execution
401c3059be1SShriram Rajagopalan	  of virtual machines by allowing the generated network output to be rolled
402c3059be1SShriram Rajagopalan	  back if needed.
403c3059be1SShriram Rajagopalan
4045d330cddSAndrew Shewmaker	  For more information, please refer to <http://wiki.xenproject.org/wiki/Remus>
405c3059be1SShriram Rajagopalan
406c3059be1SShriram Rajagopalan	  Say Y here if you are using this kernel for Xen dom0 and
407c3059be1SShriram Rajagopalan	  want to protect Xen guests with Remus.
408c3059be1SShriram Rajagopalan
409c3059be1SShriram Rajagopalan	  To compile this code as a module, choose M here: the
410c3059be1SShriram Rajagopalan	  module will be called sch_plug.
411c3059be1SShriram Rajagopalan
4128ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT
4138ea3e439Sstephen hemminger	bool "Allow override default queue discipline"
4148ea3e439Sstephen hemminger	---help---
4158ea3e439Sstephen hemminger	  Support for selection of default queuing discipline.
4168ea3e439Sstephen hemminger
4178ea3e439Sstephen hemminger	  Nearly all users can safely say no here, and the default
4188ea3e439Sstephen hemminger	  of pfifo_fast will be used. Many distributions already set
4198ea3e439Sstephen hemminger	  the default value via /proc/sys/net/core/default_qdisc.
4208ea3e439Sstephen hemminger
4218ea3e439Sstephen hemminger	  If unsure, say N.
4228ea3e439Sstephen hemminger
4238ea3e439Sstephen hemmingerif NET_SCH_DEFAULT
4248ea3e439Sstephen hemminger
4258ea3e439Sstephen hemmingerchoice
4268ea3e439Sstephen hemminger	prompt "Default queuing discipline"
4278ea3e439Sstephen hemminger	default DEFAULT_PFIFO_FAST
4288ea3e439Sstephen hemminger	help
4298ea3e439Sstephen hemminger	  Select the queueing discipline that will be used by default
4308ea3e439Sstephen hemminger	  for all network devices.
4318ea3e439Sstephen hemminger
4328ea3e439Sstephen hemminger	config DEFAULT_FQ
4338ea3e439Sstephen hemminger		bool "Fair Queue" if NET_SCH_FQ
4348ea3e439Sstephen hemminger
4358ea3e439Sstephen hemminger	config DEFAULT_CODEL
4368ea3e439Sstephen hemminger		bool "Controlled Delay" if NET_SCH_CODEL
4378ea3e439Sstephen hemminger
4388ea3e439Sstephen hemminger	config DEFAULT_FQ_CODEL
4398ea3e439Sstephen hemminger		bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL
4408ea3e439Sstephen hemminger
4418ea3e439Sstephen hemminger	config DEFAULT_SFQ
4428ea3e439Sstephen hemminger		bool "Stochastic Fair Queue" if NET_SCH_SFQ
4438ea3e439Sstephen hemminger
4448ea3e439Sstephen hemminger	config DEFAULT_PFIFO_FAST
4458ea3e439Sstephen hemminger		bool "Priority FIFO Fast"
4468ea3e439Sstephen hemmingerendchoice
4478ea3e439Sstephen hemminger
4488ea3e439Sstephen hemmingerconfig DEFAULT_NET_SCH
4498ea3e439Sstephen hemminger	string
4508ea3e439Sstephen hemminger	default "pfifo_fast" if DEFAULT_PFIFO_FAST
4518ea3e439Sstephen hemminger	default "fq" if DEFAULT_FQ
4528ea3e439Sstephen hemminger	default "fq_codel" if DEFAULT_FQ_CODEL
4538ea3e439Sstephen hemminger	default "sfq" if DEFAULT_SFQ
4548ea3e439Sstephen hemminger	default "pfifo_fast"
4558ea3e439Sstephen hemmingerendif
4568ea3e439Sstephen hemminger
45752ab4ac2SThomas Grafcomment "Classification"
4581da177e4SLinus Torvalds
4591da177e4SLinus Torvaldsconfig NET_CLS
4606341e62bSChristoph Jaeger	bool
4611da177e4SLinus Torvalds
4621da177e4SLinus Torvaldsconfig NET_CLS_BASIC
46352ab4ac2SThomas Graf	tristate "Elementary classification (BASIC)"
46452ab4ac2SThomas Graf	select NET_CLS
4651da177e4SLinus Torvalds	---help---
4661da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
4671da177e4SLinus Torvalds	  only extended matches and actions.
4681da177e4SLinus Torvalds
4691da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4701da177e4SLinus Torvalds	  module will be called cls_basic.
4711da177e4SLinus Torvalds
4721da177e4SLinus Torvaldsconfig NET_CLS_TCINDEX
47352ab4ac2SThomas Graf	tristate "Traffic-Control Index (TCINDEX)"
47452ab4ac2SThomas Graf	select NET_CLS
47552ab4ac2SThomas Graf	---help---
47652ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
47752ab4ac2SThomas Graf	  traffic control indices. You will want this feature if you want
47852ab4ac2SThomas Graf	  to implement Differentiated Services together with DSMARK.
4791da177e4SLinus Torvalds
4801da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4811da177e4SLinus Torvalds	  module will be called cls_tcindex.
4821da177e4SLinus Torvalds
4831da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
48452ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
485034cfe48SRandy Dunlap	depends on INET
486c7066f70SPatrick McHardy	select IP_ROUTE_CLASSID
48752ab4ac2SThomas Graf	select NET_CLS
48852ab4ac2SThomas Graf	---help---
48952ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
49052ab4ac2SThomas Graf	  according to the route table entry they matched.
4911da177e4SLinus Torvalds
4921da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4931da177e4SLinus Torvalds	  module will be called cls_route.
4941da177e4SLinus Torvalds
4951da177e4SLinus Torvaldsconfig NET_CLS_FW
49652ab4ac2SThomas Graf	tristate "Netfilter mark (FW)"
49752ab4ac2SThomas Graf	select NET_CLS
49852ab4ac2SThomas Graf	---help---
49952ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
50052ab4ac2SThomas Graf	  according to netfilter/firewall marks.
5011da177e4SLinus Torvalds
5021da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5031da177e4SLinus Torvalds	  module will be called cls_fw.
5041da177e4SLinus Torvalds
5051da177e4SLinus Torvaldsconfig NET_CLS_U32
50652ab4ac2SThomas Graf	tristate "Universal 32bit comparisons w/ hashing (U32)"
50752ab4ac2SThomas Graf	select NET_CLS
50852ab4ac2SThomas Graf	---help---
5093539c272SMatt LaPlante	  Say Y here to be able to classify packets using a universal
51052ab4ac2SThomas Graf	  32bit pieces based comparison scheme.
5111da177e4SLinus Torvalds
5121da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5131da177e4SLinus Torvalds	  module will be called cls_u32.
5141da177e4SLinus Torvalds
5151da177e4SLinus Torvaldsconfig CLS_U32_PERF
51652ab4ac2SThomas Graf	bool "Performance counters support"
5171da177e4SLinus Torvalds	depends on NET_CLS_U32
51852ab4ac2SThomas Graf	---help---
51952ab4ac2SThomas Graf	  Say Y here to make u32 gather additional statistics useful for
52052ab4ac2SThomas Graf	  fine tuning u32 classifiers.
5211da177e4SLinus Torvalds
5221da177e4SLinus Torvaldsconfig CLS_U32_MARK
52352ab4ac2SThomas Graf	bool "Netfilter marks support"
52482e91ffeSThomas Graf	depends on NET_CLS_U32
52552ab4ac2SThomas Graf	---help---
52652ab4ac2SThomas Graf	  Say Y here to be able to use netfilter marks as u32 key.
5271da177e4SLinus Torvalds
5281da177e4SLinus Torvaldsconfig NET_CLS_RSVP
52952ab4ac2SThomas Graf	tristate "IPv4 Resource Reservation Protocol (RSVP)"
53052ab4ac2SThomas Graf	select NET_CLS
5311da177e4SLinus Torvalds	---help---
5321da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
5331da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
5341da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
5351da177e4SLinus Torvalds
5361da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
5371da177e4SLinus Torvalds	  on their RSVP requests.
5381da177e4SLinus Torvalds
5391da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5401da177e4SLinus Torvalds	  module will be called cls_rsvp.
5411da177e4SLinus Torvalds
5421da177e4SLinus Torvaldsconfig NET_CLS_RSVP6
54352ab4ac2SThomas Graf	tristate "IPv6 Resource Reservation Protocol (RSVP6)"
54452ab4ac2SThomas Graf	select NET_CLS
5451da177e4SLinus Torvalds	---help---
5461da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
5471da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
5481da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
5491da177e4SLinus Torvalds
5501da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
55199acaeb9SGabriel Craciunescu	  on their RSVP requests and you are using the IPv6 protocol.
5521da177e4SLinus Torvalds
5531da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5541da177e4SLinus Torvalds	  module will be called cls_rsvp6.
5551da177e4SLinus Torvalds
556e5dfb815SPatrick McHardyconfig NET_CLS_FLOW
557e5dfb815SPatrick McHardy	tristate "Flow classifier"
558e5dfb815SPatrick McHardy	select NET_CLS
559e5dfb815SPatrick McHardy	---help---
560e5dfb815SPatrick McHardy	  If you say Y here, you will be able to classify packets based on
561e5dfb815SPatrick McHardy	  a configurable combination of packet keys. This is mostly useful
562e5dfb815SPatrick McHardy	  in combination with SFQ.
563e5dfb815SPatrick McHardy
564e5dfb815SPatrick McHardy	  To compile this code as a module, choose M here: the
565e5dfb815SPatrick McHardy	  module will be called cls_flow.
566e5dfb815SPatrick McHardy
567f4009237SThomas Grafconfig NET_CLS_CGROUP
5688e039d84SBen Blum	tristate "Control Group Classifier"
569f4009237SThomas Graf	select NET_CLS
570fe1217c4SDaniel Borkmann	select CGROUP_NET_CLASSID
571f4009237SThomas Graf	depends on CGROUPS
572f4009237SThomas Graf	---help---
573f4009237SThomas Graf	  Say Y here if you want to classify packets based on the control
574f4009237SThomas Graf	  cgroup of their process.
575f4009237SThomas Graf
5768e039d84SBen Blum	  To compile this code as a module, choose M here: the
5778e039d84SBen Blum	  module will be called cls_cgroup.
5788e039d84SBen Blum
5797d1d65cbSDaniel Borkmannconfig NET_CLS_BPF
5807d1d65cbSDaniel Borkmann	tristate "BPF-based classifier"
5817d1d65cbSDaniel Borkmann	select NET_CLS
5827d1d65cbSDaniel Borkmann	---help---
5837d1d65cbSDaniel Borkmann	  If you say Y here, you will be able to classify packets based on
5847d1d65cbSDaniel Borkmann	  programmable BPF (JIT'ed) filters as an alternative to ematches.
5857d1d65cbSDaniel Borkmann
5867d1d65cbSDaniel Borkmann	  To compile this code as a module, choose M here: the module will
5877d1d65cbSDaniel Borkmann	  be called cls_bpf.
5887d1d65cbSDaniel Borkmann
58977b9900eSJiri Pirkoconfig NET_CLS_FLOWER
59077b9900eSJiri Pirko	tristate "Flower classifier"
59177b9900eSJiri Pirko	select NET_CLS
59277b9900eSJiri Pirko	---help---
59377b9900eSJiri Pirko	  If you say Y here, you will be able to classify packets based on
59477b9900eSJiri Pirko	  a configurable combination of packet keys and masks.
59577b9900eSJiri Pirko
59677b9900eSJiri Pirko	  To compile this code as a module, choose M here: the module will
59777b9900eSJiri Pirko	  be called cls_flower.
59877b9900eSJiri Pirko
599bf3994d2SJiri Pirkoconfig NET_CLS_MATCHALL
600bf3994d2SJiri Pirko	tristate "Match-all classifier"
601bf3994d2SJiri Pirko	select NET_CLS
602bf3994d2SJiri Pirko	---help---
603bf3994d2SJiri Pirko	  If you say Y here, you will be able to classify packets based on
604bf3994d2SJiri Pirko	  nothing. Every packet will match.
605bf3994d2SJiri Pirko
606bf3994d2SJiri Pirko	  To compile this code as a module, choose M here: the module will
607bf3994d2SJiri Pirko	  be called cls_matchall.
608bf3994d2SJiri Pirko
6091da177e4SLinus Torvaldsconfig NET_EMATCH
6101da177e4SLinus Torvalds	bool "Extended Matches"
61152ab4ac2SThomas Graf	select NET_CLS
6121da177e4SLinus Torvalds	---help---
6131da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
6141da177e4SLinus Torvalds	  and select the extended matches below.
6151da177e4SLinus Torvalds
6161da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
61752ab4ac2SThomas Graf	  a separate classifier for.
6181da177e4SLinus Torvalds
61952ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
6201da177e4SLinus Torvalds	  extended matches.
6211da177e4SLinus Torvalds
6221da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
6231da177e4SLinus Torvalds	int "Stack size"
6241da177e4SLinus Torvalds	depends on NET_EMATCH
6251da177e4SLinus Torvalds	default "32"
6261da177e4SLinus Torvalds	---help---
6271da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
6281da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
629b824979aSThomas Graf	  encapsulated precedences. Every level requires 4 bytes of additional
6301da177e4SLinus Torvalds	  stack space.
6311da177e4SLinus Torvalds
6321da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
6331da177e4SLinus Torvalds	tristate "Simple packet data comparison"
6341da177e4SLinus Torvalds	depends on NET_EMATCH
6351da177e4SLinus Torvalds	---help---
6361da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6371da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
6381da177e4SLinus Torvalds
6391da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6401da177e4SLinus Torvalds	  module will be called em_cmp.
6411da177e4SLinus Torvalds
6421da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
6431da177e4SLinus Torvalds	tristate "Multi byte comparison"
6441da177e4SLinus Torvalds	depends on NET_EMATCH
6451da177e4SLinus Torvalds	---help---
6461da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6471da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
6481da177e4SLinus Torvalds
6491da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6501da177e4SLinus Torvalds	  module will be called em_nbyte.
6511da177e4SLinus Torvalds
6521da177e4SLinus Torvaldsconfig NET_EMATCH_U32
65352ab4ac2SThomas Graf	tristate "U32 key"
6541da177e4SLinus Torvalds	depends on NET_EMATCH
6551da177e4SLinus Torvalds	---help---
6561da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
6571da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
6581da177e4SLinus Torvalds
6591da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6601da177e4SLinus Torvalds	  module will be called em_u32.
6611da177e4SLinus Torvalds
6621da177e4SLinus Torvaldsconfig NET_EMATCH_META
6631da177e4SLinus Torvalds	tristate "Metadata"
6641da177e4SLinus Torvalds	depends on NET_EMATCH
6651da177e4SLinus Torvalds	---help---
666bb7e8c5aSAdrian Bunk	  Say Y here if you want to be able to classify packets based on
6671da177e4SLinus Torvalds	  metadata such as load average, netfilter attributes, socket
6681da177e4SLinus Torvalds	  attributes and routing decisions.
6691da177e4SLinus Torvalds
6701da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6711da177e4SLinus Torvalds	  module will be called em_meta.
6721da177e4SLinus Torvalds
673d675c989SThomas Grafconfig NET_EMATCH_TEXT
674d675c989SThomas Graf	tristate "Textsearch"
675d675c989SThomas Graf	depends on NET_EMATCH
676f2d368faSDavid S. Miller	select TEXTSEARCH
677f7704347SDavid S. Miller	select TEXTSEARCH_KMP
67829cb9f9cSDavid S. Miller	select TEXTSEARCH_BM
679f7704347SDavid S. Miller	select TEXTSEARCH_FSM
680d675c989SThomas Graf	---help---
68152ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
682f7704347SDavid S. Miller	  textsearch comparisons.
683d675c989SThomas Graf
684d675c989SThomas Graf	  To compile this code as a module, choose M here: the
685d675c989SThomas Graf	  module will be called em_text.
686d675c989SThomas Graf
687f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID
688f057bbb6SRostislav Lisovy	tristate "CAN Identifier"
689a303fbf3SMarc Kleine-Budde	depends on NET_EMATCH && (CAN=y || CAN=m)
690f057bbb6SRostislav Lisovy	---help---
691f057bbb6SRostislav Lisovy	  Say Y here if you want to be able to classify CAN frames based
692f057bbb6SRostislav Lisovy	  on CAN Identifier.
693f057bbb6SRostislav Lisovy
694f057bbb6SRostislav Lisovy	  To compile this code as a module, choose M here: the
695f057bbb6SRostislav Lisovy	  module will be called em_canid.
696f057bbb6SRostislav Lisovy
6976d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET
6986d4fa852SFlorian Westphal	tristate "IPset"
6996d4fa852SFlorian Westphal	depends on NET_EMATCH && IP_SET
7006d4fa852SFlorian Westphal	---help---
7016d4fa852SFlorian Westphal	  Say Y here if you want to be able to classify packets based on
7026d4fa852SFlorian Westphal	  ipset membership.
7036d4fa852SFlorian Westphal
7046d4fa852SFlorian Westphal	  To compile this code as a module, choose M here: the
7056d4fa852SFlorian Westphal	  module will be called em_ipset.
7066d4fa852SFlorian Westphal
707ccc007e4SEyal Birgerconfig NET_EMATCH_IPT
708ccc007e4SEyal Birger	tristate "IPtables Matches"
709ccc007e4SEyal Birger	depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES
710ccc007e4SEyal Birger	---help---
711ccc007e4SEyal Birger	  Say Y here to be able to classify packets based on iptables
712ccc007e4SEyal Birger	  matches.
713ccc007e4SEyal Birger	  Current supported match is "policy" which allows packet classification
714ccc007e4SEyal Birger	  based on IPsec policy that was used during decapsulation
715ccc007e4SEyal Birger
716ccc007e4SEyal Birger	  To compile this code as a module, choose M here: the
717ccc007e4SEyal Birger	  module will be called em_ipt.
718ccc007e4SEyal Birger
7191da177e4SLinus Torvaldsconfig NET_CLS_ACT
72052ab4ac2SThomas Graf	bool "Actions"
7218ec1507dSJiri Pirko	select NET_CLS
7221da177e4SLinus Torvalds	---help---
72352ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
72452ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
72552ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
72652ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
72752ab4ac2SThomas Graf
72852ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
72952ab4ac2SThomas Graf	  extended matches.
7301da177e4SLinus Torvalds
7311da177e4SLinus Torvaldsconfig NET_ACT_POLICE
73252ab4ac2SThomas Graf	tristate "Traffic Policing"
7331da177e4SLinus Torvalds        depends on NET_CLS_ACT
7341da177e4SLinus Torvalds        ---help---
73552ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
73652ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
73752ab4ac2SThomas Graf	  module.
73852ab4ac2SThomas Graf
73952ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
740d4ae20b3SJan Luebbe	  module will be called act_police.
7411da177e4SLinus Torvalds
7421da177e4SLinus Torvaldsconfig NET_ACT_GACT
74352ab4ac2SThomas Graf        tristate "Generic actions"
7441da177e4SLinus Torvalds        depends on NET_CLS_ACT
7451da177e4SLinus Torvalds        ---help---
74652ab4ac2SThomas Graf	  Say Y here to take generic actions such as dropping and
74752ab4ac2SThomas Graf	  accepting packets.
74852ab4ac2SThomas Graf
74952ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
750d4ae20b3SJan Luebbe	  module will be called act_gact.
7511da177e4SLinus Torvalds
7521da177e4SLinus Torvaldsconfig GACT_PROB
75352ab4ac2SThomas Graf        bool "Probability support"
7541da177e4SLinus Torvalds        depends on NET_ACT_GACT
7551da177e4SLinus Torvalds        ---help---
75652ab4ac2SThomas Graf	  Say Y here to use the generic action randomly or deterministically.
7571da177e4SLinus Torvalds
7581da177e4SLinus Torvaldsconfig NET_ACT_MIRRED
75952ab4ac2SThomas Graf        tristate "Redirecting and Mirroring"
7601da177e4SLinus Torvalds        depends on NET_CLS_ACT
7611da177e4SLinus Torvalds        ---help---
76252ab4ac2SThomas Graf	  Say Y here to allow packets to be mirrored or redirected to
76352ab4ac2SThomas Graf	  other devices.
76452ab4ac2SThomas Graf
76552ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
766d4ae20b3SJan Luebbe	  module will be called act_mirred.
7671da177e4SLinus Torvalds
7685c5670faSYotam Gigiconfig NET_ACT_SAMPLE
7695c5670faSYotam Gigi        tristate "Traffic Sampling"
7705c5670faSYotam Gigi        depends on NET_CLS_ACT
7715c5670faSYotam Gigi        select PSAMPLE
7725c5670faSYotam Gigi        ---help---
7735c5670faSYotam Gigi	  Say Y here to allow packet sampling tc action. The packet sample
7745c5670faSYotam Gigi	  action consists of statistically choosing packets and sampling
7755c5670faSYotam Gigi	  them using the psample module.
7765c5670faSYotam Gigi
7775c5670faSYotam Gigi	  To compile this code as a module, choose M here: the
7785c5670faSYotam Gigi	  module will be called act_sample.
7795c5670faSYotam Gigi
7801da177e4SLinus Torvaldsconfig NET_ACT_IPT
78152ab4ac2SThomas Graf        tristate "IPtables targets"
7821da177e4SLinus Torvalds        depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
7831da177e4SLinus Torvalds        ---help---
7843539c272SMatt LaPlante	  Say Y here to be able to invoke iptables targets after successful
78552ab4ac2SThomas Graf	  classification.
78652ab4ac2SThomas Graf
78752ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
788d4ae20b3SJan Luebbe	  module will be called act_ipt.
7891da177e4SLinus Torvalds
790b4219952SHerbert Xuconfig NET_ACT_NAT
791b4219952SHerbert Xu        tristate "Stateless NAT"
792b4219952SHerbert Xu        depends on NET_CLS_ACT
793b4219952SHerbert Xu        ---help---
794b4219952SHerbert Xu	  Say Y here to do stateless NAT on IPv4 packets.  You should use
795b4219952SHerbert Xu	  netfilter for NAT unless you know what you are doing.
796b4219952SHerbert Xu
797b4219952SHerbert Xu	  To compile this code as a module, choose M here: the
798d4ae20b3SJan Luebbe	  module will be called act_nat.
799b4219952SHerbert Xu
8001da177e4SLinus Torvaldsconfig NET_ACT_PEDIT
80152ab4ac2SThomas Graf        tristate "Packet Editing"
8021da177e4SLinus Torvalds        depends on NET_CLS_ACT
8031da177e4SLinus Torvalds        ---help---
80452ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
8051da177e4SLinus Torvalds
80652ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
807d4ae20b3SJan Luebbe	  module will be called act_pedit.
8081da177e4SLinus Torvalds
809db753079SJamal Hadi Salimconfig NET_ACT_SIMP
81052ab4ac2SThomas Graf        tristate "Simple Example (Debug)"
811db753079SJamal Hadi Salim        depends on NET_CLS_ACT
812db753079SJamal Hadi Salim        ---help---
81352ab4ac2SThomas Graf	  Say Y here to add a simple action for demonstration purposes.
81452ab4ac2SThomas Graf	  It is meant as an example and for debugging purposes. It will
81552ab4ac2SThomas Graf	  print a configured policy string followed by the packet count
81652ab4ac2SThomas Graf	  to the console for every packet that passes by.
817db753079SJamal Hadi Salim
81852ab4ac2SThomas Graf	  If unsure, say N.
81952ab4ac2SThomas Graf
82052ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
821d4ae20b3SJan Luebbe	  module will be called act_simple.
82252ab4ac2SThomas Graf
823ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT
824ca9b0e27SAlexander Duyck        tristate "SKB Editing"
825ca9b0e27SAlexander Duyck        depends on NET_CLS_ACT
826ca9b0e27SAlexander Duyck        ---help---
827ca9b0e27SAlexander Duyck	  Say Y here to change skb priority or queue_mapping settings.
828ca9b0e27SAlexander Duyck
829ca9b0e27SAlexander Duyck	  If unsure, say N.
830ca9b0e27SAlexander Duyck
831ca9b0e27SAlexander Duyck	  To compile this code as a module, choose M here: the
832d4ae20b3SJan Luebbe	  module will be called act_skbedit.
833ca9b0e27SAlexander Duyck
834eb4d4065SGrégoire Baronconfig NET_ACT_CSUM
835eb4d4065SGrégoire Baron        tristate "Checksum Updating"
8367abac686SDavid S. Miller        depends on NET_CLS_ACT && INET
837ab9d226eSDavide Caratti        select LIBCRC32C
838eb4d4065SGrégoire Baron        ---help---
839eb4d4065SGrégoire Baron	  Say Y here to update some common checksum after some direct
840eb4d4065SGrégoire Baron	  packet alterations.
841eb4d4065SGrégoire Baron
842eb4d4065SGrégoire Baron	  To compile this code as a module, choose M here: the
843eb4d4065SGrégoire Baron	  module will be called act_csum.
844eb4d4065SGrégoire Baron
8452a2ea508SJohn Hurleyconfig NET_ACT_MPLS
8462a2ea508SJohn Hurley	tristate "MPLS manipulation"
8472a2ea508SJohn Hurley	depends on NET_CLS_ACT
8482a2ea508SJohn Hurley	help
8492a2ea508SJohn Hurley	  Say Y here to push or pop MPLS headers.
8502a2ea508SJohn Hurley
8512a2ea508SJohn Hurley	  If unsure, say N.
8522a2ea508SJohn Hurley
8532a2ea508SJohn Hurley	  To compile this code as a module, choose M here: the
8542a2ea508SJohn Hurley	  module will be called act_mpls.
8552a2ea508SJohn Hurley
856c7e2b968SJiri Pirkoconfig NET_ACT_VLAN
857c7e2b968SJiri Pirko        tristate "Vlan manipulation"
858c7e2b968SJiri Pirko        depends on NET_CLS_ACT
859c7e2b968SJiri Pirko        ---help---
860c7e2b968SJiri Pirko	  Say Y here to push or pop vlan headers.
861c7e2b968SJiri Pirko
862c7e2b968SJiri Pirko	  If unsure, say N.
863c7e2b968SJiri Pirko
864c7e2b968SJiri Pirko	  To compile this code as a module, choose M here: the
865c7e2b968SJiri Pirko	  module will be called act_vlan.
866c7e2b968SJiri Pirko
867d23b8ad8SJiri Pirkoconfig NET_ACT_BPF
868d23b8ad8SJiri Pirko        tristate "BPF based action"
869d23b8ad8SJiri Pirko        depends on NET_CLS_ACT
870d23b8ad8SJiri Pirko        ---help---
871d23b8ad8SJiri Pirko	  Say Y here to execute BPF code on packets. The BPF code will decide
872d23b8ad8SJiri Pirko	  if the packet should be dropped or not.
873d23b8ad8SJiri Pirko
874d23b8ad8SJiri Pirko	  If unsure, say N.
875d23b8ad8SJiri Pirko
876d23b8ad8SJiri Pirko	  To compile this code as a module, choose M here: the
877d23b8ad8SJiri Pirko	  module will be called act_bpf.
878d23b8ad8SJiri Pirko
87922a5dc0eSFelix Fietkauconfig NET_ACT_CONNMARK
88022a5dc0eSFelix Fietkau        tristate "Netfilter Connection Mark Retriever"
88122a5dc0eSFelix Fietkau        depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
8822dbce096SArnd Bergmann        depends on NF_CONNTRACK && NF_CONNTRACK_MARK
88322a5dc0eSFelix Fietkau        ---help---
88422a5dc0eSFelix Fietkau	  Say Y here to allow retrieving of conn mark
88522a5dc0eSFelix Fietkau
88622a5dc0eSFelix Fietkau	  If unsure, say N.
88722a5dc0eSFelix Fietkau
88822a5dc0eSFelix Fietkau	  To compile this code as a module, choose M here: the
88922a5dc0eSFelix Fietkau	  module will be called act_connmark.
89022a5dc0eSFelix Fietkau
89124ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO
89224ec483cSKevin 'ldir' Darbyshire-Bryant        tristate "Netfilter Connection Mark Actions"
89324ec483cSKevin 'ldir' Darbyshire-Bryant        depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
89424ec483cSKevin 'ldir' Darbyshire-Bryant        depends on NF_CONNTRACK && NF_CONNTRACK_MARK
89524ec483cSKevin 'ldir' Darbyshire-Bryant        help
89624ec483cSKevin 'ldir' Darbyshire-Bryant	  Say Y here to allow transfer of a connmark stored information.
89724ec483cSKevin 'ldir' Darbyshire-Bryant	  Current actions transfer connmark stored DSCP into
89824ec483cSKevin 'ldir' Darbyshire-Bryant	  ipv4/v6 diffserv and/or to transfer connmark to packet
89924ec483cSKevin 'ldir' Darbyshire-Bryant	  mark.  Both are useful for restoring egress based marks
90024ec483cSKevin 'ldir' Darbyshire-Bryant	  back onto ingress connections for qdisc priority mapping
90124ec483cSKevin 'ldir' Darbyshire-Bryant	  purposes.
90224ec483cSKevin 'ldir' Darbyshire-Bryant
90324ec483cSKevin 'ldir' Darbyshire-Bryant	  If unsure, say N.
90424ec483cSKevin 'ldir' Darbyshire-Bryant
90524ec483cSKevin 'ldir' Darbyshire-Bryant	  To compile this code as a module, choose M here: the
90624ec483cSKevin 'ldir' Darbyshire-Bryant	  module will be called act_ctinfo.
90724ec483cSKevin 'ldir' Darbyshire-Bryant
90886da71b5SJamal Hadi Salimconfig NET_ACT_SKBMOD
90986da71b5SJamal Hadi Salim        tristate "skb data modification action"
91086da71b5SJamal Hadi Salim        depends on NET_CLS_ACT
91186da71b5SJamal Hadi Salim        ---help---
91286da71b5SJamal Hadi Salim         Say Y here to allow modification of skb data
91386da71b5SJamal Hadi Salim
91486da71b5SJamal Hadi Salim         If unsure, say N.
91586da71b5SJamal Hadi Salim
91686da71b5SJamal Hadi Salim         To compile this code as a module, choose M here: the
91786da71b5SJamal Hadi Salim         module will be called act_skbmod.
91886da71b5SJamal Hadi Salim
919ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE
920ef6980b6SJamal Hadi Salim        tristate "Inter-FE action based on IETF ForCES InterFE LFB"
921ef6980b6SJamal Hadi Salim        depends on NET_CLS_ACT
922295a6e06SYotam Gigi        select NET_IFE
923ef6980b6SJamal Hadi Salim        ---help---
924ef6980b6SJamal Hadi Salim	  Say Y here to allow for sourcing and terminating metadata
925ef6980b6SJamal Hadi Salim	  For details refer to netdev01 paper:
926ef6980b6SJamal Hadi Salim	  "Distributing Linux Traffic Control Classifier-Action Subsystem"
927ef6980b6SJamal Hadi Salim	   Authors: Jamal Hadi Salim and Damascene M. Joachimpillai
928ef6980b6SJamal Hadi Salim
929ef6980b6SJamal Hadi Salim	  To compile this code as a module, choose M here: the
930ef6980b6SJamal Hadi Salim	  module will be called act_ife.
931ef6980b6SJamal Hadi Salim
932d0f6dd8aSAmir Vadaiconfig NET_ACT_TUNNEL_KEY
933d0f6dd8aSAmir Vadai        tristate "IP tunnel metadata manipulation"
934d0f6dd8aSAmir Vadai        depends on NET_CLS_ACT
935d0f6dd8aSAmir Vadai        ---help---
936d0f6dd8aSAmir Vadai	  Say Y here to set/release ip tunnel metadata.
937d0f6dd8aSAmir Vadai
938d0f6dd8aSAmir Vadai	  If unsure, say N.
939d0f6dd8aSAmir Vadai
940d0f6dd8aSAmir Vadai	  To compile this code as a module, choose M here: the
941d0f6dd8aSAmir Vadai	  module will be called act_tunnel_key.
942d0f6dd8aSAmir Vadai
943b57dc7c1SPaul Blakeyconfig NET_ACT_CT
944b57dc7c1SPaul Blakey        tristate "connection tracking tc action"
945*f11fe1daSYueHaibing        depends on NET_CLS_ACT && NF_CONNTRACK && NF_NAT
946b57dc7c1SPaul Blakey        help
947b57dc7c1SPaul Blakey	  Say Y here to allow sending the packets to conntrack module.
948b57dc7c1SPaul Blakey
949b57dc7c1SPaul Blakey	  If unsure, say N.
950b57dc7c1SPaul Blakey
951b57dc7c1SPaul Blakey	  To compile this code as a module, choose M here: the
952b57dc7c1SPaul Blakey	  module will be called act_ct.
953b57dc7c1SPaul Blakey
954084e2f65SJamal Hadi Salimconfig NET_IFE_SKBMARK
955084e2f65SJamal Hadi Salim        tristate "Support to encoding decoding skb mark on IFE action"
956084e2f65SJamal Hadi Salim        depends on NET_ACT_IFE
957084e2f65SJamal Hadi Salim
958200e10f4SJamal Hadi Salimconfig NET_IFE_SKBPRIO
959200e10f4SJamal Hadi Salim        tristate "Support to encoding decoding skb prio on IFE action"
960200e10f4SJamal Hadi Salim        depends on NET_ACT_IFE
961200e10f4SJamal Hadi Salim
962408fbc22SJamal Hadi Salimconfig NET_IFE_SKBTCINDEX
963408fbc22SJamal Hadi Salim        tristate "Support to encoding decoding skb tcindex on IFE action"
964408fbc22SJamal Hadi Salim        depends on NET_ACT_IFE
965408fbc22SJamal Hadi Salim
96605b8b0faSRoman Zippelendif # NET_SCHED
96705b8b0faSRoman Zippel
96885ef3e5cSRandy Dunlapconfig NET_SCH_FIFO
96985ef3e5cSRandy Dunlap	bool
970