xref: /linux/net/sched/Kconfig (revision eb4d40654505e47aa9d2035bb97f631fa61d14b4)
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
2752ab4ac2SThomas Graf	  <http://linux-net.osdl.org/index.php/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
1291da177e4SLinus Torvaldsconfig NET_SCH_SFQ
13052ab4ac2SThomas Graf	tristate "Stochastic Fairness Queueing (SFQ)"
1311da177e4SLinus Torvalds	---help---
1321da177e4SLinus Torvalds	  Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
13352ab4ac2SThomas Graf	  packet scheduling algorithm.
13452ab4ac2SThomas Graf
13552ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_sfq.c> for more details.
1361da177e4SLinus Torvalds
1371da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1381da177e4SLinus Torvalds	  module will be called sch_sfq.
1391da177e4SLinus Torvalds
1401da177e4SLinus Torvaldsconfig NET_SCH_TEQL
14152ab4ac2SThomas Graf	tristate "True Link Equalizer (TEQL)"
1421da177e4SLinus Torvalds	---help---
1431da177e4SLinus Torvalds	  Say Y here if you want to use the True Link Equalizer (TLE) packet
14452ab4ac2SThomas Graf	  scheduling algorithm. This queueing discipline allows the combination
14552ab4ac2SThomas Graf	  of several physical devices into one virtual device.
14652ab4ac2SThomas Graf
14752ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_teql.c> for more details.
1481da177e4SLinus Torvalds
1491da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1501da177e4SLinus Torvalds	  module will be called sch_teql.
1511da177e4SLinus Torvalds
1521da177e4SLinus Torvaldsconfig NET_SCH_TBF
15352ab4ac2SThomas Graf	tristate "Token Bucket Filter (TBF)"
15452ab4ac2SThomas Graf	---help---
15552ab4ac2SThomas Graf	  Say Y here if you want to use the Token Bucket Filter (TBF) packet
15652ab4ac2SThomas Graf	  scheduling algorithm.
15752ab4ac2SThomas Graf
15852ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_tbf.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_tbf.
1621da177e4SLinus Torvalds
1631da177e4SLinus Torvaldsconfig NET_SCH_GRED
16452ab4ac2SThomas Graf	tristate "Generic Random Early Detection (GRED)"
16552ab4ac2SThomas Graf	---help---
1661da177e4SLinus Torvalds	  Say Y here if you want to use the Generic Random Early Detection
16720cc6befSLucas Correia Villa Real	  (GRED) packet scheduling algorithm for some of your network devices
1681da177e4SLinus Torvalds	  (see the top of <file:net/sched/sch_red.c> for details and
1691da177e4SLinus Torvalds	  references about the algorithm).
1701da177e4SLinus Torvalds
1711da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1721da177e4SLinus Torvalds	  module will be called sch_gred.
1731da177e4SLinus Torvalds
1741da177e4SLinus Torvaldsconfig NET_SCH_DSMARK
17552ab4ac2SThomas Graf	tristate "Differentiated Services marker (DSMARK)"
17652ab4ac2SThomas Graf	---help---
1771da177e4SLinus Torvalds	  Say Y if you want to schedule packets according to the
1781da177e4SLinus Torvalds	  Differentiated Services architecture proposed in RFC 2475.
1791da177e4SLinus Torvalds	  Technical information on this method, with pointers to associated
1801da177e4SLinus Torvalds	  RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
1811da177e4SLinus Torvalds
1821da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1831da177e4SLinus Torvalds	  module will be called sch_dsmark.
1841da177e4SLinus Torvalds
1851da177e4SLinus Torvaldsconfig NET_SCH_NETEM
18652ab4ac2SThomas Graf	tristate "Network emulator (NETEM)"
18752ab4ac2SThomas Graf	---help---
1881da177e4SLinus Torvalds	  Say Y if you want to emulate network delay, loss, and packet
1891da177e4SLinus Torvalds	  re-ordering. This is often useful to simulate networks when
1901da177e4SLinus Torvalds	  testing applications or protocols.
1911da177e4SLinus Torvalds
1921da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
1931da177e4SLinus Torvalds	  will be called sch_netem.
1941da177e4SLinus Torvalds
1951da177e4SLinus Torvalds	  If unsure, say N.
1961da177e4SLinus Torvalds
19713d2a1d2SPatrick McHardyconfig NET_SCH_DRR
19813d2a1d2SPatrick McHardy	tristate "Deficit Round Robin scheduler (DRR)"
19913d2a1d2SPatrick McHardy	help
20013d2a1d2SPatrick McHardy	  Say Y here if you want to use the Deficit Round Robin (DRR) packet
20113d2a1d2SPatrick McHardy	  scheduling algorithm.
20213d2a1d2SPatrick McHardy
20313d2a1d2SPatrick McHardy	  To compile this driver as a module, choose M here: the module
20413d2a1d2SPatrick McHardy	  will be called sch_drr.
20513d2a1d2SPatrick McHardy
20613d2a1d2SPatrick McHardy	  If unsure, say N.
20713d2a1d2SPatrick McHardy
2081da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
2091da177e4SLinus Torvalds	tristate "Ingress Qdisc"
21072eb7bd2SPatrick McHardy	depends on NET_CLS_ACT
21152ab4ac2SThomas Graf	---help---
21252ab4ac2SThomas Graf	  Say Y here if you want to use classifiers for incoming packets.
2131da177e4SLinus Torvalds	  If unsure, say Y.
2141da177e4SLinus Torvalds
2151da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2161da177e4SLinus Torvalds	  module will be called sch_ingress.
2171da177e4SLinus Torvalds
21852ab4ac2SThomas Grafcomment "Classification"
2191da177e4SLinus Torvalds
2201da177e4SLinus Torvaldsconfig NET_CLS
22152ab4ac2SThomas Graf	boolean
2221da177e4SLinus Torvalds
2231da177e4SLinus Torvaldsconfig NET_CLS_BASIC
22452ab4ac2SThomas Graf	tristate "Elementary classification (BASIC)"
22552ab4ac2SThomas Graf	select NET_CLS
2261da177e4SLinus Torvalds	---help---
2271da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
2281da177e4SLinus Torvalds	  only extended matches and actions.
2291da177e4SLinus Torvalds
2301da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2311da177e4SLinus Torvalds	  module will be called cls_basic.
2321da177e4SLinus Torvalds
2331da177e4SLinus Torvaldsconfig NET_CLS_TCINDEX
23452ab4ac2SThomas Graf	tristate "Traffic-Control Index (TCINDEX)"
23552ab4ac2SThomas Graf	select NET_CLS
23652ab4ac2SThomas Graf	---help---
23752ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
23852ab4ac2SThomas Graf	  traffic control indices. You will want this feature if you want
23952ab4ac2SThomas Graf	  to implement Differentiated Services together with DSMARK.
2401da177e4SLinus Torvalds
2411da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2421da177e4SLinus Torvalds	  module will be called cls_tcindex.
2431da177e4SLinus Torvalds
2441da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
24552ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
2461da177e4SLinus Torvalds	select NET_CLS_ROUTE
24752ab4ac2SThomas Graf	select NET_CLS
24852ab4ac2SThomas Graf	---help---
24952ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
25052ab4ac2SThomas Graf	  according to the route table entry they matched.
2511da177e4SLinus Torvalds
2521da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2531da177e4SLinus Torvalds	  module will be called cls_route.
2541da177e4SLinus Torvalds
2551da177e4SLinus Torvaldsconfig NET_CLS_ROUTE
2561da177e4SLinus Torvalds	bool
2571da177e4SLinus Torvalds
2581da177e4SLinus Torvaldsconfig NET_CLS_FW
25952ab4ac2SThomas Graf	tristate "Netfilter mark (FW)"
26052ab4ac2SThomas Graf	select NET_CLS
26152ab4ac2SThomas Graf	---help---
26252ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
26352ab4ac2SThomas Graf	  according to netfilter/firewall marks.
2641da177e4SLinus Torvalds
2651da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2661da177e4SLinus Torvalds	  module will be called cls_fw.
2671da177e4SLinus Torvalds
2681da177e4SLinus Torvaldsconfig NET_CLS_U32
26952ab4ac2SThomas Graf	tristate "Universal 32bit comparisons w/ hashing (U32)"
27052ab4ac2SThomas Graf	select NET_CLS
27152ab4ac2SThomas Graf	---help---
2723539c272SMatt LaPlante	  Say Y here to be able to classify packets using a universal
27352ab4ac2SThomas Graf	  32bit pieces based comparison scheme.
2741da177e4SLinus Torvalds
2751da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2761da177e4SLinus Torvalds	  module will be called cls_u32.
2771da177e4SLinus Torvalds
2781da177e4SLinus Torvaldsconfig CLS_U32_PERF
27952ab4ac2SThomas Graf	bool "Performance counters support"
2801da177e4SLinus Torvalds	depends on NET_CLS_U32
28152ab4ac2SThomas Graf	---help---
28252ab4ac2SThomas Graf	  Say Y here to make u32 gather additional statistics useful for
28352ab4ac2SThomas Graf	  fine tuning u32 classifiers.
2841da177e4SLinus Torvalds
2851da177e4SLinus Torvaldsconfig CLS_U32_MARK
28652ab4ac2SThomas Graf	bool "Netfilter marks support"
28782e91ffeSThomas Graf	depends on NET_CLS_U32
28852ab4ac2SThomas Graf	---help---
28952ab4ac2SThomas Graf	  Say Y here to be able to use netfilter marks as u32 key.
2901da177e4SLinus Torvalds
2911da177e4SLinus Torvaldsconfig NET_CLS_RSVP
29252ab4ac2SThomas Graf	tristate "IPv4 Resource Reservation Protocol (RSVP)"
29352ab4ac2SThomas Graf	select NET_CLS
2941da177e4SLinus Torvalds	---help---
2951da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
2961da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
2971da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
2981da177e4SLinus Torvalds
2991da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
3001da177e4SLinus Torvalds	  on their RSVP requests.
3011da177e4SLinus Torvalds
3021da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3031da177e4SLinus Torvalds	  module will be called cls_rsvp.
3041da177e4SLinus Torvalds
3051da177e4SLinus Torvaldsconfig NET_CLS_RSVP6
30652ab4ac2SThomas Graf	tristate "IPv6 Resource Reservation Protocol (RSVP6)"
30752ab4ac2SThomas Graf	select NET_CLS
3081da177e4SLinus Torvalds	---help---
3091da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
3101da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
3111da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
3121da177e4SLinus Torvalds
3131da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
31499acaeb9SGabriel Craciunescu	  on their RSVP requests and you are using the IPv6 protocol.
3151da177e4SLinus Torvalds
3161da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3171da177e4SLinus Torvalds	  module will be called cls_rsvp6.
3181da177e4SLinus Torvalds
319e5dfb815SPatrick McHardyconfig NET_CLS_FLOW
320e5dfb815SPatrick McHardy	tristate "Flow classifier"
321e5dfb815SPatrick McHardy	select NET_CLS
322e5dfb815SPatrick McHardy	---help---
323e5dfb815SPatrick McHardy	  If you say Y here, you will be able to classify packets based on
324e5dfb815SPatrick McHardy	  a configurable combination of packet keys. This is mostly useful
325e5dfb815SPatrick McHardy	  in combination with SFQ.
326e5dfb815SPatrick McHardy
327e5dfb815SPatrick McHardy	  To compile this code as a module, choose M here: the
328e5dfb815SPatrick McHardy	  module will be called cls_flow.
329e5dfb815SPatrick McHardy
330f4009237SThomas Grafconfig NET_CLS_CGROUP
3318e039d84SBen Blum	tristate "Control Group Classifier"
332f4009237SThomas Graf	select NET_CLS
333f4009237SThomas Graf	depends on CGROUPS
334f4009237SThomas Graf	---help---
335f4009237SThomas Graf	  Say Y here if you want to classify packets based on the control
336f4009237SThomas Graf	  cgroup of their process.
337f4009237SThomas Graf
3388e039d84SBen Blum	  To compile this code as a module, choose M here: the
3398e039d84SBen Blum	  module will be called cls_cgroup.
3408e039d84SBen Blum
3411da177e4SLinus Torvaldsconfig NET_EMATCH
3421da177e4SLinus Torvalds	bool "Extended Matches"
34352ab4ac2SThomas Graf	select NET_CLS
3441da177e4SLinus Torvalds	---help---
3451da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
3461da177e4SLinus Torvalds	  and select the extended matches below.
3471da177e4SLinus Torvalds
3481da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
34952ab4ac2SThomas Graf	  a separate classifier for.
3501da177e4SLinus Torvalds
35152ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
3521da177e4SLinus Torvalds	  extended matches.
3531da177e4SLinus Torvalds
3541da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
3551da177e4SLinus Torvalds	int "Stack size"
3561da177e4SLinus Torvalds	depends on NET_EMATCH
3571da177e4SLinus Torvalds	default "32"
3581da177e4SLinus Torvalds	---help---
3591da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
3601da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
361b824979aSThomas Graf	  encapsulated precedences. Every level requires 4 bytes of additional
3621da177e4SLinus Torvalds	  stack space.
3631da177e4SLinus Torvalds
3641da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
3651da177e4SLinus Torvalds	tristate "Simple packet data comparison"
3661da177e4SLinus Torvalds	depends on NET_EMATCH
3671da177e4SLinus Torvalds	---help---
3681da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
3691da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
3701da177e4SLinus Torvalds
3711da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3721da177e4SLinus Torvalds	  module will be called em_cmp.
3731da177e4SLinus Torvalds
3741da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
3751da177e4SLinus Torvalds	tristate "Multi byte comparison"
3761da177e4SLinus Torvalds	depends on NET_EMATCH
3771da177e4SLinus Torvalds	---help---
3781da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
3791da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
3801da177e4SLinus Torvalds
3811da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3821da177e4SLinus Torvalds	  module will be called em_nbyte.
3831da177e4SLinus Torvalds
3841da177e4SLinus Torvaldsconfig NET_EMATCH_U32
38552ab4ac2SThomas Graf	tristate "U32 key"
3861da177e4SLinus Torvalds	depends on NET_EMATCH
3871da177e4SLinus Torvalds	---help---
3881da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
3891da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
3901da177e4SLinus Torvalds
3911da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3921da177e4SLinus Torvalds	  module will be called em_u32.
3931da177e4SLinus Torvalds
3941da177e4SLinus Torvaldsconfig NET_EMATCH_META
3951da177e4SLinus Torvalds	tristate "Metadata"
3961da177e4SLinus Torvalds	depends on NET_EMATCH
3971da177e4SLinus Torvalds	---help---
398bb7e8c5aSAdrian Bunk	  Say Y here if you want to be able to classify packets based on
3991da177e4SLinus Torvalds	  metadata such as load average, netfilter attributes, socket
4001da177e4SLinus Torvalds	  attributes and routing decisions.
4011da177e4SLinus Torvalds
4021da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4031da177e4SLinus Torvalds	  module will be called em_meta.
4041da177e4SLinus Torvalds
405d675c989SThomas Grafconfig NET_EMATCH_TEXT
406d675c989SThomas Graf	tristate "Textsearch"
407d675c989SThomas Graf	depends on NET_EMATCH
408f2d368faSDavid S. Miller	select TEXTSEARCH
409f7704347SDavid S. Miller	select TEXTSEARCH_KMP
41029cb9f9cSDavid S. Miller	select TEXTSEARCH_BM
411f7704347SDavid S. Miller	select TEXTSEARCH_FSM
412d675c989SThomas Graf	---help---
41352ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
414f7704347SDavid S. Miller	  textsearch comparisons.
415d675c989SThomas Graf
416d675c989SThomas Graf	  To compile this code as a module, choose M here: the
417d675c989SThomas Graf	  module will be called em_text.
418d675c989SThomas Graf
4191da177e4SLinus Torvaldsconfig NET_CLS_ACT
42052ab4ac2SThomas Graf	bool "Actions"
4211da177e4SLinus Torvalds	---help---
42252ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
42352ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
42452ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
42552ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
42652ab4ac2SThomas Graf
42752ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
42852ab4ac2SThomas Graf	  extended matches.
4291da177e4SLinus Torvalds
4301da177e4SLinus Torvaldsconfig NET_ACT_POLICE
43152ab4ac2SThomas Graf	tristate "Traffic Policing"
4321da177e4SLinus Torvalds        depends on NET_CLS_ACT
4331da177e4SLinus Torvalds        ---help---
43452ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
43552ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
43652ab4ac2SThomas Graf	  module.
43752ab4ac2SThomas Graf
43852ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
439d4ae20b3SJan Luebbe	  module will be called act_police.
4401da177e4SLinus Torvalds
4411da177e4SLinus Torvaldsconfig NET_ACT_GACT
44252ab4ac2SThomas Graf        tristate "Generic actions"
4431da177e4SLinus Torvalds        depends on NET_CLS_ACT
4441da177e4SLinus Torvalds        ---help---
44552ab4ac2SThomas Graf	  Say Y here to take generic actions such as dropping and
44652ab4ac2SThomas Graf	  accepting packets.
44752ab4ac2SThomas Graf
44852ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
449d4ae20b3SJan Luebbe	  module will be called act_gact.
4501da177e4SLinus Torvalds
4511da177e4SLinus Torvaldsconfig GACT_PROB
45252ab4ac2SThomas Graf        bool "Probability support"
4531da177e4SLinus Torvalds        depends on NET_ACT_GACT
4541da177e4SLinus Torvalds        ---help---
45552ab4ac2SThomas Graf	  Say Y here to use the generic action randomly or deterministically.
4561da177e4SLinus Torvalds
4571da177e4SLinus Torvaldsconfig NET_ACT_MIRRED
45852ab4ac2SThomas Graf        tristate "Redirecting and Mirroring"
4591da177e4SLinus Torvalds        depends on NET_CLS_ACT
4601da177e4SLinus Torvalds        ---help---
46152ab4ac2SThomas Graf	  Say Y here to allow packets to be mirrored or redirected to
46252ab4ac2SThomas Graf	  other devices.
46352ab4ac2SThomas Graf
46452ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
465d4ae20b3SJan Luebbe	  module will be called act_mirred.
4661da177e4SLinus Torvalds
4671da177e4SLinus Torvaldsconfig NET_ACT_IPT
46852ab4ac2SThomas Graf        tristate "IPtables targets"
4691da177e4SLinus Torvalds        depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
4701da177e4SLinus Torvalds        ---help---
4713539c272SMatt LaPlante	  Say Y here to be able to invoke iptables targets after successful
47252ab4ac2SThomas Graf	  classification.
47352ab4ac2SThomas Graf
47452ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
475d4ae20b3SJan Luebbe	  module will be called act_ipt.
4761da177e4SLinus Torvalds
477b4219952SHerbert Xuconfig NET_ACT_NAT
478b4219952SHerbert Xu        tristate "Stateless NAT"
479b4219952SHerbert Xu        depends on NET_CLS_ACT
480b4219952SHerbert Xu        ---help---
481b4219952SHerbert Xu	  Say Y here to do stateless NAT on IPv4 packets.  You should use
482b4219952SHerbert Xu	  netfilter for NAT unless you know what you are doing.
483b4219952SHerbert Xu
484b4219952SHerbert Xu	  To compile this code as a module, choose M here: the
485d4ae20b3SJan Luebbe	  module will be called act_nat.
486b4219952SHerbert Xu
4871da177e4SLinus Torvaldsconfig NET_ACT_PEDIT
48852ab4ac2SThomas Graf        tristate "Packet Editing"
4891da177e4SLinus Torvalds        depends on NET_CLS_ACT
4901da177e4SLinus Torvalds        ---help---
49152ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
4921da177e4SLinus Torvalds
49352ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
494d4ae20b3SJan Luebbe	  module will be called act_pedit.
4951da177e4SLinus Torvalds
496db753079SJamal Hadi Salimconfig NET_ACT_SIMP
49752ab4ac2SThomas Graf        tristate "Simple Example (Debug)"
498db753079SJamal Hadi Salim        depends on NET_CLS_ACT
499db753079SJamal Hadi Salim        ---help---
50052ab4ac2SThomas Graf	  Say Y here to add a simple action for demonstration purposes.
50152ab4ac2SThomas Graf	  It is meant as an example and for debugging purposes. It will
50252ab4ac2SThomas Graf	  print a configured policy string followed by the packet count
50352ab4ac2SThomas Graf	  to the console for every packet that passes by.
504db753079SJamal Hadi Salim
50552ab4ac2SThomas Graf	  If unsure, say N.
50652ab4ac2SThomas Graf
50752ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
508d4ae20b3SJan Luebbe	  module will be called act_simple.
50952ab4ac2SThomas Graf
510ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT
511ca9b0e27SAlexander Duyck        tristate "SKB Editing"
512ca9b0e27SAlexander Duyck        depends on NET_CLS_ACT
513ca9b0e27SAlexander Duyck        ---help---
514ca9b0e27SAlexander Duyck	  Say Y here to change skb priority or queue_mapping settings.
515ca9b0e27SAlexander Duyck
516ca9b0e27SAlexander Duyck	  If unsure, say N.
517ca9b0e27SAlexander Duyck
518ca9b0e27SAlexander Duyck	  To compile this code as a module, choose M here: the
519d4ae20b3SJan Luebbe	  module will be called act_skbedit.
520ca9b0e27SAlexander Duyck
521*eb4d4065SGrégoire Baronconfig NET_ACT_CSUM
522*eb4d4065SGrégoire Baron        tristate "Checksum Updating"
523*eb4d4065SGrégoire Baron        depends on NET_CLS_ACT
524*eb4d4065SGrégoire Baron        ---help---
525*eb4d4065SGrégoire Baron	  Say Y here to update some common checksum after some direct
526*eb4d4065SGrégoire Baron	  packet alterations.
527*eb4d4065SGrégoire Baron
528*eb4d4065SGrégoire Baron	  To compile this code as a module, choose M here: the
529*eb4d4065SGrégoire Baron	  module will be called act_csum.
530*eb4d4065SGrégoire Baron
53152ab4ac2SThomas Grafconfig NET_CLS_IND
53252ab4ac2SThomas Graf	bool "Incoming device classification"
53305b8b0faSRoman Zippel	depends on NET_CLS_U32 || NET_CLS_FW
53452ab4ac2SThomas Graf	---help---
53552ab4ac2SThomas Graf	  Say Y here to extend the u32 and fw classifier to support
53652ab4ac2SThomas Graf	  classification based on the incoming device. This option is
53752ab4ac2SThomas Graf	  likely to disappear in favour of the metadata ematch.
53852ab4ac2SThomas Graf
53905b8b0faSRoman Zippelendif # NET_SCHED
54005b8b0faSRoman Zippel
54185ef3e5cSRandy Dunlapconfig NET_SCH_FIFO
54285ef3e5cSRandy Dunlap	bool
543