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 96a2e9b73SSam Ravnborg ---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_CBQ 4952ab4ac2SThomas Graf tristate "Class Based Queueing (CBQ)" 501da177e4SLinus Torvalds ---help--- 511da177e4SLinus Torvalds Say Y here if you want to use the Class-Based Queueing (CBQ) packet 5252ab4ac2SThomas Graf scheduling algorithm. This algorithm classifies the waiting packets 5352ab4ac2SThomas Graf into a tree-like hierarchy of classes; the leaves of this tree are 5452ab4ac2SThomas Graf in turn scheduled by separate algorithms. 551da177e4SLinus Torvalds 5652ab4ac2SThomas Graf See the top of <file:net/sched/sch_cbq.c> for more details. 571da177e4SLinus Torvalds 581da177e4SLinus Torvalds CBQ is a commonly used scheduler, so if you're unsure, you should 591da177e4SLinus Torvalds say Y here. Then say Y to all the queueing algorithms below that you 6052ab4ac2SThomas Graf want to use as leaf disciplines. 611da177e4SLinus Torvalds 621da177e4SLinus Torvalds To compile this code as a module, choose M here: the 631da177e4SLinus Torvalds module will be called sch_cbq. 641da177e4SLinus Torvalds 651da177e4SLinus Torvaldsconfig NET_SCH_HTB 6652ab4ac2SThomas Graf tristate "Hierarchical Token Bucket (HTB)" 671da177e4SLinus Torvalds ---help--- 681da177e4SLinus Torvalds Say Y here if you want to use the Hierarchical Token Buckets (HTB) 6952ab4ac2SThomas Graf packet scheduling algorithm. See 701da177e4SLinus Torvalds <http://luxik.cdi.cz/~devik/qos/htb/> for complete manual and 711da177e4SLinus Torvalds in-depth articles. 721da177e4SLinus Torvalds 7352ab4ac2SThomas Graf HTB is very similar to CBQ regarding its goals however is has 741da177e4SLinus Torvalds different properties and different algorithm. 751da177e4SLinus Torvalds 761da177e4SLinus Torvalds To compile this code as a module, choose M here: the 771da177e4SLinus Torvalds module will be called sch_htb. 781da177e4SLinus Torvalds 791da177e4SLinus Torvaldsconfig NET_SCH_HFSC 8052ab4ac2SThomas Graf tristate "Hierarchical Fair Service Curve (HFSC)" 811da177e4SLinus Torvalds ---help--- 821da177e4SLinus Torvalds Say Y here if you want to use the Hierarchical Fair Service Curve 8352ab4ac2SThomas Graf (HFSC) packet scheduling algorithm. 841da177e4SLinus Torvalds 851da177e4SLinus Torvalds To compile this code as a module, choose M here: the 861da177e4SLinus Torvalds module will be called sch_hfsc. 871da177e4SLinus Torvalds 881da177e4SLinus Torvaldsconfig NET_SCH_ATM 8952ab4ac2SThomas Graf tristate "ATM Virtual Circuits (ATM)" 9005b8b0faSRoman Zippel depends on ATM 911da177e4SLinus Torvalds ---help--- 921da177e4SLinus Torvalds Say Y here if you want to use the ATM pseudo-scheduler. This 9352ab4ac2SThomas Graf provides a framework for invoking classifiers, which in turn 9452ab4ac2SThomas Graf select classes of this queuing discipline. Each class maps 9552ab4ac2SThomas Graf the flow(s) it is handling to a given virtual circuit. 9652ab4ac2SThomas Graf 9799acaeb9SGabriel Craciunescu See the top of <file:net/sched/sch_atm.c> for more details. 981da177e4SLinus Torvalds 991da177e4SLinus Torvalds To compile this code as a module, choose M here: the 1001da177e4SLinus Torvalds module will be called sch_atm. 1011da177e4SLinus Torvalds 1021da177e4SLinus Torvaldsconfig NET_SCH_PRIO 10352ab4ac2SThomas Graf tristate "Multi Band Priority Queueing (PRIO)" 10452ab4ac2SThomas Graf ---help--- 1051da177e4SLinus Torvalds Say Y here if you want to use an n-band priority queue packet 10652ab4ac2SThomas Graf scheduler. 1071da177e4SLinus Torvalds 1081da177e4SLinus Torvalds To compile this code as a module, choose M here: the 1091da177e4SLinus Torvalds module will be called sch_prio. 1101da177e4SLinus Torvalds 11192651940SAlexander Duyckconfig NET_SCH_MULTIQ 11292651940SAlexander Duyck tristate "Hardware Multiqueue-aware Multi Band Queuing (MULTIQ)" 11392651940SAlexander Duyck ---help--- 11492651940SAlexander Duyck Say Y here if you want to use an n-band queue packet scheduler 11592651940SAlexander Duyck to support devices that have multiple hardware transmit queues. 11692651940SAlexander Duyck 11792651940SAlexander Duyck To compile this code as a module, choose M here: the 11892651940SAlexander Duyck module will be called sch_multiq. 11992651940SAlexander Duyck 1201da177e4SLinus Torvaldsconfig NET_SCH_RED 12152ab4ac2SThomas Graf tristate "Random Early Detection (RED)" 12252ab4ac2SThomas Graf ---help--- 1231da177e4SLinus Torvalds Say Y here if you want to use the Random Early Detection (RED) 12452ab4ac2SThomas Graf packet scheduling algorithm. 12552ab4ac2SThomas Graf 12652ab4ac2SThomas Graf See the top of <file:net/sched/sch_red.c> for more details. 1271da177e4SLinus Torvalds 1281da177e4SLinus Torvalds To compile this code as a module, choose M here: the 1291da177e4SLinus Torvalds module will be called sch_red. 1301da177e4SLinus Torvalds 131e13e02a3SEric Dumazetconfig NET_SCH_SFB 132e13e02a3SEric Dumazet tristate "Stochastic Fair Blue (SFB)" 133e13e02a3SEric Dumazet ---help--- 134e13e02a3SEric Dumazet Say Y here if you want to use the Stochastic Fair Blue (SFB) 135e13e02a3SEric Dumazet packet scheduling algorithm. 136e13e02a3SEric Dumazet 137e13e02a3SEric Dumazet See the top of <file:net/sched/sch_sfb.c> for more details. 138e13e02a3SEric Dumazet 139e13e02a3SEric Dumazet To compile this code as a module, choose M here: the 140e13e02a3SEric Dumazet module will be called sch_sfb. 141e13e02a3SEric Dumazet 1421da177e4SLinus Torvaldsconfig NET_SCH_SFQ 14352ab4ac2SThomas Graf tristate "Stochastic Fairness Queueing (SFQ)" 1441da177e4SLinus Torvalds ---help--- 1451da177e4SLinus Torvalds Say Y here if you want to use the Stochastic Fairness Queueing (SFQ) 14652ab4ac2SThomas Graf packet scheduling algorithm. 14752ab4ac2SThomas Graf 14852ab4ac2SThomas Graf See the top of <file:net/sched/sch_sfq.c> for more details. 1491da177e4SLinus Torvalds 1501da177e4SLinus Torvalds To compile this code as a module, choose M here: the 1511da177e4SLinus Torvalds module will be called sch_sfq. 1521da177e4SLinus Torvalds 1531da177e4SLinus Torvaldsconfig NET_SCH_TEQL 15452ab4ac2SThomas Graf tristate "True Link Equalizer (TEQL)" 1551da177e4SLinus Torvalds ---help--- 1561da177e4SLinus Torvalds Say Y here if you want to use the True Link Equalizer (TLE) packet 15752ab4ac2SThomas Graf scheduling algorithm. This queueing discipline allows the combination 15852ab4ac2SThomas Graf of several physical devices into one virtual device. 15952ab4ac2SThomas Graf 16052ab4ac2SThomas Graf See the top of <file:net/sched/sch_teql.c> for more details. 1611da177e4SLinus Torvalds 1621da177e4SLinus Torvalds To compile this code as a module, choose M here: the 1631da177e4SLinus Torvalds module will be called sch_teql. 1641da177e4SLinus Torvalds 1651da177e4SLinus Torvaldsconfig NET_SCH_TBF 16652ab4ac2SThomas Graf tristate "Token Bucket Filter (TBF)" 16752ab4ac2SThomas Graf ---help--- 16852ab4ac2SThomas Graf Say Y here if you want to use the Token Bucket Filter (TBF) packet 16952ab4ac2SThomas Graf scheduling algorithm. 17052ab4ac2SThomas Graf 17152ab4ac2SThomas Graf See the top of <file:net/sched/sch_tbf.c> for more details. 1721da177e4SLinus Torvalds 1731da177e4SLinus Torvalds To compile this code as a module, choose M here: the 1741da177e4SLinus Torvalds module will be called sch_tbf. 1751da177e4SLinus Torvalds 176585d763aSVinicius Costa Gomesconfig NET_SCH_CBS 177585d763aSVinicius Costa Gomes tristate "Credit Based Shaper (CBS)" 178585d763aSVinicius Costa Gomes ---help--- 179585d763aSVinicius Costa Gomes Say Y here if you want to use the Credit Based Shaper (CBS) packet 180585d763aSVinicius Costa Gomes scheduling algorithm. 181585d763aSVinicius Costa Gomes 182585d763aSVinicius Costa Gomes See the top of <file:net/sched/sch_cbs.c> for more details. 183585d763aSVinicius Costa Gomes 184585d763aSVinicius Costa Gomes To compile this code as a module, choose M here: the 185585d763aSVinicius Costa Gomes module will be called sch_cbs. 186585d763aSVinicius Costa Gomes 18725db26a9SVinicius Costa Gomesconfig NET_SCH_ETF 18825db26a9SVinicius Costa Gomes tristate "Earliest TxTime First (ETF)" 18925db26a9SVinicius Costa Gomes help 19025db26a9SVinicius Costa Gomes Say Y here if you want to use the Earliest TxTime First (ETF) packet 19125db26a9SVinicius Costa Gomes scheduling algorithm. 19225db26a9SVinicius Costa Gomes 19325db26a9SVinicius Costa Gomes See the top of <file:net/sched/sch_etf.c> for more details. 19425db26a9SVinicius Costa Gomes 19525db26a9SVinicius Costa Gomes To compile this code as a module, choose M here: the 19625db26a9SVinicius Costa Gomes module will be called sch_etf. 19725db26a9SVinicius Costa Gomes 1985a781ccbSVinicius Costa Gomesconfig NET_SCH_TAPRIO 1995a781ccbSVinicius Costa Gomes tristate "Time Aware Priority (taprio) Scheduler" 2005a781ccbSVinicius Costa Gomes help 2015a781ccbSVinicius Costa Gomes Say Y here if you want to use the Time Aware Priority (taprio) packet 2025a781ccbSVinicius Costa Gomes scheduling algorithm. 2035a781ccbSVinicius Costa Gomes 2045a781ccbSVinicius Costa Gomes See the top of <file:net/sched/sch_taprio.c> for more details. 2055a781ccbSVinicius Costa Gomes 2065a781ccbSVinicius Costa Gomes To compile this code as a module, choose M here: the 2075a781ccbSVinicius Costa Gomes module will be called sch_taprio. 2085a781ccbSVinicius Costa Gomes 2091da177e4SLinus Torvaldsconfig NET_SCH_GRED 21052ab4ac2SThomas Graf tristate "Generic Random Early Detection (GRED)" 21152ab4ac2SThomas Graf ---help--- 2121da177e4SLinus Torvalds Say Y here if you want to use the Generic Random Early Detection 21320cc6befSLucas Correia Villa Real (GRED) packet scheduling algorithm for some of your network devices 2141da177e4SLinus Torvalds (see the top of <file:net/sched/sch_red.c> for details and 2151da177e4SLinus Torvalds references about the algorithm). 2161da177e4SLinus Torvalds 2171da177e4SLinus Torvalds To compile this code as a module, choose M here: the 2181da177e4SLinus Torvalds module will be called sch_gred. 2191da177e4SLinus Torvalds 2201da177e4SLinus Torvaldsconfig NET_SCH_DSMARK 22152ab4ac2SThomas Graf tristate "Differentiated Services marker (DSMARK)" 22252ab4ac2SThomas Graf ---help--- 2231da177e4SLinus Torvalds Say Y if you want to schedule packets according to the 2241da177e4SLinus Torvalds Differentiated Services architecture proposed in RFC 2475. 2251da177e4SLinus Torvalds Technical information on this method, with pointers to associated 2261da177e4SLinus Torvalds RFCs, is available at <http://www.gta.ufrj.br/diffserv/>. 2271da177e4SLinus Torvalds 2281da177e4SLinus Torvalds To compile this code as a module, choose M here: the 2291da177e4SLinus Torvalds module will be called sch_dsmark. 2301da177e4SLinus Torvalds 2311da177e4SLinus Torvaldsconfig NET_SCH_NETEM 23252ab4ac2SThomas Graf tristate "Network emulator (NETEM)" 23352ab4ac2SThomas Graf ---help--- 2341da177e4SLinus Torvalds Say Y if you want to emulate network delay, loss, and packet 2351da177e4SLinus Torvalds re-ordering. This is often useful to simulate networks when 2361da177e4SLinus Torvalds testing applications or protocols. 2371da177e4SLinus Torvalds 2381da177e4SLinus Torvalds To compile this driver as a module, choose M here: the module 2391da177e4SLinus Torvalds will be called sch_netem. 2401da177e4SLinus Torvalds 2411da177e4SLinus Torvalds If unsure, say N. 2421da177e4SLinus Torvalds 24313d2a1d2SPatrick McHardyconfig NET_SCH_DRR 24413d2a1d2SPatrick McHardy tristate "Deficit Round Robin scheduler (DRR)" 24513d2a1d2SPatrick McHardy help 24613d2a1d2SPatrick McHardy Say Y here if you want to use the Deficit Round Robin (DRR) packet 24713d2a1d2SPatrick McHardy scheduling algorithm. 24813d2a1d2SPatrick McHardy 24913d2a1d2SPatrick McHardy To compile this driver as a module, choose M here: the module 25013d2a1d2SPatrick McHardy will be called sch_drr. 25113d2a1d2SPatrick McHardy 25213d2a1d2SPatrick McHardy If unsure, say N. 25313d2a1d2SPatrick McHardy 254b8970f0bSJohn Fastabendconfig NET_SCH_MQPRIO 255b8970f0bSJohn Fastabend tristate "Multi-queue priority scheduler (MQPRIO)" 256b8970f0bSJohn Fastabend help 257b8970f0bSJohn Fastabend Say Y here if you want to use the Multi-queue Priority scheduler. 258b8970f0bSJohn Fastabend This scheduler allows QOS to be offloaded on NICs that have support 259b8970f0bSJohn Fastabend for offloading QOS schedulers. 260b8970f0bSJohn Fastabend 261b8970f0bSJohn Fastabend To compile this driver as a module, choose M here: the module will 262b8970f0bSJohn Fastabend be called sch_mqprio. 263b8970f0bSJohn Fastabend 264b8970f0bSJohn Fastabend If unsure, say N. 265b8970f0bSJohn Fastabend 266aea5f654SNishanth Devarajanconfig NET_SCH_SKBPRIO 267aea5f654SNishanth Devarajan tristate "SKB priority queue scheduler (SKBPRIO)" 268aea5f654SNishanth Devarajan help 269aea5f654SNishanth Devarajan Say Y here if you want to use the SKB priority queue 270aea5f654SNishanth Devarajan scheduler. This schedules packets according to skb->priority, 271aea5f654SNishanth Devarajan which is useful for request packets in DoS mitigation systems such 272aea5f654SNishanth Devarajan as Gatekeeper. 273aea5f654SNishanth Devarajan 274aea5f654SNishanth Devarajan To compile this driver as a module, choose M here: the module will 275aea5f654SNishanth Devarajan be called sch_skbprio. 276aea5f654SNishanth Devarajan 277aea5f654SNishanth Devarajan If unsure, say N. 278aea5f654SNishanth Devarajan 27945e14433Sstephen hemmingerconfig NET_SCH_CHOKE 28045e14433Sstephen hemminger tristate "CHOose and Keep responsive flow scheduler (CHOKE)" 28145e14433Sstephen hemminger help 28245e14433Sstephen hemminger Say Y here if you want to use the CHOKe packet scheduler (CHOose 28345e14433Sstephen hemminger and Keep for responsive flows, CHOose and Kill for unresponsive 28445e14433Sstephen hemminger flows). This is a variation of RED which trys to penalize flows 28545e14433Sstephen hemminger that monopolize the queue. 28645e14433Sstephen hemminger 28745e14433Sstephen hemminger To compile this code as a module, choose M here: the 28845e14433Sstephen hemminger module will be called sch_choke. 28945e14433Sstephen hemminger 2900545a303Sstephen hemmingerconfig NET_SCH_QFQ 2910545a303Sstephen hemminger tristate "Quick Fair Queueing scheduler (QFQ)" 2920545a303Sstephen hemminger help 2930545a303Sstephen hemminger Say Y here if you want to use the Quick Fair Queueing Scheduler (QFQ) 2940545a303Sstephen hemminger packet scheduling algorithm. 2950545a303Sstephen hemminger 2960545a303Sstephen hemminger To compile this driver as a module, choose M here: the module 2970545a303Sstephen hemminger will be called sch_qfq. 2980545a303Sstephen hemminger 2990545a303Sstephen hemminger If unsure, say N. 3000545a303Sstephen hemminger 30176e3cc12SEric Dumazetconfig NET_SCH_CODEL 30276e3cc12SEric Dumazet tristate "Controlled Delay AQM (CODEL)" 30376e3cc12SEric Dumazet help 30476e3cc12SEric Dumazet Say Y here if you want to use the Controlled Delay (CODEL) 30576e3cc12SEric Dumazet packet scheduling algorithm. 30676e3cc12SEric Dumazet 30776e3cc12SEric Dumazet To compile this driver as a module, choose M here: the module 30876e3cc12SEric Dumazet will be called sch_codel. 30976e3cc12SEric Dumazet 31076e3cc12SEric Dumazet If unsure, say N. 31176e3cc12SEric Dumazet 3124b549a2eSEric Dumazetconfig NET_SCH_FQ_CODEL 3134b549a2eSEric Dumazet tristate "Fair Queue Controlled Delay AQM (FQ_CODEL)" 3144b549a2eSEric Dumazet help 3154b549a2eSEric Dumazet Say Y here if you want to use the FQ Controlled Delay (FQ_CODEL) 3164b549a2eSEric Dumazet packet scheduling algorithm. 3174b549a2eSEric Dumazet 3184b549a2eSEric Dumazet To compile this driver as a module, choose M here: the module 3194b549a2eSEric Dumazet will be called sch_fq_codel. 3204b549a2eSEric Dumazet 3214b549a2eSEric Dumazet If unsure, say N. 3224b549a2eSEric Dumazet 323046f6fd5SToke Høiland-Jørgensenconfig NET_SCH_CAKE 324046f6fd5SToke Høiland-Jørgensen tristate "Common Applications Kept Enhanced (CAKE)" 325046f6fd5SToke Høiland-Jørgensen help 326046f6fd5SToke Høiland-Jørgensen Say Y here if you want to use the Common Applications Kept Enhanced 327046f6fd5SToke Høiland-Jørgensen (CAKE) queue management algorithm. 328046f6fd5SToke Høiland-Jørgensen 329046f6fd5SToke Høiland-Jørgensen To compile this driver as a module, choose M here: the module 330046f6fd5SToke Høiland-Jørgensen will be called sch_cake. 331046f6fd5SToke Høiland-Jørgensen 332046f6fd5SToke Høiland-Jørgensen If unsure, say N. 333046f6fd5SToke Høiland-Jørgensen 334afe4fd06SEric Dumazetconfig NET_SCH_FQ 335afe4fd06SEric Dumazet tristate "Fair Queue" 336afe4fd06SEric Dumazet help 337afe4fd06SEric Dumazet Say Y here if you want to use the FQ packet scheduling algorithm. 338afe4fd06SEric Dumazet 339afe4fd06SEric Dumazet FQ does flow separation, and is able to respect pacing requirements 340afe4fd06SEric Dumazet set by TCP stack into sk->sk_pacing_rate (for localy generated 341afe4fd06SEric Dumazet traffic) 342afe4fd06SEric Dumazet 343afe4fd06SEric Dumazet To compile this driver as a module, choose M here: the module 344afe4fd06SEric Dumazet will be called sch_fq. 345afe4fd06SEric Dumazet 346afe4fd06SEric Dumazet If unsure, say N. 347afe4fd06SEric Dumazet 34810239edfSTerry Lamconfig NET_SCH_HHF 34910239edfSTerry Lam tristate "Heavy-Hitter Filter (HHF)" 35010239edfSTerry Lam help 35110239edfSTerry Lam Say Y here if you want to use the Heavy-Hitter Filter (HHF) 35210239edfSTerry Lam packet scheduling algorithm. 35310239edfSTerry Lam 35410239edfSTerry Lam To compile this driver as a module, choose M here: the module 35510239edfSTerry Lam will be called sch_hhf. 35610239edfSTerry Lam 357d4b36210SVijay Subramanianconfig NET_SCH_PIE 358d4b36210SVijay Subramanian tristate "Proportional Integral controller Enhanced (PIE) scheduler" 359d4b36210SVijay Subramanian help 360d4b36210SVijay Subramanian Say Y here if you want to use the Proportional Integral controller 361d4b36210SVijay Subramanian Enhanced scheduler packet scheduling algorithm. 3621f8389bfSLeslie Monis For more information, please see https://tools.ietf.org/html/rfc8033 363d4b36210SVijay Subramanian 364d4b36210SVijay Subramanian To compile this driver as a module, choose M here: the module 365d4b36210SVijay Subramanian will be called sch_pie. 366d4b36210SVijay Subramanian 367d4b36210SVijay Subramanian If unsure, say N. 368d4b36210SVijay Subramanian 3691da177e4SLinus Torvaldsconfig NET_SCH_INGRESS 3701f211a1bSDaniel Borkmann tristate "Ingress/classifier-action Qdisc" 37172eb7bd2SPatrick McHardy depends on NET_CLS_ACT 3721cf51900SPablo Neira select NET_INGRESS 3731f211a1bSDaniel Borkmann select NET_EGRESS 37452ab4ac2SThomas Graf ---help--- 3751f211a1bSDaniel Borkmann Say Y here if you want to use classifiers for incoming and/or outgoing 3761f211a1bSDaniel Borkmann packets. This qdisc doesn't do anything else besides running classifiers, 3771f211a1bSDaniel Borkmann which can also have actions attached to them. In case of outgoing packets, 3781f211a1bSDaniel Borkmann classifiers that this qdisc holds are executed in the transmit path 3791f211a1bSDaniel Borkmann before real enqueuing to an egress qdisc happens. 3801f211a1bSDaniel Borkmann 3811da177e4SLinus Torvalds If unsure, say Y. 3821da177e4SLinus Torvalds 3831f211a1bSDaniel Borkmann To compile this code as a module, choose M here: the module will be 3841f211a1bSDaniel Borkmann called sch_ingress with alias of sch_clsact. 3851da177e4SLinus Torvalds 386c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG 387c3059be1SShriram Rajagopalan tristate "Plug network traffic until release (PLUG)" 388c3059be1SShriram Rajagopalan ---help--- 389c3059be1SShriram Rajagopalan 390c3059be1SShriram Rajagopalan This queuing discipline allows userspace to plug/unplug a network 391c3059be1SShriram Rajagopalan output queue, using the netlink interface. When it receives an 392c3059be1SShriram Rajagopalan enqueue command it inserts a plug into the outbound queue that 393c3059be1SShriram Rajagopalan causes following packets to enqueue until a dequeue command arrives 394c3059be1SShriram Rajagopalan over netlink, causing the plug to be removed and resuming the normal 395c3059be1SShriram Rajagopalan packet flow. 396c3059be1SShriram Rajagopalan 397c3059be1SShriram Rajagopalan This module also provides a generic "network output buffering" 398c3059be1SShriram Rajagopalan functionality (aka output commit), wherein upon arrival of a dequeue 399c3059be1SShriram Rajagopalan command, only packets up to the first plug are released for delivery. 400c3059be1SShriram Rajagopalan The Remus HA project uses this module to enable speculative execution 401c3059be1SShriram Rajagopalan of virtual machines by allowing the generated network output to be rolled 402c3059be1SShriram Rajagopalan back if needed. 403c3059be1SShriram Rajagopalan 4045d330cddSAndrew Shewmaker For more information, please refer to <http://wiki.xenproject.org/wiki/Remus> 405c3059be1SShriram Rajagopalan 406c3059be1SShriram Rajagopalan Say Y here if you are using this kernel for Xen dom0 and 407c3059be1SShriram Rajagopalan want to protect Xen guests with Remus. 408c3059be1SShriram Rajagopalan 409c3059be1SShriram Rajagopalan To compile this code as a module, choose M here: the 410c3059be1SShriram Rajagopalan module will be called sch_plug. 411c3059be1SShriram Rajagopalan 412*dcc68b4dSPetr Machataconfig NET_SCH_ETS 413*dcc68b4dSPetr Machata tristate "Enhanced transmission selection scheduler (ETS)" 414*dcc68b4dSPetr Machata help 415*dcc68b4dSPetr Machata The Enhanced Transmission Selection scheduler is a classful 416*dcc68b4dSPetr Machata queuing discipline that merges functionality of PRIO and DRR 417*dcc68b4dSPetr Machata qdiscs in one scheduler. ETS makes it easy to configure a set of 418*dcc68b4dSPetr Machata strict and bandwidth-sharing bands to implement the transmission 419*dcc68b4dSPetr Machata selection described in 802.1Qaz. 420*dcc68b4dSPetr Machata 421*dcc68b4dSPetr Machata Say Y here if you want to use the ETS packet scheduling 422*dcc68b4dSPetr Machata algorithm. 423*dcc68b4dSPetr Machata 424*dcc68b4dSPetr Machata To compile this driver as a module, choose M here: the module 425*dcc68b4dSPetr Machata will be called sch_ets. 426*dcc68b4dSPetr Machata 427*dcc68b4dSPetr Machata If unsure, say N. 428*dcc68b4dSPetr Machata 4298ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT 4308ea3e439Sstephen hemminger bool "Allow override default queue discipline" 4318ea3e439Sstephen hemminger ---help--- 4328ea3e439Sstephen hemminger Support for selection of default queuing discipline. 4338ea3e439Sstephen hemminger 4348ea3e439Sstephen hemminger Nearly all users can safely say no here, and the default 4358ea3e439Sstephen hemminger of pfifo_fast will be used. Many distributions already set 4368ea3e439Sstephen hemminger the default value via /proc/sys/net/core/default_qdisc. 4378ea3e439Sstephen hemminger 4388ea3e439Sstephen hemminger If unsure, say N. 4398ea3e439Sstephen hemminger 4408ea3e439Sstephen hemmingerif NET_SCH_DEFAULT 4418ea3e439Sstephen hemminger 4428ea3e439Sstephen hemmingerchoice 4438ea3e439Sstephen hemminger prompt "Default queuing discipline" 4448ea3e439Sstephen hemminger default DEFAULT_PFIFO_FAST 4458ea3e439Sstephen hemminger help 4468ea3e439Sstephen hemminger Select the queueing discipline that will be used by default 4478ea3e439Sstephen hemminger for all network devices. 4488ea3e439Sstephen hemminger 4498ea3e439Sstephen hemminger config DEFAULT_FQ 4508ea3e439Sstephen hemminger bool "Fair Queue" if NET_SCH_FQ 4518ea3e439Sstephen hemminger 4528ea3e439Sstephen hemminger config DEFAULT_CODEL 4538ea3e439Sstephen hemminger bool "Controlled Delay" if NET_SCH_CODEL 4548ea3e439Sstephen hemminger 4558ea3e439Sstephen hemminger config DEFAULT_FQ_CODEL 4568ea3e439Sstephen hemminger bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL 4578ea3e439Sstephen hemminger 4588ea3e439Sstephen hemminger config DEFAULT_SFQ 4598ea3e439Sstephen hemminger bool "Stochastic Fair Queue" if NET_SCH_SFQ 4608ea3e439Sstephen hemminger 4618ea3e439Sstephen hemminger config DEFAULT_PFIFO_FAST 4628ea3e439Sstephen hemminger bool "Priority FIFO Fast" 4638ea3e439Sstephen hemmingerendchoice 4648ea3e439Sstephen hemminger 4658ea3e439Sstephen hemmingerconfig DEFAULT_NET_SCH 4668ea3e439Sstephen hemminger string 4678ea3e439Sstephen hemminger default "pfifo_fast" if DEFAULT_PFIFO_FAST 4688ea3e439Sstephen hemminger default "fq" if DEFAULT_FQ 4698ea3e439Sstephen hemminger default "fq_codel" if DEFAULT_FQ_CODEL 4708ea3e439Sstephen hemminger default "sfq" if DEFAULT_SFQ 4718ea3e439Sstephen hemminger default "pfifo_fast" 4728ea3e439Sstephen hemmingerendif 4738ea3e439Sstephen hemminger 47452ab4ac2SThomas Grafcomment "Classification" 4751da177e4SLinus Torvalds 4761da177e4SLinus Torvaldsconfig NET_CLS 4776341e62bSChristoph Jaeger bool 4781da177e4SLinus Torvalds 4791da177e4SLinus Torvaldsconfig NET_CLS_BASIC 48052ab4ac2SThomas Graf tristate "Elementary classification (BASIC)" 48152ab4ac2SThomas Graf select NET_CLS 4821da177e4SLinus Torvalds ---help--- 4831da177e4SLinus Torvalds Say Y here if you want to be able to classify packets using 4841da177e4SLinus Torvalds only extended matches and actions. 4851da177e4SLinus Torvalds 4861da177e4SLinus Torvalds To compile this code as a module, choose M here: the 4871da177e4SLinus Torvalds module will be called cls_basic. 4881da177e4SLinus Torvalds 4891da177e4SLinus Torvaldsconfig NET_CLS_TCINDEX 49052ab4ac2SThomas Graf tristate "Traffic-Control Index (TCINDEX)" 49152ab4ac2SThomas Graf select NET_CLS 49252ab4ac2SThomas Graf ---help--- 49352ab4ac2SThomas Graf Say Y here if you want to be able to classify packets based on 49452ab4ac2SThomas Graf traffic control indices. You will want this feature if you want 49552ab4ac2SThomas Graf to implement Differentiated Services together with DSMARK. 4961da177e4SLinus Torvalds 4971da177e4SLinus Torvalds To compile this code as a module, choose M here: the 4981da177e4SLinus Torvalds module will be called cls_tcindex. 4991da177e4SLinus Torvalds 5001da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4 50152ab4ac2SThomas Graf tristate "Routing decision (ROUTE)" 502034cfe48SRandy Dunlap depends on INET 503c7066f70SPatrick McHardy select IP_ROUTE_CLASSID 50452ab4ac2SThomas Graf select NET_CLS 50552ab4ac2SThomas Graf ---help--- 50652ab4ac2SThomas Graf If you say Y here, you will be able to classify packets 50752ab4ac2SThomas Graf according to the route table entry they matched. 5081da177e4SLinus Torvalds 5091da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5101da177e4SLinus Torvalds module will be called cls_route. 5111da177e4SLinus Torvalds 5121da177e4SLinus Torvaldsconfig NET_CLS_FW 51352ab4ac2SThomas Graf tristate "Netfilter mark (FW)" 51452ab4ac2SThomas Graf select NET_CLS 51552ab4ac2SThomas Graf ---help--- 51652ab4ac2SThomas Graf If you say Y here, you will be able to classify packets 51752ab4ac2SThomas Graf according to netfilter/firewall marks. 5181da177e4SLinus Torvalds 5191da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5201da177e4SLinus Torvalds module will be called cls_fw. 5211da177e4SLinus Torvalds 5221da177e4SLinus Torvaldsconfig NET_CLS_U32 52352ab4ac2SThomas Graf tristate "Universal 32bit comparisons w/ hashing (U32)" 52452ab4ac2SThomas Graf select NET_CLS 52552ab4ac2SThomas Graf ---help--- 5263539c272SMatt LaPlante Say Y here to be able to classify packets using a universal 52752ab4ac2SThomas Graf 32bit pieces based comparison scheme. 5281da177e4SLinus Torvalds 5291da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5301da177e4SLinus Torvalds module will be called cls_u32. 5311da177e4SLinus Torvalds 5321da177e4SLinus Torvaldsconfig CLS_U32_PERF 53352ab4ac2SThomas Graf bool "Performance counters support" 5341da177e4SLinus Torvalds depends on NET_CLS_U32 53552ab4ac2SThomas Graf ---help--- 53652ab4ac2SThomas Graf Say Y here to make u32 gather additional statistics useful for 53752ab4ac2SThomas Graf fine tuning u32 classifiers. 5381da177e4SLinus Torvalds 5391da177e4SLinus Torvaldsconfig CLS_U32_MARK 54052ab4ac2SThomas Graf bool "Netfilter marks support" 54182e91ffeSThomas Graf depends on NET_CLS_U32 54252ab4ac2SThomas Graf ---help--- 54352ab4ac2SThomas Graf Say Y here to be able to use netfilter marks as u32 key. 5441da177e4SLinus Torvalds 5451da177e4SLinus Torvaldsconfig NET_CLS_RSVP 54652ab4ac2SThomas Graf tristate "IPv4 Resource Reservation Protocol (RSVP)" 54752ab4ac2SThomas Graf select NET_CLS 5481da177e4SLinus Torvalds ---help--- 5491da177e4SLinus Torvalds The Resource Reservation Protocol (RSVP) permits end systems to 5501da177e4SLinus Torvalds request a minimum and maximum data flow rate for a connection; this 5511da177e4SLinus Torvalds is important for real time data such as streaming sound or video. 5521da177e4SLinus Torvalds 5531da177e4SLinus Torvalds Say Y here if you want to be able to classify outgoing packets based 5541da177e4SLinus Torvalds on their RSVP requests. 5551da177e4SLinus Torvalds 5561da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5571da177e4SLinus Torvalds module will be called cls_rsvp. 5581da177e4SLinus Torvalds 5591da177e4SLinus Torvaldsconfig NET_CLS_RSVP6 56052ab4ac2SThomas Graf tristate "IPv6 Resource Reservation Protocol (RSVP6)" 56152ab4ac2SThomas Graf select NET_CLS 5621da177e4SLinus Torvalds ---help--- 5631da177e4SLinus Torvalds The Resource Reservation Protocol (RSVP) permits end systems to 5641da177e4SLinus Torvalds request a minimum and maximum data flow rate for a connection; this 5651da177e4SLinus Torvalds is important for real time data such as streaming sound or video. 5661da177e4SLinus Torvalds 5671da177e4SLinus Torvalds Say Y here if you want to be able to classify outgoing packets based 56899acaeb9SGabriel Craciunescu on their RSVP requests and you are using the IPv6 protocol. 5691da177e4SLinus Torvalds 5701da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5711da177e4SLinus Torvalds module will be called cls_rsvp6. 5721da177e4SLinus Torvalds 573e5dfb815SPatrick McHardyconfig NET_CLS_FLOW 574e5dfb815SPatrick McHardy tristate "Flow classifier" 575e5dfb815SPatrick McHardy select NET_CLS 576e5dfb815SPatrick McHardy ---help--- 577e5dfb815SPatrick McHardy If you say Y here, you will be able to classify packets based on 578e5dfb815SPatrick McHardy a configurable combination of packet keys. This is mostly useful 579e5dfb815SPatrick McHardy in combination with SFQ. 580e5dfb815SPatrick McHardy 581e5dfb815SPatrick McHardy To compile this code as a module, choose M here: the 582e5dfb815SPatrick McHardy module will be called cls_flow. 583e5dfb815SPatrick McHardy 584f4009237SThomas Grafconfig NET_CLS_CGROUP 5858e039d84SBen Blum tristate "Control Group Classifier" 586f4009237SThomas Graf select NET_CLS 587fe1217c4SDaniel Borkmann select CGROUP_NET_CLASSID 588f4009237SThomas Graf depends on CGROUPS 589f4009237SThomas Graf ---help--- 590f4009237SThomas Graf Say Y here if you want to classify packets based on the control 591f4009237SThomas Graf cgroup of their process. 592f4009237SThomas Graf 5938e039d84SBen Blum To compile this code as a module, choose M here: the 5948e039d84SBen Blum module will be called cls_cgroup. 5958e039d84SBen Blum 5967d1d65cbSDaniel Borkmannconfig NET_CLS_BPF 5977d1d65cbSDaniel Borkmann tristate "BPF-based classifier" 5987d1d65cbSDaniel Borkmann select NET_CLS 5997d1d65cbSDaniel Borkmann ---help--- 6007d1d65cbSDaniel Borkmann If you say Y here, you will be able to classify packets based on 6017d1d65cbSDaniel Borkmann programmable BPF (JIT'ed) filters as an alternative to ematches. 6027d1d65cbSDaniel Borkmann 6037d1d65cbSDaniel Borkmann To compile this code as a module, choose M here: the module will 6047d1d65cbSDaniel Borkmann be called cls_bpf. 6057d1d65cbSDaniel Borkmann 60677b9900eSJiri Pirkoconfig NET_CLS_FLOWER 60777b9900eSJiri Pirko tristate "Flower classifier" 60877b9900eSJiri Pirko select NET_CLS 60977b9900eSJiri Pirko ---help--- 61077b9900eSJiri Pirko If you say Y here, you will be able to classify packets based on 61177b9900eSJiri Pirko a configurable combination of packet keys and masks. 61277b9900eSJiri Pirko 61377b9900eSJiri Pirko To compile this code as a module, choose M here: the module will 61477b9900eSJiri Pirko be called cls_flower. 61577b9900eSJiri Pirko 616bf3994d2SJiri Pirkoconfig NET_CLS_MATCHALL 617bf3994d2SJiri Pirko tristate "Match-all classifier" 618bf3994d2SJiri Pirko select NET_CLS 619bf3994d2SJiri Pirko ---help--- 620bf3994d2SJiri Pirko If you say Y here, you will be able to classify packets based on 621bf3994d2SJiri Pirko nothing. Every packet will match. 622bf3994d2SJiri Pirko 623bf3994d2SJiri Pirko To compile this code as a module, choose M here: the module will 624bf3994d2SJiri Pirko be called cls_matchall. 625bf3994d2SJiri Pirko 6261da177e4SLinus Torvaldsconfig NET_EMATCH 6271da177e4SLinus Torvalds bool "Extended Matches" 62852ab4ac2SThomas Graf select NET_CLS 6291da177e4SLinus Torvalds ---help--- 6301da177e4SLinus Torvalds Say Y here if you want to use extended matches on top of classifiers 6311da177e4SLinus Torvalds and select the extended matches below. 6321da177e4SLinus Torvalds 6331da177e4SLinus Torvalds Extended matches are small classification helpers not worth writing 63452ab4ac2SThomas Graf a separate classifier for. 6351da177e4SLinus Torvalds 63652ab4ac2SThomas Graf A recent version of the iproute2 package is required to use 6371da177e4SLinus Torvalds extended matches. 6381da177e4SLinus Torvalds 6391da177e4SLinus Torvaldsconfig NET_EMATCH_STACK 6401da177e4SLinus Torvalds int "Stack size" 6411da177e4SLinus Torvalds depends on NET_EMATCH 6421da177e4SLinus Torvalds default "32" 6431da177e4SLinus Torvalds ---help--- 6441da177e4SLinus Torvalds Size of the local stack variable used while evaluating the tree of 6451da177e4SLinus Torvalds ematches. Limits the depth of the tree, i.e. the number of 646b824979aSThomas Graf encapsulated precedences. Every level requires 4 bytes of additional 6471da177e4SLinus Torvalds stack space. 6481da177e4SLinus Torvalds 6491da177e4SLinus Torvaldsconfig NET_EMATCH_CMP 6501da177e4SLinus Torvalds tristate "Simple packet data comparison" 6511da177e4SLinus Torvalds depends on NET_EMATCH 6521da177e4SLinus Torvalds ---help--- 6531da177e4SLinus Torvalds Say Y here if you want to be able to classify packets based on 6541da177e4SLinus Torvalds simple packet data comparisons for 8, 16, and 32bit values. 6551da177e4SLinus Torvalds 6561da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6571da177e4SLinus Torvalds module will be called em_cmp. 6581da177e4SLinus Torvalds 6591da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE 6601da177e4SLinus Torvalds tristate "Multi byte comparison" 6611da177e4SLinus Torvalds depends on NET_EMATCH 6621da177e4SLinus Torvalds ---help--- 6631da177e4SLinus Torvalds Say Y here if you want to be able to classify packets based on 6641da177e4SLinus Torvalds multiple byte comparisons mainly useful for IPv6 address comparisons. 6651da177e4SLinus Torvalds 6661da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6671da177e4SLinus Torvalds module will be called em_nbyte. 6681da177e4SLinus Torvalds 6691da177e4SLinus Torvaldsconfig NET_EMATCH_U32 67052ab4ac2SThomas Graf tristate "U32 key" 6711da177e4SLinus Torvalds depends on NET_EMATCH 6721da177e4SLinus Torvalds ---help--- 6731da177e4SLinus Torvalds Say Y here if you want to be able to classify packets using 6741da177e4SLinus Torvalds the famous u32 key in combination with logic relations. 6751da177e4SLinus Torvalds 6761da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6771da177e4SLinus Torvalds module will be called em_u32. 6781da177e4SLinus Torvalds 6791da177e4SLinus Torvaldsconfig NET_EMATCH_META 6801da177e4SLinus Torvalds tristate "Metadata" 6811da177e4SLinus Torvalds depends on NET_EMATCH 6821da177e4SLinus Torvalds ---help--- 683bb7e8c5aSAdrian Bunk Say Y here if you want to be able to classify packets based on 6841da177e4SLinus Torvalds metadata such as load average, netfilter attributes, socket 6851da177e4SLinus Torvalds attributes and routing decisions. 6861da177e4SLinus Torvalds 6871da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6881da177e4SLinus Torvalds module will be called em_meta. 6891da177e4SLinus Torvalds 690d675c989SThomas Grafconfig NET_EMATCH_TEXT 691d675c989SThomas Graf tristate "Textsearch" 692d675c989SThomas Graf depends on NET_EMATCH 693f2d368faSDavid S. Miller select TEXTSEARCH 694f7704347SDavid S. Miller select TEXTSEARCH_KMP 69529cb9f9cSDavid S. Miller select TEXTSEARCH_BM 696f7704347SDavid S. Miller select TEXTSEARCH_FSM 697d675c989SThomas Graf ---help--- 69852ab4ac2SThomas Graf Say Y here if you want to be able to classify packets based on 699f7704347SDavid S. Miller textsearch comparisons. 700d675c989SThomas Graf 701d675c989SThomas Graf To compile this code as a module, choose M here: the 702d675c989SThomas Graf module will be called em_text. 703d675c989SThomas Graf 704f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID 705f057bbb6SRostislav Lisovy tristate "CAN Identifier" 706a303fbf3SMarc Kleine-Budde depends on NET_EMATCH && (CAN=y || CAN=m) 707f057bbb6SRostislav Lisovy ---help--- 708f057bbb6SRostislav Lisovy Say Y here if you want to be able to classify CAN frames based 709f057bbb6SRostislav Lisovy on CAN Identifier. 710f057bbb6SRostislav Lisovy 711f057bbb6SRostislav Lisovy To compile this code as a module, choose M here: the 712f057bbb6SRostislav Lisovy module will be called em_canid. 713f057bbb6SRostislav Lisovy 7146d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET 7156d4fa852SFlorian Westphal tristate "IPset" 7166d4fa852SFlorian Westphal depends on NET_EMATCH && IP_SET 7176d4fa852SFlorian Westphal ---help--- 7186d4fa852SFlorian Westphal Say Y here if you want to be able to classify packets based on 7196d4fa852SFlorian Westphal ipset membership. 7206d4fa852SFlorian Westphal 7216d4fa852SFlorian Westphal To compile this code as a module, choose M here: the 7226d4fa852SFlorian Westphal module will be called em_ipset. 7236d4fa852SFlorian Westphal 724ccc007e4SEyal Birgerconfig NET_EMATCH_IPT 725ccc007e4SEyal Birger tristate "IPtables Matches" 726ccc007e4SEyal Birger depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES 727ccc007e4SEyal Birger ---help--- 728ccc007e4SEyal Birger Say Y here to be able to classify packets based on iptables 729ccc007e4SEyal Birger matches. 730ccc007e4SEyal Birger Current supported match is "policy" which allows packet classification 731ccc007e4SEyal Birger based on IPsec policy that was used during decapsulation 732ccc007e4SEyal Birger 733ccc007e4SEyal Birger To compile this code as a module, choose M here: the 734ccc007e4SEyal Birger module will be called em_ipt. 735ccc007e4SEyal Birger 7361da177e4SLinus Torvaldsconfig NET_CLS_ACT 73752ab4ac2SThomas Graf bool "Actions" 7388ec1507dSJiri Pirko select NET_CLS 7391da177e4SLinus Torvalds ---help--- 74052ab4ac2SThomas Graf Say Y here if you want to use traffic control actions. Actions 74152ab4ac2SThomas Graf get attached to classifiers and are invoked after a successful 74252ab4ac2SThomas Graf classification. They are used to overwrite the classification 74352ab4ac2SThomas Graf result, instantly drop or redirect packets, etc. 74452ab4ac2SThomas Graf 74552ab4ac2SThomas Graf A recent version of the iproute2 package is required to use 74652ab4ac2SThomas Graf extended matches. 7471da177e4SLinus Torvalds 7481da177e4SLinus Torvaldsconfig NET_ACT_POLICE 74952ab4ac2SThomas Graf tristate "Traffic Policing" 7501da177e4SLinus Torvalds depends on NET_CLS_ACT 7511da177e4SLinus Torvalds ---help--- 75252ab4ac2SThomas Graf Say Y here if you want to do traffic policing, i.e. strict 75352ab4ac2SThomas Graf bandwidth limiting. This action replaces the existing policing 75452ab4ac2SThomas Graf module. 75552ab4ac2SThomas Graf 75652ab4ac2SThomas Graf To compile this code as a module, choose M here: the 757d4ae20b3SJan Luebbe module will be called act_police. 7581da177e4SLinus Torvalds 7591da177e4SLinus Torvaldsconfig NET_ACT_GACT 76052ab4ac2SThomas Graf tristate "Generic actions" 7611da177e4SLinus Torvalds depends on NET_CLS_ACT 7621da177e4SLinus Torvalds ---help--- 76352ab4ac2SThomas Graf Say Y here to take generic actions such as dropping and 76452ab4ac2SThomas Graf accepting packets. 76552ab4ac2SThomas Graf 76652ab4ac2SThomas Graf To compile this code as a module, choose M here: the 767d4ae20b3SJan Luebbe module will be called act_gact. 7681da177e4SLinus Torvalds 7691da177e4SLinus Torvaldsconfig GACT_PROB 77052ab4ac2SThomas Graf bool "Probability support" 7711da177e4SLinus Torvalds depends on NET_ACT_GACT 7721da177e4SLinus Torvalds ---help--- 77352ab4ac2SThomas Graf Say Y here to use the generic action randomly or deterministically. 7741da177e4SLinus Torvalds 7751da177e4SLinus Torvaldsconfig NET_ACT_MIRRED 77652ab4ac2SThomas Graf tristate "Redirecting and Mirroring" 7771da177e4SLinus Torvalds depends on NET_CLS_ACT 7781da177e4SLinus Torvalds ---help--- 77952ab4ac2SThomas Graf Say Y here to allow packets to be mirrored or redirected to 78052ab4ac2SThomas Graf other devices. 78152ab4ac2SThomas Graf 78252ab4ac2SThomas Graf To compile this code as a module, choose M here: the 783d4ae20b3SJan Luebbe module will be called act_mirred. 7841da177e4SLinus Torvalds 7855c5670faSYotam Gigiconfig NET_ACT_SAMPLE 7865c5670faSYotam Gigi tristate "Traffic Sampling" 7875c5670faSYotam Gigi depends on NET_CLS_ACT 7885c5670faSYotam Gigi select PSAMPLE 7895c5670faSYotam Gigi ---help--- 7905c5670faSYotam Gigi Say Y here to allow packet sampling tc action. The packet sample 7915c5670faSYotam Gigi action consists of statistically choosing packets and sampling 7925c5670faSYotam Gigi them using the psample module. 7935c5670faSYotam Gigi 7945c5670faSYotam Gigi To compile this code as a module, choose M here: the 7955c5670faSYotam Gigi module will be called act_sample. 7965c5670faSYotam Gigi 7971da177e4SLinus Torvaldsconfig NET_ACT_IPT 79852ab4ac2SThomas Graf tristate "IPtables targets" 7991da177e4SLinus Torvalds depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES 8001da177e4SLinus Torvalds ---help--- 8013539c272SMatt LaPlante Say Y here to be able to invoke iptables targets after successful 80252ab4ac2SThomas Graf classification. 80352ab4ac2SThomas Graf 80452ab4ac2SThomas Graf To compile this code as a module, choose M here: the 805d4ae20b3SJan Luebbe module will be called act_ipt. 8061da177e4SLinus Torvalds 807b4219952SHerbert Xuconfig NET_ACT_NAT 808b4219952SHerbert Xu tristate "Stateless NAT" 809b4219952SHerbert Xu depends on NET_CLS_ACT 810b4219952SHerbert Xu ---help--- 811b4219952SHerbert Xu Say Y here to do stateless NAT on IPv4 packets. You should use 812b4219952SHerbert Xu netfilter for NAT unless you know what you are doing. 813b4219952SHerbert Xu 814b4219952SHerbert Xu To compile this code as a module, choose M here: the 815d4ae20b3SJan Luebbe module will be called act_nat. 816b4219952SHerbert Xu 8171da177e4SLinus Torvaldsconfig NET_ACT_PEDIT 81852ab4ac2SThomas Graf tristate "Packet Editing" 8191da177e4SLinus Torvalds depends on NET_CLS_ACT 8201da177e4SLinus Torvalds ---help--- 82152ab4ac2SThomas Graf Say Y here if you want to mangle the content of packets. 8221da177e4SLinus Torvalds 82352ab4ac2SThomas Graf To compile this code as a module, choose M here: the 824d4ae20b3SJan Luebbe module will be called act_pedit. 8251da177e4SLinus Torvalds 826db753079SJamal Hadi Salimconfig NET_ACT_SIMP 82752ab4ac2SThomas Graf tristate "Simple Example (Debug)" 828db753079SJamal Hadi Salim depends on NET_CLS_ACT 829db753079SJamal Hadi Salim ---help--- 83052ab4ac2SThomas Graf Say Y here to add a simple action for demonstration purposes. 83152ab4ac2SThomas Graf It is meant as an example and for debugging purposes. It will 83252ab4ac2SThomas Graf print a configured policy string followed by the packet count 83352ab4ac2SThomas Graf to the console for every packet that passes by. 834db753079SJamal Hadi Salim 83552ab4ac2SThomas Graf If unsure, say N. 83652ab4ac2SThomas Graf 83752ab4ac2SThomas Graf To compile this code as a module, choose M here: the 838d4ae20b3SJan Luebbe module will be called act_simple. 83952ab4ac2SThomas Graf 840ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT 841ca9b0e27SAlexander Duyck tristate "SKB Editing" 842ca9b0e27SAlexander Duyck depends on NET_CLS_ACT 843ca9b0e27SAlexander Duyck ---help--- 844ca9b0e27SAlexander Duyck Say Y here to change skb priority or queue_mapping settings. 845ca9b0e27SAlexander Duyck 846ca9b0e27SAlexander Duyck If unsure, say N. 847ca9b0e27SAlexander Duyck 848ca9b0e27SAlexander Duyck To compile this code as a module, choose M here: the 849d4ae20b3SJan Luebbe module will be called act_skbedit. 850ca9b0e27SAlexander Duyck 851eb4d4065SGrégoire Baronconfig NET_ACT_CSUM 852eb4d4065SGrégoire Baron tristate "Checksum Updating" 8537abac686SDavid S. Miller depends on NET_CLS_ACT && INET 854ab9d226eSDavide Caratti select LIBCRC32C 855eb4d4065SGrégoire Baron ---help--- 856eb4d4065SGrégoire Baron Say Y here to update some common checksum after some direct 857eb4d4065SGrégoire Baron packet alterations. 858eb4d4065SGrégoire Baron 859eb4d4065SGrégoire Baron To compile this code as a module, choose M here: the 860eb4d4065SGrégoire Baron module will be called act_csum. 861eb4d4065SGrégoire Baron 8622a2ea508SJohn Hurleyconfig NET_ACT_MPLS 8632a2ea508SJohn Hurley tristate "MPLS manipulation" 8642a2ea508SJohn Hurley depends on NET_CLS_ACT 8652a2ea508SJohn Hurley help 8662a2ea508SJohn Hurley Say Y here to push or pop MPLS headers. 8672a2ea508SJohn Hurley 8682a2ea508SJohn Hurley If unsure, say N. 8692a2ea508SJohn Hurley 8702a2ea508SJohn Hurley To compile this code as a module, choose M here: the 8712a2ea508SJohn Hurley module will be called act_mpls. 8722a2ea508SJohn Hurley 873c7e2b968SJiri Pirkoconfig NET_ACT_VLAN 874c7e2b968SJiri Pirko tristate "Vlan manipulation" 875c7e2b968SJiri Pirko depends on NET_CLS_ACT 876c7e2b968SJiri Pirko ---help--- 877c7e2b968SJiri Pirko Say Y here to push or pop vlan headers. 878c7e2b968SJiri Pirko 879c7e2b968SJiri Pirko If unsure, say N. 880c7e2b968SJiri Pirko 881c7e2b968SJiri Pirko To compile this code as a module, choose M here: the 882c7e2b968SJiri Pirko module will be called act_vlan. 883c7e2b968SJiri Pirko 884d23b8ad8SJiri Pirkoconfig NET_ACT_BPF 885d23b8ad8SJiri Pirko tristate "BPF based action" 886d23b8ad8SJiri Pirko depends on NET_CLS_ACT 887d23b8ad8SJiri Pirko ---help--- 888d23b8ad8SJiri Pirko Say Y here to execute BPF code on packets. The BPF code will decide 889d23b8ad8SJiri Pirko if the packet should be dropped or not. 890d23b8ad8SJiri Pirko 891d23b8ad8SJiri Pirko If unsure, say N. 892d23b8ad8SJiri Pirko 893d23b8ad8SJiri Pirko To compile this code as a module, choose M here: the 894d23b8ad8SJiri Pirko module will be called act_bpf. 895d23b8ad8SJiri Pirko 89622a5dc0eSFelix Fietkauconfig NET_ACT_CONNMARK 89722a5dc0eSFelix Fietkau tristate "Netfilter Connection Mark Retriever" 89822a5dc0eSFelix Fietkau depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES 8992dbce096SArnd Bergmann depends on NF_CONNTRACK && NF_CONNTRACK_MARK 90022a5dc0eSFelix Fietkau ---help--- 90122a5dc0eSFelix Fietkau Say Y here to allow retrieving of conn mark 90222a5dc0eSFelix Fietkau 90322a5dc0eSFelix Fietkau If unsure, say N. 90422a5dc0eSFelix Fietkau 90522a5dc0eSFelix Fietkau To compile this code as a module, choose M here: the 90622a5dc0eSFelix Fietkau module will be called act_connmark. 90722a5dc0eSFelix Fietkau 90824ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO 90924ec483cSKevin 'ldir' Darbyshire-Bryant tristate "Netfilter Connection Mark Actions" 91024ec483cSKevin 'ldir' Darbyshire-Bryant depends on NET_CLS_ACT && NETFILTER && IP_NF_IPTABLES 91124ec483cSKevin 'ldir' Darbyshire-Bryant depends on NF_CONNTRACK && NF_CONNTRACK_MARK 91224ec483cSKevin 'ldir' Darbyshire-Bryant help 91324ec483cSKevin 'ldir' Darbyshire-Bryant Say Y here to allow transfer of a connmark stored information. 91424ec483cSKevin 'ldir' Darbyshire-Bryant Current actions transfer connmark stored DSCP into 91524ec483cSKevin 'ldir' Darbyshire-Bryant ipv4/v6 diffserv and/or to transfer connmark to packet 91624ec483cSKevin 'ldir' Darbyshire-Bryant mark. Both are useful for restoring egress based marks 91724ec483cSKevin 'ldir' Darbyshire-Bryant back onto ingress connections for qdisc priority mapping 91824ec483cSKevin 'ldir' Darbyshire-Bryant purposes. 91924ec483cSKevin 'ldir' Darbyshire-Bryant 92024ec483cSKevin 'ldir' Darbyshire-Bryant If unsure, say N. 92124ec483cSKevin 'ldir' Darbyshire-Bryant 92224ec483cSKevin 'ldir' Darbyshire-Bryant To compile this code as a module, choose M here: the 92324ec483cSKevin 'ldir' Darbyshire-Bryant module will be called act_ctinfo. 92424ec483cSKevin 'ldir' Darbyshire-Bryant 92586da71b5SJamal Hadi Salimconfig NET_ACT_SKBMOD 92686da71b5SJamal Hadi Salim tristate "skb data modification action" 92786da71b5SJamal Hadi Salim depends on NET_CLS_ACT 92886da71b5SJamal Hadi Salim ---help--- 92986da71b5SJamal Hadi Salim Say Y here to allow modification of skb data 93086da71b5SJamal Hadi Salim 93186da71b5SJamal Hadi Salim If unsure, say N. 93286da71b5SJamal Hadi Salim 93386da71b5SJamal Hadi Salim To compile this code as a module, choose M here: the 93486da71b5SJamal Hadi Salim module will be called act_skbmod. 93586da71b5SJamal Hadi Salim 936ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE 937ef6980b6SJamal Hadi Salim tristate "Inter-FE action based on IETF ForCES InterFE LFB" 938ef6980b6SJamal Hadi Salim depends on NET_CLS_ACT 939295a6e06SYotam Gigi select NET_IFE 940ef6980b6SJamal Hadi Salim ---help--- 941ef6980b6SJamal Hadi Salim Say Y here to allow for sourcing and terminating metadata 942ef6980b6SJamal Hadi Salim For details refer to netdev01 paper: 943ef6980b6SJamal Hadi Salim "Distributing Linux Traffic Control Classifier-Action Subsystem" 944ef6980b6SJamal Hadi Salim Authors: Jamal Hadi Salim and Damascene M. Joachimpillai 945ef6980b6SJamal Hadi Salim 946ef6980b6SJamal Hadi Salim To compile this code as a module, choose M here: the 947ef6980b6SJamal Hadi Salim module will be called act_ife. 948ef6980b6SJamal Hadi Salim 949d0f6dd8aSAmir Vadaiconfig NET_ACT_TUNNEL_KEY 950d0f6dd8aSAmir Vadai tristate "IP tunnel metadata manipulation" 951d0f6dd8aSAmir Vadai depends on NET_CLS_ACT 952d0f6dd8aSAmir Vadai ---help--- 953d0f6dd8aSAmir Vadai Say Y here to set/release ip tunnel metadata. 954d0f6dd8aSAmir Vadai 955d0f6dd8aSAmir Vadai If unsure, say N. 956d0f6dd8aSAmir Vadai 957d0f6dd8aSAmir Vadai To compile this code as a module, choose M here: the 958d0f6dd8aSAmir Vadai module will be called act_tunnel_key. 959d0f6dd8aSAmir Vadai 960b57dc7c1SPaul Blakeyconfig NET_ACT_CT 961b57dc7c1SPaul Blakey tristate "connection tracking tc action" 962f11fe1daSYueHaibing depends on NET_CLS_ACT && NF_CONNTRACK && NF_NAT 963b57dc7c1SPaul Blakey help 964b57dc7c1SPaul Blakey Say Y here to allow sending the packets to conntrack module. 965b57dc7c1SPaul Blakey 966b57dc7c1SPaul Blakey If unsure, say N. 967b57dc7c1SPaul Blakey 968b57dc7c1SPaul Blakey To compile this code as a module, choose M here: the 969b57dc7c1SPaul Blakey module will be called act_ct. 970b57dc7c1SPaul Blakey 971084e2f65SJamal Hadi Salimconfig NET_IFE_SKBMARK 972084e2f65SJamal Hadi Salim tristate "Support to encoding decoding skb mark on IFE action" 973084e2f65SJamal Hadi Salim depends on NET_ACT_IFE 974084e2f65SJamal Hadi Salim 975200e10f4SJamal Hadi Salimconfig NET_IFE_SKBPRIO 976200e10f4SJamal Hadi Salim tristate "Support to encoding decoding skb prio on IFE action" 977200e10f4SJamal Hadi Salim depends on NET_ACT_IFE 978200e10f4SJamal Hadi Salim 979408fbc22SJamal Hadi Salimconfig NET_IFE_SKBTCINDEX 980408fbc22SJamal Hadi Salim tristate "Support to encoding decoding skb tcindex on IFE action" 981408fbc22SJamal Hadi Salim depends on NET_ACT_IFE 982408fbc22SJamal Hadi Salim 98395a7233cSPaul Blakeyconfig NET_TC_SKB_EXT 98495a7233cSPaul Blakey bool "TC recirculation support" 98595a7233cSPaul Blakey depends on NET_CLS_ACT 98695a7233cSPaul Blakey select SKB_EXTENSIONS 98795a7233cSPaul Blakey 98895a7233cSPaul Blakey help 98995a7233cSPaul Blakey Say Y here to allow tc chain misses to continue in OvS datapath in 99095a7233cSPaul Blakey the correct recirc_id, and hardware chain misses to continue in 99195a7233cSPaul Blakey the correct chain in tc software datapath. 99295a7233cSPaul Blakey 99395a7233cSPaul Blakey Say N here if you won't be using tc<->ovs offload or tc chains offload. 99495a7233cSPaul Blakey 99505b8b0faSRoman Zippelendif # NET_SCHED 99605b8b0faSRoman Zippel 99785ef3e5cSRandy Dunlapconfig NET_SCH_FIFO 99885ef3e5cSRandy Dunlap bool 999