xref: /linux/net/sched/Kconfig (revision 785151f50ddacac06c7a3c5f3d31642794507fdf)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Traffic control configuration.
41da177e4SLinus Torvalds#
56a2e9b73SSam Ravnborg
685ef3e5cSRandy Dunlapmenuconfig NET_SCHED
76a2e9b73SSam Ravnborg	bool "QoS and/or fair queueing"
83c62f75aSDavid Kimdon	select NET_SCH_FIFO
9a7f7f624SMasahiro Yamada	help
106a2e9b73SSam Ravnborg	  When the kernel has several packets to send out over a network
116a2e9b73SSam Ravnborg	  device, it has to decide which ones to send first, which ones to
1252ab4ac2SThomas Graf	  delay, and which ones to drop. This is the job of the queueing
1352ab4ac2SThomas Graf	  disciplines, several different algorithms for how to do this
146a2e9b73SSam Ravnborg	  "fairly" have been proposed.
156a2e9b73SSam Ravnborg
166a2e9b73SSam Ravnborg	  If you say N here, you will get the standard packet scheduler, which
176a2e9b73SSam Ravnborg	  is a FIFO (first come, first served). If you say Y here, you will be
186a2e9b73SSam Ravnborg	  able to choose from among several alternative algorithms which can
196a2e9b73SSam Ravnborg	  then be attached to different network devices. This is useful for
206a2e9b73SSam Ravnborg	  example if some of your network devices are real time devices that
216a2e9b73SSam Ravnborg	  need a certain minimum data flow rate, or if you need to limit the
226a2e9b73SSam Ravnborg	  maximum data flow rate for traffic which matches specified criteria.
236a2e9b73SSam Ravnborg	  This code is considered to be experimental.
246a2e9b73SSam Ravnborg
256a2e9b73SSam Ravnborg	  To administer these schedulers, you'll need the user-level utilities
265d330cddSAndrew Shewmaker	  from the package iproute2+tc at
275d330cddSAndrew Shewmaker	  <https://www.kernel.org/pub/linux/utils/net/iproute2/>.  That package
285d330cddSAndrew Shewmaker	  also contains some documentation; for more, check out
29c996d8b9SMichael Witten	  <http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2>.
306a2e9b73SSam Ravnborg
316a2e9b73SSam Ravnborg	  This Quality of Service (QoS) support will enable you to use
326a2e9b73SSam Ravnborg	  Differentiated Services (diffserv) and Resource Reservation Protocol
3352ab4ac2SThomas Graf	  (RSVP) on your Linux router if you also say Y to the corresponding
3452ab4ac2SThomas Graf	  classifiers below.  Documentation and software is at
3552ab4ac2SThomas Graf	  <http://diffserv.sourceforge.net/>.
366a2e9b73SSam Ravnborg
376a2e9b73SSam Ravnborg	  If you say Y here and to "/proc file system" below, you will be able
386a2e9b73SSam Ravnborg	  to read status information about packet schedulers from the file
396a2e9b73SSam Ravnborg	  /proc/net/psched.
406a2e9b73SSam Ravnborg
416a2e9b73SSam Ravnborg	  The available schedulers are listed in the following questions; you
426a2e9b73SSam Ravnborg	  can say Y to as many as you like. If unsure, say N now.
436a2e9b73SSam Ravnborg
4405b8b0faSRoman Zippelif NET_SCHED
4505b8b0faSRoman Zippel
4652ab4ac2SThomas Grafcomment "Queueing/Scheduling"
4752ab4ac2SThomas Graf
481da177e4SLinus Torvaldsconfig NET_SCH_HTB
4952ab4ac2SThomas Graf	tristate "Hierarchical Token Bucket (HTB)"
50a7f7f624SMasahiro Yamada	help
511da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Token Buckets (HTB)
5252ab4ac2SThomas Graf	  packet scheduling algorithm. See
531da177e4SLinus Torvalds	  <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and
541da177e4SLinus Torvalds	  in-depth articles.
551da177e4SLinus Torvalds
5652ab4ac2SThomas Graf	  HTB is very similar to CBQ regarding its goals however is has
571da177e4SLinus Torvalds	  different properties and different algorithm.
581da177e4SLinus Torvalds
591da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
601da177e4SLinus Torvalds	  module will be called sch_htb.
611da177e4SLinus Torvalds
621da177e4SLinus Torvaldsconfig NET_SCH_HFSC
6352ab4ac2SThomas Graf	tristate "Hierarchical Fair Service Curve (HFSC)"
64a7f7f624SMasahiro Yamada	help
651da177e4SLinus Torvalds	  Say Y here if you want to use the Hierarchical Fair Service Curve
6652ab4ac2SThomas Graf	  (HFSC) packet scheduling algorithm.
671da177e4SLinus Torvalds
681da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
691da177e4SLinus Torvalds	  module will be called sch_hfsc.
701da177e4SLinus Torvalds
711da177e4SLinus Torvaldsconfig NET_SCH_PRIO
7252ab4ac2SThomas Graf	tristate "Multi Band Priority Queueing (PRIO)"
73a7f7f624SMasahiro Yamada	help
741da177e4SLinus Torvalds	  Say Y here if you want to use an n-band priority queue packet
7552ab4ac2SThomas Graf	  scheduler.
761da177e4SLinus Torvalds
771da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
781da177e4SLinus Torvalds	  module will be called sch_prio.
791da177e4SLinus Torvalds
8092651940SAlexander Duyckconfig NET_SCH_MULTIQ
8192651940SAlexander Duyck	tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)"
82a7f7f624SMasahiro Yamada	help
8392651940SAlexander Duyck	  Say Y here if you want to use an n-band queue packet scheduler
8492651940SAlexander Duyck	  to support devices that have multiple hardware transmit queues.
8592651940SAlexander Duyck
8692651940SAlexander Duyck	  To compile this code as a module, choose M here: the
8792651940SAlexander Duyck	  module will be called sch_multiq.
8892651940SAlexander Duyck
891da177e4SLinus Torvaldsconfig NET_SCH_RED
9052ab4ac2SThomas Graf	tristate "Random Early Detection (RED)"
91a7f7f624SMasahiro Yamada	help
921da177e4SLinus Torvalds	  Say Y here if you want to use the Random Early Detection (RED)
9352ab4ac2SThomas Graf	  packet scheduling algorithm.
9452ab4ac2SThomas Graf
9552ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_red.c> for more details.
961da177e4SLinus Torvalds
971da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
981da177e4SLinus Torvalds	  module will be called sch_red.
991da177e4SLinus Torvalds
100e13e02a3SEric Dumazetconfig NET_SCH_SFB
101e13e02a3SEric Dumazet	tristate "Stochastic Fair Blue (SFB)"
102a7f7f624SMasahiro Yamada	help
103e13e02a3SEric Dumazet	  Say Y here if you want to use the Stochastic Fair Blue (SFB)
104e13e02a3SEric Dumazet	  packet scheduling algorithm.
105e13e02a3SEric Dumazet
106e13e02a3SEric Dumazet	  See the top of <file:net/sched/sch_sfb.c> for more details.
107e13e02a3SEric Dumazet
108e13e02a3SEric Dumazet	  To compile this code as a module, choose M here: the
109e13e02a3SEric Dumazet	  module will be called sch_sfb.
110e13e02a3SEric Dumazet
1111da177e4SLinus Torvaldsconfig NET_SCH_SFQ
11252ab4ac2SThomas Graf	tristate "Stochastic Fairness Queueing (SFQ)"
113a7f7f624SMasahiro Yamada	help
1141da177e4SLinus Torvalds	  Say Y here if you want to use the Stochastic Fairness Queueing (SFQ)
11552ab4ac2SThomas Graf	  packet scheduling algorithm.
11652ab4ac2SThomas Graf
11752ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_sfq.c> for more details.
1181da177e4SLinus Torvalds
1191da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1201da177e4SLinus Torvalds	  module will be called sch_sfq.
1211da177e4SLinus Torvalds
1221da177e4SLinus Torvaldsconfig NET_SCH_TEQL
12352ab4ac2SThomas Graf	tristate "True Link Equalizer (TEQL)"
124a7f7f624SMasahiro Yamada	help
1251da177e4SLinus Torvalds	  Say Y here if you want to use the True Link Equalizer (TLE) packet
12652ab4ac2SThomas Graf	  scheduling algorithm. This queueing discipline allows the combination
12752ab4ac2SThomas Graf	  of several physical devices into one virtual device.
12852ab4ac2SThomas Graf
12952ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_teql.c> for more details.
1301da177e4SLinus Torvalds
1311da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1321da177e4SLinus Torvalds	  module will be called sch_teql.
1331da177e4SLinus Torvalds
1341da177e4SLinus Torvaldsconfig NET_SCH_TBF
13552ab4ac2SThomas Graf	tristate "Token Bucket Filter (TBF)"
136a7f7f624SMasahiro Yamada	help
13752ab4ac2SThomas Graf	  Say Y here if you want to use the Token Bucket Filter (TBF) packet
13852ab4ac2SThomas Graf	  scheduling algorithm.
13952ab4ac2SThomas Graf
14052ab4ac2SThomas Graf	  See the top of <file:net/sched/sch_tbf.c> for more details.
1411da177e4SLinus Torvalds
1421da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1431da177e4SLinus Torvalds	  module will be called sch_tbf.
1441da177e4SLinus Torvalds
145585d763aSVinicius Costa Gomesconfig NET_SCH_CBS
146585d763aSVinicius Costa Gomes	tristate "Credit Based Shaper (CBS)"
147a7f7f624SMasahiro Yamada	help
148585d763aSVinicius Costa Gomes	  Say Y here if you want to use the Credit Based Shaper (CBS) packet
149585d763aSVinicius Costa Gomes	  scheduling algorithm.
150585d763aSVinicius Costa Gomes
151585d763aSVinicius Costa Gomes	  See the top of <file:net/sched/sch_cbs.c> for more details.
152585d763aSVinicius Costa Gomes
153585d763aSVinicius Costa Gomes	  To compile this code as a module, choose M here: the
154585d763aSVinicius Costa Gomes	  module will be called sch_cbs.
155585d763aSVinicius Costa Gomes
15625db26a9SVinicius Costa Gomesconfig NET_SCH_ETF
15725db26a9SVinicius Costa Gomes	tristate "Earliest TxTime First (ETF)"
15825db26a9SVinicius Costa Gomes	help
15925db26a9SVinicius Costa Gomes	  Say Y here if you want to use the Earliest TxTime First (ETF) packet
16025db26a9SVinicius Costa Gomes	  scheduling algorithm.
16125db26a9SVinicius Costa Gomes
16225db26a9SVinicius Costa Gomes	  See the top of <file:net/sched/sch_etf.c> for more details.
16325db26a9SVinicius Costa Gomes
16425db26a9SVinicius Costa Gomes	  To compile this code as a module, choose M here: the
16525db26a9SVinicius Costa Gomes	  module will be called sch_etf.
16625db26a9SVinicius Costa Gomes
1671dfe086dSVladimir Olteanconfig NET_SCH_MQPRIO_LIB
1681dfe086dSVladimir Oltean	tristate
1691dfe086dSVladimir Oltean	help
1701dfe086dSVladimir Oltean	  Common library for manipulating mqprio queue configurations.
1711dfe086dSVladimir Oltean
1725a781ccbSVinicius Costa Gomesconfig NET_SCH_TAPRIO
1735a781ccbSVinicius Costa Gomes	tristate "Time Aware Priority (taprio) Scheduler"
1741dfe086dSVladimir Oltean	select NET_SCH_MQPRIO_LIB
1755a781ccbSVinicius Costa Gomes	help
1765a781ccbSVinicius Costa Gomes	  Say Y here if you want to use the Time Aware Priority (taprio) packet
1775a781ccbSVinicius Costa Gomes	  scheduling algorithm.
1785a781ccbSVinicius Costa Gomes
1795a781ccbSVinicius Costa Gomes	  See the top of <file:net/sched/sch_taprio.c> for more details.
1805a781ccbSVinicius Costa Gomes
1815a781ccbSVinicius Costa Gomes	  To compile this code as a module, choose M here: the
1825a781ccbSVinicius Costa Gomes	  module will be called sch_taprio.
1835a781ccbSVinicius Costa Gomes
1841da177e4SLinus Torvaldsconfig NET_SCH_GRED
18552ab4ac2SThomas Graf	tristate "Generic Random Early Detection (GRED)"
186a7f7f624SMasahiro Yamada	help
1871da177e4SLinus Torvalds	  Say Y here if you want to use the Generic Random Early Detection
18820cc6befSLucas Correia Villa Real	  (GRED) packet scheduling algorithm for some of your network devices
1891da177e4SLinus Torvalds	  (see the top of <file:net/sched/sch_red.c> for details and
1901da177e4SLinus Torvalds	  references about the algorithm).
1911da177e4SLinus Torvalds
1921da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
1931da177e4SLinus Torvalds	  module will be called sch_gred.
1941da177e4SLinus Torvalds
1951da177e4SLinus Torvaldsconfig NET_SCH_NETEM
19652ab4ac2SThomas Graf	tristate "Network emulator (NETEM)"
197a7f7f624SMasahiro Yamada	help
1981da177e4SLinus Torvalds	  Say Y if you want to emulate network delay, loss, and packet
1991da177e4SLinus Torvalds	  re-ordering. This is often useful to simulate networks when
2001da177e4SLinus Torvalds	  testing applications or protocols.
2011da177e4SLinus Torvalds
2021da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
2031da177e4SLinus Torvalds	  will be called sch_netem.
2041da177e4SLinus Torvalds
2051da177e4SLinus Torvalds	  If unsure, say N.
2061da177e4SLinus Torvalds
20713d2a1d2SPatrick McHardyconfig NET_SCH_DRR
20813d2a1d2SPatrick McHardy	tristate "Deficit Round Robin scheduler (DRR)"
20913d2a1d2SPatrick McHardy	help
21013d2a1d2SPatrick McHardy	  Say Y here if you want to use the Deficit Round Robin (DRR) packet
21113d2a1d2SPatrick McHardy	  scheduling algorithm.
21213d2a1d2SPatrick McHardy
21313d2a1d2SPatrick McHardy	  To compile this driver as a module, choose M here: the module
21413d2a1d2SPatrick McHardy	  will be called sch_drr.
21513d2a1d2SPatrick McHardy
21613d2a1d2SPatrick McHardy	  If unsure, say N.
21713d2a1d2SPatrick McHardy
218b8970f0bSJohn Fastabendconfig NET_SCH_MQPRIO
219b8970f0bSJohn Fastabend	tristate "Multi-queue priority scheduler (MQPRIO)"
2201dfe086dSVladimir Oltean	select NET_SCH_MQPRIO_LIB
221b8970f0bSJohn Fastabend	help
222b8970f0bSJohn Fastabend	  Say Y here if you want to use the Multi-queue Priority scheduler.
223b8970f0bSJohn Fastabend	  This scheduler allows QOS to be offloaded on NICs that have support
224b8970f0bSJohn Fastabend	  for offloading QOS schedulers.
225b8970f0bSJohn Fastabend
226b8970f0bSJohn Fastabend	  To compile this driver as a module, choose M here: the module will
227b8970f0bSJohn Fastabend	  be called sch_mqprio.
228b8970f0bSJohn Fastabend
229b8970f0bSJohn Fastabend	  If unsure, say N.
230b8970f0bSJohn Fastabend
231aea5f654SNishanth Devarajanconfig NET_SCH_SKBPRIO
232aea5f654SNishanth Devarajan	tristate "SKB priority queue scheduler (SKBPRIO)"
233aea5f654SNishanth Devarajan	help
234aea5f654SNishanth Devarajan	  Say Y here if you want to use the SKB priority queue
235aea5f654SNishanth Devarajan	  scheduler. This schedules packets according to skb->priority,
236aea5f654SNishanth Devarajan	  which is useful for request packets in DoS mitigation systems such
237aea5f654SNishanth Devarajan	  as Gatekeeper.
238aea5f654SNishanth Devarajan
239aea5f654SNishanth Devarajan	  To compile this driver as a module, choose M here: the module will
240aea5f654SNishanth Devarajan	  be called sch_skbprio.
241aea5f654SNishanth Devarajan
242aea5f654SNishanth Devarajan	  If unsure, say N.
243aea5f654SNishanth Devarajan
24445e14433Sstephen hemmingerconfig NET_SCH_CHOKE
24545e14433Sstephen hemminger	tristate "CHOose and Keep responsive flow scheduler (CHOKE)"
24645e14433Sstephen hemminger	help
24745e14433Sstephen hemminger	  Say Y here if you want to use the CHOKe packet scheduler (CHOose
24845e14433Sstephen hemminger	  and Keep for responsive flows, CHOose and Kill for unresponsive
2498354bcbeSColin Ian King	  flows). This is a variation of RED which tries to penalize flows
25045e14433Sstephen hemminger	  that monopolize the queue.
25145e14433Sstephen hemminger
25245e14433Sstephen hemminger	  To compile this code as a module, choose M here: the
25345e14433Sstephen hemminger	  module will be called sch_choke.
25445e14433Sstephen hemminger
2550545a303Sstephen hemmingerconfig NET_SCH_QFQ
2560545a303Sstephen hemminger	tristate "Quick Fair Queueing scheduler (QFQ)"
2570545a303Sstephen hemminger	help
2580545a303Sstephen hemminger	  Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ)
2590545a303Sstephen hemminger	  packet scheduling algorithm.
2600545a303Sstephen hemminger
2610545a303Sstephen hemminger	  To compile this driver as a module, choose M here: the module
2620545a303Sstephen hemminger	  will be called sch_qfq.
2630545a303Sstephen hemminger
2640545a303Sstephen hemminger	  If unsure, say N.
2650545a303Sstephen hemminger
26676e3cc12SEric Dumazetconfig NET_SCH_CODEL
26776e3cc12SEric Dumazet	tristate "Controlled Delay AQM (CODEL)"
26876e3cc12SEric Dumazet	help
26976e3cc12SEric Dumazet	  Say Y here if you want to use the Controlled Delay (CODEL)
27076e3cc12SEric Dumazet	  packet scheduling algorithm.
27176e3cc12SEric Dumazet
27276e3cc12SEric Dumazet	  To compile this driver as a module, choose M here: the module
27376e3cc12SEric Dumazet	  will be called sch_codel.
27476e3cc12SEric Dumazet
27576e3cc12SEric Dumazet	  If unsure, say N.
27676e3cc12SEric Dumazet
2774b549a2eSEric Dumazetconfig NET_SCH_FQ_CODEL
2784b549a2eSEric Dumazet	tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)"
2794b549a2eSEric Dumazet	help
2804b549a2eSEric Dumazet	  Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL)
2814b549a2eSEric Dumazet	  packet scheduling algorithm.
2824b549a2eSEric Dumazet
2834b549a2eSEric Dumazet	  To compile this driver as a module, choose M here: the module
2844b549a2eSEric Dumazet	  will be called sch_fq_codel.
2854b549a2eSEric Dumazet
2864b549a2eSEric Dumazet	  If unsure, say N.
2874b549a2eSEric Dumazet
288046f6fd5SToke Høiland-Jørgensenconfig NET_SCH_CAKE
289046f6fd5SToke Høiland-Jørgensen	tristate "Common Applications Kept Enhanced (CAKE)"
290046f6fd5SToke Høiland-Jørgensen	help
291046f6fd5SToke Høiland-Jørgensen	  Say Y here if you want to use the Common Applications Kept Enhanced
292046f6fd5SToke Høiland-Jørgensen	  (CAKE) queue management algorithm.
293046f6fd5SToke Høiland-Jørgensen
294046f6fd5SToke Høiland-Jørgensen	  To compile this driver as a module, choose M here: the module
295046f6fd5SToke Høiland-Jørgensen	  will be called sch_cake.
296046f6fd5SToke Høiland-Jørgensen
297046f6fd5SToke Høiland-Jørgensen	  If unsure, say N.
298046f6fd5SToke Høiland-Jørgensen
299afe4fd06SEric Dumazetconfig NET_SCH_FQ
300afe4fd06SEric Dumazet	tristate "Fair Queue"
301afe4fd06SEric Dumazet	help
302afe4fd06SEric Dumazet	  Say Y here if you want to use the FQ packet scheduling algorithm.
303afe4fd06SEric Dumazet
304afe4fd06SEric Dumazet	  FQ does flow separation, and is able to respect pacing requirements
3056a7a2c18SRandy Dunlap	  set by TCP stack into sk->sk_pacing_rate (for locally generated
306afe4fd06SEric Dumazet	  traffic)
307afe4fd06SEric Dumazet
308afe4fd06SEric Dumazet	  To compile this driver as a module, choose M here: the module
309afe4fd06SEric Dumazet	  will be called sch_fq.
310afe4fd06SEric Dumazet
311afe4fd06SEric Dumazet	  If unsure, say N.
312afe4fd06SEric Dumazet
31310239edfSTerry Lamconfig NET_SCH_HHF
31410239edfSTerry Lam	tristate "Heavy-Hitter Filter (HHF)"
31510239edfSTerry Lam	help
31610239edfSTerry Lam	  Say Y here if you want to use the Heavy-Hitter Filter (HHF)
31710239edfSTerry Lam	  packet scheduling algorithm.
31810239edfSTerry Lam
31910239edfSTerry Lam	  To compile this driver as a module, choose M here: the module
32010239edfSTerry Lam	  will be called sch_hhf.
32110239edfSTerry Lam
322d4b36210SVijay Subramanianconfig NET_SCH_PIE
323d4b36210SVijay Subramanian	tristate "Proportional Integral controller Enhanced (PIE) scheduler"
324d4b36210SVijay Subramanian	help
325d4b36210SVijay Subramanian	  Say Y here if you want to use the Proportional Integral controller
326d4b36210SVijay Subramanian	  Enhanced scheduler packet scheduling algorithm.
3271f8389bfSLeslie Monis	  For more information, please see https://tools.ietf.org/html/rfc8033
328d4b36210SVijay Subramanian
329d4b36210SVijay Subramanian	  To compile this driver as a module, choose M here: the module
330d4b36210SVijay Subramanian	  will be called sch_pie.
331d4b36210SVijay Subramanian
332d4b36210SVijay Subramanian	  If unsure, say N.
333d4b36210SVijay Subramanian
334ec97ecf1SMohit P. Tahilianiconfig NET_SCH_FQ_PIE
335ec97ecf1SMohit P. Tahiliani	depends on NET_SCH_PIE
336ec97ecf1SMohit P. Tahiliani	tristate "Flow Queue Proportional Integral controller Enhanced (FQ-PIE)"
337ec97ecf1SMohit P. Tahiliani	help
338ec97ecf1SMohit P. Tahiliani	  Say Y here if you want to use the Flow Queue Proportional Integral
339ec97ecf1SMohit P. Tahiliani	  controller Enhanced (FQ-PIE) packet scheduling algorithm.
340ec97ecf1SMohit P. Tahiliani	  For more information, please see https://tools.ietf.org/html/rfc8033
341ec97ecf1SMohit P. Tahiliani
342ec97ecf1SMohit P. Tahiliani	  To compile this driver as a module, choose M here: the module
343ec97ecf1SMohit P. Tahiliani	  will be called sch_fq_pie.
344ec97ecf1SMohit P. Tahiliani
345ec97ecf1SMohit P. Tahiliani	  If unsure, say N.
346ec97ecf1SMohit P. Tahiliani
3471da177e4SLinus Torvaldsconfig NET_SCH_INGRESS
3481f211a1bSDaniel Borkmann	tristate "Ingress/classifier-action Qdisc"
34972eb7bd2SPatrick McHardy	depends on NET_CLS_ACT
350e420bed0SDaniel Borkmann	select NET_XGRESS
351a7f7f624SMasahiro Yamada	help
3521f211a1bSDaniel Borkmann	  Say Y here if you want to use classifiers for incoming and/or outgoing
3531f211a1bSDaniel Borkmann	  packets. This qdisc doesn't do anything else besides running classifiers,
3541f211a1bSDaniel Borkmann	  which can also have actions attached to them. In case of outgoing packets,
3551f211a1bSDaniel Borkmann	  classifiers that this qdisc holds are executed in the transmit path
3561f211a1bSDaniel Borkmann	  before real enqueuing to an egress qdisc happens.
3571f211a1bSDaniel Borkmann
3581da177e4SLinus Torvalds	  If unsure, say Y.
3591da177e4SLinus Torvalds
3601f211a1bSDaniel Borkmann	  To compile this code as a module, choose M here: the module will be
3611f211a1bSDaniel Borkmann	  called sch_ingress with alias of sch_clsact.
3621da177e4SLinus Torvalds
363c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG
364c3059be1SShriram Rajagopalan	tristate "Plug network traffic until release (PLUG)"
365a7f7f624SMasahiro Yamada	help
366c3059be1SShriram Rajagopalan
367c3059be1SShriram Rajagopalan	  This queuing discipline allows userspace to plug/unplug a network
368c3059be1SShriram Rajagopalan	  output queue, using the netlink interface.  When it receives an
369c3059be1SShriram Rajagopalan	  enqueue command it inserts a plug into the outbound queue that
370c3059be1SShriram Rajagopalan	  causes following packets to enqueue until a dequeue command arrives
371c3059be1SShriram Rajagopalan	  over netlink, causing the plug to be removed and resuming the normal
372c3059be1SShriram Rajagopalan	  packet flow.
373c3059be1SShriram Rajagopalan
374c3059be1SShriram Rajagopalan	  This module also provides a generic "network output buffering"
375c3059be1SShriram Rajagopalan	  functionality (aka output commit), wherein upon arrival of a dequeue
376c3059be1SShriram Rajagopalan	  command, only packets up to the first plug are released for delivery.
377c3059be1SShriram Rajagopalan	  The Remus HA project uses this module to enable speculative execution
378c3059be1SShriram Rajagopalan	  of virtual machines by allowing the generated network output to be rolled
379c3059be1SShriram Rajagopalan	  back if needed.
380c3059be1SShriram Rajagopalan
3815d330cddSAndrew Shewmaker	  For more information, please refer to <http://wiki.xenproject.org/wiki/Remus>
382c3059be1SShriram Rajagopalan
383c3059be1SShriram Rajagopalan	  Say Y here if you are using this kernel for Xen dom0 and
384c3059be1SShriram Rajagopalan	  want to protect Xen guests with Remus.
385c3059be1SShriram Rajagopalan
386c3059be1SShriram Rajagopalan	  To compile this code as a module, choose M here: the
387c3059be1SShriram Rajagopalan	  module will be called sch_plug.
388c3059be1SShriram Rajagopalan
389dcc68b4dSPetr Machataconfig NET_SCH_ETS
390dcc68b4dSPetr Machata	tristate "Enhanced transmission selection scheduler (ETS)"
391dcc68b4dSPetr Machata	help
392dcc68b4dSPetr Machata          The Enhanced Transmission Selection scheduler is a classful
393dcc68b4dSPetr Machata          queuing discipline that merges functionality of PRIO and DRR
394dcc68b4dSPetr Machata          qdiscs in one scheduler. ETS makes it easy to configure a set of
395dcc68b4dSPetr Machata          strict and bandwidth-sharing bands to implement the transmission
396dcc68b4dSPetr Machata          selection described in 802.1Qaz.
397dcc68b4dSPetr Machata
398dcc68b4dSPetr Machata	  Say Y here if you want to use the ETS packet scheduling
399dcc68b4dSPetr Machata	  algorithm.
400dcc68b4dSPetr Machata
401dcc68b4dSPetr Machata	  To compile this driver as a module, choose M here: the module
402dcc68b4dSPetr Machata	  will be called sch_ets.
403dcc68b4dSPetr Machata
404dcc68b4dSPetr Machata	  If unsure, say N.
405dcc68b4dSPetr Machata
4068ea3e439Sstephen hemmingerconfig NET_SCH_BPF
4078ea3e439Sstephen hemminger	bool "BPF-based Qdisc"
408a7f7f624SMasahiro Yamada	depends on BPF_SYSCALL && BPF_JIT && DEBUG_INFO_BTF
4098ea3e439Sstephen hemminger	help
4108ea3e439Sstephen hemminger	  This option allows BPF-based queueing disiplines. With BPF struct_ops,
4118ea3e439Sstephen hemminger	  users can implement supported operators in Qdisc_ops using BPF programs.
4128ea3e439Sstephen hemminger	  The queue holding skb can be built with BPF maps or graphs.
4138ea3e439Sstephen hemminger
4148ea3e439Sstephen hemminger	  Say Y here if you want to use BPF-based Qdisc.
4158ea3e439Sstephen hemminger
4168ea3e439Sstephen hemminger	  If unsure, say N.
4178ea3e439Sstephen hemminger
4188ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT
4198ea3e439Sstephen hemminger	bool "Allow override default queue discipline"
4208ea3e439Sstephen hemminger	help
4218ea3e439Sstephen hemminger	  Support for selection of default queuing discipline.
4228ea3e439Sstephen hemminger
4238ea3e439Sstephen hemminger	  Nearly all users can safely say no here, and the default
4248ea3e439Sstephen hemminger	  of pfifo_fast will be used. Many distributions already set
4258ea3e439Sstephen hemminger	  the default value via /proc/sys/net/core/default_qdisc.
4268ea3e439Sstephen hemminger
4278ea3e439Sstephen hemminger	  If unsure, say N.
4288ea3e439Sstephen hemminger
4298ea3e439Sstephen hemmingerif NET_SCH_DEFAULT
4308ea3e439Sstephen hemminger
4318ea3e439Sstephen hemmingerchoice
4328ea3e439Sstephen hemminger	prompt "Default queuing discipline"
4338ea3e439Sstephen hemminger	default DEFAULT_PFIFO_FAST
4348ea3e439Sstephen hemminger	help
435b97e9d9dSDanny Lin	  Select the queueing discipline that will be used by default
436b97e9d9dSDanny Lin	  for all network devices.
437b97e9d9dSDanny Lin
4388ea3e439Sstephen hemminger	config DEFAULT_FQ
4398ea3e439Sstephen hemminger		bool "Fair Queue" if NET_SCH_FQ
4408ea3e439Sstephen hemminger
4418ea3e439Sstephen hemminger	config DEFAULT_CODEL
4428ea3e439Sstephen hemminger		bool "Controlled Delay" if NET_SCH_CODEL
4438ea3e439Sstephen hemminger
4448ea3e439Sstephen hemminger	config DEFAULT_FQ_CODEL
4458ea3e439Sstephen hemminger		bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL
4468ea3e439Sstephen hemminger
4478ea3e439Sstephen hemminger	config DEFAULT_FQ_PIE
4488ea3e439Sstephen hemminger		bool "Flow Queue Proportional Integral controller Enhanced" if NET_SCH_FQ_PIE
4498ea3e439Sstephen hemminger
450b97e9d9dSDanny Lin	config DEFAULT_SFQ
4518ea3e439Sstephen hemminger		bool "Stochastic Fair Queue" if NET_SCH_SFQ
4528ea3e439Sstephen hemminger
4538ea3e439Sstephen hemminger	config DEFAULT_PFIFO_FAST
4548ea3e439Sstephen hemminger		bool "Priority FIFO Fast"
45552ab4ac2SThomas Grafendchoice
4561da177e4SLinus Torvalds
4571da177e4SLinus Torvaldsconfig DEFAULT_NET_SCH
4586341e62bSChristoph Jaeger	string
4591da177e4SLinus Torvalds	default "pfifo_fast" if DEFAULT_PFIFO_FAST
4601da177e4SLinus Torvalds	default "fq" if DEFAULT_FQ
46152ab4ac2SThomas Graf	default "fq_codel" if DEFAULT_FQ_CODEL
46252ab4ac2SThomas Graf	default "fq_pie" if DEFAULT_FQ_PIE
463a7f7f624SMasahiro Yamada	default "sfq" if DEFAULT_SFQ
4641da177e4SLinus Torvalds	default "pfifo_fast"
4651da177e4SLinus Torvaldsendif
4661da177e4SLinus Torvalds
4671da177e4SLinus Torvaldscomment "Classification"
4681da177e4SLinus Torvalds
4691da177e4SLinus Torvaldsconfig NET_CLS
4701da177e4SLinus Torvalds	bool
47152ab4ac2SThomas Graf
472034cfe48SRandy Dunlapconfig NET_CLS_BASIC
473c7066f70SPatrick McHardy	tristate "Elementary classification (BASIC)"
47452ab4ac2SThomas Graf	select NET_CLS
475a7f7f624SMasahiro Yamada	help
47652ab4ac2SThomas Graf	  Say Y here if you want to be able to classify packets using
47752ab4ac2SThomas Graf	  only extended matches and actions.
4781da177e4SLinus Torvalds
4791da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4801da177e4SLinus Torvalds	  module will be called cls_basic.
4811da177e4SLinus Torvalds
4821da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4
48352ab4ac2SThomas Graf	tristate "Routing decision (ROUTE)"
48452ab4ac2SThomas Graf	depends on INET
485a7f7f624SMasahiro Yamada	select IP_ROUTE_CLASSID
48652ab4ac2SThomas Graf	select NET_CLS
48752ab4ac2SThomas Graf	help
4881da177e4SLinus Torvalds	  If you say Y here, you will be able to classify packets
4891da177e4SLinus Torvalds	  according to the route table entry they matched.
4901da177e4SLinus Torvalds
4911da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
4921da177e4SLinus Torvalds	  module will be called cls_route.
49352ab4ac2SThomas Graf
49452ab4ac2SThomas Grafconfig NET_CLS_FW
495a7f7f624SMasahiro Yamada	tristate "Netfilter mark (FW)"
4963539c272SMatt LaPlante	select NET_CLS
49752ab4ac2SThomas Graf	help
4981da177e4SLinus Torvalds	  If you say Y here, you will be able to classify packets
4991da177e4SLinus Torvalds	  according to netfilter/firewall marks.
5001da177e4SLinus Torvalds
5011da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
5021da177e4SLinus Torvalds	  module will be called cls_fw.
50352ab4ac2SThomas Graf
5041da177e4SLinus Torvaldsconfig NET_CLS_U32
505a7f7f624SMasahiro Yamada	tristate "Universal 32bit comparisons w/ hashing (U32)"
50652ab4ac2SThomas Graf	select NET_CLS
50752ab4ac2SThomas Graf	help
5081da177e4SLinus Torvalds	  Say Y here to be able to classify packets using a universal
5091da177e4SLinus Torvalds	  32bit pieces based comparison scheme.
51052ab4ac2SThomas Graf
51182e91ffeSThomas Graf	  To compile this code as a module, choose M here: the
512a7f7f624SMasahiro Yamada	  module will be called cls_u32.
51352ab4ac2SThomas Graf
5141da177e4SLinus Torvaldsconfig CLS_U32_PERF
515e5dfb815SPatrick McHardy	bool "Performance counters support"
516e5dfb815SPatrick McHardy	depends on NET_CLS_U32
517e5dfb815SPatrick McHardy	help
518a7f7f624SMasahiro Yamada	  Say Y here to make u32 gather additional statistics useful for
519e5dfb815SPatrick McHardy	  fine tuning u32 classifiers.
520e5dfb815SPatrick McHardy
521e5dfb815SPatrick McHardyconfig CLS_U32_MARK
522e5dfb815SPatrick McHardy	bool "Netfilter marks support"
523e5dfb815SPatrick McHardy	depends on NET_CLS_U32
524e5dfb815SPatrick McHardy	help
525e5dfb815SPatrick McHardy	  Say Y here to be able to use netfilter marks as u32 key.
526f4009237SThomas Graf
5278e039d84SBen Blumconfig NET_CLS_FLOW
528f4009237SThomas Graf	tristate "Flow classifier"
529fe1217c4SDaniel Borkmann	select NET_CLS
530f4009237SThomas Graf	help
531a7f7f624SMasahiro Yamada	  If you say Y here, you will be able to classify packets based on
532f4009237SThomas Graf	  a configurable combination of packet keys. This is mostly useful
533f4009237SThomas Graf	  in combination with SFQ.
534f4009237SThomas Graf
5358e039d84SBen Blum	  To compile this code as a module, choose M here: the
5368e039d84SBen Blum	  module will be called cls_flow.
5378e039d84SBen Blum
5387d1d65cbSDaniel Borkmannconfig NET_CLS_CGROUP
5397d1d65cbSDaniel Borkmann	tristate "Control Group Classifier"
5407d1d65cbSDaniel Borkmann	select NET_CLS
541a7f7f624SMasahiro Yamada	select CGROUP_NET_CLASSID
5427d1d65cbSDaniel Borkmann	depends on CGROUPS
5437d1d65cbSDaniel Borkmann	help
5447d1d65cbSDaniel Borkmann	  Say Y here if you want to classify packets based on the control
5457d1d65cbSDaniel Borkmann	  cgroup of their process.
5467d1d65cbSDaniel Borkmann
5477d1d65cbSDaniel Borkmann	  To compile this code as a module, choose M here: the
54877b9900eSJiri Pirko	  module will be called cls_cgroup.
54977b9900eSJiri Pirko
55077b9900eSJiri Pirkoconfig NET_CLS_BPF
551a7f7f624SMasahiro Yamada	tristate "BPF-based classifier"
55277b9900eSJiri Pirko	select NET_CLS
55377b9900eSJiri Pirko	help
55477b9900eSJiri Pirko	  If you say Y here, you will be able to classify packets based on
55577b9900eSJiri Pirko	  programmable BPF (JIT'ed) filters as an alternative to ematches.
55677b9900eSJiri Pirko
55777b9900eSJiri Pirko	  To compile this code as a module, choose M here: the module will
558bf3994d2SJiri Pirko	  be called cls_bpf.
559bf3994d2SJiri Pirko
560bf3994d2SJiri Pirkoconfig NET_CLS_FLOWER
561a7f7f624SMasahiro Yamada	tristate "Flower classifier"
562bf3994d2SJiri Pirko	select NET_CLS
563bf3994d2SJiri Pirko	help
564bf3994d2SJiri Pirko	  If you say Y here, you will be able to classify packets based on
565bf3994d2SJiri Pirko	  a configurable combination of packet keys and masks.
566bf3994d2SJiri Pirko
567bf3994d2SJiri Pirko	  To compile this code as a module, choose M here: the module will
5681da177e4SLinus Torvalds	  be called cls_flower.
5691da177e4SLinus Torvalds
57052ab4ac2SThomas Grafconfig NET_CLS_MATCHALL
571a7f7f624SMasahiro Yamada	tristate "Match-all classifier"
5721da177e4SLinus Torvalds	select NET_CLS
5731da177e4SLinus Torvalds	help
5741da177e4SLinus Torvalds	  If you say Y here, you will be able to classify packets based on
5751da177e4SLinus Torvalds	  nothing. Every packet will match.
57652ab4ac2SThomas Graf
5771da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the module will
57852ab4ac2SThomas Graf	  be called cls_matchall.
5791da177e4SLinus Torvalds
5801da177e4SLinus Torvaldsconfig NET_EMATCH
5811da177e4SLinus Torvalds	bool "Extended Matches"
5821da177e4SLinus Torvalds	select NET_CLS
5831da177e4SLinus Torvalds	help
5841da177e4SLinus Torvalds	  Say Y here if you want to use extended matches on top of classifiers
585a7f7f624SMasahiro Yamada	  and select the extended matches below.
5861da177e4SLinus Torvalds
5871da177e4SLinus Torvalds	  Extended matches are small classification helpers not worth writing
588b824979aSThomas Graf	  a separate classifier for.
5891da177e4SLinus Torvalds
5901da177e4SLinus Torvalds	  A recent version of the iproute2 package is required to use
5911da177e4SLinus Torvalds	  extended matches.
5921da177e4SLinus Torvalds
5931da177e4SLinus Torvaldsconfig NET_EMATCH_STACK
594a7f7f624SMasahiro Yamada	int "Stack size"
5951da177e4SLinus Torvalds	depends on NET_EMATCH
5961da177e4SLinus Torvalds	default "32"
5971da177e4SLinus Torvalds	help
5981da177e4SLinus Torvalds	  Size of the local stack variable used while evaluating the tree of
5991da177e4SLinus Torvalds	  ematches. Limits the depth of the tree, i.e. the number of
6001da177e4SLinus Torvalds	  encapsulated precedences. Every level requires 4 bytes of additional
6011da177e4SLinus Torvalds	  stack space.
6021da177e4SLinus Torvalds
6031da177e4SLinus Torvaldsconfig NET_EMATCH_CMP
604a7f7f624SMasahiro Yamada	tristate "Simple packet data comparison"
6051da177e4SLinus Torvalds	depends on NET_EMATCH
6061da177e4SLinus Torvalds	help
6071da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6081da177e4SLinus Torvalds	  simple packet data comparisons for 8, 16, and 32bit values.
6091da177e4SLinus Torvalds
6101da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6111da177e4SLinus Torvalds	  module will be called em_cmp.
61252ab4ac2SThomas Graf
6131da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE
614a7f7f624SMasahiro Yamada	tristate "Multi byte comparison"
6151da177e4SLinus Torvalds	depends on NET_EMATCH
6161da177e4SLinus Torvalds	help
6171da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets based on
6181da177e4SLinus Torvalds	  multiple byte comparisons mainly useful for IPv6 address comparisons.
6191da177e4SLinus Torvalds
6201da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6211da177e4SLinus Torvalds	  module will be called em_nbyte.
6221da177e4SLinus Torvalds
6231da177e4SLinus Torvaldsconfig NET_EMATCH_U32
624a7f7f624SMasahiro Yamada	tristate "U32 key"
625bb7e8c5aSAdrian Bunk	depends on NET_EMATCH
6261da177e4SLinus Torvalds	help
6271da177e4SLinus Torvalds	  Say Y here if you want to be able to classify packets using
6281da177e4SLinus Torvalds	  the famous u32 key in combination with logic relations.
6291da177e4SLinus Torvalds
6301da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
6311da177e4SLinus Torvalds	  module will be called em_u32.
632d675c989SThomas Graf
633d675c989SThomas Grafconfig NET_EMATCH_META
634d675c989SThomas Graf	tristate "Metadata"
635f2d368faSDavid S. Miller	depends on NET_EMATCH
636f7704347SDavid S. Miller	help
63729cb9f9cSDavid S. Miller	  Say Y here if you want to be able to classify packets based on
638f7704347SDavid S. Miller	  metadata such as load average, netfilter attributes, socket
639a7f7f624SMasahiro Yamada	  attributes and routing decisions.
64052ab4ac2SThomas Graf
641f7704347SDavid S. Miller	  To compile this code as a module, choose M here: the
642d675c989SThomas Graf	  module will be called em_meta.
643d675c989SThomas Graf
644d675c989SThomas Grafconfig NET_EMATCH_TEXT
645d675c989SThomas Graf	tristate "Textsearch"
646f057bbb6SRostislav Lisovy	depends on NET_EMATCH
647f057bbb6SRostislav Lisovy	select TEXTSEARCH
648a303fbf3SMarc Kleine-Budde	select TEXTSEARCH_KMP
649a7f7f624SMasahiro Yamada	select TEXTSEARCH_BM
650f057bbb6SRostislav Lisovy	select TEXTSEARCH_FSM
651f057bbb6SRostislav Lisovy	help
652f057bbb6SRostislav Lisovy	  Say Y here if you want to be able to classify packets based on
653f057bbb6SRostislav Lisovy	  textsearch comparisons.
654f057bbb6SRostislav Lisovy
655f057bbb6SRostislav Lisovy	  To compile this code as a module, choose M here: the
6566d4fa852SFlorian Westphal	  module will be called em_text.
6576d4fa852SFlorian Westphal
6586d4fa852SFlorian Westphalconfig NET_EMATCH_CANID
659a7f7f624SMasahiro Yamada	tristate "CAN Identifier"
6606d4fa852SFlorian Westphal	depends on NET_EMATCH && (CAN=y || CAN=m)
6616d4fa852SFlorian Westphal	help
6626d4fa852SFlorian Westphal	  Say Y here if you want to be able to classify CAN frames based
6636d4fa852SFlorian Westphal	  on CAN Identifier.
6646d4fa852SFlorian Westphal
6656d4fa852SFlorian Westphal	  To compile this code as a module, choose M here: the
666ccc007e4SEyal Birger	  module will be called em_canid.
667ccc007e4SEyal Birger
668ccc007e4SEyal Birgerconfig NET_EMATCH_IPSET
669a7f7f624SMasahiro Yamada	tristate "IPset"
670ccc007e4SEyal Birger	depends on NET_EMATCH && IP_SET
671ccc007e4SEyal Birger	help
672ccc007e4SEyal Birger	  Say Y here if you want to be able to classify packets based on
673ccc007e4SEyal Birger	  ipset membership.
674ccc007e4SEyal Birger
675ccc007e4SEyal Birger	  To compile this code as a module, choose M here: the
676ccc007e4SEyal Birger	  module will be called em_ipset.
677ccc007e4SEyal Birger
6781da177e4SLinus Torvaldsconfig NET_EMATCH_IPT
67952ab4ac2SThomas Graf	tristate "IPtables Matches"
6808ec1507dSJiri Pirko	depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES
681e420bed0SDaniel Borkmann	help
682a7f7f624SMasahiro Yamada	  Say Y here to be able to classify packets based on iptables
68352ab4ac2SThomas Graf	  matches.
68452ab4ac2SThomas Graf	  Current supported match is "policy" which allows packet classification
68552ab4ac2SThomas Graf	  based on IPsec policy that was used during decapsulation
68652ab4ac2SThomas Graf
68752ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
68852ab4ac2SThomas Graf	  module will be called em_ipt.
68952ab4ac2SThomas Graf
6901da177e4SLinus Torvaldsconfig NET_CLS_ACT
6911da177e4SLinus Torvalds	bool "Actions"
69252ab4ac2SThomas Graf	select NET_CLS
6931da177e4SLinus Torvalds	select NET_XGRESS
694a7f7f624SMasahiro Yamada	help
69552ab4ac2SThomas Graf	  Say Y here if you want to use traffic control actions. Actions
69652ab4ac2SThomas Graf	  get attached to classifiers and are invoked after a successful
69752ab4ac2SThomas Graf	  classification. They are used to overwrite the classification
69852ab4ac2SThomas Graf	  result, instantly drop or redirect packets, etc.
69952ab4ac2SThomas Graf
700d4ae20b3SJan Luebbe	  A recent version of the iproute2 package is required to use
7011da177e4SLinus Torvalds	  extended matches.
7021da177e4SLinus Torvalds
70352ab4ac2SThomas Grafconfig NET_ACT_POLICE
7041da177e4SLinus Torvalds	tristate "Traffic Policing"
705a7f7f624SMasahiro Yamada	depends on NET_CLS_ACT
70652ab4ac2SThomas Graf	help
70752ab4ac2SThomas Graf	  Say Y here if you want to do traffic policing, i.e. strict
70852ab4ac2SThomas Graf	  bandwidth limiting. This action replaces the existing policing
70952ab4ac2SThomas Graf	  module.
710d4ae20b3SJan Luebbe
7111da177e4SLinus Torvalds	  To compile this code as a module, choose M here: the
7121da177e4SLinus Torvalds	  module will be called act_police.
71352ab4ac2SThomas Graf
7141da177e4SLinus Torvaldsconfig NET_ACT_GACT
715a7f7f624SMasahiro Yamada	tristate "Generic actions"
71652ab4ac2SThomas Graf	depends on NET_CLS_ACT
7171da177e4SLinus Torvalds	help
7181da177e4SLinus Torvalds	  Say Y here to take generic actions such as dropping and
71952ab4ac2SThomas Graf	  accepting packets.
7201da177e4SLinus Torvalds
721a7f7f624SMasahiro Yamada	  To compile this code as a module, choose M here: the
72252ab4ac2SThomas Graf	  module will be called act_gact.
72352ab4ac2SThomas Graf
72452ab4ac2SThomas Grafconfig GACT_PROB
72552ab4ac2SThomas Graf	bool "Probability support"
726d4ae20b3SJan Luebbe	depends on NET_ACT_GACT
7271da177e4SLinus Torvalds	help
7285c5670faSYotam Gigi	  Say Y here to use the generic action randomly or deterministically.
7295c5670faSYotam Gigi
7305c5670faSYotam Gigiconfig NET_ACT_MIRRED
7315c5670faSYotam Gigi	tristate "Redirecting and Mirroring"
732a7f7f624SMasahiro Yamada	depends on NET_CLS_ACT
7335c5670faSYotam Gigi	help
7345c5670faSYotam Gigi	  Say Y here to allow packets to be mirrored or redirected to
7355c5670faSYotam Gigi	  other devices.
7365c5670faSYotam Gigi
7375c5670faSYotam Gigi	  To compile this code as a module, choose M here: the
7385c5670faSYotam Gigi	  module will be called act_mirred.
7395c5670faSYotam Gigi
740b4219952SHerbert Xuconfig NET_ACT_SAMPLE
741b4219952SHerbert Xu	tristate "Traffic Sampling"
742b4219952SHerbert Xu	depends on NET_CLS_ACT
743a7f7f624SMasahiro Yamada	select PSAMPLE
744b4219952SHerbert Xu	help
745b4219952SHerbert Xu	  Say Y here to allow packet sampling tc action. The packet sample
746b4219952SHerbert Xu	  action consists of statistically choosing packets and sampling
747b4219952SHerbert Xu	  them using the psample module.
748d4ae20b3SJan Luebbe
749b4219952SHerbert Xu	  To compile this code as a module, choose M here: the
7501da177e4SLinus Torvalds	  module will be called act_sample.
75152ab4ac2SThomas Graf
7521da177e4SLinus Torvaldsconfig NET_ACT_NAT
753a7f7f624SMasahiro Yamada	tristate "Stateless NAT"
75452ab4ac2SThomas Graf	depends on NET_CLS_ACT
7551da177e4SLinus Torvalds	help
75652ab4ac2SThomas Graf	  Say Y here to do stateless NAT on IPv4 packets.  You should use
757d4ae20b3SJan Luebbe	  netfilter for NAT unless you know what you are doing.
7581da177e4SLinus Torvalds
759db753079SJamal Hadi Salim	  To compile this code as a module, choose M here: the
76052ab4ac2SThomas Graf	  module will be called act_nat.
761db753079SJamal Hadi Salim
762a7f7f624SMasahiro Yamadaconfig NET_ACT_PEDIT
76352ab4ac2SThomas Graf	tristate "Packet Editing"
76452ab4ac2SThomas Graf	depends on NET_CLS_ACT
76552ab4ac2SThomas Graf	help
76652ab4ac2SThomas Graf	  Say Y here if you want to mangle the content of packets.
767db753079SJamal Hadi Salim
76852ab4ac2SThomas Graf	  To compile this code as a module, choose M here: the
76952ab4ac2SThomas Graf	  module will be called act_pedit.
77052ab4ac2SThomas Graf
771d4ae20b3SJan Luebbeconfig NET_ACT_SIMP
77252ab4ac2SThomas Graf	tristate "Simple Example (Debug)"
773ca9b0e27SAlexander Duyck	depends on NET_CLS_ACT
774ca9b0e27SAlexander Duyck	help
775ca9b0e27SAlexander Duyck	  Say Y here to add a simple action for demonstration purposes.
776a7f7f624SMasahiro Yamada	  It is meant as an example and for debugging purposes. It will
777ca9b0e27SAlexander Duyck	  print a configured policy string followed by the packet count
778ca9b0e27SAlexander Duyck	  to the console for every packet that passes by.
779ca9b0e27SAlexander Duyck
780ca9b0e27SAlexander Duyck	  If unsure, say N.
781ca9b0e27SAlexander Duyck
782d4ae20b3SJan Luebbe	  To compile this code as a module, choose M here: the
783ca9b0e27SAlexander Duyck	  module will be called act_simple.
784eb4d4065SGrégoire Baron
785eb4d4065SGrégoire Baronconfig NET_ACT_SKBEDIT
7867abac686SDavid S. Miller	tristate "SKB Editing"
787*b261d222SEric Biggers	depends on NET_CLS_ACT
788a7f7f624SMasahiro Yamada	help
789eb4d4065SGrégoire Baron	  Say Y here to change skb priority or queue_mapping settings.
790eb4d4065SGrégoire Baron
791eb4d4065SGrégoire Baron	  If unsure, say N.
792eb4d4065SGrégoire Baron
793eb4d4065SGrégoire Baron	  To compile this code as a module, choose M here: the
794eb4d4065SGrégoire Baron	  module will be called act_skbedit.
7952a2ea508SJohn Hurley
7962a2ea508SJohn Hurleyconfig NET_ACT_CSUM
7972a2ea508SJohn Hurley	tristate "Checksum Updating"
7982a2ea508SJohn Hurley	depends on NET_CLS_ACT && INET
7992a2ea508SJohn Hurley	select NET_CRC32C
8002a2ea508SJohn Hurley	help
8012a2ea508SJohn Hurley	  Say Y here to update some common checksum after some direct
8022a2ea508SJohn Hurley	  packet alterations.
8032a2ea508SJohn Hurley
8042a2ea508SJohn Hurley	  To compile this code as a module, choose M here: the
8052a2ea508SJohn Hurley	  module will be called act_csum.
806c7e2b968SJiri Pirko
807c7e2b968SJiri Pirkoconfig NET_ACT_MPLS
808c7e2b968SJiri Pirko	tristate "MPLS manipulation"
809a7f7f624SMasahiro Yamada	depends on NET_CLS_ACT
810c7e2b968SJiri Pirko	help
811c7e2b968SJiri Pirko	  Say Y here to push or pop MPLS headers.
812c7e2b968SJiri Pirko
813c7e2b968SJiri Pirko	  If unsure, say N.
814c7e2b968SJiri Pirko
815c7e2b968SJiri Pirko	  To compile this code as a module, choose M here: the
816c7e2b968SJiri Pirko	  module will be called act_mpls.
817d23b8ad8SJiri Pirko
818d23b8ad8SJiri Pirkoconfig NET_ACT_VLAN
819d23b8ad8SJiri Pirko	tristate "Vlan manipulation"
820a7f7f624SMasahiro Yamada	depends on NET_CLS_ACT
821d23b8ad8SJiri Pirko	help
822d23b8ad8SJiri Pirko	  Say Y here to push or pop vlan headers.
823d23b8ad8SJiri Pirko
824d23b8ad8SJiri Pirko	  If unsure, say N.
825d23b8ad8SJiri Pirko
826d23b8ad8SJiri Pirko	  To compile this code as a module, choose M here: the
827d23b8ad8SJiri Pirko	  module will be called act_vlan.
828d23b8ad8SJiri Pirko
82922a5dc0eSFelix Fietkauconfig NET_ACT_BPF
83022a5dc0eSFelix Fietkau	tristate "BPF based action"
831102e2c07SPablo Neira Ayuso	depends on NET_CLS_ACT
8322dbce096SArnd Bergmann	help
833a7f7f624SMasahiro Yamada	  Say Y here to execute BPF code on packets. The BPF code will decide
83422a5dc0eSFelix Fietkau	  if the packet should be dropped or not.
83522a5dc0eSFelix Fietkau
83622a5dc0eSFelix Fietkau	  If unsure, say N.
83722a5dc0eSFelix Fietkau
83822a5dc0eSFelix Fietkau	  To compile this code as a module, choose M here: the
83922a5dc0eSFelix Fietkau	  module will be called act_bpf.
84022a5dc0eSFelix Fietkau
84124ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CONNMARK
84224ec483cSKevin 'ldir' Darbyshire-Bryant	tristate "Netfilter Connection Mark Retriever"
843102e2c07SPablo Neira Ayuso	depends on NET_CLS_ACT && NETFILTER
84424ec483cSKevin 'ldir' Darbyshire-Bryant	depends on NF_CONNTRACK && NF_CONNTRACK_MARK
84524ec483cSKevin 'ldir' Darbyshire-Bryant	help
84624ec483cSKevin 'ldir' Darbyshire-Bryant	  Say Y here to allow retrieving of conn mark
84724ec483cSKevin 'ldir' Darbyshire-Bryant
84824ec483cSKevin 'ldir' Darbyshire-Bryant	  If unsure, say N.
84924ec483cSKevin 'ldir' Darbyshire-Bryant
85024ec483cSKevin 'ldir' Darbyshire-Bryant	  To compile this code as a module, choose M here: the
85124ec483cSKevin 'ldir' Darbyshire-Bryant	  module will be called act_connmark.
85224ec483cSKevin 'ldir' Darbyshire-Bryant
85324ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO
85424ec483cSKevin 'ldir' Darbyshire-Bryant	tristate "Netfilter Connection Mark Actions"
85524ec483cSKevin 'ldir' Darbyshire-Bryant	depends on NET_CLS_ACT && NETFILTER
85624ec483cSKevin 'ldir' Darbyshire-Bryant	depends on NF_CONNTRACK && NF_CONNTRACK_MARK
85724ec483cSKevin 'ldir' Darbyshire-Bryant	help
85886da71b5SJamal Hadi Salim	  Say Y here to allow transfer of a connmark stored information.
85986da71b5SJamal Hadi Salim	  Current actions transfer connmark stored DSCP into
86086da71b5SJamal Hadi Salim	  ipv4/v6 diffserv and/or to transfer connmark to packet
861a7f7f624SMasahiro Yamada	  mark.  Both are useful for restoring egress based marks
86286da71b5SJamal Hadi Salim	  back onto ingress connections for qdisc priority mapping
86386da71b5SJamal Hadi Salim	  purposes.
86486da71b5SJamal Hadi Salim
86586da71b5SJamal Hadi Salim	  If unsure, say N.
86686da71b5SJamal Hadi Salim
86786da71b5SJamal Hadi Salim	  To compile this code as a module, choose M here: the
86886da71b5SJamal Hadi Salim	  module will be called act_ctinfo.
869ef6980b6SJamal Hadi Salim
870ef6980b6SJamal Hadi Salimconfig NET_ACT_SKBMOD
871ef6980b6SJamal Hadi Salim	tristate "skb data modification action"
872295a6e06SYotam Gigi	depends on NET_CLS_ACT
873a7f7f624SMasahiro Yamada	help
874ef6980b6SJamal Hadi Salim	 Say Y here to allow modification of skb data
875ef6980b6SJamal Hadi Salim
876ef6980b6SJamal Hadi Salim	 If unsure, say N.
877ef6980b6SJamal Hadi Salim
878ef6980b6SJamal Hadi Salim	 To compile this code as a module, choose M here: the
879ef6980b6SJamal Hadi Salim	 module will be called act_skbmod.
880ef6980b6SJamal Hadi Salim
881ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE
882d0f6dd8aSAmir Vadai	tristate "Inter-FE action based on IETF ForCES InterFE LFB"
883d0f6dd8aSAmir Vadai	depends on NET_CLS_ACT
884d0f6dd8aSAmir Vadai	select NET_IFE
885a7f7f624SMasahiro Yamada	help
886d0f6dd8aSAmir Vadai	  Say Y here to allow for sourcing and terminating metadata
887d0f6dd8aSAmir Vadai	  For details refer to netdev01 paper:
888d0f6dd8aSAmir Vadai	  "Distributing Linux Traffic Control Classifier-Action Subsystem"
889d0f6dd8aSAmir Vadai	   Authors: Jamal Hadi Salim and Damascene M. Joachimpillai
890d0f6dd8aSAmir Vadai
891d0f6dd8aSAmir Vadai	  To compile this code as a module, choose M here: the
892d0f6dd8aSAmir Vadai	  module will be called act_ife.
893b57dc7c1SPaul Blakey
894b57dc7c1SPaul Blakeyconfig NET_ACT_TUNNEL_KEY
8958427fd10SXin Long	tristate "IP tunnel metadata manipulation"
896c0c3ab63SXin Long	depends on NET_CLS_ACT
897ebddb140SXin Long	help
898b57dc7c1SPaul Blakey	  Say Y here to set/release ip tunnel metadata.
899b57dc7c1SPaul Blakey
900b57dc7c1SPaul Blakey	  If unsure, say N.
901b57dc7c1SPaul Blakey
902b57dc7c1SPaul Blakey	  To compile this code as a module, choose M here: the
903b57dc7c1SPaul Blakey	  module will be called act_tunnel_key.
904b57dc7c1SPaul Blakey
905b57dc7c1SPaul Blakeyconfig NET_ACT_CT
906a51c328dSPo Liu	tristate "connection tracking tc action"
907a51c328dSPo Liu	depends on NET_CLS_ACT && NF_CONNTRACK && (!NF_NAT || NF_NAT) && NF_FLOW_TABLE
908a51c328dSPo Liu	select NF_CONNTRACK_OVS
909a51c328dSPo Liu	select NF_NAT_OVS if NF_NAT
910a51c328dSPo Liu	help
911a51c328dSPo Liu	  Say Y here to allow sending the packets to conntrack module.
912a51c328dSPo Liu
913a51c328dSPo Liu	  If unsure, say N.
914a51c328dSPo Liu
915a51c328dSPo Liu	  To compile this code as a module, choose M here: the
916a51c328dSPo Liu	  module will be called act_ct.
917a51c328dSPo Liu
918084e2f65SJamal Hadi Salimconfig NET_ACT_GATE
919084e2f65SJamal Hadi Salim	tristate "Frame gate entry list control tc action"
920084e2f65SJamal Hadi Salim	depends on NET_CLS_ACT
921084e2f65SJamal Hadi Salim	help
922200e10f4SJamal Hadi Salim	  Say Y here to allow to control the ingress flow to be passed at
923200e10f4SJamal Hadi Salim	  specific time slot and be dropped at other specific time slot by
924200e10f4SJamal Hadi Salim	  the gate entry list.
925200e10f4SJamal Hadi Salim
926408fbc22SJamal Hadi Salim	  If unsure, say N.
927408fbc22SJamal Hadi Salim	  To compile this code as a module, choose M here: the
928408fbc22SJamal Hadi Salim	  module will be called act_gate.
929408fbc22SJamal Hadi Salim
93095a7233cSPaul Blakeyconfig NET_IFE_SKBMARK
93195a7233cSPaul Blakey	tristate "Support to encoding decoding skb mark on IFE action"
93295a7233cSPaul Blakey	depends on NET_ACT_IFE
93395a7233cSPaul Blakey
93495a7233cSPaul Blakeyconfig NET_IFE_SKBPRIO
93595a7233cSPaul Blakey	tristate "Support to encoding decoding skb prio on IFE action"
93695a7233cSPaul Blakey	depends on NET_ACT_IFE
93795a7233cSPaul Blakey
93895a7233cSPaul Blakeyconfig NET_IFE_SKBTCINDEX
93995a7233cSPaul Blakey	tristate "Support to encoding decoding skb tcindex on IFE action"
94095a7233cSPaul Blakey	depends on NET_ACT_IFE
94195a7233cSPaul Blakey
94205b8b0faSRoman Zippelconfig NET_TC_SKB_EXT
94305b8b0faSRoman Zippel	bool "TC recirculation support"
94485ef3e5cSRandy Dunlap	depends on NET_CLS_ACT
94585ef3e5cSRandy Dunlap	select SKB_EXTENSIONS
946
947	help
948	  Say Y here to allow tc chain misses to continue in OvS datapath in
949	  the correct recirc_id, and hardware chain misses to continue in
950	  the correct chain in tc software datapath.
951
952	  Say N here if you won't be using tc<->ovs offload or tc chains offload.
953
954endif # NET_SCHED
955
956config NET_SCH_FIFO
957	bool
958