xref: /linux/net/sched/Kconfig (revision 82e91ffef60e6eba9848fe149ce1eecd2b5aef12)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Traffic control configuration.
31da177e4SLinus Torvalds#
46a2e9b73SSam Ravnborg
552ab4ac2SThomas Grafmenu "QoS and/or fair queueing"
652ab4ac2SThomas Graf
752ab4ac2SThomas Grafconfig NET_SCHED
86a2e9b73SSam Ravnborg	bool "QoS and/or fair queueing"
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
266a2e9b73SSam Ravnborg	  from the package iproute2+tc at <ftp://ftp.tux.org/pub/net/ip-routing/>.
276a2e9b73SSam Ravnborg	  That package also contains some documentation; for more, check out
2852ab4ac2SThomas Graf	  <http://linux-net.osdl.org/index.php/Iproute2>.
296a2e9b73SSam Ravnborg
306a2e9b73SSam Ravnborg	  This Quality of Service (QoS) support will enable you to use
316a2e9b73SSam Ravnborg	  Differentiated Services (diffserv) and Resource Reservation Protocol
3252ab4ac2SThomas Graf	  (RSVP) on your Linux router if you also say Y to the corresponding
3352ab4ac2SThomas Graf	  classifiers below.  Documentation and software is at
3452ab4ac2SThomas Graf	  <http://diffserv.sourceforge.net/>.
356a2e9b73SSam Ravnborg
366a2e9b73SSam Ravnborg	  If you say Y here and to "/proc file system" below, you will be able
376a2e9b73SSam Ravnborg	  to read status information about packet schedulers from the file
386a2e9b73SSam Ravnborg	  /proc/net/psched.
396a2e9b73SSam Ravnborg
406a2e9b73SSam Ravnborg	  The available schedulers are listed in the following questions; you
416a2e9b73SSam Ravnborg	  can say Y to as many as you like. If unsure, say N now.
426a2e9b73SSam Ravnborg
4305b8b0faSRoman Zippelif NET_SCHED
4405b8b0faSRoman Zippel
451da177e4SLinus Torvaldschoice
461da177e4SLinus Torvalds	prompt "Packet scheduler clock source"
47dca80b96SPatrick McHardy	default NET_SCH_CLK_GETTIMEOFDAY
4852ab4ac2SThomas Graf	---help---
491da177e4SLinus Torvalds	  Packet schedulers need a monotonic clock that increments at a static
501da177e4SLinus Torvalds	  rate. The kernel provides several suitable interfaces, each with
511da177e4SLinus Torvalds	  different properties:
521da177e4SLinus Torvalds
531da177e4SLinus Torvalds	  - high resolution (us or better)
541da177e4SLinus Torvalds	  - fast to read (minimal locking, no i/o access)
551da177e4SLinus Torvalds	  - synchronized on all processors
561da177e4SLinus Torvalds	  - handles cpu clock frequency changes
571da177e4SLinus Torvalds
581da177e4SLinus Torvalds	  but nothing provides all of the above.
591da177e4SLinus Torvalds
601da177e4SLinus Torvaldsconfig NET_SCH_CLK_JIFFIES
611da177e4SLinus Torvalds	bool "Timer interrupt"
6252ab4ac2SThomas Graf	---help---
631da177e4SLinus Torvalds	  Say Y here if you want to use the timer interrupt (jiffies) as clock
641da177e4SLinus Torvalds	  source. This clock source is fast, synchronized on all processors and
651da177e4SLinus Torvalds	  handles cpu clock frequency changes, but its resolution is too low
661da177e4SLinus Torvalds	  for accurate shaping except at very low speed.
671da177e4SLinus Torvalds
681da177e4SLinus Torvaldsconfig NET_SCH_CLK_GETTIMEOFDAY
691da177e4SLinus Torvalds	bool "gettimeofday"
7052ab4ac2SThomas Graf	---help---
711da177e4SLinus Torvalds	  Say Y here if you want to use gettimeofday as clock source. This clock
721da177e4SLinus Torvalds	  source has high resolution, is synchronized on all processors and
731da177e4SLinus Torvalds	  handles cpu clock frequency changes, but it is slow.
741da177e4SLinus Torvalds
751da177e4SLinus Torvalds	  Choose this if you need a high resolution clock source but can't use
761da177e4SLinus Torvalds	  the CPU's cycle counter.
771da177e4SLinus Torvalds
7834cb711bSAndi Kleen# don't allow on SMP x86 because they can have unsynchronized TSCs.
7934cb711bSAndi Kleen# gettimeofday is a good alternative
801da177e4SLinus Torvaldsconfig NET_SCH_CLK_CPU
811da177e4SLinus Torvalds	bool "CPU cycle counter"
8234cb711bSAndi Kleen	depends on ((X86_TSC || X86_64) && !SMP) || ALPHA || SPARC64 || PPC64 || IA64
8352ab4ac2SThomas Graf	---help---
841da177e4SLinus Torvalds	  Say Y here if you want to use the CPU's cycle counter as clock source.
851da177e4SLinus Torvalds	  This is a cheap and high resolution clock source, but on some
861da177e4SLinus Torvalds	  architectures it is not synchronized on all processors and doesn't
871da177e4SLinus Torvalds	  handle cpu clock frequency changes.
881da177e4SLinus Torvalds
891da177e4SLinus Torvalds	  The useable cycle counters are:
901da177e4SLinus Torvalds
911da177e4SLinus Torvalds	  	x86/x86_64	- Timestamp Counter
921da177e4SLinus Torvalds		alpha		- Cycle Counter
931da177e4SLinus Torvalds		sparc64		- %ticks register
941da177e4SLinus Torvalds		ppc64		- Time base
951da177e4SLinus Torvalds		ia64		- Interval Time Counter
961da177e4SLinus Torvalds
971da177e4SLinus Torvalds	  Choose this if your CPU's cycle counter is working properly.
981da177e4SLinus Torvalds
991da177e4SLinus Torvaldsendchoice
1001da177e4SLinus Torvalds
10152ab4ac2SThomas Grafcomment "Queueing/Scheduling"
10252ab4ac2SThomas Graf
1031da177e4SLinus Torvaldsconfig NET_SCH_CBQ
10452ab4ac2SThomas Graf	tristate "Class Based Queueing (CBQ)"
1051da177e4SLinus Torvalds	---help---
1061da177e4SLinus Torvalds	  Say Y here if you want to use the Class-Based Queueing (CBQ) packet
10752ab4ac2SThomas Graf	  scheduling algorithm. This algorithm classifies the waiting packets
10852ab4ac2SThomas Graf	  into a tree-like hierarchy of classes; the leaves of this tree are
10952ab4ac2SThomas Graf	  in turn scheduled by separate algorithms.
1101da177e4SLinus Torvalds
11152ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_cbq.c> for more details.
1121da177e4SLinus Torvalds
1131da177e4SLinus Torvalds	  CBQ is a commonly used scheduler, so if you're unsure, you should
1141da177e4SLinus Torvalds	  say Y here. Then say Y to all the queueing algorithms below that you
11552ab4ac2SThomas Graf	  want to use as leaf disciplines.
1161da177e4SLinus Torvalds
1171da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1181da177e4SLinus Torvalds	  module will be called sch_cbq.
1191da177e4SLinus Torvalds
1201da177e4SLinus Torvaldsconfig NET_SCH_HTB
12152ab4ac2SThomas Graf	tristate "Hierarchical Token Bucket (HTB)"
1221da177e4SLinus Torvalds	---help---
1231da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Token Buckets (HTB)
12452ab4ac2SThomas Graf	  packet scheduling algorithm. See
1251da177e4SLinus Torvalds	  <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
1261da177e4SLinus Torvalds	  in-depth articles.
1271da177e4SLinus Torvalds
12852ab4ac2SThomas Graf	  HTB is very similar to CBQ regarding its goals however is has
1291da177e4SLinus Torvalds	  different properties and different algorithm.
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1321da177e4SLinus Torvalds	  module will be called sch_htb.
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvaldsconfig NET_SCH_HFSC
13552ab4ac2SThomas Graf	tristate "Hierarchical Fair Service Curve (HFSC)"
1361da177e4SLinus Torvalds	---help---
1371da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Fair Service Curve
13852ab4ac2SThomas Graf	  (HFSC) packet scheduling algorithm.
1391da177e4SLinus Torvalds
1401da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1411da177e4SLinus Torvalds	  module will be called sch_hfsc.
1421da177e4SLinus Torvalds
1431da177e4SLinus Torvaldsconfig NET_SCH_ATM
14452ab4ac2SThomas Graf	tristate "ATM Virtual Circuits (ATM)"
14505b8b0faSRoman Zippel	depends on ATM
1461da177e4SLinus Torvalds	---help---
1471da177e4SLinus Torvalds	  Say Y here if you want to use the ATM pseudo-scheduler.  This
14852ab4ac2SThomas Graf	  provides a framework for invoking classifiers, which in turn
14952ab4ac2SThomas Graf	  select classes of this queuing discipline.  Each class maps
15052ab4ac2SThomas Graf	  the flow(s) it is handling to a given virtual circuit.
15152ab4ac2SThomas Graf
15252ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_atm.c>) for more details.
1531da177e4SLinus Torvalds
1541da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1551da177e4SLinus Torvalds	  module will be called sch_atm.
1561da177e4SLinus Torvalds
1571da177e4SLinus Torvaldsconfig NET_SCH_PRIO
15852ab4ac2SThomas Graf	tristate "Multi Band Priority Queueing (PRIO)"
15952ab4ac2SThomas Graf	---help---
1601da177e4SLinus Torvalds	  Say Y here if you want to use an n-band priority queue packet
16152ab4ac2SThomas Graf	  scheduler.
1621da177e4SLinus Torvalds
1631da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1641da177e4SLinus Torvalds	  module will be called sch_prio.
1651da177e4SLinus Torvalds
1661da177e4SLinus Torvaldsconfig NET_SCH_RED
16752ab4ac2SThomas Graf	tristate "Random Early Detection (RED)"
16852ab4ac2SThomas Graf	---help---
1691da177e4SLinus Torvalds	  Say Y here if you want to use the Random Early Detection (RED)
17052ab4ac2SThomas Graf	  packet scheduling algorithm.
17152ab4ac2SThomas Graf
17252ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_red.c> for more details.
1731da177e4SLinus Torvalds
1741da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1751da177e4SLinus Torvalds	  module will be called sch_red.
1761da177e4SLinus Torvalds
1771da177e4SLinus Torvaldsconfig NET_SCH_SFQ
17852ab4ac2SThomas Graf	tristate "Stochastic Fairness Queueing (SFQ)"
1791da177e4SLinus Torvalds	---help---
1801da177e4SLinus Torvalds	  Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
18152ab4ac2SThomas Graf	  packet scheduling algorithm .
18252ab4ac2SThomas Graf
18352ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_sfq.c> for more details.
1841da177e4SLinus Torvalds
1851da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1861da177e4SLinus Torvalds	  module will be called sch_sfq.
1871da177e4SLinus Torvalds
1881da177e4SLinus Torvaldsconfig NET_SCH_TEQL
18952ab4ac2SThomas Graf	tristate "True Link Equalizer (TEQL)"
1901da177e4SLinus Torvalds	---help---
1911da177e4SLinus Torvalds	  Say Y here if you want to use the True Link Equalizer (TLE) packet
19252ab4ac2SThomas Graf	  scheduling algorithm. This queueing discipline allows the combination
19352ab4ac2SThomas Graf	  of several physical devices into one virtual device.
19452ab4ac2SThomas Graf
19552ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_teql.c> for more details.
1961da177e4SLinus Torvalds
1971da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1981da177e4SLinus Torvalds	  module will be called sch_teql.
1991da177e4SLinus Torvalds
2001da177e4SLinus Torvaldsconfig NET_SCH_TBF
20152ab4ac2SThomas Graf	tristate "Token Bucket Filter (TBF)"
20252ab4ac2SThomas Graf	---help---
20352ab4ac2SThomas Graf	  Say Y here if you want to use the Token Bucket Filter (TBF) packet
20452ab4ac2SThomas Graf	  scheduling algorithm.
20552ab4ac2SThomas Graf
20652ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_tbf.c> for more details.
2071da177e4SLinus Torvalds
2081da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2091da177e4SLinus Torvalds	  module will be called sch_tbf.
2101da177e4SLinus Torvalds
2111da177e4SLinus Torvaldsconfig NET_SCH_GRED
21252ab4ac2SThomas Graf	tristate "Generic Random Early Detection (GRED)"
21352ab4ac2SThomas Graf	---help---
2141da177e4SLinus Torvalds	  Say Y here if you want to use the Generic Random Early Detection
21520cc6befSLucas Correia Villa Real	  (GRED) packet scheduling algorithm for some of your network devices
2161da177e4SLinus Torvalds	  (see the top of <file:net/sched/sch_red.c> for details and
2171da177e4SLinus Torvalds	  references about the algorithm).
2181da177e4SLinus Torvalds
2191da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2201da177e4SLinus Torvalds	  module will be called sch_gred.
2211da177e4SLinus Torvalds
2221da177e4SLinus Torvaldsconfig NET_SCH_DSMARK
22352ab4ac2SThomas Graf	tristate "Differentiated Services marker (DSMARK)"
22452ab4ac2SThomas Graf	---help---
2251da177e4SLinus Torvalds	  Say Y if you want to schedule packets according to the
2261da177e4SLinus Torvalds	  Differentiated Services architecture proposed in RFC 2475.
2271da177e4SLinus Torvalds	  Technical information on this method, with pointers to associated
2281da177e4SLinus Torvalds	  RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
2291da177e4SLinus Torvalds
2301da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2311da177e4SLinus Torvalds	  module will be called sch_dsmark.
2321da177e4SLinus Torvalds
2331da177e4SLinus Torvaldsconfig NET_SCH_NETEM
23452ab4ac2SThomas Graf	tristate "Network emulator (NETEM)"
23552ab4ac2SThomas Graf	---help---
2361da177e4SLinus Torvalds	  Say Y if you want to emulate network delay, loss, and packet
2371da177e4SLinus Torvalds	  re-ordering. This is often useful to simulate networks when
2381da177e4SLinus Torvalds	  testing applications or protocols.
2391da177e4SLinus Torvalds
2401da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
2411da177e4SLinus Torvalds	  will be called sch_netem.
2421da177e4SLinus Torvalds
2431da177e4SLinus Torvalds	  If unsure, say N.
2441da177e4SLinus Torvalds
2451da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
2461da177e4SLinus Torvalds	tristate "Ingress Qdisc"
24752ab4ac2SThomas Graf	---help---
24852ab4ac2SThomas Graf	  Say Y here if you want to use classifiers for incoming packets.
2491da177e4SLinus Torvalds	  If unsure, say Y.
2501da177e4SLinus Torvalds
2511da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2521da177e4SLinus Torvalds	  module will be called sch_ingress.
2531da177e4SLinus Torvalds
25452ab4ac2SThomas Grafcomment "Classification"
2551da177e4SLinus Torvalds
2561da177e4SLinus Torvaldsconfig NET_CLS
25752ab4ac2SThomas Graf	boolean
2581da177e4SLinus Torvalds
2591da177e4SLinus Torvaldsconfig NET_CLS_BASIC
26052ab4ac2SThomas Graf	tristate "Elementary classification (BASIC)"
26152ab4ac2SThomas Graf	select NET_CLS
2621da177e4SLinus Torvalds	---help---
2631da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
2641da177e4SLinus Torvalds	  only extended matches and actions.
2651da177e4SLinus Torvalds
2661da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2671da177e4SLinus Torvalds	  module will be called cls_basic.
2681da177e4SLinus Torvalds
2691da177e4SLinus Torvaldsconfig NET_CLS_TCINDEX
27052ab4ac2SThomas Graf	tristate "Traffic-Control Index (TCINDEX)"
27152ab4ac2SThomas Graf	select NET_CLS
27252ab4ac2SThomas Graf	---help---
27352ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
27452ab4ac2SThomas Graf	  traffic control indices. You will want this feature if you want
27552ab4ac2SThomas Graf	  to implement Differentiated Services together with DSMARK.
2761da177e4SLinus Torvalds
2771da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2781da177e4SLinus Torvalds	  module will be called cls_tcindex.
2791da177e4SLinus Torvalds
2801da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
28152ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
2821da177e4SLinus Torvalds	select NET_CLS_ROUTE
28352ab4ac2SThomas Graf	select NET_CLS
28452ab4ac2SThomas Graf	---help---
28552ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
28652ab4ac2SThomas Graf	  according to the route table entry they matched.
2871da177e4SLinus Torvalds
2881da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
2891da177e4SLinus Torvalds	  module will be called cls_route.
2901da177e4SLinus Torvalds
2911da177e4SLinus Torvaldsconfig NET_CLS_ROUTE
2921da177e4SLinus Torvalds	bool
2931da177e4SLinus Torvalds
2941da177e4SLinus Torvaldsconfig NET_CLS_FW
29552ab4ac2SThomas Graf	tristate "Netfilter mark (FW)"
29652ab4ac2SThomas Graf	select NET_CLS
29752ab4ac2SThomas Graf	---help---
29852ab4ac2SThomas Graf	  If you say Y here, you will be able to classify packets
29952ab4ac2SThomas Graf	  according to netfilter/firewall marks.
3001da177e4SLinus Torvalds
3011da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3021da177e4SLinus Torvalds	  module will be called cls_fw.
3031da177e4SLinus Torvalds
3041da177e4SLinus Torvaldsconfig NET_CLS_U32
30552ab4ac2SThomas Graf	tristate "Universal 32bit comparisons w/ hashing (U32)"
30652ab4ac2SThomas Graf	select NET_CLS
30752ab4ac2SThomas Graf	---help---
3083539c272SMatt LaPlante	  Say Y here to be able to classify packets using a universal
30952ab4ac2SThomas Graf	  32bit pieces based comparison scheme.
3101da177e4SLinus Torvalds
3111da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3121da177e4SLinus Torvalds	  module will be called cls_u32.
3131da177e4SLinus Torvalds
3141da177e4SLinus Torvaldsconfig CLS_U32_PERF
31552ab4ac2SThomas Graf	bool "Performance counters support"
3161da177e4SLinus Torvalds	depends on NET_CLS_U32
31752ab4ac2SThomas Graf	---help---
31852ab4ac2SThomas Graf	  Say Y here to make u32 gather additional statistics useful for
31952ab4ac2SThomas Graf	  fine tuning u32 classifiers.
3201da177e4SLinus Torvalds
3211da177e4SLinus Torvaldsconfig CLS_U32_MARK
32252ab4ac2SThomas Graf	bool "Netfilter marks support"
323*82e91ffeSThomas Graf	depends on NET_CLS_U32
32452ab4ac2SThomas Graf	---help---
32552ab4ac2SThomas Graf	  Say Y here to be able to use netfilter marks as u32 key.
3261da177e4SLinus Torvalds
3271da177e4SLinus Torvaldsconfig NET_CLS_RSVP
32852ab4ac2SThomas Graf	tristate "IPv4 Resource Reservation Protocol (RSVP)"
32952ab4ac2SThomas Graf	select NET_CLS
33052ab4ac2SThomas Graf	select NET_ESTIMATOR
3311da177e4SLinus Torvalds	---help---
3321da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
3331da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
3341da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
3351da177e4SLinus Torvalds
3361da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
3371da177e4SLinus Torvalds	  on their RSVP requests.
3381da177e4SLinus Torvalds
3391da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3401da177e4SLinus Torvalds	  module will be called cls_rsvp.
3411da177e4SLinus Torvalds
3421da177e4SLinus Torvaldsconfig NET_CLS_RSVP6
34352ab4ac2SThomas Graf	tristate "IPv6 Resource Reservation Protocol (RSVP6)"
34452ab4ac2SThomas Graf	select NET_CLS
34552ab4ac2SThomas Graf	select NET_ESTIMATOR
3461da177e4SLinus Torvalds	---help---
3471da177e4SLinus Torvalds	  The Resource Reservation Protocol (RSVP) permits end systems to
3481da177e4SLinus Torvalds	  request a minimum and maximum data flow rate for a connection; this
3491da177e4SLinus Torvalds	  is important for real time data such as streaming sound or video.
3501da177e4SLinus Torvalds
3511da177e4SLinus Torvalds	  Say Y here if you want to be able to classify outgoing packets based
35252ab4ac2SThomas Graf	  on their RSVP requests and you are using the IPv6.
3531da177e4SLinus Torvalds
3541da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3551da177e4SLinus Torvalds	  module will be called cls_rsvp6.
3561da177e4SLinus Torvalds
3571da177e4SLinus Torvaldsconfig NET_EMATCH
3581da177e4SLinus Torvalds	bool "Extended Matches"
35952ab4ac2SThomas Graf	select NET_CLS
3601da177e4SLinus Torvalds	---help---
3611da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
3621da177e4SLinus Torvalds	  and select the extended matches below.
3631da177e4SLinus Torvalds
3641da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
36552ab4ac2SThomas Graf	  a separate classifier for.
3661da177e4SLinus Torvalds
36752ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
3681da177e4SLinus Torvalds	  extended matches.
3691da177e4SLinus Torvalds
3701da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
3711da177e4SLinus Torvalds	int "Stack size"
3721da177e4SLinus Torvalds	depends on NET_EMATCH
3731da177e4SLinus Torvalds	default "32"
3741da177e4SLinus Torvalds	---help---
3751da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
3761da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
377b824979aSThomas Graf	  encapsulated precedences. Every level requires 4 bytes of additional
3781da177e4SLinus Torvalds	  stack space.
3791da177e4SLinus Torvalds
3801da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
3811da177e4SLinus Torvalds	tristate "Simple packet data comparison"
3821da177e4SLinus Torvalds	depends on NET_EMATCH
3831da177e4SLinus Torvalds	---help---
3841da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
3851da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
3861da177e4SLinus Torvalds
3871da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3881da177e4SLinus Torvalds	  module will be called em_cmp.
3891da177e4SLinus Torvalds
3901da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
3911da177e4SLinus Torvalds	tristate "Multi byte comparison"
3921da177e4SLinus Torvalds	depends on NET_EMATCH
3931da177e4SLinus Torvalds	---help---
3941da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
3951da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
3961da177e4SLinus Torvalds
3971da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
3981da177e4SLinus Torvalds	  module will be called em_nbyte.
3991da177e4SLinus Torvalds
4001da177e4SLinus Torvaldsconfig NET_EMATCH_U32
40152ab4ac2SThomas Graf	tristate "U32 key"
4021da177e4SLinus Torvalds	depends on NET_EMATCH
4031da177e4SLinus Torvalds	---help---
4041da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
4051da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
4061da177e4SLinus Torvalds
4071da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4081da177e4SLinus Torvalds	  module will be called em_u32.
4091da177e4SLinus Torvalds
4101da177e4SLinus Torvaldsconfig NET_EMATCH_META
4111da177e4SLinus Torvalds	tristate "Metadata"
4121da177e4SLinus Torvalds	depends on NET_EMATCH
4131da177e4SLinus Torvalds	---help---
414bb7e8c5aSAdrian Bunk	  Say Y here if you want to be able to classify packets based on
4151da177e4SLinus Torvalds	  metadata such as load average, netfilter attributes, socket
4161da177e4SLinus Torvalds	  attributes and routing decisions.
4171da177e4SLinus Torvalds
4181da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4191da177e4SLinus Torvalds	  module will be called em_meta.
4201da177e4SLinus Torvalds
421d675c989SThomas Grafconfig NET_EMATCH_TEXT
422d675c989SThomas Graf	tristate "Textsearch"
423d675c989SThomas Graf	depends on NET_EMATCH
424f2d368faSDavid S. Miller	select TEXTSEARCH
425f7704347SDavid S. Miller	select TEXTSEARCH_KMP
42629cb9f9cSDavid S. Miller	select TEXTSEARCH_BM
427f7704347SDavid S. Miller	select TEXTSEARCH_FSM
428d675c989SThomas Graf	---help---
42952ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets based on
430f7704347SDavid S. Miller	  textsearch comparisons.
431d675c989SThomas Graf
432d675c989SThomas Graf	  To compile this code as a module, choose M here: the
433d675c989SThomas Graf	  module will be called em_text.
434d675c989SThomas Graf
4351da177e4SLinus Torvaldsconfig NET_CLS_ACT
43652ab4ac2SThomas Graf	bool "Actions"
43752ab4ac2SThomas Graf	select NET_ESTIMATOR
4381da177e4SLinus Torvalds	---help---
43952ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
44052ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
44152ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
44252ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
44352ab4ac2SThomas Graf
44452ab4ac2SThomas Graf	  A recent version of the iproute2 package is required to use
44552ab4ac2SThomas Graf	  extended matches.
4461da177e4SLinus Torvalds
4471da177e4SLinus Torvaldsconfig NET_ACT_POLICE
44852ab4ac2SThomas Graf	tristate "Traffic Policing"
4491da177e4SLinus Torvalds        depends on NET_CLS_ACT
4501da177e4SLinus Torvalds        ---help---
45152ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
45252ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
45352ab4ac2SThomas Graf	  module.
45452ab4ac2SThomas Graf
45552ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
45652ab4ac2SThomas Graf	  module will be called police.
4571da177e4SLinus Torvalds
4581da177e4SLinus Torvaldsconfig NET_ACT_GACT
45952ab4ac2SThomas Graf        tristate "Generic actions"
4601da177e4SLinus Torvalds        depends on NET_CLS_ACT
4611da177e4SLinus Torvalds        ---help---
46252ab4ac2SThomas Graf	  Say Y here to take generic actions such as dropping and
46352ab4ac2SThomas Graf	  accepting packets.
46452ab4ac2SThomas Graf
46552ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
46652ab4ac2SThomas Graf	  module will be called gact.
4671da177e4SLinus Torvalds
4681da177e4SLinus Torvaldsconfig GACT_PROB
46952ab4ac2SThomas Graf        bool "Probability support"
4701da177e4SLinus Torvalds        depends on NET_ACT_GACT
4711da177e4SLinus Torvalds        ---help---
47252ab4ac2SThomas Graf	  Say Y here to use the generic action randomly or deterministically.
4731da177e4SLinus Torvalds
4741da177e4SLinus Torvaldsconfig NET_ACT_MIRRED
47552ab4ac2SThomas Graf        tristate "Redirecting and Mirroring"
4761da177e4SLinus Torvalds        depends on NET_CLS_ACT
4771da177e4SLinus Torvalds        ---help---
47852ab4ac2SThomas Graf	  Say Y here to allow packets to be mirrored or redirected to
47952ab4ac2SThomas Graf	  other devices.
48052ab4ac2SThomas Graf
48152ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
48252ab4ac2SThomas Graf	  module will be called mirred.
4831da177e4SLinus Torvalds
4841da177e4SLinus Torvaldsconfig NET_ACT_IPT
48552ab4ac2SThomas Graf        tristate "IPtables targets"
4861da177e4SLinus Torvalds        depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
4871da177e4SLinus Torvalds        ---help---
4883539c272SMatt LaPlante	  Say Y here to be able to invoke iptables targets after successful
48952ab4ac2SThomas Graf	  classification.
49052ab4ac2SThomas Graf
49152ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
49252ab4ac2SThomas Graf	  module will be called ipt.
4931da177e4SLinus Torvalds
4941da177e4SLinus Torvaldsconfig NET_ACT_PEDIT
49552ab4ac2SThomas Graf        tristate "Packet Editing"
4961da177e4SLinus Torvalds        depends on NET_CLS_ACT
4971da177e4SLinus Torvalds        ---help---
49852ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
4991da177e4SLinus Torvalds
50052ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
50152ab4ac2SThomas Graf	  module will be called pedit.
5021da177e4SLinus Torvalds
503db753079SJamal Hadi Salimconfig NET_ACT_SIMP
50452ab4ac2SThomas Graf        tristate "Simple Example (Debug)"
505db753079SJamal Hadi Salim        depends on NET_CLS_ACT
506db753079SJamal Hadi Salim        ---help---
50752ab4ac2SThomas Graf	  Say Y here to add a simple action for demonstration purposes.
50852ab4ac2SThomas Graf	  It is meant as an example and for debugging purposes. It will
50952ab4ac2SThomas Graf	  print a configured policy string followed by the packet count
51052ab4ac2SThomas Graf	  to the console for every packet that passes by.
511db753079SJamal Hadi Salim
51252ab4ac2SThomas Graf	  If unsure, say N.
51352ab4ac2SThomas Graf
51452ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
51552ab4ac2SThomas Graf	  module will be called simple.
51652ab4ac2SThomas Graf
51752ab4ac2SThomas Grafconfig NET_CLS_POLICE
51852ab4ac2SThomas Graf	bool "Traffic Policing (obsolete)"
51905b8b0faSRoman Zippel	depends on NET_CLS_ACT!=y
52052ab4ac2SThomas Graf	select NET_ESTIMATOR
52152ab4ac2SThomas Graf	---help---
52252ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
52352ab4ac2SThomas Graf	  bandwidth limiting. This option is obsoleted by the traffic
52452ab4ac2SThomas Graf	  policer implemented as action, it stays here for compatibility
52552ab4ac2SThomas Graf	  reasons.
52652ab4ac2SThomas Graf
52752ab4ac2SThomas Grafconfig NET_CLS_IND
52852ab4ac2SThomas Graf	bool "Incoming device classification"
52905b8b0faSRoman Zippel	depends on NET_CLS_U32 || NET_CLS_FW
53052ab4ac2SThomas Graf	---help---
53152ab4ac2SThomas Graf	  Say Y here to extend the u32 and fw classifier to support
53252ab4ac2SThomas Graf	  classification based on the incoming device. This option is
53352ab4ac2SThomas Graf	  likely to disappear in favour of the metadata ematch.
53452ab4ac2SThomas Graf
53552ab4ac2SThomas Grafconfig NET_ESTIMATOR
53652ab4ac2SThomas Graf	bool "Rate estimator"
53752ab4ac2SThomas Graf	---help---
53852ab4ac2SThomas Graf	  Say Y here to allow using rate estimators to estimate the current
53952ab4ac2SThomas Graf	  rate-of-flow for network devices, queues, etc. This module is
5403539c272SMatt LaPlante	  automatically selected if needed but can be selected manually for
5413539c272SMatt LaPlante	  statistical purposes.
54252ab4ac2SThomas Graf
54305b8b0faSRoman Zippelendif # NET_SCHED
54405b8b0faSRoman Zippel
54552ab4ac2SThomas Grafendmenu
546