Kconfig 29 KB

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