home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / net / sched / Kconfig next >
Encoding:
Text File  |  2006-08-11  |  17.2 KB  |  546 lines

  1. #
  2. # Traffic control configuration.
  3.  
  4. menu "QoS and/or fair queueing"
  5.  
  6. config NET_SCHED
  7.     bool "QoS and/or fair queueing"
  8.     ---help---
  9.       When the kernel has several packets to send out over a network
  10.       device, it has to decide which ones to send first, which ones to
  11.       delay, and which ones to drop. This is the job of the queueing
  12.       disciplines, several different algorithms for how to do this
  13.       "fairly" have been proposed.
  14.  
  15.       If you say N here, you will get the standard packet scheduler, which
  16.       is a FIFO (first come, first served). If you say Y here, you will be
  17.       able to choose from among several alternative algorithms which can
  18.       then be attached to different network devices. This is useful for
  19.       example if some of your network devices are real time devices that
  20.       need a certain minimum data flow rate, or if you need to limit the
  21.       maximum data flow rate for traffic which matches specified criteria.
  22.       This code is considered to be experimental.
  23.  
  24.       To administer these schedulers, you'll need the user-level utilities
  25.       from the package iproute2+tc at <ftp://ftp.tux.org/pub/net/ip-routing/>.
  26.       That package also contains some documentation; for more, check out
  27.       <http://linux-net.osdl.org/index.php/Iproute2>.
  28.  
  29.       This Quality of Service (QoS) support will enable you to use
  30.       Differentiated Services (diffserv) and Resource Reservation Protocol
  31.       (RSVP) on your Linux router if you also say Y to the corresponding
  32.       classifiers below.  Documentation and software is at
  33.       <http://diffserv.sourceforge.net/>.
  34.  
  35.       If you say Y here and to "/proc file system" below, you will be able
  36.       to read status information about packet schedulers from the file
  37.       /proc/net/psched.
  38.  
  39.       The available schedulers are listed in the following questions; you
  40.       can say Y to as many as you like. If unsure, say N now.
  41.  
  42. if NET_SCHED
  43.  
  44. choice
  45.     prompt "Packet scheduler clock source"
  46.     default NET_SCH_CLK_GETTIMEOFDAY
  47.     ---help---
  48.       Packet schedulers need a monotonic clock that increments at a static
  49.       rate. The kernel provides several suitable interfaces, each with
  50.       different properties:
  51.       
  52.       - high resolution (us or better)
  53.       - fast to read (minimal locking, no i/o access)
  54.       - synchronized on all processors
  55.       - handles cpu clock frequency changes
  56.  
  57.       but nothing provides all of the above.
  58.  
  59. config NET_SCH_CLK_JIFFIES
  60.     bool "Timer interrupt"
  61.     ---help---
  62.       Say Y here if you want to use the timer interrupt (jiffies) as clock
  63.       source. This clock source is fast, synchronized on all processors and
  64.       handles cpu clock frequency changes, but its resolution is too low
  65.       for accurate shaping except at very low speed.
  66.  
  67. config NET_SCH_CLK_GETTIMEOFDAY
  68.     bool "gettimeofday"
  69.     ---help---
  70.       Say Y here if you want to use gettimeofday as clock source. This clock
  71.       source has high resolution, is synchronized on all processors and
  72.       handles cpu clock frequency changes, but it is slow.
  73.  
  74.       Choose this if you need a high resolution clock source but can't use
  75.       the CPU's cycle counter.
  76.  
  77. # don't allow on SMP x86 because they can have unsynchronized TSCs.
  78. # gettimeofday is a good alternative
  79. config NET_SCH_CLK_CPU
  80.     bool "CPU cycle counter"
  81.     depends on ((X86_TSC || X86_64) && !SMP) || ALPHA || SPARC64 || PPC64 || IA64
  82.     ---help---
  83.       Say Y here if you want to use the CPU's cycle counter as clock source.
  84.       This is a cheap and high resolution clock source, but on some
  85.       architectures it is not synchronized on all processors and doesn't
  86.       handle cpu clock frequency changes.
  87.  
  88.       The useable cycle counters are:
  89.  
  90.           x86/x86_64    - Timestamp Counter
  91.         alpha        - Cycle Counter
  92.         sparc64        - %ticks register
  93.         ppc64        - Time base
  94.         ia64        - Interval Time Counter
  95.  
  96.       Choose this if your CPU's cycle counter is working properly.
  97.  
  98. endchoice
  99.  
  100. comment "Queueing/Scheduling"
  101.  
  102. config NET_SCH_CBQ
  103.     tristate "Class Based Queueing (CBQ)"
  104.     ---help---
  105.       Say Y here if you want to use the Class-Based Queueing (CBQ) packet
  106.       scheduling algorithm. This algorithm classifies the waiting packets
  107.       into a tree-like hierarchy of classes; the leaves of this tree are
  108.       in turn scheduled by separate algorithms.
  109.  
  110.       See the top of <file:net/sched/sch_cbq.c> for more details.
  111.  
  112.       CBQ is a commonly used scheduler, so if you're unsure, you should
  113.       say Y here. Then say Y to all the queueing algorithms below that you
  114.       want to use as leaf disciplines.
  115.  
  116.       To compile this code as a module, choose M here: the
  117.       module will be called sch_cbq.
  118.  
  119. config NET_SCH_HTB
  120.     tristate "Hierarchical Token Bucket (HTB)"
  121.     ---help---
  122.       Say Y here if you want to use the Hierarchical Token Buckets (HTB)
  123.       packet scheduling algorithm. See
  124.       <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
  125.       in-depth articles.
  126.  
  127.       HTB is very similar to CBQ regarding its goals however is has
  128.       different properties and different algorithm.
  129.  
  130.       To compile this code as a module, choose M here: the
  131.       module will be called sch_htb.
  132.  
  133. config NET_SCH_HFSC
  134.     tristate "Hierarchical Fair Service Curve (HFSC)"
  135.     ---help---
  136.       Say Y here if you want to use the Hierarchical Fair Service Curve
  137.       (HFSC) packet scheduling algorithm.
  138.  
  139.       To compile this code as a module, choose M here: the
  140.       module will be called sch_hfsc.
  141.  
  142. config NET_SCH_ATM
  143.     tristate "ATM Virtual Circuits (ATM)"
  144.     depends on ATM
  145.     ---help---
  146.       Say Y here if you want to use the ATM pseudo-scheduler.  This
  147.       provides a framework for invoking classifiers, which in turn
  148.       select classes of this queuing discipline.  Each class maps
  149.       the flow(s) it is handling to a given virtual circuit.
  150.  
  151.       See the top of <file:net/sched/sch_atm.c>) for more details.
  152.  
  153.       To compile this code as a module, choose M here: the
  154.       module will be called sch_atm.
  155.  
  156. config NET_SCH_PRIO
  157.     tristate "Multi Band Priority Queueing (PRIO)"
  158.     ---help---
  159.       Say Y here if you want to use an n-band priority queue packet
  160.       scheduler.
  161.  
  162.       To compile this code as a module, choose M here: the
  163.       module will be called sch_prio.
  164.  
  165. config NET_SCH_RED
  166.     tristate "Random Early Detection (RED)"
  167.     ---help---
  168.       Say Y here if you want to use the Random Early Detection (RED)
  169.       packet scheduling algorithm.
  170.  
  171.       See the top of <file:net/sched/sch_red.c> for more details.
  172.  
  173.       To compile this code as a module, choose M here: the
  174.       module will be called sch_red.
  175.  
  176. config NET_SCH_SFQ
  177.     tristate "Stochastic Fairness Queueing (SFQ)"
  178.     ---help---
  179.       Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
  180.       packet scheduling algorithm .
  181.  
  182.       See the top of <file:net/sched/sch_sfq.c> for more details.
  183.  
  184.       To compile this code as a module, choose M here: the
  185.       module will be called sch_sfq.
  186.  
  187. config NET_SCH_TEQL
  188.     tristate "True Link Equalizer (TEQL)"
  189.     ---help---
  190.       Say Y here if you want to use the True Link Equalizer (TLE) packet
  191.       scheduling algorithm. This queueing discipline allows the combination
  192.       of several physical devices into one virtual device.
  193.  
  194.       See the top of <file:net/sched/sch_teql.c> for more details.
  195.  
  196.       To compile this code as a module, choose M here: the
  197.       module will be called sch_teql.
  198.  
  199. config NET_SCH_TBF
  200.     tristate "Token Bucket Filter (TBF)"
  201.     ---help---
  202.       Say Y here if you want to use the Token Bucket Filter (TBF) packet
  203.       scheduling algorithm.
  204.  
  205.       See the top of <file:net/sched/sch_tbf.c> for more details.
  206.  
  207.       To compile this code as a module, choose M here: the
  208.       module will be called sch_tbf.
  209.  
  210. config NET_SCH_GRED
  211.     tristate "Generic Random Early Detection (GRED)"
  212.     ---help---
  213.       Say Y here if you want to use the Generic Random Early Detection
  214.       (GRED) packet scheduling algorithm for some of your network devices
  215.       (see the top of <file:net/sched/sch_red.c> for details and
  216.       references about the algorithm).
  217.  
  218.       To compile this code as a module, choose M here: the
  219.       module will be called sch_gred.
  220.  
  221. config NET_SCH_DSMARK
  222.     tristate "Differentiated Services marker (DSMARK)"
  223.     ---help---
  224.       Say Y if you want to schedule packets according to the
  225.       Differentiated Services architecture proposed in RFC 2475.
  226.       Technical information on this method, with pointers to associated
  227.       RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
  228.  
  229.       To compile this code as a module, choose M here: the
  230.       module will be called sch_dsmark.
  231.  
  232. config NET_SCH_NETEM
  233.     tristate "Network emulator (NETEM)"
  234.     ---help---
  235.       Say Y if you want to emulate network delay, loss, and packet
  236.       re-ordering. This is often useful to simulate networks when
  237.       testing applications or protocols.
  238.  
  239.       To compile this driver as a module, choose M here: the module
  240.       will be called sch_netem.
  241.  
  242.       If unsure, say N.
  243.  
  244. config NET_SCH_INGRESS
  245.     tristate "Ingress Qdisc"
  246.     ---help---
  247.       Say Y here if you want to use classifiers for incoming packets.
  248.       If unsure, say Y.
  249.  
  250.       To compile this code as a module, choose M here: the
  251.       module will be called sch_ingress.
  252.  
  253. comment "Classification"
  254.  
  255. config NET_CLS
  256.     boolean
  257.  
  258. config NET_CLS_BASIC
  259.     tristate "Elementary classification (BASIC)"
  260.     select NET_CLS
  261.     ---help---
  262.       Say Y here if you want to be able to classify packets using
  263.       only extended matches and actions.
  264.  
  265.       To compile this code as a module, choose M here: the
  266.       module will be called cls_basic.
  267.  
  268. config NET_CLS_TCINDEX
  269.     tristate "Traffic-Control Index (TCINDEX)"
  270.     select NET_CLS
  271.     ---help---
  272.       Say Y here if you want to be able to classify packets based on
  273.       traffic control indices. You will want this feature if you want
  274.       to implement Differentiated Services together with DSMARK.
  275.  
  276.       To compile this code as a module, choose M here: the
  277.       module will be called cls_tcindex.
  278.  
  279. config NET_CLS_ROUTE4
  280.     tristate "Routing decision (ROUTE)"
  281.     select NET_CLS_ROUTE
  282.     select NET_CLS
  283.     ---help---
  284.       If you say Y here, you will be able to classify packets
  285.       according to the route table entry they matched.
  286.  
  287.       To compile this code as a module, choose M here: the
  288.       module will be called cls_route.
  289.  
  290. config NET_CLS_ROUTE
  291.     bool
  292.  
  293. config NET_CLS_FW
  294.     tristate "Netfilter mark (FW)"
  295.     select NET_CLS
  296.     ---help---
  297.       If you say Y here, you will be able to classify packets
  298.       according to netfilter/firewall marks.
  299.  
  300.       To compile this code as a module, choose M here: the
  301.       module will be called cls_fw.
  302.  
  303. config NET_CLS_U32
  304.     tristate "Universal 32bit comparisons w/ hashing (U32)"
  305.     select NET_CLS
  306.     ---help---
  307.       Say Y here to be able to classify packetes using a universal
  308.       32bit pieces based comparison scheme.
  309.  
  310.       To compile this code as a module, choose M here: the
  311.       module will be called cls_u32.
  312.  
  313. config CLS_U32_PERF
  314.     bool "Performance counters support"
  315.     depends on NET_CLS_U32
  316.     ---help---
  317.       Say Y here to make u32 gather additional statistics useful for
  318.       fine tuning u32 classifiers.
  319.  
  320. config CLS_U32_MARK
  321.     bool "Netfilter marks support"
  322.     depends on NET_CLS_U32 && NETFILTER
  323.     ---help---
  324.       Say Y here to be able to use netfilter marks as u32 key.
  325.  
  326. config NET_CLS_RSVP
  327.     tristate "IPv4 Resource Reservation Protocol (RSVP)"
  328.     select NET_CLS
  329.     select NET_ESTIMATOR
  330.     ---help---
  331.       The Resource Reservation Protocol (RSVP) permits end systems to
  332.       request a minimum and maximum data flow rate for a connection; this
  333.       is important for real time data such as streaming sound or video.
  334.  
  335.       Say Y here if you want to be able to classify outgoing packets based
  336.       on their RSVP requests.
  337.  
  338.       To compile this code as a module, choose M here: the
  339.       module will be called cls_rsvp.
  340.  
  341. config NET_CLS_RSVP6
  342.     tristate "IPv6 Resource Reservation Protocol (RSVP6)"
  343.     select NET_CLS
  344.     select NET_ESTIMATOR
  345.     ---help---
  346.       The Resource Reservation Protocol (RSVP) permits end systems to
  347.       request a minimum and maximum data flow rate for a connection; this
  348.       is important for real time data such as streaming sound or video.
  349.  
  350.       Say Y here if you want to be able to classify outgoing packets based
  351.       on their RSVP requests and you are using the IPv6.
  352.  
  353.       To compile this code as a module, choose M here: the
  354.       module will be called cls_rsvp6.
  355.  
  356. config NET_EMATCH
  357.     bool "Extended Matches"
  358.     select NET_CLS
  359.     ---help---
  360.       Say Y here if you want to use extended matches on top of classifiers
  361.       and select the extended matches below.
  362.  
  363.       Extended matches are small classification helpers not worth writing
  364.       a separate classifier for.
  365.  
  366.       A recent version of the iproute2 package is required to use
  367.       extended matches.
  368.  
  369. config NET_EMATCH_STACK
  370.     int "Stack size"
  371.     depends on NET_EMATCH
  372.     default "32"
  373.     ---help---
  374.       Size of the local stack variable used while evaluating the tree of
  375.       ematches. Limits the depth of the tree, i.e. the number of
  376.       encapsulated precedences. Every level requires 4 bytes of additional
  377.       stack space.
  378.  
  379. config NET_EMATCH_CMP
  380.     tristate "Simple packet data comparison"
  381.     depends on NET_EMATCH
  382.     ---help---
  383.       Say Y here if you want to be able to classify packets based on
  384.       simple packet data comparisons for 8, 16, and 32bit values.
  385.  
  386.       To compile this code as a module, choose M here: the
  387.       module will be called em_cmp.
  388.  
  389. config NET_EMATCH_NBYTE
  390.     tristate "Multi byte comparison"
  391.     depends on NET_EMATCH
  392.     ---help---
  393.       Say Y here if you want to be able to classify packets based on
  394.       multiple byte comparisons mainly useful for IPv6 address comparisons.
  395.  
  396.       To compile this code as a module, choose M here: the
  397.       module will be called em_nbyte.
  398.  
  399. config NET_EMATCH_U32
  400.     tristate "U32 key"
  401.     depends on NET_EMATCH
  402.     ---help---
  403.       Say Y here if you want to be able to classify packets using
  404.       the famous u32 key in combination with logic relations.
  405.  
  406.       To compile this code as a module, choose M here: the
  407.       module will be called em_u32.
  408.  
  409. config NET_EMATCH_META
  410.     tristate "Metadata"
  411.     depends on NET_EMATCH
  412.     ---help---
  413.       Say Y here if you want to be able to classify packets based on
  414.       metadata such as load average, netfilter attributes, socket
  415.       attributes and routing decisions.
  416.  
  417.       To compile this code as a module, choose M here: the
  418.       module will be called em_meta.
  419.  
  420. config NET_EMATCH_TEXT
  421.     tristate "Textsearch"
  422.     depends on NET_EMATCH
  423.     select TEXTSEARCH
  424.     select TEXTSEARCH_KMP
  425.     select TEXTSEARCH_BM
  426.     select TEXTSEARCH_FSM
  427.     ---help---
  428.       Say Y here if you want to be able to classify packets based on
  429.       textsearch comparisons.
  430.  
  431.       To compile this code as a module, choose M here: the
  432.       module will be called em_text.
  433.  
  434. config NET_CLS_ACT
  435.     bool "Actions"
  436.     select NET_ESTIMATOR
  437.     ---help---
  438.       Say Y here if you want to use traffic control actions. Actions
  439.       get attached to classifiers and are invoked after a successful
  440.       classification. They are used to overwrite the classification
  441.       result, instantly drop or redirect packets, etc.
  442.  
  443.       A recent version of the iproute2 package is required to use
  444.       extended matches.
  445.  
  446. config NET_ACT_POLICE
  447.     tristate "Traffic Policing"
  448.         depends on NET_CLS_ACT 
  449.         ---help---
  450.       Say Y here if you want to do traffic policing, i.e. strict
  451.       bandwidth limiting. This action replaces the existing policing
  452.       module.
  453.  
  454.       To compile this code as a module, choose M here: the
  455.       module will be called police.
  456.  
  457. config NET_ACT_GACT
  458.         tristate "Generic actions"
  459.         depends on NET_CLS_ACT
  460.         ---help---
  461.       Say Y here to take generic actions such as dropping and
  462.       accepting packets.
  463.  
  464.       To compile this code as a module, choose M here: the
  465.       module will be called gact.
  466.  
  467. config GACT_PROB
  468.         bool "Probability support"
  469.         depends on NET_ACT_GACT
  470.         ---help---
  471.       Say Y here to use the generic action randomly or deterministically.
  472.  
  473. config NET_ACT_MIRRED
  474.         tristate "Redirecting and Mirroring"
  475.         depends on NET_CLS_ACT
  476.         ---help---
  477.       Say Y here to allow packets to be mirrored or redirected to
  478.       other devices.
  479.  
  480.       To compile this code as a module, choose M here: the
  481.       module will be called mirred.
  482.  
  483. config NET_ACT_IPT
  484.         tristate "IPtables targets"
  485.         depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  486.         ---help---
  487.       Say Y here to be able to invoke iptables targets after succesful
  488.       classification.
  489.  
  490.       To compile this code as a module, choose M here: the
  491.       module will be called ipt.
  492.  
  493. config NET_ACT_PEDIT
  494.         tristate "Packet Editing"
  495.         depends on NET_CLS_ACT
  496.         ---help---
  497.       Say Y here if you want to mangle the content of packets.
  498.  
  499.       To compile this code as a module, choose M here: the
  500.       module will be called pedit.
  501.  
  502. config NET_ACT_SIMP
  503.         tristate "Simple Example (Debug)"
  504.         depends on NET_CLS_ACT
  505.         ---help---
  506.       Say Y here to add a simple action for demonstration purposes.
  507.       It is meant as an example and for debugging purposes. It will
  508.       print a configured policy string followed by the packet count
  509.       to the console for every packet that passes by.
  510.  
  511.       If unsure, say N.
  512.  
  513.       To compile this code as a module, choose M here: the
  514.       module will be called simple.
  515.  
  516. config NET_CLS_POLICE
  517.     bool "Traffic Policing (obsolete)"
  518.     depends on NET_CLS_ACT!=y
  519.     select NET_ESTIMATOR
  520.     ---help---
  521.       Say Y here if you want to do traffic policing, i.e. strict
  522.       bandwidth limiting. This option is obsoleted by the traffic
  523.       policer implemented as action, it stays here for compatibility
  524.       reasons.
  525.  
  526. config NET_CLS_IND
  527.     bool "Incoming device classification"
  528.     depends on NET_CLS_U32 || NET_CLS_FW
  529.     ---help---
  530.       Say Y here to extend the u32 and fw classifier to support
  531.       classification based on the incoming device. This option is
  532.       likely to disappear in favour of the metadata ematch.
  533.  
  534. config NET_ESTIMATOR
  535.     bool "Rate estimator"
  536.     ---help---
  537.       Say Y here to allow using rate estimators to estimate the current
  538.       rate-of-flow for network devices, queues, etc. This module is
  539.       automaticaly selected if needed but can be selected manually for
  540.       statstical purposes.
  541.  
  542. endif # NET_SCHED
  543.  
  544. endmenu
  545.