Kconfig 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  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
  23. <https://www.kernel.org/pub/linux/utils/net/iproute2/>. That package
  24. also contains some documentation; for more, check out
  25. <http://www.linuxfoundation.org/collaborate/workgroups/networking/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. if NET_SCHED
  37. comment "Queueing/Scheduling"
  38. config NET_SCH_CBQ
  39. tristate "Class Based Queueing (CBQ)"
  40. ---help---
  41. Say Y here if you want to use the Class-Based Queueing (CBQ) packet
  42. scheduling algorithm. This algorithm classifies the waiting packets
  43. into a tree-like hierarchy of classes; the leaves of this tree are
  44. in turn scheduled by separate algorithms.
  45. See the top of <file:net/sched/sch_cbq.c> for more details.
  46. CBQ is a commonly used scheduler, so if you're unsure, you should
  47. say Y here. Then say Y to all the queueing algorithms below that you
  48. want to use as leaf disciplines.
  49. To compile this code as a module, choose M here: the
  50. module will be called sch_cbq.
  51. config NET_SCH_HTB
  52. tristate "Hierarchical Token Bucket (HTB)"
  53. ---help---
  54. Say Y here if you want to use the Hierarchical Token Buckets (HTB)
  55. packet scheduling algorithm. See
  56. <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
  57. in-depth articles.
  58. HTB is very similar to CBQ regarding its goals however is has
  59. different properties and different algorithm.
  60. To compile this code as a module, choose M here: the
  61. module will be called sch_htb.
  62. config NET_SCH_HFSC
  63. tristate "Hierarchical Fair Service Curve (HFSC)"
  64. ---help---
  65. Say Y here if you want to use the Hierarchical Fair Service Curve
  66. (HFSC) packet scheduling algorithm.
  67. To compile this code as a module, choose M here: the
  68. module will be called sch_hfsc.
  69. config NET_SCH_ATM
  70. tristate "ATM Virtual Circuits (ATM)"
  71. depends on ATM
  72. ---help---
  73. Say Y here if you want to use the ATM pseudo-scheduler. This
  74. provides a framework for invoking classifiers, which in turn
  75. select classes of this queuing discipline. Each class maps
  76. the flow(s) it is handling to a given virtual circuit.
  77. See the top of <file:net/sched/sch_atm.c> for more details.
  78. To compile this code as a module, choose M here: the
  79. module will be called sch_atm.
  80. config NET_SCH_PRIO
  81. tristate "Multi Band Priority Queueing (PRIO)"
  82. ---help---
  83. Say Y here if you want to use an n-band priority queue packet
  84. scheduler.
  85. To compile this code as a module, choose M here: the
  86. module will be called sch_prio.
  87. config NET_SCH_MULTIQ
  88. tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)"
  89. ---help---
  90. Say Y here if you want to use an n-band queue packet scheduler
  91. to support devices that have multiple hardware transmit queues.
  92. To compile this code as a module, choose M here: the
  93. module will be called sch_multiq.
  94. config NET_SCH_RED
  95. tristate "Random Early Detection (RED)"
  96. ---help---
  97. Say Y here if you want to use the Random Early Detection (RED)
  98. packet scheduling algorithm.
  99. See the top of <file:net/sched/sch_red.c> for more details.
  100. To compile this code as a module, choose M here: the
  101. module will be called sch_red.
  102. config NET_SCH_SFB
  103. tristate "Stochastic Fair Blue (SFB)"
  104. ---help---
  105. Say Y here if you want to use the Stochastic Fair Blue (SFB)
  106. packet scheduling algorithm.
  107. See the top of <file:net/sched/sch_sfb.c> for more details.
  108. To compile this code as a module, choose M here: the
  109. module will be called sch_sfb.
  110. config NET_SCH_SFQ
  111. tristate "Stochastic Fairness Queueing (SFQ)"
  112. ---help---
  113. Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
  114. packet scheduling algorithm.
  115. See the top of <file:net/sched/sch_sfq.c> for more details.
  116. To compile this code as a module, choose M here: the
  117. module will be called sch_sfq.
  118. config NET_SCH_TEQL
  119. tristate "True Link Equalizer (TEQL)"
  120. ---help---
  121. Say Y here if you want to use the True Link Equalizer (TLE) packet
  122. scheduling algorithm. This queueing discipline allows the combination
  123. of several physical devices into one virtual device.
  124. See the top of <file:net/sched/sch_teql.c> for more details.
  125. To compile this code as a module, choose M here: the
  126. module will be called sch_teql.
  127. config NET_SCH_TBF
  128. tristate "Token Bucket Filter (TBF)"
  129. ---help---
  130. Say Y here if you want to use the Token Bucket Filter (TBF) packet
  131. scheduling algorithm.
  132. See the top of <file:net/sched/sch_tbf.c> for more details.
  133. To compile this code as a module, choose M here: the
  134. module will be called sch_tbf.
  135. config NET_SCH_CBS
  136. tristate "Credit Based Shaper (CBS)"
  137. ---help---
  138. Say Y here if you want to use the Credit Based Shaper (CBS) packet
  139. scheduling algorithm.
  140. See the top of <file:net/sched/sch_cbs.c> for more details.
  141. To compile this code as a module, choose M here: the
  142. module will be called sch_cbs.
  143. config NET_SCH_ETF
  144. tristate "Earliest TxTime First (ETF)"
  145. help
  146. Say Y here if you want to use the Earliest TxTime First (ETF) packet
  147. scheduling algorithm.
  148. See the top of <file:net/sched/sch_etf.c> for more details.
  149. To compile this code as a module, choose M here: the
  150. module will be called sch_etf.
  151. config NET_SCH_TAPRIO
  152. tristate "Time Aware Priority (taprio) Scheduler"
  153. help
  154. Say Y here if you want to use the Time Aware Priority (taprio) packet
  155. scheduling algorithm.
  156. See the top of <file:net/sched/sch_taprio.c> for more details.
  157. To compile this code as a module, choose M here: the
  158. module will be called sch_taprio.
  159. config NET_SCH_GRED
  160. tristate "Generic Random Early Detection (GRED)"
  161. ---help---
  162. Say Y here if you want to use the Generic Random Early Detection
  163. (GRED) packet scheduling algorithm for some of your network devices
  164. (see the top of <file:net/sched/sch_red.c> for details and
  165. references about the algorithm).
  166. To compile this code as a module, choose M here: the
  167. module will be called sch_gred.
  168. config NET_SCH_DSMARK
  169. tristate "Differentiated Services marker (DSMARK)"
  170. ---help---
  171. Say Y if you want to schedule packets according to the
  172. Differentiated Services architecture proposed in RFC 2475.
  173. Technical information on this method, with pointers to associated
  174. RFCs, is available at <http://www.gta.ufrj.br/diffserv/>.
  175. To compile this code as a module, choose M here: the
  176. module will be called sch_dsmark.
  177. config NET_SCH_NETEM
  178. tristate "Network emulator (NETEM)"
  179. ---help---
  180. Say Y if you want to emulate network delay, loss, and packet
  181. re-ordering. This is often useful to simulate networks when
  182. testing applications or protocols.
  183. To compile this driver as a module, choose M here: the module
  184. will be called sch_netem.
  185. If unsure, say N.
  186. config NET_SCH_DRR
  187. tristate "Deficit Round Robin scheduler (DRR)"
  188. help
  189. Say Y here if you want to use the Deficit Round Robin (DRR) packet
  190. scheduling algorithm.
  191. To compile this driver as a module, choose M here: the module
  192. will be called sch_drr.
  193. If unsure, say N.
  194. config NET_SCH_MQPRIO
  195. tristate "Multi-queue priority scheduler (MQPRIO)"
  196. help
  197. Say Y here if you want to use the Multi-queue Priority scheduler.
  198. This scheduler allows QOS to be offloaded on NICs that have support
  199. for offloading QOS schedulers.
  200. To compile this driver as a module, choose M here: the module will
  201. be called sch_mqprio.
  202. If unsure, say N.
  203. config NET_SCH_SKBPRIO
  204. tristate "SKB priority queue scheduler (SKBPRIO)"
  205. help
  206. Say Y here if you want to use the SKB priority queue
  207. scheduler. This schedules packets according to skb->priority,
  208. which is useful for request packets in DoS mitigation systems such
  209. as Gatekeeper.
  210. To compile this driver as a module, choose M here: the module will
  211. be called sch_skbprio.
  212. If unsure, say N.
  213. config NET_SCH_CHOKE
  214. tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
  215. help
  216. Say Y here if you want to use the CHOKe packet scheduler (CHOose
  217. and Keep for responsive flows, CHOose and Kill for unresponsive
  218. flows). This is a variation of RED which trys to penalize flows
  219. that monopolize the queue.
  220. To compile this code as a module, choose M here: the
  221. module will be called sch_choke.
  222. config NET_SCH_QFQ
  223. tristate "Quick Fair Queueing scheduler (QFQ)"
  224. help
  225. Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ)
  226. packet scheduling algorithm.
  227. To compile this driver as a module, choose M here: the module
  228. will be called sch_qfq.
  229. If unsure, say N.
  230. config NET_SCH_CODEL
  231. tristate "Controlled Delay AQM (CODEL)"
  232. help
  233. Say Y here if you want to use the Controlled Delay (CODEL)
  234. packet scheduling algorithm.
  235. To compile this driver as a module, choose M here: the module
  236. will be called sch_codel.
  237. If unsure, say N.
  238. config NET_SCH_FQ_CODEL
  239. tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)"
  240. help
  241. Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL)
  242. packet scheduling algorithm.
  243. To compile this driver as a module, choose M here: the module
  244. will be called sch_fq_codel.
  245. If unsure, say N.
  246. config NET_SCH_CAKE
  247. tristate "Common Applications Kept Enhanced (CAKE)"
  248. help
  249. Say Y here if you want to use the Common Applications Kept Enhanced
  250. (CAKE) queue management algorithm.
  251. To compile this driver as a module, choose M here: the module
  252. will be called sch_cake.
  253. If unsure, say N.
  254. config NET_SCH_FQ
  255. tristate "Fair Queue"
  256. help
  257. Say Y here if you want to use the FQ packet scheduling algorithm.
  258. FQ does flow separation, and is able to respect pacing requirements
  259. set by TCP stack into sk->sk_pacing_rate (for localy generated
  260. traffic)
  261. To compile this driver as a module, choose M here: the module
  262. will be called sch_fq.
  263. If unsure, say N.
  264. config NET_SCH_HHF
  265. tristate "Heavy-Hitter Filter (HHF)"
  266. help
  267. Say Y here if you want to use the Heavy-Hitter Filter (HHF)
  268. packet scheduling algorithm.
  269. To compile this driver as a module, choose M here: the module
  270. will be called sch_hhf.
  271. config NET_SCH_PIE
  272. tristate "Proportional Integral controller Enhanced (PIE) scheduler"
  273. help
  274. Say Y here if you want to use the Proportional Integral controller
  275. Enhanced scheduler packet scheduling algorithm.
  276. For more information, please see
  277. http://tools.ietf.org/html/draft-pan-tsvwg-pie-00
  278. To compile this driver as a module, choose M here: the module
  279. will be called sch_pie.
  280. If unsure, say N.
  281. config NET_SCH_INGRESS
  282. tristate "Ingress/classifier-action Qdisc"
  283. depends on NET_CLS_ACT
  284. select NET_INGRESS
  285. select NET_EGRESS
  286. ---help---
  287. Say Y here if you want to use classifiers for incoming and/or outgoing
  288. packets. This qdisc doesn't do anything else besides running classifiers,
  289. which can also have actions attached to them. In case of outgoing packets,
  290. classifiers that this qdisc holds are executed in the transmit path
  291. before real enqueuing to an egress qdisc happens.
  292. If unsure, say Y.
  293. To compile this code as a module, choose M here: the module will be
  294. called sch_ingress with alias of sch_clsact.
  295. config NET_SCH_PLUG
  296. tristate "Plug network traffic until release (PLUG)"
  297. ---help---
  298. This queuing discipline allows userspace to plug/unplug a network
  299. output queue, using the netlink interface. When it receives an
  300. enqueue command it inserts a plug into the outbound queue that
  301. causes following packets to enqueue until a dequeue command arrives
  302. over netlink, causing the plug to be removed and resuming the normal
  303. packet flow.
  304. This module also provides a generic "network output buffering"
  305. functionality (aka output commit), wherein upon arrival of a dequeue
  306. command, only packets up to the first plug are released for delivery.
  307. The Remus HA project uses this module to enable speculative execution
  308. of virtual machines by allowing the generated network output to be rolled
  309. back if needed.
  310. For more information, please refer to <http://wiki.xenproject.org/wiki/Remus>
  311. Say Y here if you are using this kernel for Xen dom0 and
  312. want to protect Xen guests with Remus.
  313. To compile this code as a module, choose M here: the
  314. module will be called sch_plug.
  315. menuconfig NET_SCH_DEFAULT
  316. bool "Allow override default queue discipline"
  317. ---help---
  318. Support for selection of default queuing discipline.
  319. Nearly all users can safely say no here, and the default
  320. of pfifo_fast will be used. Many distributions already set
  321. the default value via /proc/sys/net/core/default_qdisc.
  322. If unsure, say N.
  323. if NET_SCH_DEFAULT
  324. choice
  325. prompt "Default queuing discipline"
  326. default DEFAULT_PFIFO_FAST
  327. help
  328. Select the queueing discipline that will be used by default
  329. for all network devices.
  330. config DEFAULT_FQ
  331. bool "Fair Queue" if NET_SCH_FQ
  332. config DEFAULT_CODEL
  333. bool "Controlled Delay" if NET_SCH_CODEL
  334. config DEFAULT_FQ_CODEL
  335. bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL
  336. config DEFAULT_SFQ
  337. bool "Stochastic Fair Queue" if NET_SCH_SFQ
  338. config DEFAULT_PFIFO_FAST
  339. bool "Priority FIFO Fast"
  340. endchoice
  341. config DEFAULT_NET_SCH
  342. string
  343. default "pfifo_fast" if DEFAULT_PFIFO_FAST
  344. default "fq" if DEFAULT_FQ
  345. default "fq_codel" if DEFAULT_FQ_CODEL
  346. default "sfq" if DEFAULT_SFQ
  347. default "pfifo_fast"
  348. endif
  349. comment "Classification"
  350. config NET_CLS
  351. bool
  352. config NET_CLS_BASIC
  353. tristate "Elementary classification (BASIC)"
  354. select NET_CLS
  355. ---help---
  356. Say Y here if you want to be able to classify packets using
  357. only extended matches and actions.
  358. To compile this code as a module, choose M here: the
  359. module will be called cls_basic.
  360. config NET_CLS_TCINDEX
  361. tristate "Traffic-Control Index (TCINDEX)"
  362. select NET_CLS
  363. ---help---
  364. Say Y here if you want to be able to classify packets based on
  365. traffic control indices. You will want this feature if you want
  366. to implement Differentiated Services together with DSMARK.
  367. To compile this code as a module, choose M here: the
  368. module will be called cls_tcindex.
  369. config NET_CLS_ROUTE4
  370. tristate "Routing decision (ROUTE)"
  371. depends on INET
  372. select IP_ROUTE_CLASSID
  373. select NET_CLS
  374. ---help---
  375. If you say Y here, you will be able to classify packets
  376. according to the route table entry they matched.
  377. To compile this code as a module, choose M here: the
  378. module will be called cls_route.
  379. config NET_CLS_FW
  380. tristate "Netfilter mark (FW)"
  381. select NET_CLS
  382. ---help---
  383. If you say Y here, you will be able to classify packets
  384. according to netfilter/firewall marks.
  385. To compile this code as a module, choose M here: the
  386. module will be called cls_fw.
  387. config NET_CLS_U32
  388. tristate "Universal 32bit comparisons w/ hashing (U32)"
  389. select NET_CLS
  390. ---help---
  391. Say Y here to be able to classify packets using a universal
  392. 32bit pieces based comparison scheme.
  393. To compile this code as a module, choose M here: the
  394. module will be called cls_u32.
  395. config CLS_U32_PERF
  396. bool "Performance counters support"
  397. depends on NET_CLS_U32
  398. ---help---
  399. Say Y here to make u32 gather additional statistics useful for
  400. fine tuning u32 classifiers.
  401. config CLS_U32_MARK
  402. bool "Netfilter marks support"
  403. depends on NET_CLS_U32
  404. ---help---
  405. Say Y here to be able to use netfilter marks as u32 key.
  406. config NET_CLS_RSVP
  407. tristate "IPv4 Resource Reservation Protocol (RSVP)"
  408. select NET_CLS
  409. ---help---
  410. The Resource Reservation Protocol (RSVP) permits end systems to
  411. request a minimum and maximum data flow rate for a connection; this
  412. is important for real time data such as streaming sound or video.
  413. Say Y here if you want to be able to classify outgoing packets based
  414. on their RSVP requests.
  415. To compile this code as a module, choose M here: the
  416. module will be called cls_rsvp.
  417. config NET_CLS_RSVP6
  418. tristate "IPv6 Resource Reservation Protocol (RSVP6)"
  419. select NET_CLS
  420. ---help---
  421. The Resource Reservation Protocol (RSVP) permits end systems to
  422. request a minimum and maximum data flow rate for a connection; this
  423. is important for real time data such as streaming sound or video.
  424. Say Y here if you want to be able to classify outgoing packets based
  425. on their RSVP requests and you are using the IPv6 protocol.
  426. To compile this code as a module, choose M here: the
  427. module will be called cls_rsvp6.
  428. config NET_CLS_FLOW
  429. tristate "Flow classifier"
  430. select NET_CLS
  431. ---help---
  432. If you say Y here, you will be able to classify packets based on
  433. a configurable combination of packet keys. This is mostly useful
  434. in combination with SFQ.
  435. To compile this code as a module, choose M here: the
  436. module will be called cls_flow.
  437. config NET_CLS_CGROUP
  438. tristate "Control Group Classifier"
  439. select NET_CLS
  440. select CGROUP_NET_CLASSID
  441. depends on CGROUPS
  442. ---help---
  443. Say Y here if you want to classify packets based on the control
  444. cgroup of their process.
  445. To compile this code as a module, choose M here: the
  446. module will be called cls_cgroup.
  447. config NET_CLS_BPF
  448. tristate "BPF-based classifier"
  449. select NET_CLS
  450. ---help---
  451. If you say Y here, you will be able to classify packets based on
  452. programmable BPF (JIT'ed) filters as an alternative to ematches.
  453. To compile this code as a module, choose M here: the module will
  454. be called cls_bpf.
  455. config NET_CLS_FLOWER
  456. tristate "Flower classifier"
  457. select NET_CLS
  458. ---help---
  459. If you say Y here, you will be able to classify packets based on
  460. a configurable combination of packet keys and masks.
  461. To compile this code as a module, choose M here: the module will
  462. be called cls_flower.
  463. config NET_CLS_MATCHALL
  464. tristate "Match-all classifier"
  465. select NET_CLS
  466. ---help---
  467. If you say Y here, you will be able to classify packets based on
  468. nothing. Every packet will match.
  469. To compile this code as a module, choose M here: the module will
  470. be called cls_matchall.
  471. config NET_EMATCH
  472. bool "Extended Matches"
  473. select NET_CLS
  474. ---help---
  475. Say Y here if you want to use extended matches on top of classifiers
  476. and select the extended matches below.
  477. Extended matches are small classification helpers not worth writing
  478. a separate classifier for.
  479. A recent version of the iproute2 package is required to use
  480. extended matches.
  481. config NET_EMATCH_STACK
  482. int "Stack size"
  483. depends on NET_EMATCH
  484. default "32"
  485. ---help---
  486. Size of the local stack variable used while evaluating the tree of
  487. ematches. Limits the depth of the tree, i.e. the number of
  488. encapsulated precedences. Every level requires 4 bytes of additional
  489. stack space.
  490. config NET_EMATCH_CMP
  491. tristate "Simple packet data comparison"
  492. depends on NET_EMATCH
  493. ---help---
  494. Say Y here if you want to be able to classify packets based on
  495. simple packet data comparisons for 8, 16, and 32bit values.
  496. To compile this code as a module, choose M here: the
  497. module will be called em_cmp.
  498. config NET_EMATCH_NBYTE
  499. tristate "Multi byte comparison"
  500. depends on NET_EMATCH
  501. ---help---
  502. Say Y here if you want to be able to classify packets based on
  503. multiple byte comparisons mainly useful for IPv6 address comparisons.
  504. To compile this code as a module, choose M here: the
  505. module will be called em_nbyte.
  506. config NET_EMATCH_U32
  507. tristate "U32 key"
  508. depends on NET_EMATCH
  509. ---help---
  510. Say Y here if you want to be able to classify packets using
  511. the famous u32 key in combination with logic relations.
  512. To compile this code as a module, choose M here: the
  513. module will be called em_u32.
  514. config NET_EMATCH_META
  515. tristate "Metadata"
  516. depends on NET_EMATCH
  517. ---help---
  518. Say Y here if you want to be able to classify packets based on
  519. metadata such as load average, netfilter attributes, socket
  520. attributes and routing decisions.
  521. To compile this code as a module, choose M here: the
  522. module will be called em_meta.
  523. config NET_EMATCH_TEXT
  524. tristate "Textsearch"
  525. depends on NET_EMATCH
  526. select TEXTSEARCH
  527. select TEXTSEARCH_KMP
  528. select TEXTSEARCH_BM
  529. select TEXTSEARCH_FSM
  530. ---help---
  531. Say Y here if you want to be able to classify packets based on
  532. textsearch comparisons.
  533. To compile this code as a module, choose M here: the
  534. module will be called em_text.
  535. config NET_EMATCH_CANID
  536. tristate "CAN Identifier"
  537. depends on NET_EMATCH && (CAN=y || CAN=m)
  538. ---help---
  539. Say Y here if you want to be able to classify CAN frames based
  540. on CAN Identifier.
  541. To compile this code as a module, choose M here: the
  542. module will be called em_canid.
  543. config NET_EMATCH_IPSET
  544. tristate "IPset"
  545. depends on NET_EMATCH && IP_SET
  546. ---help---
  547. Say Y here if you want to be able to classify packets based on
  548. ipset membership.
  549. To compile this code as a module, choose M here: the
  550. module will be called em_ipset.
  551. config NET_EMATCH_IPT
  552. tristate "IPtables Matches"
  553. depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES
  554. ---help---
  555. Say Y here to be able to classify packets based on iptables
  556. matches.
  557. Current supported match is "policy" which allows packet classification
  558. based on IPsec policy that was used during decapsulation
  559. To compile this code as a module, choose M here: the
  560. module will be called em_ipt.
  561. config NET_CLS_ACT
  562. bool "Actions"
  563. select NET_CLS
  564. ---help---
  565. Say Y here if you want to use traffic control actions. Actions
  566. get attached to classifiers and are invoked after a successful
  567. classification. They are used to overwrite the classification
  568. result, instantly drop or redirect packets, etc.
  569. A recent version of the iproute2 package is required to use
  570. extended matches.
  571. config NET_ACT_POLICE
  572. tristate "Traffic Policing"
  573. depends on NET_CLS_ACT
  574. ---help---
  575. Say Y here if you want to do traffic policing, i.e. strict
  576. bandwidth limiting. This action replaces the existing policing
  577. module.
  578. To compile this code as a module, choose M here: the
  579. module will be called act_police.
  580. config NET_ACT_GACT
  581. tristate "Generic actions"
  582. depends on NET_CLS_ACT
  583. ---help---
  584. Say Y here to take generic actions such as dropping and
  585. accepting packets.
  586. To compile this code as a module, choose M here: the
  587. module will be called act_gact.
  588. config GACT_PROB
  589. bool "Probability support"
  590. depends on NET_ACT_GACT
  591. ---help---
  592. Say Y here to use the generic action randomly or deterministically.
  593. config NET_ACT_MIRRED
  594. tristate "Redirecting and Mirroring"
  595. depends on NET_CLS_ACT
  596. ---help---
  597. Say Y here to allow packets to be mirrored or redirected to
  598. other devices.
  599. To compile this code as a module, choose M here: the
  600. module will be called act_mirred.
  601. config NET_ACT_SAMPLE
  602. tristate "Traffic Sampling"
  603. depends on NET_CLS_ACT
  604. select PSAMPLE
  605. ---help---
  606. Say Y here to allow packet sampling tc action. The packet sample
  607. action consists of statistically choosing packets and sampling
  608. them using the psample module.
  609. To compile this code as a module, choose M here: the
  610. module will be called act_sample.
  611. config NET_ACT_IPT
  612. tristate "IPtables targets"
  613. depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  614. ---help---
  615. Say Y here to be able to invoke iptables targets after successful
  616. classification.
  617. To compile this code as a module, choose M here: the
  618. module will be called act_ipt.
  619. config NET_ACT_NAT
  620. tristate "Stateless NAT"
  621. depends on NET_CLS_ACT
  622. ---help---
  623. Say Y here to do stateless NAT on IPv4 packets. You should use
  624. netfilter for NAT unless you know what you are doing.
  625. To compile this code as a module, choose M here: the
  626. module will be called act_nat.
  627. config NET_ACT_PEDIT
  628. tristate "Packet Editing"
  629. depends on NET_CLS_ACT
  630. ---help---
  631. Say Y here if you want to mangle the content of packets.
  632. To compile this code as a module, choose M here: the
  633. module will be called act_pedit.
  634. config NET_ACT_SIMP
  635. tristate "Simple Example (Debug)"
  636. depends on NET_CLS_ACT
  637. ---help---
  638. Say Y here to add a simple action for demonstration purposes.
  639. It is meant as an example and for debugging purposes. It will
  640. print a configured policy string followed by the packet count
  641. to the console for every packet that passes by.
  642. If unsure, say N.
  643. To compile this code as a module, choose M here: the
  644. module will be called act_simple.
  645. config NET_ACT_SKBEDIT
  646. tristate "SKB Editing"
  647. depends on NET_CLS_ACT
  648. ---help---
  649. Say Y here to change skb priority or queue_mapping settings.
  650. If unsure, say N.
  651. To compile this code as a module, choose M here: the
  652. module will be called act_skbedit.
  653. config NET_ACT_CSUM
  654. tristate "Checksum Updating"
  655. depends on NET_CLS_ACT && INET
  656. select LIBCRC32C
  657. ---help---
  658. Say Y here to update some common checksum after some direct
  659. packet alterations.
  660. To compile this code as a module, choose M here: the
  661. module will be called act_csum.
  662. config NET_ACT_VLAN
  663. tristate "Vlan manipulation"
  664. depends on NET_CLS_ACT
  665. ---help---
  666. Say Y here to push or pop vlan headers.
  667. If unsure, say N.
  668. To compile this code as a module, choose M here: the
  669. module will be called act_vlan.
  670. config NET_ACT_BPF
  671. tristate "BPF based action"
  672. depends on NET_CLS_ACT
  673. ---help---
  674. Say Y here to execute BPF code on packets. The BPF code will decide
  675. if the packet should be dropped or not.
  676. If unsure, say N.
  677. To compile this code as a module, choose M here: the
  678. module will be called act_bpf.
  679. config NET_ACT_CONNMARK
  680. tristate "Netfilter Connection Mark Retriever"
  681. depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES
  682. depends on NF_CONNTRACK && NF_CONNTRACK_MARK
  683. ---help---
  684. Say Y here to allow retrieving of conn mark
  685. If unsure, say N.
  686. To compile this code as a module, choose M here: the
  687. module will be called act_connmark.
  688. config NET_ACT_SKBMOD
  689. tristate "skb data modification action"
  690. depends on NET_CLS_ACT
  691. ---help---
  692. Say Y here to allow modification of skb data
  693. If unsure, say N.
  694. To compile this code as a module, choose M here: the
  695. module will be called act_skbmod.
  696. config NET_ACT_IFE
  697. tristate "Inter-FE action based on IETF ForCES InterFE LFB"
  698. depends on NET_CLS_ACT
  699. select NET_IFE
  700. ---help---
  701. Say Y here to allow for sourcing and terminating metadata
  702. For details refer to netdev01 paper:
  703. "Distributing Linux Traffic Control Classifier-Action Subsystem"
  704. Authors: Jamal Hadi Salim and Damascene M. Joachimpillai
  705. To compile this code as a module, choose M here: the
  706. module will be called act_ife.
  707. config NET_ACT_TUNNEL_KEY
  708. tristate "IP tunnel metadata manipulation"
  709. depends on NET_CLS_ACT
  710. ---help---
  711. Say Y here to set/release ip tunnel metadata.
  712. If unsure, say N.
  713. To compile this code as a module, choose M here: the
  714. module will be called act_tunnel_key.
  715. config NET_IFE_SKBMARK
  716. tristate "Support to encoding decoding skb mark on IFE action"
  717. depends on NET_ACT_IFE
  718. config NET_IFE_SKBPRIO
  719. tristate "Support to encoding decoding skb prio on IFE action"
  720. depends on NET_ACT_IFE
  721. config NET_IFE_SKBTCINDEX
  722. tristate "Support to encoding decoding skb tcindex on IFE action"
  723. depends on NET_ACT_IFE
  724. config NET_CLS_IND
  725. bool "Incoming device classification"
  726. depends on NET_CLS_U32 || NET_CLS_FW
  727. ---help---
  728. Say Y here to extend the u32 and fw classifier to support
  729. classification based on the incoming device. This option is
  730. likely to disappear in favour of the metadata ematch.
  731. endif # NET_SCHED
  732. config NET_SCH_FIFO
  733. bool