Kconfig 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. #
  2. # Traffic control configuration.
  3. #
  4. menuconfig NET_SCHED
  5. bool "QoS and/or fair queueing"
  6. select NET_SCH_FIFO
  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://www.linuxfoundation.org/collaborate/workgroups/networking/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. comment "Queueing/Scheduling"
  37. config NET_SCH_CBQ
  38. tristate "Class Based Queueing (CBQ)"
  39. ---help---
  40. Say Y here if you want to use the Class-Based Queueing (CBQ) packet
  41. scheduling algorithm. This algorithm classifies the waiting packets
  42. into a tree-like hierarchy of classes; the leaves of this tree are
  43. in turn scheduled by separate algorithms.
  44. See the top of <file:net/sched/sch_cbq.c> for more details.
  45. CBQ is a commonly used scheduler, so if you're unsure, you should
  46. say Y here. Then say Y to all the queueing algorithms below that you
  47. want to use as leaf disciplines.
  48. To compile this code as a module, choose M here: the
  49. module will be called sch_cbq.
  50. config NET_SCH_HTB
  51. tristate "Hierarchical Token Bucket (HTB)"
  52. ---help---
  53. Say Y here if you want to use the Hierarchical Token Buckets (HTB)
  54. packet scheduling algorithm. See
  55. <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
  56. in-depth articles.
  57. HTB is very similar to CBQ regarding its goals however is has
  58. different properties and different algorithm.
  59. To compile this code as a module, choose M here: the
  60. module will be called sch_htb.
  61. config NET_SCH_HFSC
  62. tristate "Hierarchical Fair Service Curve (HFSC)"
  63. ---help---
  64. Say Y here if you want to use the Hierarchical Fair Service Curve
  65. (HFSC) packet scheduling algorithm.
  66. To compile this code as a module, choose M here: the
  67. module will be called sch_hfsc.
  68. config NET_SCH_ATM
  69. tristate "ATM Virtual Circuits (ATM)"
  70. depends on ATM
  71. ---help---
  72. Say Y here if you want to use the ATM pseudo-scheduler. This
  73. provides a framework for invoking classifiers, which in turn
  74. select classes of this queuing discipline. Each class maps
  75. the flow(s) it is handling to a given virtual circuit.
  76. See the top of <file:net/sched/sch_atm.c> for more details.
  77. To compile this code as a module, choose M here: the
  78. module will be called sch_atm.
  79. config NET_SCH_PRIO
  80. tristate "Multi Band Priority Queueing (PRIO)"
  81. ---help---
  82. Say Y here if you want to use an n-band priority queue packet
  83. scheduler.
  84. To compile this code as a module, choose M here: the
  85. module will be called sch_prio.
  86. config NET_SCH_MULTIQ
  87. tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)"
  88. ---help---
  89. Say Y here if you want to use an n-band queue packet scheduler
  90. to support devices that have multiple hardware transmit queues.
  91. To compile this code as a module, choose M here: the
  92. module will be called sch_multiq.
  93. config NET_SCH_RED
  94. tristate "Random Early Detection (RED)"
  95. ---help---
  96. Say Y here if you want to use the Random Early Detection (RED)
  97. packet scheduling algorithm.
  98. See the top of <file:net/sched/sch_red.c> for more details.
  99. To compile this code as a module, choose M here: the
  100. module will be called sch_red.
  101. config NET_SCH_SFQ
  102. tristate "Stochastic Fairness Queueing (SFQ)"
  103. ---help---
  104. Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
  105. packet scheduling algorithm.
  106. See the top of <file:net/sched/sch_sfq.c> for more details.
  107. To compile this code as a module, choose M here: the
  108. module will be called sch_sfq.
  109. config NET_SCH_TEQL
  110. tristate "True Link Equalizer (TEQL)"
  111. ---help---
  112. Say Y here if you want to use the True Link Equalizer (TLE) packet
  113. scheduling algorithm. This queueing discipline allows the combination
  114. of several physical devices into one virtual device.
  115. See the top of <file:net/sched/sch_teql.c> for more details.
  116. To compile this code as a module, choose M here: the
  117. module will be called sch_teql.
  118. config NET_SCH_TBF
  119. tristate "Token Bucket Filter (TBF)"
  120. ---help---
  121. Say Y here if you want to use the Token Bucket Filter (TBF) packet
  122. scheduling algorithm.
  123. See the top of <file:net/sched/sch_tbf.c> for more details.
  124. To compile this code as a module, choose M here: the
  125. module will be called sch_tbf.
  126. config NET_SCH_GRED
  127. tristate "Generic Random Early Detection (GRED)"
  128. ---help---
  129. Say Y here if you want to use the Generic Random Early Detection
  130. (GRED) packet scheduling algorithm for some of your network devices
  131. (see the top of <file:net/sched/sch_red.c> for details and
  132. references about the algorithm).
  133. To compile this code as a module, choose M here: the
  134. module will be called sch_gred.
  135. config NET_SCH_DSMARK
  136. tristate "Differentiated Services marker (DSMARK)"
  137. ---help---
  138. Say Y if you want to schedule packets according to the
  139. Differentiated Services architecture proposed in RFC 2475.
  140. Technical information on this method, with pointers to associated
  141. RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
  142. To compile this code as a module, choose M here: the
  143. module will be called sch_dsmark.
  144. config NET_SCH_NETEM
  145. tristate "Network emulator (NETEM)"
  146. ---help---
  147. Say Y if you want to emulate network delay, loss, and packet
  148. re-ordering. This is often useful to simulate networks when
  149. testing applications or protocols.
  150. To compile this driver as a module, choose M here: the module
  151. will be called sch_netem.
  152. If unsure, say N.
  153. config NET_SCH_DRR
  154. tristate "Deficit Round Robin scheduler (DRR)"
  155. help
  156. Say Y here if you want to use the Deficit Round Robin (DRR) packet
  157. scheduling algorithm.
  158. To compile this driver as a module, choose M here: the module
  159. will be called sch_drr.
  160. If unsure, say N.
  161. config NET_SCH_MQPRIO
  162. tristate "Multi-queue priority scheduler (MQPRIO)"
  163. help
  164. Say Y here if you want to use the Multi-queue Priority scheduler.
  165. This scheduler allows QOS to be offloaded on NICs that have support
  166. for offloading QOS schedulers.
  167. To compile this driver as a module, choose M here: the module will
  168. be called sch_mqprio.
  169. If unsure, say N.
  170. config NET_SCH_CHOKE
  171. tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
  172. help
  173. Say Y here if you want to use the CHOKe packet scheduler (CHOose
  174. and Keep for responsive flows, CHOose and Kill for unresponsive
  175. flows). This is a variation of RED which trys to penalize flows
  176. that monopolize the queue.
  177. To compile this code as a module, choose M here: the
  178. module will be called sch_choke.
  179. config NET_SCH_INGRESS
  180. tristate "Ingress Qdisc"
  181. depends on NET_CLS_ACT
  182. ---help---
  183. Say Y here if you want to use classifiers for incoming packets.
  184. If unsure, say Y.
  185. To compile this code as a module, choose M here: the
  186. module will be called sch_ingress.
  187. comment "Classification"
  188. config NET_CLS
  189. boolean
  190. config NET_CLS_BASIC
  191. tristate "Elementary classification (BASIC)"
  192. select NET_CLS
  193. ---help---
  194. Say Y here if you want to be able to classify packets using
  195. only extended matches and actions.
  196. To compile this code as a module, choose M here: the
  197. module will be called cls_basic.
  198. config NET_CLS_TCINDEX
  199. tristate "Traffic-Control Index (TCINDEX)"
  200. select NET_CLS
  201. ---help---
  202. Say Y here if you want to be able to classify packets based on
  203. traffic control indices. You will want this feature if you want
  204. to implement Differentiated Services together with DSMARK.
  205. To compile this code as a module, choose M here: the
  206. module will be called cls_tcindex.
  207. config NET_CLS_ROUTE4
  208. tristate "Routing decision (ROUTE)"
  209. select IP_ROUTE_CLASSID
  210. select NET_CLS
  211. ---help---
  212. If you say Y here, you will be able to classify packets
  213. according to the route table entry they matched.
  214. To compile this code as a module, choose M here: the
  215. module will be called cls_route.
  216. config NET_CLS_FW
  217. tristate "Netfilter mark (FW)"
  218. select NET_CLS
  219. ---help---
  220. If you say Y here, you will be able to classify packets
  221. according to netfilter/firewall marks.
  222. To compile this code as a module, choose M here: the
  223. module will be called cls_fw.
  224. config NET_CLS_U32
  225. tristate "Universal 32bit comparisons w/ hashing (U32)"
  226. select NET_CLS
  227. ---help---
  228. Say Y here to be able to classify packets using a universal
  229. 32bit pieces based comparison scheme.
  230. To compile this code as a module, choose M here: the
  231. module will be called cls_u32.
  232. config CLS_U32_PERF
  233. bool "Performance counters support"
  234. depends on NET_CLS_U32
  235. ---help---
  236. Say Y here to make u32 gather additional statistics useful for
  237. fine tuning u32 classifiers.
  238. config CLS_U32_MARK
  239. bool "Netfilter marks support"
  240. depends on NET_CLS_U32
  241. ---help---
  242. Say Y here to be able to use netfilter marks as u32 key.
  243. config NET_CLS_RSVP
  244. tristate "IPv4 Resource Reservation Protocol (RSVP)"
  245. select NET_CLS
  246. ---help---
  247. The Resource Reservation Protocol (RSVP) permits end systems to
  248. request a minimum and maximum data flow rate for a connection; this
  249. is important for real time data such as streaming sound or video.
  250. Say Y here if you want to be able to classify outgoing packets based
  251. on their RSVP requests.
  252. To compile this code as a module, choose M here: the
  253. module will be called cls_rsvp.
  254. config NET_CLS_RSVP6
  255. tristate "IPv6 Resource Reservation Protocol (RSVP6)"
  256. select NET_CLS
  257. ---help---
  258. The Resource Reservation Protocol (RSVP) permits end systems to
  259. request a minimum and maximum data flow rate for a connection; this
  260. is important for real time data such as streaming sound or video.
  261. Say Y here if you want to be able to classify outgoing packets based
  262. on their RSVP requests and you are using the IPv6 protocol.
  263. To compile this code as a module, choose M here: the
  264. module will be called cls_rsvp6.
  265. config NET_CLS_FLOW
  266. tristate "Flow classifier"
  267. select NET_CLS
  268. ---help---
  269. If you say Y here, you will be able to classify packets based on
  270. a configurable combination of packet keys. This is mostly useful
  271. in combination with SFQ.
  272. To compile this code as a module, choose M here: the
  273. module will be called cls_flow.
  274. config NET_CLS_CGROUP
  275. tristate "Control Group Classifier"
  276. select NET_CLS
  277. depends on CGROUPS
  278. ---help---
  279. Say Y here if you want to classify packets based on the control
  280. cgroup of their process.
  281. To compile this code as a module, choose M here: the
  282. module will be called cls_cgroup.
  283. config NET_EMATCH
  284. bool "Extended Matches"
  285. select NET_CLS
  286. ---help---
  287. Say Y here if you want to use extended matches on top of classifiers
  288. and select the extended matches below.
  289. Extended matches are small classification helpers not worth writing
  290. a separate classifier for.
  291. A recent version of the iproute2 package is required to use
  292. extended matches.
  293. config NET_EMATCH_STACK
  294. int "Stack size"
  295. depends on NET_EMATCH
  296. default "32"
  297. ---help---
  298. Size of the local stack variable used while evaluating the tree of
  299. ematches. Limits the depth of the tree, i.e. the number of
  300. encapsulated precedences. Every level requires 4 bytes of additional
  301. stack space.
  302. config NET_EMATCH_CMP
  303. tristate "Simple packet data comparison"
  304. depends on NET_EMATCH
  305. ---help---
  306. Say Y here if you want to be able to classify packets based on
  307. simple packet data comparisons for 8, 16, and 32bit values.
  308. To compile this code as a module, choose M here: the
  309. module will be called em_cmp.
  310. config NET_EMATCH_NBYTE
  311. tristate "Multi byte comparison"
  312. depends on NET_EMATCH
  313. ---help---
  314. Say Y here if you want to be able to classify packets based on
  315. multiple byte comparisons mainly useful for IPv6 address comparisons.
  316. To compile this code as a module, choose M here: the
  317. module will be called em_nbyte.
  318. config NET_EMATCH_U32
  319. tristate "U32 key"
  320. depends on NET_EMATCH
  321. ---help---
  322. Say Y here if you want to be able to classify packets using
  323. the famous u32 key in combination with logic relations.
  324. To compile this code as a module, choose M here: the
  325. module will be called em_u32.
  326. config NET_EMATCH_META
  327. tristate "Metadata"
  328. depends on NET_EMATCH
  329. ---help---
  330. Say Y here if you want to be able to classify packets based on
  331. metadata such as load average, netfilter attributes, socket
  332. attributes and routing decisions.
  333. To compile this code as a module, choose M here: the
  334. module will be called em_meta.
  335. config NET_EMATCH_TEXT
  336. tristate "Textsearch"
  337. depends on NET_EMATCH
  338. select TEXTSEARCH
  339. select TEXTSEARCH_KMP
  340. select TEXTSEARCH_BM
  341. select TEXTSEARCH_FSM
  342. ---help---
  343. Say Y here if you want to be able to classify packets based on
  344. textsearch comparisons.
  345. To compile this code as a module, choose M here: the
  346. module will be called em_text.
  347. config NET_CLS_ACT
  348. bool "Actions"
  349. ---help---
  350. Say Y here if you want to use traffic control actions. Actions
  351. get attached to classifiers and are invoked after a successful
  352. classification. They are used to overwrite the classification
  353. result, instantly drop or redirect packets, etc.
  354. A recent version of the iproute2 package is required to use
  355. extended matches.
  356. config NET_ACT_POLICE
  357. tristate "Traffic Policing"
  358. depends on NET_CLS_ACT
  359. ---help---
  360. Say Y here if you want to do traffic policing, i.e. strict
  361. bandwidth limiting. This action replaces the existing policing
  362. module.
  363. To compile this code as a module, choose M here: the
  364. module will be called act_police.
  365. config NET_ACT_GACT
  366. tristate "Generic actions"
  367. depends on NET_CLS_ACT
  368. ---help---
  369. Say Y here to take generic actions such as dropping and
  370. accepting packets.
  371. To compile this code as a module, choose M here: the
  372. module will be called act_gact.
  373. config GACT_PROB
  374. bool "Probability support"
  375. depends on NET_ACT_GACT
  376. ---help---
  377. Say Y here to use the generic action randomly or deterministically.
  378. config NET_ACT_MIRRED
  379. tristate "Redirecting and Mirroring"
  380. depends on NET_CLS_ACT
  381. ---help---
  382. Say Y here to allow packets to be mirrored or redirected to
  383. other devices.
  384. To compile this code as a module, choose M here: the
  385. module will be called act_mirred.
  386. config NET_ACT_IPT
  387. tristate "IPtables targets"
  388. depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  389. ---help---
  390. Say Y here to be able to invoke iptables targets after successful
  391. classification.
  392. To compile this code as a module, choose M here: the
  393. module will be called act_ipt.
  394. config NET_ACT_NAT
  395. tristate "Stateless NAT"
  396. depends on NET_CLS_ACT
  397. ---help---
  398. Say Y here to do stateless NAT on IPv4 packets. You should use
  399. netfilter for NAT unless you know what you are doing.
  400. To compile this code as a module, choose M here: the
  401. module will be called act_nat.
  402. config NET_ACT_PEDIT
  403. tristate "Packet Editing"
  404. depends on NET_CLS_ACT
  405. ---help---
  406. Say Y here if you want to mangle the content of packets.
  407. To compile this code as a module, choose M here: the
  408. module will be called act_pedit.
  409. config NET_ACT_SIMP
  410. tristate "Simple Example (Debug)"
  411. depends on NET_CLS_ACT
  412. ---help---
  413. Say Y here to add a simple action for demonstration purposes.
  414. It is meant as an example and for debugging purposes. It will
  415. print a configured policy string followed by the packet count
  416. to the console for every packet that passes by.
  417. If unsure, say N.
  418. To compile this code as a module, choose M here: the
  419. module will be called act_simple.
  420. config NET_ACT_SKBEDIT
  421. tristate "SKB Editing"
  422. depends on NET_CLS_ACT
  423. ---help---
  424. Say Y here to change skb priority or queue_mapping settings.
  425. If unsure, say N.
  426. To compile this code as a module, choose M here: the
  427. module will be called act_skbedit.
  428. config NET_ACT_CSUM
  429. tristate "Checksum Updating"
  430. depends on NET_CLS_ACT && INET
  431. ---help---
  432. Say Y here to update some common checksum after some direct
  433. packet alterations.
  434. To compile this code as a module, choose M here: the
  435. module will be called act_csum.
  436. config NET_CLS_IND
  437. bool "Incoming device classification"
  438. depends on NET_CLS_U32 || NET_CLS_FW
  439. ---help---
  440. Say Y here to extend the u32 and fw classifier to support
  441. classification based on the incoming device. This option is
  442. likely to disappear in favour of the metadata ematch.
  443. endif # NET_SCHED
  444. config NET_SCH_FIFO
  445. bool