Kconfig 28 KB

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