Kconfig 17 KB

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