xref: /linux/net/sched/Kconfig (revision 7d1d65cb84e1cfacba3f54c5934194785259e0d8)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Traffic control configuration.
31da177e4SLinus Torvalds#
46a2e9b73SSam Ravnborg
585ef3e5cSRandy Dunlapmenuconfig NET_SCHED
66a2e9b73SSam Ravnborg	bool "QoS and/or fair queueing"
73c62f75aSDavid Kimdon	select NET_SCH_FIFO
86a2e9b73SSam Ravnborg	---help---
96a2e9b73SSam Ravnborg	  When the kernel has several packets to send out over a network
106a2e9b73SSam Ravnborg	  device, it has to decide which ones to send first, which ones to
1152ab4ac2SThomas Graf	  delay, and which ones to drop. This is the job of the queueing
1252ab4ac2SThomas Graf	  disciplines, several different algorithms for how to do this
136a2e9b73SSam Ravnborg	  "fairly" have been proposed.
146a2e9b73SSam Ravnborg
156a2e9b73SSam Ravnborg	  If you say N here, you will get the standard packet scheduler, which
166a2e9b73SSam Ravnborg	  is a FIFO (first come, first served). If you say Y here, you will be
176a2e9b73SSam Ravnborg	  able to choose from among several alternative algorithms which can
186a2e9b73SSam Ravnborg	  then be attached to different network devices. This is useful for
196a2e9b73SSam Ravnborg	  example if some of your network devices are real time devices that
206a2e9b73SSam Ravnborg	  need a certain minimum data flow rate, or if you need to limit the
216a2e9b73SSam Ravnborg	  maximum data flow rate for traffic which matches specified criteria.
226a2e9b73SSam Ravnborg	  This code is considered to be experimental.
236a2e9b73SSam Ravnborg
246a2e9b73SSam Ravnborg	  To administer these schedulers, you'll need the user-level utilities
256a2e9b73SSam Ravnborg	  from the package iproute2+tc at <ftp://ftp.tux.org/pub/net/ip-routing/>.
266a2e9b73SSam Ravnborg	  That package also contains some documentation; for more, check out
27c996d8b9SMichael Witten	  <http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2>.
286a2e9b73SSam Ravnborg
296a2e9b73SSam Ravnborg	  This Quality of Service (QoS) support will enable you to use
306a2e9b73SSam Ravnborg	  Differentiated Services (diffserv) and Resource Reservation Protocol
3152ab4ac2SThomas Graf	  (RSVP) on your Linux router if you also say Y to the corresponding
3252ab4ac2SThomas Graf	  classifiers below.  Documentation and software is at
3352ab4ac2SThomas Graf	  <http://diffserv.sourceforge.net/>.
346a2e9b73SSam Ravnborg
356a2e9b73SSam Ravnborg	  If you say Y here and to "/proc file system" below, you will be able
366a2e9b73SSam Ravnborg	  to read status information about packet schedulers from the file
376a2e9b73SSam Ravnborg	  /proc/net/psched.
386a2e9b73SSam Ravnborg
396a2e9b73SSam Ravnborg	  The available schedulers are listed in the following questions; you
406a2e9b73SSam Ravnborg	  can say Y to as many as you like. If unsure, say N now.
416a2e9b73SSam Ravnborg
4205b8b0faSRoman Zippelif NET_SCHED
4305b8b0faSRoman Zippel
4452ab4ac2SThomas Grafcomment "Queueing/Scheduling"
4552ab4ac2SThomas Graf
461da177e4SLinus Torvaldsconfig NET_SCH_CBQ
4752ab4ac2SThomas Graf	tristate "Class Based Queueing (CBQ)"
481da177e4SLinus Torvalds	---help---
491da177e4SLinus Torvalds	  Say Y here if you want to use the Class-Based Queueing (CBQ) packet
5052ab4ac2SThomas Graf	  scheduling algorithm. This algorithm classifies the waiting packets
5152ab4ac2SThomas Graf	  into a tree-like hierarchy of classes; the leaves of this tree are
5252ab4ac2SThomas Graf	  in turn scheduled by separate algorithms.
531da177e4SLinus Torvalds
5452ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_cbq.c> for more details.
551da177e4SLinus Torvalds
561da177e4SLinus Torvalds	  CBQ is a commonly used scheduler, so if you're unsure, you should
571da177e4SLinus Torvalds	  say Y here. Then say Y to all the queueing algorithms below that you
5852ab4ac2SThomas Graf	  want to use as leaf disciplines.
591da177e4SLinus Torvalds
601da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
611da177e4SLinus Torvalds	  module will be called sch_cbq.
621da177e4SLinus Torvalds
631da177e4SLinus Torvaldsconfig NET_SCH_HTB
6452ab4ac2SThomas Graf	tristate "Hierarchical Token Bucket (HTB)"
651da177e4SLinus Torvalds	---help---
661da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Token Buckets (HTB)
6752ab4ac2SThomas Graf	  packet scheduling algorithm. See
681da177e4SLinus Torvalds	  <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
691da177e4SLinus Torvalds	  in-depth articles.
701da177e4SLinus Torvalds
7152ab4ac2SThomas Graf	  HTB is very similar to CBQ regarding its goals however is has
721da177e4SLinus Torvalds	  different properties and different algorithm.
731da177e4SLinus Torvalds
741da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
751da177e4SLinus Torvalds	  module will be called sch_htb.
761da177e4SLinus Torvalds
771da177e4SLinus Torvaldsconfig NET_SCH_HFSC
7852ab4ac2SThomas Graf	tristate "Hierarchical Fair Service Curve (HFSC)"
791da177e4SLinus Torvalds	---help---
801da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Fair Service Curve
8152ab4ac2SThomas Graf	  (HFSC) packet scheduling algorithm.
821da177e4SLinus Torvalds
831da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
841da177e4SLinus Torvalds	  module will be called sch_hfsc.
851da177e4SLinus Torvalds
861da177e4SLinus Torvaldsconfig NET_SCH_ATM
8752ab4ac2SThomas Graf	tristate "ATM Virtual Circuits (ATM)"
8805b8b0faSRoman Zippel	depends on ATM
891da177e4SLinus Torvalds	---help---
901da177e4SLinus Torvalds	  Say Y here if you want to use the ATM pseudo-scheduler.  This
9152ab4ac2SThomas Graf	  provides a framework for invoking classifiers, which in turn
9252ab4ac2SThomas Graf	  select classes of this queuing discipline.  Each class maps
9352ab4ac2SThomas Graf	  the flow(s) it is handling to a given virtual circuit.
9452ab4ac2SThomas Graf
9599acaeb9SGabriel Craciunescu	  See the top of <file:net/sched/sch_atm.c> for more details.
961da177e4SLinus Torvalds
971da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
981da177e4SLinus Torvalds	  module will be called sch_atm.
991da177e4SLinus Torvalds
1001da177e4SLinus Torvaldsconfig NET_SCH_PRIO
10152ab4ac2SThomas Graf	tristate "Multi Band Priority Queueing (PRIO)"
10252ab4ac2SThomas Graf	---help---
1031da177e4SLinus Torvalds	  Say Y here if you want to use an n-band priority queue packet
10452ab4ac2SThomas Graf	  scheduler.
1051da177e4SLinus Torvalds
1061da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1071da177e4SLinus Torvalds	  module will be called sch_prio.
1081da177e4SLinus Torvalds
10992651940SAlexander Duyckconfig NET_SCH_MULTIQ
11092651940SAlexander Duyck	tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)"
11192651940SAlexander Duyck	---help---
11292651940SAlexander Duyck	  Say Y here if you want to use an n-band queue packet scheduler
11392651940SAlexander Duyck	  to support devices that have multiple hardware transmit queues.
11492651940SAlexander Duyck
11592651940SAlexander Duyck	  To compile this code as a module, choose M here: the
11692651940SAlexander Duyck	  module will be called sch_multiq.
11792651940SAlexander Duyck
1181da177e4SLinus Torvaldsconfig NET_SCH_RED
11952ab4ac2SThomas Graf	tristate "Random Early Detection (RED)"
12052ab4ac2SThomas Graf	---help---
1211da177e4SLinus Torvalds	  Say Y here if you want to use the Random Early Detection (RED)
12252ab4ac2SThomas Graf	  packet scheduling algorithm.
12352ab4ac2SThomas Graf
12452ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_red.c> for more details.
1251da177e4SLinus Torvalds
1261da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1271da177e4SLinus Torvalds	  module will be called sch_red.
1281da177e4SLinus Torvalds
129e13e02a3SEric Dumazetconfig NET_SCH_SFB
130e13e02a3SEric Dumazet	tristate "Stochastic Fair Blue (SFB)"
131e13e02a3SEric Dumazet	---help---
132e13e02a3SEric Dumazet	  Say Y here if you want to use the Stochastic Fair Blue (SFB)
133e13e02a3SEric Dumazet	  packet scheduling algorithm.
134e13e02a3SEric Dumazet
135e13e02a3SEric Dumazet	  See the top of <file:net/sched/sch_sfb.c> for more details.
136e13e02a3SEric Dumazet
137e13e02a3SEric Dumazet	  To compile this code as a module, choose M here: the
138e13e02a3SEric Dumazet	  module will be called sch_sfb.
139e13e02a3SEric Dumazet
1401da177e4SLinus Torvaldsconfig NET_SCH_SFQ
14152ab4ac2SThomas Graf	tristate "Stochastic Fairness Queueing (SFQ)"
1421da177e4SLinus Torvalds	---help---
1431da177e4SLinus Torvalds	  Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
14452ab4ac2SThomas Graf	  packet scheduling algorithm.
14552ab4ac2SThomas Graf
14652ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_sfq.c> for more details.
1471da177e4SLinus Torvalds
1481da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1491da177e4SLinus Torvalds	  module will be called sch_sfq.
1501da177e4SLinus Torvalds
1511da177e4SLinus Torvaldsconfig NET_SCH_TEQL
15252ab4ac2SThomas Graf	tristate "True Link Equalizer (TEQL)"
1531da177e4SLinus Torvalds	---help---
1541da177e4SLinus Torvalds	  Say Y here if you want to use the True Link Equalizer (TLE) packet
15552ab4ac2SThomas Graf	  scheduling algorithm. This queueing discipline allows the combination
15652ab4ac2SThomas Graf	  of several physical devices into one virtual device.
15752ab4ac2SThomas Graf
15852ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_teql.c> for more details.
1591da177e4SLinus Torvalds
1601da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1611da177e4SLinus Torvalds	  module will be called sch_teql.
1621da177e4SLinus Torvalds
1631da177e4SLinus Torvaldsconfig NET_SCH_TBF
16452ab4ac2SThomas Graf	tristate "Token Bucket Filter (TBF)"
16552ab4ac2SThomas Graf	---help---
16652ab4ac2SThomas Graf	  Say Y here if you want to use the Token Bucket Filter (TBF) packet
16752ab4ac2SThomas Graf	  scheduling algorithm.
16852ab4ac2SThomas Graf
16952ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_tbf.c> for more details.
1701da177e4SLinus Torvalds
1711da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1721da177e4SLinus Torvalds	  module will be called sch_tbf.
1731da177e4SLinus Torvalds
1741da177e4SLinus Torvaldsconfig NET_SCH_GRED
17552ab4ac2SThomas Graf	tristate "Generic Random Early Detection (GRED)"
17652ab4ac2SThomas Graf	---help---
1771da177e4SLinus Torvalds	  Say Y here if you want to use the Generic Random Early Detection
17820cc6befSLucas Correia Villa Real	  (GRED) packet scheduling algorithm for some of your network devices
1791da177e4SLinus Torvalds	  (see the top of <file:net/sched/sch_red.c> for details and
1801da177e4SLinus Torvalds	  references about the algorithm).
1811da177e4SLinus Torvalds
1821da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1831da177e4SLinus Torvalds	  module will be called sch_gred.
1841da177e4SLinus Torvalds
1851da177e4SLinus Torvaldsconfig NET_SCH_DSMARK
18652ab4ac2SThomas Graf	tristate "Differentiated Services marker (DSMARK)"
18752ab4ac2SThomas Graf	---help---
1881da177e4SLinus Torvalds	  Say Y if you want to schedule packets according to the
1891da177e4SLinus Torvalds	  Differentiated Services architecture proposed in RFC 2475.
1901da177e4SLinus Torvalds	  Technical information on this method, with pointers to associated
1911da177e4SLinus Torvalds	  RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
1921da177e4SLinus Torvalds
1931da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1941da177e4SLinus Torvalds	  module will be called sch_dsmark.
1951da177e4SLinus Torvalds
1961da177e4SLinus Torvaldsconfig NET_SCH_NETEM
19752ab4ac2SThomas Graf	tristate "Network emulator (NETEM)"
19852ab4ac2SThomas Graf	---help---
1991da177e4SLinus Torvalds	  Say Y if you want to emulate network delay, loss, and packet
2001da177e4SLinus Torvalds	  re-ordering. This is often useful to simulate networks when
2011da177e4SLinus Torvalds	  testing applications or protocols.
2021da177e4SLinus Torvalds
2031da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
2041da177e4SLinus Torvalds	  will be called sch_netem.
2051da177e4SLinus Torvalds
2061da177e4SLinus Torvalds	  If unsure, say N.
2071da177e4SLinus Torvalds
20813d2a1d2SPatrick McHardyconfig NET_SCH_DRR
20913d2a1d2SPatrick McHardy	tristate "Deficit Round Robin scheduler (DRR)"
21013d2a1d2SPatrick McHardy	help
21113d2a1d2SPatrick McHardy	  Say Y here if you want to use the Deficit Round Robin (DRR) packet
21213d2a1d2SPatrick McHardy	  scheduling algorithm.
21313d2a1d2SPatrick McHardy
21413d2a1d2SPatrick McHardy	  To compile this driver as a module, choose M here: the module
21513d2a1d2SPatrick McHardy	  will be called sch_drr.
21613d2a1d2SPatrick McHardy
21713d2a1d2SPatrick McHardy	  If unsure, say N.
21813d2a1d2SPatrick McHardy
219b8970f0bSJohn Fastabendconfig NET_SCH_MQPRIO
220b8970f0bSJohn Fastabend	tristate "Multi-queue priority scheduler (MQPRIO)"
221b8970f0bSJohn Fastabend	help
222b8970f0bSJohn Fastabend	  Say Y here if you want to use the Multi-queue Priority scheduler.
223b8970f0bSJohn Fastabend	  This scheduler allows QOS to be offloaded on NICs that have support
224b8970f0bSJohn Fastabend	  for offloading QOS schedulers.
225b8970f0bSJohn Fastabend
226b8970f0bSJohn Fastabend	  To compile this driver as a module, choose M here: the module will
227b8970f0bSJohn Fastabend	  be called sch_mqprio.
228b8970f0bSJohn Fastabend
229b8970f0bSJohn Fastabend	  If unsure, say N.
230b8970f0bSJohn Fastabend
23145e14433Sstephen hemmingerconfig NET_SCH_CHOKE
23245e14433Sstephen hemminger	tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
23345e14433Sstephen hemminger	help
23445e14433Sstephen hemminger	  Say Y here if you want to use the CHOKe packet scheduler (CHOose
23545e14433Sstephen hemminger	  and Keep for responsive flows, CHOose and Kill for unresponsive
23645e14433Sstephen hemminger	  flows). This is a variation of RED which trys to penalize flows
23745e14433Sstephen hemminger	  that monopolize the queue.
23845e14433Sstephen hemminger
23945e14433Sstephen hemminger	  To compile this code as a module, choose M here: the
24045e14433Sstephen hemminger	  module will be called sch_choke.
24145e14433Sstephen hemminger
2420545a303Sstephen hemmingerconfig NET_SCH_QFQ
2430545a303Sstephen hemminger	tristate "Quick Fair Queueing scheduler (QFQ)"
2440545a303Sstephen hemminger	help
2450545a303Sstephen hemminger	  Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ)
2460545a303Sstephen hemminger	  packet scheduling algorithm.
2470545a303Sstephen hemminger
2480545a303Sstephen hemminger	  To compile this driver as a module, choose M here: the module
2490545a303Sstephen hemminger	  will be called sch_qfq.
2500545a303Sstephen hemminger
2510545a303Sstephen hemminger	  If unsure, say N.
2520545a303Sstephen hemminger
25376e3cc12SEric Dumazetconfig NET_SCH_CODEL
25476e3cc12SEric Dumazet	tristate "Controlled Delay AQM (CODEL)"
25576e3cc12SEric Dumazet	help
25676e3cc12SEric Dumazet	  Say Y here if you want to use the Controlled Delay (CODEL)
25776e3cc12SEric Dumazet	  packet scheduling algorithm.
25876e3cc12SEric Dumazet
25976e3cc12SEric Dumazet	  To compile this driver as a module, choose M here: the module
26076e3cc12SEric Dumazet	  will be called sch_codel.
26176e3cc12SEric Dumazet
26276e3cc12SEric Dumazet	  If unsure, say N.
26376e3cc12SEric Dumazet
2644b549a2eSEric Dumazetconfig NET_SCH_FQ_CODEL
2654b549a2eSEric Dumazet	tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)"
2664b549a2eSEric Dumazet	help
2674b549a2eSEric Dumazet	  Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL)
2684b549a2eSEric Dumazet	  packet scheduling algorithm.
2694b549a2eSEric Dumazet
2704b549a2eSEric Dumazet	  To compile this driver as a module, choose M here: the module
2714b549a2eSEric Dumazet	  will be called sch_fq_codel.
2724b549a2eSEric Dumazet
2734b549a2eSEric Dumazet	  If unsure, say N.
2744b549a2eSEric Dumazet
275afe4fd06SEric Dumazetconfig NET_SCH_FQ
276afe4fd06SEric Dumazet	tristate "Fair Queue"
277afe4fd06SEric Dumazet	help
278afe4fd06SEric Dumazet	  Say Y here if you want to use the FQ packet scheduling algorithm.
279afe4fd06SEric Dumazet
280afe4fd06SEric Dumazet	  FQ does flow separation, and is able to respect pacing requirements
281afe4fd06SEric Dumazet	  set by TCP stack into sk->sk_pacing_rate (for localy generated
282afe4fd06SEric Dumazet	  traffic)
283afe4fd06SEric Dumazet
284afe4fd06SEric Dumazet	  To compile this driver as a module, choose M here: the module
285afe4fd06SEric Dumazet	  will be called sch_fq.
286afe4fd06SEric Dumazet
287afe4fd06SEric Dumazet	  If unsure, say N.
288afe4fd06SEric Dumazet
2891da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
2901da177e4SLinus Torvalds	tristate "Ingress Qdisc"
29172eb7bd2SPatrick McHardy	depends on NET_CLS_ACT
29252ab4ac2SThomas Graf	---help---
29352ab4ac2SThomas Graf	  Say Y here if you want to use classifiers for incoming packets.
2941da177e4SLinus Torvalds	  If unsure, say Y.
2951da177e4SLinus Torvalds
2961da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2971da177e4SLinus Torvalds	  module will be called sch_ingress.
2981da177e4SLinus Torvalds
299c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG
300c3059be1SShriram Rajagopalan	tristate "Plug network traffic until release (PLUG)"
301c3059be1SShriram Rajagopalan	---help---
302c3059be1SShriram Rajagopalan
303c3059be1SShriram Rajagopalan	  This queuing discipline allows userspace to plug/unplug a network
304c3059be1SShriram Rajagopalan	  output queue, using the netlink interface.  When it receives an
305c3059be1SShriram Rajagopalan	  enqueue command it inserts a plug into the outbound queue that
306c3059be1SShriram Rajagopalan	  causes following packets to enqueue until a dequeue command arrives
307c3059be1SShriram Rajagopalan	  over netlink, causing the plug to be removed and resuming the normal
308c3059be1SShriram Rajagopalan	  packet flow.
309c3059be1SShriram Rajagopalan
310c3059be1SShriram Rajagopalan	  This module also provides a generic "network output buffering"
311c3059be1SShriram Rajagopalan	  functionality (aka output commit), wherein upon arrival of a dequeue
312c3059be1SShriram Rajagopalan	  command, only packets up to the first plug are released for delivery.
313c3059be1SShriram Rajagopalan	  The Remus HA project uses this module to enable speculative execution
314c3059be1SShriram Rajagopalan	  of virtual machines by allowing the generated network output to be rolled
315c3059be1SShriram Rajagopalan	  back if needed.
316c3059be1SShriram Rajagopalan
317c3059be1SShriram Rajagopalan	  For more information, please refer to http://wiki.xensource.com/xenwiki/Remus
318c3059be1SShriram Rajagopalan
319c3059be1SShriram Rajagopalan	  Say Y here if you are using this kernel for Xen dom0 and
320c3059be1SShriram Rajagopalan	  want to protect Xen guests with Remus.
321c3059be1SShriram Rajagopalan
322c3059be1SShriram Rajagopalan	  To compile this code as a module, choose M here: the
323c3059be1SShriram Rajagopalan	  module will be called sch_plug.
324c3059be1SShriram Rajagopalan
32552ab4ac2SThomas Grafcomment "Classification"
3261da177e4SLinus Torvalds
3271da177e4SLinus Torvaldsconfig NET_CLS
32852ab4ac2SThomas Graf	boolean
3291da177e4SLinus Torvalds
3301da177e4SLinus Torvaldsconfig NET_CLS_BASIC
33152ab4ac2SThomas Graf	tristate "Elementary classification (BASIC)"
33252ab4ac2SThomas Graf	select NET_CLS
3331da177e4SLinus Torvalds	---help---
3341da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
3351da177e4SLinus Torvalds	  only extended matches and actions.
3361da177e4SLinus Torvalds
3371da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3381da177e4SLinus Torvalds	  module will be called cls_basic.
3391da177e4SLinus Torvalds
3401da177e4SLinus Torvaldsconfig NET_CLS_TCINDEX
34152ab4ac2SThomas Graf	tristate "Traffic-Control Index (TCINDEX)"
34252ab4ac2SThomas Graf	select NET_CLS
34352ab4ac2SThomas Graf	---help---
34452ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
34552ab4ac2SThomas Graf	  traffic control indices. You will want this feature if you want
34652ab4ac2SThomas Graf	  to implement Differentiated Services together with DSMARK.
3471da177e4SLinus Torvalds
3481da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3491da177e4SLinus Torvalds	  module will be called cls_tcindex.
3501da177e4SLinus Torvalds
3511da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
35252ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
353034cfe48SRandy Dunlap	depends on INET
354c7066f70SPatrick McHardy	select IP_ROUTE_CLASSID
35552ab4ac2SThomas Graf	select NET_CLS
35652ab4ac2SThomas Graf	---help---
35752ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
35852ab4ac2SThomas Graf	  according to the route table entry they matched.
3591da177e4SLinus Torvalds
3601da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3611da177e4SLinus Torvalds	  module will be called cls_route.
3621da177e4SLinus Torvalds
3631da177e4SLinus Torvaldsconfig NET_CLS_FW
36452ab4ac2SThomas Graf	tristate "Netfilter mark (FW)"
36552ab4ac2SThomas Graf	select NET_CLS
36652ab4ac2SThomas Graf	---help---
36752ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
36852ab4ac2SThomas Graf	  according to netfilter/firewall marks.
3691da177e4SLinus Torvalds
3701da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3711da177e4SLinus Torvalds	  module will be called cls_fw.
3721da177e4SLinus Torvalds
3731da177e4SLinus Torvaldsconfig NET_CLS_U32
37452ab4ac2SThomas Graf	tristate "Universal 32bit comparisons w/ hashing (U32)"
37552ab4ac2SThomas Graf	select NET_CLS
37652ab4ac2SThomas Graf	---help---
3773539c272SMatt LaPlante	  Say Y here to be able to classify packets using a universal
37852ab4ac2SThomas Graf	  32bit pieces based comparison scheme.
3791da177e4SLinus Torvalds
3801da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3811da177e4SLinus Torvalds	  module will be called cls_u32.
3821da177e4SLinus Torvalds
3831da177e4SLinus Torvaldsconfig CLS_U32_PERF
38452ab4ac2SThomas Graf	bool "Performance counters support"
3851da177e4SLinus Torvalds	depends on NET_CLS_U32
38652ab4ac2SThomas Graf	---help---
38752ab4ac2SThomas Graf	  Say Y here to make u32 gather additional statistics useful for
38852ab4ac2SThomas Graf	  fine tuning u32 classifiers.
3891da177e4SLinus Torvalds
3901da177e4SLinus Torvaldsconfig CLS_U32_MARK
39152ab4ac2SThomas Graf	bool "Netfilter marks support"
39282e91ffeSThomas Graf	depends on NET_CLS_U32
39352ab4ac2SThomas Graf	---help---
39452ab4ac2SThomas Graf	  Say Y here to be able to use netfilter marks as u32 key.
3951da177e4SLinus Torvalds
3961da177e4SLinus Torvaldsconfig NET_CLS_RSVP
39752ab4ac2SThomas Graf	tristate "IPv4 Resource Reservation Protocol (RSVP)"
39852ab4ac2SThomas Graf	select NET_CLS
3991da177e4SLinus Torvalds	---help---
4001da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
4011da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
4021da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
4031da177e4SLinus Torvalds
4041da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
4051da177e4SLinus Torvalds	  on their RSVP requests.
4061da177e4SLinus Torvalds
4071da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4081da177e4SLinus Torvalds	  module will be called cls_rsvp.
4091da177e4SLinus Torvalds
4101da177e4SLinus Torvaldsconfig NET_CLS_RSVP6
41152ab4ac2SThomas Graf	tristate "IPv6 Resource Reservation Protocol (RSVP6)"
41252ab4ac2SThomas Graf	select NET_CLS
4131da177e4SLinus Torvalds	---help---
4141da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
4151da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
4161da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
4171da177e4SLinus Torvalds
4181da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
41999acaeb9SGabriel Craciunescu	  on their RSVP requests and you are using the IPv6 protocol.
4201da177e4SLinus Torvalds
4211da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4221da177e4SLinus Torvalds	  module will be called cls_rsvp6.
4231da177e4SLinus Torvalds
424e5dfb815SPatrick McHardyconfig NET_CLS_FLOW
425e5dfb815SPatrick McHardy	tristate "Flow classifier"
426e5dfb815SPatrick McHardy	select NET_CLS
427e5dfb815SPatrick McHardy	---help---
428e5dfb815SPatrick McHardy	  If you say Y here, you will be able to classify packets based on
429e5dfb815SPatrick McHardy	  a configurable combination of packet keys. This is mostly useful
430e5dfb815SPatrick McHardy	  in combination with SFQ.
431e5dfb815SPatrick McHardy
432e5dfb815SPatrick McHardy	  To compile this code as a module, choose M here: the
433e5dfb815SPatrick McHardy	  module will be called cls_flow.
434e5dfb815SPatrick McHardy
435f4009237SThomas Grafconfig NET_CLS_CGROUP
4368e039d84SBen Blum	tristate "Control Group Classifier"
437f4009237SThomas Graf	select NET_CLS
438f4009237SThomas Graf	depends on CGROUPS
439f4009237SThomas Graf	---help---
440f4009237SThomas Graf	  Say Y here if you want to classify packets based on the control
441f4009237SThomas Graf	  cgroup of their process.
442f4009237SThomas Graf
4438e039d84SBen Blum	  To compile this code as a module, choose M here: the
4448e039d84SBen Blum	  module will be called cls_cgroup.
4458e039d84SBen Blum
446*7d1d65cbSDaniel Borkmannconfig NET_CLS_BPF
447*7d1d65cbSDaniel Borkmann	tristate "BPF-based classifier"
448*7d1d65cbSDaniel Borkmann	select NET_CLS
449*7d1d65cbSDaniel Borkmann	---help---
450*7d1d65cbSDaniel Borkmann	  If you say Y here, you will be able to classify packets based on
451*7d1d65cbSDaniel Borkmann	  programmable BPF (JIT'ed) filters as an alternative to ematches.
452*7d1d65cbSDaniel Borkmann
453*7d1d65cbSDaniel Borkmann	  To compile this code as a module, choose M here: the module will
454*7d1d65cbSDaniel Borkmann	  be called cls_bpf.
455*7d1d65cbSDaniel Borkmann
4561da177e4SLinus Torvaldsconfig NET_EMATCH
4571da177e4SLinus Torvalds	bool "Extended Matches"
45852ab4ac2SThomas Graf	select NET_CLS
4591da177e4SLinus Torvalds	---help---
4601da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
4611da177e4SLinus Torvalds	  and select the extended matches below.
4621da177e4SLinus Torvalds
4631da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
46452ab4ac2SThomas Graf	  a separate classifier for.
4651da177e4SLinus Torvalds
46652ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
4671da177e4SLinus Torvalds	  extended matches.
4681da177e4SLinus Torvalds
4691da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
4701da177e4SLinus Torvalds	int "Stack size"
4711da177e4SLinus Torvalds	depends on NET_EMATCH
4721da177e4SLinus Torvalds	default "32"
4731da177e4SLinus Torvalds	---help---
4741da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
4751da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
476b824979aSThomas Graf	  encapsulated precedences. Every level requires 4 bytes of additional
4771da177e4SLinus Torvalds	  stack space.
4781da177e4SLinus Torvalds
4791da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
4801da177e4SLinus Torvalds	tristate "Simple packet data comparison"
4811da177e4SLinus Torvalds	depends on NET_EMATCH
4821da177e4SLinus Torvalds	---help---
4831da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
4841da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
4851da177e4SLinus Torvalds
4861da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4871da177e4SLinus Torvalds	  module will be called em_cmp.
4881da177e4SLinus Torvalds
4891da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
4901da177e4SLinus Torvalds	tristate "Multi byte comparison"
4911da177e4SLinus Torvalds	depends on NET_EMATCH
4921da177e4SLinus Torvalds	---help---
4931da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
4941da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
4951da177e4SLinus Torvalds
4961da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4971da177e4SLinus Torvalds	  module will be called em_nbyte.
4981da177e4SLinus Torvalds
4991da177e4SLinus Torvaldsconfig NET_EMATCH_U32
50052ab4ac2SThomas Graf	tristate "U32 key"
5011da177e4SLinus Torvalds	depends on NET_EMATCH
5021da177e4SLinus Torvalds	---help---
5031da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
5041da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
5051da177e4SLinus Torvalds
5061da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5071da177e4SLinus Torvalds	  module will be called em_u32.
5081da177e4SLinus Torvalds
5091da177e4SLinus Torvaldsconfig NET_EMATCH_META
5101da177e4SLinus Torvalds	tristate "Metadata"
5111da177e4SLinus Torvalds	depends on NET_EMATCH
5121da177e4SLinus Torvalds	---help---
513bb7e8c5aSAdrian Bunk	  Say Y here if you want to be able to classify packets based on
5141da177e4SLinus Torvalds	  metadata such as load average, netfilter attributes, socket
5151da177e4SLinus Torvalds	  attributes and routing decisions.
5161da177e4SLinus Torvalds
5171da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5181da177e4SLinus Torvalds	  module will be called em_meta.
5191da177e4SLinus Torvalds
520d675c989SThomas Grafconfig NET_EMATCH_TEXT
521d675c989SThomas Graf	tristate "Textsearch"
522d675c989SThomas Graf	depends on NET_EMATCH
523f2d368faSDavid S. Miller	select TEXTSEARCH
524f7704347SDavid S. Miller	select TEXTSEARCH_KMP
52529cb9f9cSDavid S. Miller	select TEXTSEARCH_BM
526f7704347SDavid S. Miller	select TEXTSEARCH_FSM
527d675c989SThomas Graf	---help---
52852ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
529f7704347SDavid S. Miller	  textsearch comparisons.
530d675c989SThomas Graf
531d675c989SThomas Graf	  To compile this code as a module, choose M here: the
532d675c989SThomas Graf	  module will be called em_text.
533d675c989SThomas Graf
534f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID
535f057bbb6SRostislav Lisovy	tristate "CAN Identifier"
536a303fbf3SMarc Kleine-Budde	depends on NET_EMATCH && (CAN=y || CAN=m)
537f057bbb6SRostislav Lisovy	---help---
538f057bbb6SRostislav Lisovy	  Say Y here if you want to be able to classify CAN frames based
539f057bbb6SRostislav Lisovy	  on CAN Identifier.
540f057bbb6SRostislav Lisovy
541f057bbb6SRostislav Lisovy	  To compile this code as a module, choose M here: the
542f057bbb6SRostislav Lisovy	  module will be called em_canid.
543f057bbb6SRostislav Lisovy
5446d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET
5456d4fa852SFlorian Westphal	tristate "IPset"
5466d4fa852SFlorian Westphal	depends on NET_EMATCH && IP_SET
5476d4fa852SFlorian Westphal	---help---
5486d4fa852SFlorian Westphal	  Say Y here if you want to be able to classify packets based on
5496d4fa852SFlorian Westphal	  ipset membership.
5506d4fa852SFlorian Westphal
5516d4fa852SFlorian Westphal	  To compile this code as a module, choose M here: the
5526d4fa852SFlorian Westphal	  module will be called em_ipset.
5536d4fa852SFlorian Westphal
5541da177e4SLinus Torvaldsconfig NET_CLS_ACT
55552ab4ac2SThomas Graf	bool "Actions"
5561da177e4SLinus Torvalds	---help---
55752ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
55852ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
55952ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
56052ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
56152ab4ac2SThomas Graf
56252ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
56352ab4ac2SThomas Graf	  extended matches.
5641da177e4SLinus Torvalds
5651da177e4SLinus Torvaldsconfig NET_ACT_POLICE
56652ab4ac2SThomas Graf	tristate "Traffic Policing"
5671da177e4SLinus Torvalds        depends on NET_CLS_ACT
5681da177e4SLinus Torvalds        ---help---
56952ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
57052ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
57152ab4ac2SThomas Graf	  module.
57252ab4ac2SThomas Graf
57352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
574d4ae20b3SJan Luebbe	  module will be called act_police.
5751da177e4SLinus Torvalds
5761da177e4SLinus Torvaldsconfig NET_ACT_GACT
57752ab4ac2SThomas Graf        tristate "Generic actions"
5781da177e4SLinus Torvalds        depends on NET_CLS_ACT
5791da177e4SLinus Torvalds        ---help---
58052ab4ac2SThomas Graf	  Say Y here to take generic actions such as dropping and
58152ab4ac2SThomas Graf	  accepting packets.
58252ab4ac2SThomas Graf
58352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
584d4ae20b3SJan Luebbe	  module will be called act_gact.
5851da177e4SLinus Torvalds
5861da177e4SLinus Torvaldsconfig GACT_PROB
58752ab4ac2SThomas Graf        bool "Probability support"
5881da177e4SLinus Torvalds        depends on NET_ACT_GACT
5891da177e4SLinus Torvalds        ---help---
59052ab4ac2SThomas Graf	  Say Y here to use the generic action randomly or deterministically.
5911da177e4SLinus Torvalds
5921da177e4SLinus Torvaldsconfig NET_ACT_MIRRED
59352ab4ac2SThomas Graf        tristate "Redirecting and Mirroring"
5941da177e4SLinus Torvalds        depends on NET_CLS_ACT
5951da177e4SLinus Torvalds        ---help---
59652ab4ac2SThomas Graf	  Say Y here to allow packets to be mirrored or redirected to
59752ab4ac2SThomas Graf	  other devices.
59852ab4ac2SThomas Graf
59952ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
600d4ae20b3SJan Luebbe	  module will be called act_mirred.
6011da177e4SLinus Torvalds
6021da177e4SLinus Torvaldsconfig NET_ACT_IPT
60352ab4ac2SThomas Graf        tristate "IPtables targets"
6041da177e4SLinus Torvalds        depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
6051da177e4SLinus Torvalds        ---help---
6063539c272SMatt LaPlante	  Say Y here to be able to invoke iptables targets after successful
60752ab4ac2SThomas Graf	  classification.
60852ab4ac2SThomas Graf
60952ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
610d4ae20b3SJan Luebbe	  module will be called act_ipt.
6111da177e4SLinus Torvalds
612b4219952SHerbert Xuconfig NET_ACT_NAT
613b4219952SHerbert Xu        tristate "Stateless NAT"
614b4219952SHerbert Xu        depends on NET_CLS_ACT
615b4219952SHerbert Xu        ---help---
616b4219952SHerbert Xu	  Say Y here to do stateless NAT on IPv4 packets.  You should use
617b4219952SHerbert Xu	  netfilter for NAT unless you know what you are doing.
618b4219952SHerbert Xu
619b4219952SHerbert Xu	  To compile this code as a module, choose M here: the
620d4ae20b3SJan Luebbe	  module will be called act_nat.
621b4219952SHerbert Xu
6221da177e4SLinus Torvaldsconfig NET_ACT_PEDIT
62352ab4ac2SThomas Graf        tristate "Packet Editing"
6241da177e4SLinus Torvalds        depends on NET_CLS_ACT
6251da177e4SLinus Torvalds        ---help---
62652ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
6271da177e4SLinus Torvalds
62852ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
629d4ae20b3SJan Luebbe	  module will be called act_pedit.
6301da177e4SLinus Torvalds
631db753079SJamal Hadi Salimconfig NET_ACT_SIMP
63252ab4ac2SThomas Graf        tristate "Simple Example (Debug)"
633db753079SJamal Hadi Salim        depends on NET_CLS_ACT
634db753079SJamal Hadi Salim        ---help---
63552ab4ac2SThomas Graf	  Say Y here to add a simple action for demonstration purposes.
63652ab4ac2SThomas Graf	  It is meant as an example and for debugging purposes. It will
63752ab4ac2SThomas Graf	  print a configured policy string followed by the packet count
63852ab4ac2SThomas Graf	  to the console for every packet that passes by.
639db753079SJamal Hadi Salim
64052ab4ac2SThomas Graf	  If unsure, say N.
64152ab4ac2SThomas Graf
64252ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
643d4ae20b3SJan Luebbe	  module will be called act_simple.
64452ab4ac2SThomas Graf
645ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT
646ca9b0e27SAlexander Duyck        tristate "SKB Editing"
647ca9b0e27SAlexander Duyck        depends on NET_CLS_ACT
648ca9b0e27SAlexander Duyck        ---help---
649ca9b0e27SAlexander Duyck	  Say Y here to change skb priority or queue_mapping settings.
650ca9b0e27SAlexander Duyck
651ca9b0e27SAlexander Duyck	  If unsure, say N.
652ca9b0e27SAlexander Duyck
653ca9b0e27SAlexander Duyck	  To compile this code as a module, choose M here: the
654d4ae20b3SJan Luebbe	  module will be called act_skbedit.
655ca9b0e27SAlexander Duyck
656eb4d4065SGrégoire Baronconfig NET_ACT_CSUM
657eb4d4065SGrégoire Baron        tristate "Checksum Updating"
6587abac686SDavid S. Miller        depends on NET_CLS_ACT && INET
659eb4d4065SGrégoire Baron        ---help---
660eb4d4065SGrégoire Baron	  Say Y here to update some common checksum after some direct
661eb4d4065SGrégoire Baron	  packet alterations.
662eb4d4065SGrégoire Baron
663eb4d4065SGrégoire Baron	  To compile this code as a module, choose M here: the
664eb4d4065SGrégoire Baron	  module will be called act_csum.
665eb4d4065SGrégoire Baron
66652ab4ac2SThomas Grafconfig NET_CLS_IND
66752ab4ac2SThomas Graf	bool "Incoming device classification"
66805b8b0faSRoman Zippel	depends on NET_CLS_U32 || NET_CLS_FW
66952ab4ac2SThomas Graf	---help---
67052ab4ac2SThomas Graf	  Say Y here to extend the u32 and fw classifier to support
67152ab4ac2SThomas Graf	  classification based on the incoming device. This option is
67252ab4ac2SThomas Graf	  likely to disappear in favour of the metadata ematch.
67352ab4ac2SThomas Graf
67405b8b0faSRoman Zippelendif # NET_SCHED
67505b8b0faSRoman Zippel
67685ef3e5cSRandy Dunlapconfig NET_SCH_FIFO
67785ef3e5cSRandy Dunlap	bool
678