Kconfig 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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_SFB
  102. tristate "Stochastic Fair Blue (SFB)"
  103. ---help---
  104. Say Y here if you want to use the Stochastic Fair Blue (SFB)
  105. packet scheduling algorithm.
  106. See the top of <file:net/sched/sch_sfb.c> for more details.
  107. To compile this code as a module, choose M here: the
  108. module will be called sch_sfb.
  109. config NET_SCH_SFQ
  110. tristate "Stochastic Fairness Queueing (SFQ)"
  111. ---help---
  112. Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
  113. packet scheduling algorithm.
  114. See the top of <file:net/sched/sch_sfq.c> for more details.
  115. To compile this code as a module, choose M here: the
  116. module will be called sch_sfq.
  117. config NET_SCH_TEQL
  118. tristate "True Link Equalizer (TEQL)"
  119. ---help---
  120. Say Y here if you want to use the True Link Equalizer (TLE) packet
  121. scheduling algorithm. This queueing discipline allows the combination
  122. of several physical devices into one virtual device.
  123. See the top of <file:net/sched/sch_teql.c> for more details.
  124. To compile this code as a module, choose M here: the
  125. module will be called sch_teql.
  126. config NET_SCH_TBF
  127. tristate "Token Bucket Filter (TBF)"
  128. ---help---
  129. Say Y here if you want to use the Token Bucket Filter (TBF) packet
  130. scheduling algorithm.
  131. See the top of <file:net/sched/sch_tbf.c> for more details.
  132. To compile this code as a module, choose M here: the
  133. module will be called sch_tbf.
  134. config NET_SCH_GRED
  135. tristate "Generic Random Early Detection (GRED)"
  136. ---help---
  137. Say Y here if you want to use the Generic Random Early Detection
  138. (GRED) packet scheduling algorithm for some of your network devices
  139. (see the top of <file:net/sched/sch_red.c> for details and
  140. references about the algorithm).
  141. To compile this code as a module, choose M here: the
  142. module will be called sch_gred.
  143. config NET_SCH_DSMARK
  144. tristate "Differentiated Services marker (DSMARK)"
  145. ---help---
  146. Say Y if you want to schedule packets according to the
  147. Differentiated Services architecture proposed in RFC 2475.
  148. Technical information on this method, with pointers to associated
  149. RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
  150. To compile this code as a module, choose M here: the
  151. module will be called sch_dsmark.
  152. config NET_SCH_NETEM
  153. tristate "Network emulator (NETEM)"
  154. ---help---
  155. Say Y if you want to emulate network delay, loss, and packet
  156. re-ordering. This is often useful to simulate networks when
  157. testing applications or protocols.
  158. To compile this driver as a module, choose M here: the module
  159. will be called sch_netem.
  160. If unsure, say N.
  161. config NET_SCH_DRR
  162. tristate "Deficit Round Robin scheduler (DRR)"
  163. help
  164. Say Y here if you want to use the Deficit Round Robin (DRR) packet
  165. scheduling algorithm.
  166. To compile this driver as a module, choose M here: the module
  167. will be called sch_drr.
  168. If unsure, say N.
  169. config NET_SCH_MQPRIO
  170. tristate "Multi-queue priority scheduler (MQPRIO)"
  171. help
  172. Say Y here if you want to use the Multi-queue Priority scheduler.
  173. This scheduler allows QOS to be offloaded on NICs that have support
  174. for offloading QOS schedulers.
  175. To compile this driver as a module, choose M here: the module will
  176. be called sch_mqprio.
  177. If unsure, say N.
  178. config NET_SCH_CHOKE
  179. tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
  180. help
  181. Say Y here if you want to use the CHOKe packet scheduler (CHOose
  182. and Keep for responsive flows, CHOose and Kill for unresponsive
  183. flows). This is a variation of RED which trys to penalize flows
  184. that monopolize the queue.
  185. To compile this code as a module, choose M here: the
  186. module will be called sch_choke.
  187. config NET_SCH_QFQ
  188. tristate "Quick Fair Queueing scheduler (QFQ)"
  189. help
  190. Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ)
  191. packet scheduling algorithm.
  192. To compile this driver as a module, choose M here: the module
  193. will be called sch_qfq.
  194. If unsure, say N.
  195. config NET_SCH_CODEL
  196. tristate "Controlled Delay AQM (CODEL)"
  197. help
  198. Say Y here if you want to use the Controlled Delay (CODEL)
  199. packet scheduling algorithm.
  200. To compile this driver as a module, choose M here: the module
  201. will be called sch_codel.
  202. If unsure, say N.
  203. config NET_SCH_FQ_CODEL
  204. tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)"
  205. help
  206. Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL)
  207. packet scheduling algorithm.
  208. To compile this driver as a module, choose M here: the module
  209. will be called sch_fq_codel.
  210. If unsure, say N.
  211. config NET_SCH_FQ
  212. tristate "Fair Queue"
  213. help
  214. Say Y here if you want to use the FQ packet scheduling algorithm.
  215. FQ does flow separation, and is able to respect pacing requirements
  216. set by TCP stack into sk->sk_pacing_rate (for localy generated
  217. traffic)
  218. To compile this driver as a module, choose M here: the module
  219. will be called sch_fq.
  220. If unsure, say N.
  221. config NET_SCH_INGRESS
  222. tristate "Ingress Qdisc"
  223. depends on NET_CLS_ACT
  224. ---help---
  225. Say Y here if you want to use classifiers for incoming packets.
  226. If unsure, say Y.
  227. To compile this code as a module, choose M here: the
  228. module will be called sch_ingress.
  229. config NET_SCH_PLUG
  230. tristate "Plug network traffic until release (PLUG)"
  231. ---help---
  232. This queuing discipline allows userspace to plug/unplug a network
  233. output queue, using the netlink interface. When it receives an
  234. enqueue command it inserts a plug into the outbound queue that
  235. causes following packets to enqueue until a dequeue command arrives
  236. over netlink, causing the plug to be removed and resuming the normal
  237. packet flow.
  238. This module also provides a generic "network output buffering"
  239. functionality (aka output commit), wherein upon arrival of a dequeue
  240. command, only packets up to the first plug are released for delivery.
  241. The Remus HA project uses this module to enable speculative execution
  242. of virtual machines by allowing the generated network output to be rolled
  243. back if needed.
  244. For more information, please refer to http://wiki.xensource.com/xenwiki/Remus
  245. Say Y here if you are using this kernel for Xen dom0 and
  246. want to protect Xen guests with Remus.
  247. To compile this code as a module, choose M here: the
  248. module will be called sch_plug.
  249. comment "Classification"
  250. config NET_CLS
  251. boolean
  252. config NET_CLS_BASIC
  253. tristate "Elementary classification (BASIC)"
  254. select NET_CLS
  255. ---help---
  256. Say Y here if you want to be able to classify packets using
  257. only extended matches and actions.
  258. To compile this code as a module, choose M here: the
  259. module will be called cls_basic.
  260. config NET_CLS_TCINDEX
  261. tristate "Traffic-Control Index (TCINDEX)"
  262. select NET_CLS
  263. ---help---
  264. Say Y here if you want to be able to classify packets based on
  265. traffic control indices. You will want this feature if you want
  266. to implement Differentiated Services together with DSMARK.
  267. To compile this code as a module, choose M here: the
  268. module will be called cls_tcindex.
  269. config NET_CLS_ROUTE4
  270. tristate "Routing decision (ROUTE)"
  271. depends on INET
  272. select IP_ROUTE_CLASSID
  273. select NET_CLS
  274. ---help---
  275. If you say Y here, you will be able to classify packets
  276. according to the route table entry they matched.
  277. To compile this code as a module, choose M here: the
  278. module will be called cls_route.
  279. config NET_CLS_FW
  280. tristate "Netfilter mark (FW)"
  281. select NET_CLS
  282. ---help---
  283. If you say Y here, you will be able to classify packets
  284. according to netfilter/firewall marks.
  285. To compile this code as a module, choose M here: the
  286. module will be called cls_fw.
  287. config NET_CLS_U32
  288. tristate "Universal 32bit comparisons w/ hashing (U32)"
  289. select NET_CLS
  290. ---help---
  291. Say Y here to be able to classify packets using a universal
  292. 32bit pieces based comparison scheme.
  293. To compile this code as a module, choose M here: the
  294. module will be called cls_u32.
  295. config CLS_U32_PERF
  296. bool "Performance counters support"
  297. depends on NET_CLS_U32
  298. ---help---
  299. Say Y here to make u32 gather additional statistics useful for
  300. fine tuning u32 classifiers.
  301. config CLS_U32_MARK
  302. bool "Netfilter marks support"
  303. depends on NET_CLS_U32
  304. ---help---
  305. Say Y here to be able to use netfilter marks as u32 key.
  306. config NET_CLS_RSVP
  307. tristate "IPv4 Resource Reservation Protocol (RSVP)"
  308. select NET_CLS
  309. ---help---
  310. The Resource Reservation Protocol (RSVP) permits end systems to
  311. request a minimum and maximum data flow rate for a connection; this
  312. is important for real time data such as streaming sound or video.
  313. Say Y here if you want to be able to classify outgoing packets based
  314. on their RSVP requests.
  315. To compile this code as a module, choose M here: the
  316. module will be called cls_rsvp.
  317. config NET_CLS_RSVP6
  318. tristate "IPv6 Resource Reservation Protocol (RSVP6)"
  319. select NET_CLS
  320. ---help---
  321. The Resource Reservation Protocol (RSVP) permits end systems to
  322. request a minimum and maximum data flow rate for a connection; this
  323. is important for real time data such as streaming sound or video.
  324. Say Y here if you want to be able to classify outgoing packets based
  325. on their RSVP requests and you are using the IPv6 protocol.
  326. To compile this code as a module, choose M here: the
  327. module will be called cls_rsvp6.
  328. config NET_CLS_FLOW
  329. tristate "Flow classifier"
  330. select NET_CLS
  331. ---help---
  332. If you say Y here, you will be able to classify packets based on
  333. a configurable combination of packet keys. This is mostly useful
  334. in combination with SFQ.
  335. To compile this code as a module, choose M here: the
  336. module will be called cls_flow.
  337. config NET_CLS_CGROUP
  338. tristate "Control Group Classifier"
  339. select NET_CLS
  340. depends on CGROUPS
  341. ---help---
  342. Say Y here if you want to classify packets based on the control
  343. cgroup of their process.
  344. To compile this code as a module, choose M here: the
  345. module will be called cls_cgroup.
  346. config NET_EMATCH
  347. bool "Extended Matches"
  348. select NET_CLS
  349. ---help---
  350. Say Y here if you want to use extended matches on top of classifiers
  351. and select the extended matches below.
  352. Extended matches are small classification helpers not worth writing
  353. a separate classifier for.
  354. A recent version of the iproute2 package is required to use
  355. extended matches.
  356. config NET_EMATCH_STACK
  357. int "Stack size"
  358. depends on NET_EMATCH
  359. default "32"
  360. ---help---
  361. Size of the local stack variable used while evaluating the tree of
  362. ematches. Limits the depth of the tree, i.e. the number of
  363. encapsulated precedences. Every level requires 4 bytes of additional
  364. stack space.
  365. config NET_EMATCH_CMP
  366. tristate "Simple packet data comparison"
  367. depends on NET_EMATCH
  368. ---help---
  369. Say Y here if you want to be able to classify packets based on
  370. simple packet data comparisons for 8, 16, and 32bit values.
  371. To compile this code as a module, choose M here: the
  372. module will be called em_cmp.
  373. config NET_EMATCH_NBYTE
  374. tristate "Multi byte comparison"
  375. depends on NET_EMATCH
  376. ---help---
  377. Say Y here if you want to be able to classify packets based on
  378. multiple byte comparisons mainly useful for IPv6 address comparisons.
  379. To compile this code as a module, choose M here: the
  380. module will be called em_nbyte.
  381. config NET_EMATCH_U32
  382. tristate "U32 key"
  383. depends on NET_EMATCH
  384. ---help---
  385. Say Y here if you want to be able to classify packets using
  386. the famous u32 key in combination with logic relations.
  387. To compile this code as a module, choose M here: the
  388. module will be called em_u32.
  389. config NET_EMATCH_META
  390. tristate "Metadata"
  391. depends on NET_EMATCH
  392. ---help---
  393. Say Y here if you want to be able to classify packets based on
  394. metadata such as load average, netfilter attributes, socket
  395. attributes and routing decisions.
  396. To compile this code as a module, choose M here: the
  397. module will be called em_meta.
  398. config NET_EMATCH_TEXT
  399. tristate "Textsearch"
  400. depends on NET_EMATCH
  401. select TEXTSEARCH
  402. select TEXTSEARCH_KMP
  403. select TEXTSEARCH_BM
  404. select TEXTSEARCH_FSM
  405. ---help---
  406. Say Y here if you want to be able to classify packets based on
  407. textsearch comparisons.
  408. To compile this code as a module, choose M here: the
  409. module will be called em_text.
  410. config NET_EMATCH_CANID
  411. tristate "CAN Identifier"
  412. depends on NET_EMATCH && (CAN=y || CAN=m)
  413. ---help---
  414. Say Y here if you want to be able to classify CAN frames based
  415. on CAN Identifier.
  416. To compile this code as a module, choose M here: the
  417. module will be called em_canid.
  418. config NET_EMATCH_IPSET
  419. tristate "IPset"
  420. depends on NET_EMATCH && IP_SET
  421. ---help---
  422. Say Y here if you want to be able to classify packets based on
  423. ipset membership.
  424. To compile this code as a module, choose M here: the
  425. module will be called em_ipset.
  426. config NET_CLS_ACT
  427. bool "Actions"
  428. ---help---
  429. Say Y here if you want to use traffic control actions. Actions
  430. get attached to classifiers and are invoked after a successful
  431. classification. They are used to overwrite the classification
  432. result, instantly drop or redirect packets, etc.
  433. A recent version of the iproute2 package is required to use
  434. extended matches.
  435. config NET_ACT_POLICE
  436. tristate "Traffic Policing"
  437. depends on NET_CLS_ACT
  438. ---help---
  439. Say Y here if you want to do traffic policing, i.e. strict
  440. bandwidth limiting. This action replaces the existing policing
  441. module.
  442. To compile this code as a module, choose M here: the
  443. module will be called act_police.
  444. config NET_ACT_GACT
  445. tristate "Generic actions"
  446. depends on NET_CLS_ACT
  447. ---help---
  448. Say Y here to take generic actions such as dropping and
  449. accepting packets.
  450. To compile this code as a module, choose M here: the
  451. module will be called act_gact.
  452. config GACT_PROB
  453. bool "Probability support"
  454. depends on NET_ACT_GACT
  455. ---help---
  456. Say Y here to use the generic action randomly or deterministically.
  457. config NET_ACT_MIRRED
  458. tristate "Redirecting and Mirroring"
  459. depends on NET_CLS_ACT
  460. ---help---
  461. Say Y here to allow packets to be mirrored or redirected to
  462. other devices.
  463. To compile this code as a module, choose M here: the
  464. module will be called act_mirred.
  465. config NET_ACT_IPT
  466. tristate "IPtables targets"
  467. depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  468. ---help---
  469. Say Y here to be able to invoke iptables targets after successful
  470. classification.
  471. To compile this code as a module, choose M here: the
  472. module will be called act_ipt.
  473. config NET_ACT_NAT
  474. tristate "Stateless NAT"
  475. depends on NET_CLS_ACT
  476. ---help---
  477. Say Y here to do stateless NAT on IPv4 packets. You should use
  478. netfilter for NAT unless you know what you are doing.
  479. To compile this code as a module, choose M here: the
  480. module will be called act_nat.
  481. config NET_ACT_PEDIT
  482. tristate "Packet Editing"
  483. depends on NET_CLS_ACT
  484. ---help---
  485. Say Y here if you want to mangle the content of packets.
  486. To compile this code as a module, choose M here: the
  487. module will be called act_pedit.
  488. config NET_ACT_SIMP
  489. tristate "Simple Example (Debug)"
  490. depends on NET_CLS_ACT
  491. ---help---
  492. Say Y here to add a simple action for demonstration purposes.
  493. It is meant as an example and for debugging purposes. It will
  494. print a configured policy string followed by the packet count
  495. to the console for every packet that passes by.
  496. If unsure, say N.
  497. To compile this code as a module, choose M here: the
  498. module will be called act_simple.
  499. config NET_ACT_SKBEDIT
  500. tristate "SKB Editing"
  501. depends on NET_CLS_ACT
  502. ---help---
  503. Say Y here to change skb priority or queue_mapping settings.
  504. If unsure, say N.
  505. To compile this code as a module, choose M here: the
  506. module will be called act_skbedit.
  507. config NET_ACT_CSUM
  508. tristate "Checksum Updating"
  509. depends on NET_CLS_ACT && INET
  510. ---help---
  511. Say Y here to update some common checksum after some direct
  512. packet alterations.
  513. To compile this code as a module, choose M here: the
  514. module will be called act_csum.
  515. config NET_CLS_IND
  516. bool "Incoming device classification"
  517. depends on NET_CLS_U32 || NET_CLS_FW
  518. ---help---
  519. Say Y here to extend the u32 and fw classifier to support
  520. classification based on the incoming device. This option is
  521. likely to disappear in favour of the metadata ematch.
  522. endif # NET_SCHED
  523. config NET_SCH_FIFO
  524. bool