Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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. ---help---
  227. The Resource Reservation Protocol (RSVP) permits end systems to
  228. request a minimum and maximum data flow rate for a connection; this
  229. is important for real time data such as streaming sound or video.
  230. Say Y here if you want to be able to classify outgoing packets based
  231. on their RSVP requests.
  232. To compile this code as a module, choose M here: the
  233. module will be called cls_rsvp.
  234. config NET_CLS_RSVP6
  235. tristate "IPv6 Resource Reservation Protocol (RSVP6)"
  236. select NET_CLS
  237. ---help---
  238. The Resource Reservation Protocol (RSVP) permits end systems to
  239. request a minimum and maximum data flow rate for a connection; this
  240. is important for real time data such as streaming sound or video.
  241. Say Y here if you want to be able to classify outgoing packets based
  242. on their RSVP requests and you are using the IPv6 protocol.
  243. To compile this code as a module, choose M here: the
  244. module will be called cls_rsvp6.
  245. config NET_EMATCH
  246. bool "Extended Matches"
  247. select NET_CLS
  248. ---help---
  249. Say Y here if you want to use extended matches on top of classifiers
  250. and select the extended matches below.
  251. Extended matches are small classification helpers not worth writing
  252. a separate classifier for.
  253. A recent version of the iproute2 package is required to use
  254. extended matches.
  255. config NET_EMATCH_STACK
  256. int "Stack size"
  257. depends on NET_EMATCH
  258. default "32"
  259. ---help---
  260. Size of the local stack variable used while evaluating the tree of
  261. ematches. Limits the depth of the tree, i.e. the number of
  262. encapsulated precedences. Every level requires 4 bytes of additional
  263. stack space.
  264. config NET_EMATCH_CMP
  265. tristate "Simple packet data comparison"
  266. depends on NET_EMATCH
  267. ---help---
  268. Say Y here if you want to be able to classify packets based on
  269. simple packet data comparisons for 8, 16, and 32bit values.
  270. To compile this code as a module, choose M here: the
  271. module will be called em_cmp.
  272. config NET_EMATCH_NBYTE
  273. tristate "Multi byte comparison"
  274. depends on NET_EMATCH
  275. ---help---
  276. Say Y here if you want to be able to classify packets based on
  277. multiple byte comparisons mainly useful for IPv6 address comparisons.
  278. To compile this code as a module, choose M here: the
  279. module will be called em_nbyte.
  280. config NET_EMATCH_U32
  281. tristate "U32 key"
  282. depends on NET_EMATCH
  283. ---help---
  284. Say Y here if you want to be able to classify packets using
  285. the famous u32 key in combination with logic relations.
  286. To compile this code as a module, choose M here: the
  287. module will be called em_u32.
  288. config NET_EMATCH_META
  289. tristate "Metadata"
  290. depends on NET_EMATCH
  291. ---help---
  292. Say Y here if you want to be able to classify packets based on
  293. metadata such as load average, netfilter attributes, socket
  294. attributes and routing decisions.
  295. To compile this code as a module, choose M here: the
  296. module will be called em_meta.
  297. config NET_EMATCH_TEXT
  298. tristate "Textsearch"
  299. depends on NET_EMATCH
  300. select TEXTSEARCH
  301. select TEXTSEARCH_KMP
  302. select TEXTSEARCH_BM
  303. select TEXTSEARCH_FSM
  304. ---help---
  305. Say Y here if you want to be able to classify packets based on
  306. textsearch comparisons.
  307. To compile this code as a module, choose M here: the
  308. module will be called em_text.
  309. config NET_CLS_ACT
  310. bool "Actions"
  311. ---help---
  312. Say Y here if you want to use traffic control actions. Actions
  313. get attached to classifiers and are invoked after a successful
  314. classification. They are used to overwrite the classification
  315. result, instantly drop or redirect packets, etc.
  316. A recent version of the iproute2 package is required to use
  317. extended matches.
  318. config NET_ACT_POLICE
  319. tristate "Traffic Policing"
  320. depends on NET_CLS_ACT
  321. ---help---
  322. Say Y here if you want to do traffic policing, i.e. strict
  323. bandwidth limiting. This action replaces the existing policing
  324. module.
  325. To compile this code as a module, choose M here: the
  326. module will be called police.
  327. config NET_ACT_GACT
  328. tristate "Generic actions"
  329. depends on NET_CLS_ACT
  330. ---help---
  331. Say Y here to take generic actions such as dropping and
  332. accepting packets.
  333. To compile this code as a module, choose M here: the
  334. module will be called gact.
  335. config GACT_PROB
  336. bool "Probability support"
  337. depends on NET_ACT_GACT
  338. ---help---
  339. Say Y here to use the generic action randomly or deterministically.
  340. config NET_ACT_MIRRED
  341. tristate "Redirecting and Mirroring"
  342. depends on NET_CLS_ACT
  343. ---help---
  344. Say Y here to allow packets to be mirrored or redirected to
  345. other devices.
  346. To compile this code as a module, choose M here: the
  347. module will be called mirred.
  348. config NET_ACT_IPT
  349. tristate "IPtables targets"
  350. depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  351. ---help---
  352. Say Y here to be able to invoke iptables targets after successful
  353. classification.
  354. To compile this code as a module, choose M here: the
  355. module will be called ipt.
  356. config NET_ACT_NAT
  357. tristate "Stateless NAT"
  358. depends on NET_CLS_ACT
  359. select NETFILTER
  360. ---help---
  361. Say Y here to do stateless NAT on IPv4 packets. You should use
  362. netfilter for NAT unless you know what you are doing.
  363. To compile this code as a module, choose M here: the
  364. module will be called nat.
  365. config NET_ACT_PEDIT
  366. tristate "Packet Editing"
  367. depends on NET_CLS_ACT
  368. ---help---
  369. Say Y here if you want to mangle the content of packets.
  370. To compile this code as a module, choose M here: the
  371. module will be called pedit.
  372. config NET_ACT_SIMP
  373. tristate "Simple Example (Debug)"
  374. depends on NET_CLS_ACT
  375. ---help---
  376. Say Y here to add a simple action for demonstration purposes.
  377. It is meant as an example and for debugging purposes. It will
  378. print a configured policy string followed by the packet count
  379. to the console for every packet that passes by.
  380. If unsure, say N.
  381. To compile this code as a module, choose M here: the
  382. module will be called simple.
  383. config NET_CLS_POLICE
  384. bool "Traffic Policing (obsolete)"
  385. select NET_CLS_ACT
  386. select NET_ACT_POLICE
  387. ---help---
  388. Say Y here if you want to do traffic policing, i.e. strict
  389. bandwidth limiting. This option is obsolete and just selects
  390. the option replacing it. It will be removed in the future.
  391. config NET_CLS_IND
  392. bool "Incoming device classification"
  393. depends on NET_CLS_U32 || NET_CLS_FW
  394. ---help---
  395. Say Y here to extend the u32 and fw classifier to support
  396. classification based on the incoming device. This option is
  397. likely to disappear in favour of the metadata ematch.
  398. endif # NET_SCHED
  399. endmenu