Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. #
  2. # Traffic control configuration.
  3. #
  4. menu "QoS and/or fair queueing"
  5. config NET_SCHED
  6. bool "QoS and/or fair queueing"
  7. select NET_SCH_FIFO
  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. If you say N here, you will get the standard packet scheduler, which
  15. is a FIFO (first come, first served). If you say Y here, you will be
  16. able to choose from among several alternative algorithms which can
  17. then be attached to different network devices. This is useful for
  18. example if some of your network devices are real time devices that
  19. need a certain minimum data flow rate, or if you need to limit the
  20. maximum data flow rate for traffic which matches specified criteria.
  21. This code is considered to be experimental.
  22. To administer these schedulers, you'll need the user-level utilities
  23. from the package iproute2+tc at <ftp://ftp.tux.org/pub/net/ip-routing/>.
  24. That package also contains some documentation; for more, check out
  25. <http://linux-net.osdl.org/index.php/Iproute2>.
  26. This Quality of Service (QoS) support will enable you to use
  27. Differentiated Services (diffserv) and Resource Reservation Protocol
  28. (RSVP) on your Linux router if you also say Y to the corresponding
  29. classifiers below. Documentation and software is at
  30. <http://diffserv.sourceforge.net/>.
  31. If you say Y here and to "/proc file system" below, you will be able
  32. to read status information about packet schedulers from the file
  33. /proc/net/psched.
  34. The available schedulers are listed in the following questions; you
  35. can say Y to as many as you like. If unsure, say N now.
  36. config NET_SCH_FIFO
  37. bool
  38. if NET_SCHED
  39. comment "Queueing/Scheduling"
  40. config NET_SCH_CBQ
  41. tristate "Class Based Queueing (CBQ)"
  42. ---help---
  43. Say Y here if you want to use the Class-Based Queueing (CBQ) packet
  44. scheduling algorithm. This algorithm classifies the waiting packets
  45. into a tree-like hierarchy of classes; the leaves of this tree are
  46. in turn scheduled by separate algorithms.
  47. See the top of <file:net/sched/sch_cbq.c> for more details.
  48. CBQ is a commonly used scheduler, so if you're unsure, you should
  49. say Y here. Then say Y to all the queueing algorithms below that you
  50. want to use as leaf disciplines.
  51. To compile this code as a module, choose M here: the
  52. module will be called sch_cbq.
  53. config NET_SCH_HTB
  54. tristate "Hierarchical Token Bucket (HTB)"
  55. ---help---
  56. Say Y here if you want to use the Hierarchical Token Buckets (HTB)
  57. packet scheduling algorithm. See
  58. <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
  59. in-depth articles.
  60. HTB is very similar to CBQ regarding its goals however is has
  61. different properties and different algorithm.
  62. To compile this code as a module, choose M here: the
  63. module will be called sch_htb.
  64. config NET_SCH_HFSC
  65. tristate "Hierarchical Fair Service Curve (HFSC)"
  66. ---help---
  67. Say Y here if you want to use the Hierarchical Fair Service Curve
  68. (HFSC) packet scheduling algorithm.
  69. To compile this code as a module, choose M here: the
  70. module will be called sch_hfsc.
  71. config NET_SCH_ATM
  72. tristate "ATM Virtual Circuits (ATM)"
  73. depends on ATM
  74. ---help---
  75. Say Y here if you want to use the ATM pseudo-scheduler. This
  76. provides a framework for invoking classifiers, which in turn
  77. select classes of this queuing discipline. Each class maps
  78. the flow(s) it is handling to a given virtual circuit.
  79. See the top of <file:net/sched/sch_atm.c>) for more details.
  80. To compile this code as a module, choose M here: the
  81. module will be called sch_atm.
  82. config NET_SCH_PRIO
  83. tristate "Multi Band Priority Queueing (PRIO)"
  84. ---help---
  85. Say Y here if you want to use an n-band priority queue packet
  86. scheduler.
  87. To compile this code as a module, choose M here: the
  88. module will be called sch_prio.
  89. config NET_SCH_RR
  90. tristate "Multi Band Round Robin Queuing (RR)"
  91. select NET_SCH_PRIO
  92. ---help---
  93. Say Y here if you want to use an n-band round robin packet
  94. scheduler.
  95. The module uses sch_prio for its framework and is aliased as
  96. sch_rr, so it will load sch_prio, although it is referred
  97. to using sch_rr.
  98. config NET_SCH_RED
  99. tristate "Random Early Detection (RED)"
  100. ---help---
  101. Say Y here if you want to use the Random Early Detection (RED)
  102. packet scheduling algorithm.
  103. See the top of <file:net/sched/sch_red.c> for more details.
  104. To compile this code as a module, choose M here: the
  105. module will be called sch_red.
  106. config NET_SCH_SFQ
  107. tristate "Stochastic Fairness Queueing (SFQ)"
  108. ---help---
  109. Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
  110. packet scheduling algorithm .
  111. See the top of <file:net/sched/sch_sfq.c> for more details.
  112. To compile this code as a module, choose M here: the
  113. module will be called sch_sfq.
  114. config NET_SCH_TEQL
  115. tristate "True Link Equalizer (TEQL)"
  116. ---help---
  117. Say Y here if you want to use the True Link Equalizer (TLE) packet
  118. scheduling algorithm. This queueing discipline allows the combination
  119. of several physical devices into one virtual device.
  120. See the top of <file:net/sched/sch_teql.c> for more details.
  121. To compile this code as a module, choose M here: the
  122. module will be called sch_teql.
  123. config NET_SCH_TBF
  124. tristate "Token Bucket Filter (TBF)"
  125. ---help---
  126. Say Y here if you want to use the Token Bucket Filter (TBF) packet
  127. scheduling algorithm.
  128. See the top of <file:net/sched/sch_tbf.c> for more details.
  129. To compile this code as a module, choose M here: the
  130. module will be called sch_tbf.
  131. config NET_SCH_GRED
  132. tristate "Generic Random Early Detection (GRED)"
  133. ---help---
  134. Say Y here if you want to use the Generic Random Early Detection
  135. (GRED) packet scheduling algorithm for some of your network devices
  136. (see the top of <file:net/sched/sch_red.c> for details and
  137. references about the algorithm).
  138. To compile this code as a module, choose M here: the
  139. module will be called sch_gred.
  140. config NET_SCH_DSMARK
  141. tristate "Differentiated Services marker (DSMARK)"
  142. ---help---
  143. Say Y if you want to schedule packets according to the
  144. Differentiated Services architecture proposed in RFC 2475.
  145. Technical information on this method, with pointers to associated
  146. RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
  147. To compile this code as a module, choose M here: the
  148. module will be called sch_dsmark.
  149. config NET_SCH_NETEM
  150. tristate "Network emulator (NETEM)"
  151. ---help---
  152. Say Y if you want to emulate network delay, loss, and packet
  153. re-ordering. This is often useful to simulate networks when
  154. testing applications or protocols.
  155. To compile this driver as a module, choose M here: the module
  156. will be called sch_netem.
  157. If unsure, say N.
  158. config NET_SCH_INGRESS
  159. tristate "Ingress Qdisc"
  160. ---help---
  161. Say Y here if you want to use classifiers for incoming packets.
  162. If unsure, say Y.
  163. To compile this code as a module, choose M here: the
  164. module will be called sch_ingress.
  165. comment "Classification"
  166. config NET_CLS
  167. boolean
  168. config NET_CLS_BASIC
  169. tristate "Elementary classification (BASIC)"
  170. select NET_CLS
  171. ---help---
  172. Say Y here if you want to be able to classify packets using
  173. only extended matches and actions.
  174. To compile this code as a module, choose M here: the
  175. module will be called cls_basic.
  176. config NET_CLS_TCINDEX
  177. tristate "Traffic-Control Index (TCINDEX)"
  178. select NET_CLS
  179. ---help---
  180. Say Y here if you want to be able to classify packets based on
  181. traffic control indices. You will want this feature if you want
  182. to implement Differentiated Services together with DSMARK.
  183. To compile this code as a module, choose M here: the
  184. module will be called cls_tcindex.
  185. config NET_CLS_ROUTE4
  186. tristate "Routing decision (ROUTE)"
  187. select NET_CLS_ROUTE
  188. select NET_CLS
  189. ---help---
  190. If you say Y here, you will be able to classify packets
  191. according to the route table entry they matched.
  192. To compile this code as a module, choose M here: the
  193. module will be called cls_route.
  194. config NET_CLS_ROUTE
  195. bool
  196. config NET_CLS_FW
  197. tristate "Netfilter mark (FW)"
  198. select NET_CLS
  199. ---help---
  200. If you say Y here, you will be able to classify packets
  201. according to netfilter/firewall marks.
  202. To compile this code as a module, choose M here: the
  203. module will be called cls_fw.
  204. config NET_CLS_U32
  205. tristate "Universal 32bit comparisons w/ hashing (U32)"
  206. select NET_CLS
  207. ---help---
  208. Say Y here to be able to classify packets using a universal
  209. 32bit pieces based comparison scheme.
  210. To compile this code as a module, choose M here: the
  211. module will be called cls_u32.
  212. config CLS_U32_PERF
  213. bool "Performance counters support"
  214. depends on NET_CLS_U32
  215. ---help---
  216. Say Y here to make u32 gather additional statistics useful for
  217. fine tuning u32 classifiers.
  218. config CLS_U32_MARK
  219. bool "Netfilter marks support"
  220. depends on NET_CLS_U32
  221. ---help---
  222. Say Y here to be able to use netfilter marks as u32 key.
  223. config NET_CLS_RSVP
  224. tristate "IPv4 Resource Reservation Protocol (RSVP)"
  225. select NET_CLS
  226. select NET_ESTIMATOR
  227. ---help---
  228. The Resource Reservation Protocol (RSVP) permits end systems to
  229. request a minimum and maximum data flow rate for a connection; this
  230. is important for real time data such as streaming sound or video.
  231. Say Y here if you want to be able to classify outgoing packets based
  232. on their RSVP requests.
  233. To compile this code as a module, choose M here: the
  234. module will be called cls_rsvp.
  235. config NET_CLS_RSVP6
  236. tristate "IPv6 Resource Reservation Protocol (RSVP6)"
  237. select NET_CLS
  238. select NET_ESTIMATOR
  239. ---help---
  240. The Resource Reservation Protocol (RSVP) permits end systems to
  241. request a minimum and maximum data flow rate for a connection; this
  242. is important for real time data such as streaming sound or video.
  243. Say Y here if you want to be able to classify outgoing packets based
  244. on their RSVP requests and you are using the IPv6.
  245. To compile this code as a module, choose M here: the
  246. module will be called cls_rsvp6.
  247. config NET_EMATCH
  248. bool "Extended Matches"
  249. select NET_CLS
  250. ---help---
  251. Say Y here if you want to use extended matches on top of classifiers
  252. and select the extended matches below.
  253. Extended matches are small classification helpers not worth writing
  254. a separate classifier for.
  255. A recent version of the iproute2 package is required to use
  256. extended matches.
  257. config NET_EMATCH_STACK
  258. int "Stack size"
  259. depends on NET_EMATCH
  260. default "32"
  261. ---help---
  262. Size of the local stack variable used while evaluating the tree of
  263. ematches. Limits the depth of the tree, i.e. the number of
  264. encapsulated precedences. Every level requires 4 bytes of additional
  265. stack space.
  266. config NET_EMATCH_CMP
  267. tristate "Simple packet data comparison"
  268. depends on NET_EMATCH
  269. ---help---
  270. Say Y here if you want to be able to classify packets based on
  271. simple packet data comparisons for 8, 16, and 32bit values.
  272. To compile this code as a module, choose M here: the
  273. module will be called em_cmp.
  274. config NET_EMATCH_NBYTE
  275. tristate "Multi byte comparison"
  276. depends on NET_EMATCH
  277. ---help---
  278. Say Y here if you want to be able to classify packets based on
  279. multiple byte comparisons mainly useful for IPv6 address comparisons.
  280. To compile this code as a module, choose M here: the
  281. module will be called em_nbyte.
  282. config NET_EMATCH_U32
  283. tristate "U32 key"
  284. depends on NET_EMATCH
  285. ---help---
  286. Say Y here if you want to be able to classify packets using
  287. the famous u32 key in combination with logic relations.
  288. To compile this code as a module, choose M here: the
  289. module will be called em_u32.
  290. config NET_EMATCH_META
  291. tristate "Metadata"
  292. depends on NET_EMATCH
  293. ---help---
  294. Say Y here if you want to be able to classify packets based on
  295. metadata such as load average, netfilter attributes, socket
  296. attributes and routing decisions.
  297. To compile this code as a module, choose M here: the
  298. module will be called em_meta.
  299. config NET_EMATCH_TEXT
  300. tristate "Textsearch"
  301. depends on NET_EMATCH
  302. select TEXTSEARCH
  303. select TEXTSEARCH_KMP
  304. select TEXTSEARCH_BM
  305. select TEXTSEARCH_FSM
  306. ---help---
  307. Say Y here if you want to be able to classify packets based on
  308. textsearch comparisons.
  309. To compile this code as a module, choose M here: the
  310. module will be called em_text.
  311. config NET_CLS_ACT
  312. bool "Actions"
  313. select NET_ESTIMATOR
  314. ---help---
  315. Say Y here if you want to use traffic control actions. Actions
  316. get attached to classifiers and are invoked after a successful
  317. classification. They are used to overwrite the classification
  318. result, instantly drop or redirect packets, etc.
  319. A recent version of the iproute2 package is required to use
  320. extended matches.
  321. config NET_ACT_POLICE
  322. tristate "Traffic Policing"
  323. depends on NET_CLS_ACT
  324. ---help---
  325. Say Y here if you want to do traffic policing, i.e. strict
  326. bandwidth limiting. This action replaces the existing policing
  327. module.
  328. To compile this code as a module, choose M here: the
  329. module will be called police.
  330. config NET_ACT_GACT
  331. tristate "Generic actions"
  332. depends on NET_CLS_ACT
  333. ---help---
  334. Say Y here to take generic actions such as dropping and
  335. accepting packets.
  336. To compile this code as a module, choose M here: the
  337. module will be called gact.
  338. config GACT_PROB
  339. bool "Probability support"
  340. depends on NET_ACT_GACT
  341. ---help---
  342. Say Y here to use the generic action randomly or deterministically.
  343. config NET_ACT_MIRRED
  344. tristate "Redirecting and Mirroring"
  345. depends on NET_CLS_ACT
  346. ---help---
  347. Say Y here to allow packets to be mirrored or redirected to
  348. other devices.
  349. To compile this code as a module, choose M here: the
  350. module will be called mirred.
  351. config NET_ACT_IPT
  352. tristate "IPtables targets"
  353. depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  354. ---help---
  355. Say Y here to be able to invoke iptables targets after successful
  356. classification.
  357. To compile this code as a module, choose M here: the
  358. module will be called ipt.
  359. config NET_ACT_PEDIT
  360. tristate "Packet Editing"
  361. depends on NET_CLS_ACT
  362. ---help---
  363. Say Y here if you want to mangle the content of packets.
  364. To compile this code as a module, choose M here: the
  365. module will be called pedit.
  366. config NET_ACT_SIMP
  367. tristate "Simple Example (Debug)"
  368. depends on NET_CLS_ACT
  369. ---help---
  370. Say Y here to add a simple action for demonstration purposes.
  371. It is meant as an example and for debugging purposes. It will
  372. print a configured policy string followed by the packet count
  373. to the console for every packet that passes by.
  374. If unsure, say N.
  375. To compile this code as a module, choose M here: the
  376. module will be called simple.
  377. config NET_CLS_POLICE
  378. bool "Traffic Policing (obsolete)"
  379. depends on NET_CLS_ACT!=y
  380. select NET_ESTIMATOR
  381. ---help---
  382. Say Y here if you want to do traffic policing, i.e. strict
  383. bandwidth limiting. This option is obsoleted by the traffic
  384. policer implemented as action, it stays here for compatibility
  385. reasons.
  386. config NET_CLS_IND
  387. bool "Incoming device classification"
  388. depends on NET_CLS_U32 || NET_CLS_FW
  389. ---help---
  390. Say Y here to extend the u32 and fw classifier to support
  391. classification based on the incoming device. This option is
  392. likely to disappear in favour of the metadata ematch.
  393. config NET_ESTIMATOR
  394. bool "Rate estimator"
  395. ---help---
  396. Say Y here to allow using rate estimators to estimate the current
  397. rate-of-flow for network devices, queues, etc. This module is
  398. automatically selected if needed but can be selected manually for
  399. statistical purposes.
  400. endif # NET_SCHED
  401. endmenu