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 406*c8240344SAmery Hungconfig NET_SCH_BPF 407*c8240344SAmery Hung bool "BPF-based Qdisc" 408*c8240344SAmery Hung depends on BPF_SYSCALL && BPF_JIT && DEBUG_INFO_BTF 409*c8240344SAmery Hung help 410*c8240344SAmery Hung This option allows BPF-based queueing disiplines. With BPF struct_ops, 411*c8240344SAmery Hung users can implement supported operators in Qdisc_ops using BPF programs. 412*c8240344SAmery Hung The queue holding skb can be built with BPF maps or graphs. 413*c8240344SAmery Hung 414*c8240344SAmery Hung Say Y here if you want to use BPF-based Qdisc. 415*c8240344SAmery Hung 416*c8240344SAmery Hung If unsure, say N. 417*c8240344SAmery Hung 4188ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT 4198ea3e439Sstephen hemminger bool "Allow override default queue discipline" 420a7f7f624SMasahiro Yamada 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 4358ea3e439Sstephen hemminger Select the queueing discipline that will be used by default 4368ea3e439Sstephen hemminger for all network devices. 4378ea3e439Sstephen hemminger 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 447b97e9d9dSDanny Lin config DEFAULT_FQ_PIE 448b97e9d9dSDanny Lin bool "Flow Queue Proportional Integral controller Enhanced" if NET_SCH_FQ_PIE 449b97e9d9dSDanny Lin 4508ea3e439Sstephen hemminger 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" 4558ea3e439Sstephen hemmingerendchoice 4568ea3e439Sstephen hemminger 4578ea3e439Sstephen hemmingerconfig DEFAULT_NET_SCH 4588ea3e439Sstephen hemminger string 4598ea3e439Sstephen hemminger default "pfifo_fast" if DEFAULT_PFIFO_FAST 4608ea3e439Sstephen hemminger default "fq" if DEFAULT_FQ 4618ea3e439Sstephen hemminger default "fq_codel" if DEFAULT_FQ_CODEL 462b97e9d9dSDanny Lin default "fq_pie" if DEFAULT_FQ_PIE 4638ea3e439Sstephen hemminger default "sfq" if DEFAULT_SFQ 4648ea3e439Sstephen hemminger default "pfifo_fast" 4658ea3e439Sstephen hemmingerendif 4668ea3e439Sstephen hemminger 46752ab4ac2SThomas Grafcomment "Classification" 4681da177e4SLinus Torvalds 4691da177e4SLinus Torvaldsconfig NET_CLS 4706341e62bSChristoph Jaeger bool 4711da177e4SLinus Torvalds 4721da177e4SLinus Torvaldsconfig NET_CLS_BASIC 47352ab4ac2SThomas Graf tristate "Elementary classification (BASIC)" 47452ab4ac2SThomas Graf select NET_CLS 475a7f7f624SMasahiro Yamada help 4761da177e4SLinus Torvalds Say Y here if you want to be able to classify packets using 4771da177e4SLinus Torvalds 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)" 484034cfe48SRandy Dunlap depends on INET 485c7066f70SPatrick McHardy select IP_ROUTE_CLASSID 48652ab4ac2SThomas Graf select NET_CLS 487a7f7f624SMasahiro Yamada help 48852ab4ac2SThomas Graf If you say Y here, you will be able to classify packets 48952ab4ac2SThomas Graf 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. 4931da177e4SLinus Torvalds 4941da177e4SLinus Torvaldsconfig NET_CLS_FW 49552ab4ac2SThomas Graf tristate "Netfilter mark (FW)" 49652ab4ac2SThomas Graf select NET_CLS 497a7f7f624SMasahiro Yamada help 49852ab4ac2SThomas Graf If you say Y here, you will be able to classify packets 49952ab4ac2SThomas Graf 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. 5031da177e4SLinus Torvalds 5041da177e4SLinus Torvaldsconfig NET_CLS_U32 50552ab4ac2SThomas Graf tristate "Universal 32bit comparisons w/ hashing (U32)" 50652ab4ac2SThomas Graf select NET_CLS 507a7f7f624SMasahiro Yamada help 5083539c272SMatt LaPlante Say Y here to be able to classify packets using a universal 50952ab4ac2SThomas Graf 32bit pieces based comparison scheme. 5101da177e4SLinus Torvalds 5111da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5121da177e4SLinus Torvalds module will be called cls_u32. 5131da177e4SLinus Torvalds 5141da177e4SLinus Torvaldsconfig CLS_U32_PERF 51552ab4ac2SThomas Graf bool "Performance counters support" 5161da177e4SLinus Torvalds depends on NET_CLS_U32 517a7f7f624SMasahiro Yamada help 51852ab4ac2SThomas Graf Say Y here to make u32 gather additional statistics useful for 51952ab4ac2SThomas Graf fine tuning u32 classifiers. 5201da177e4SLinus Torvalds 5211da177e4SLinus Torvaldsconfig CLS_U32_MARK 52252ab4ac2SThomas Graf bool "Netfilter marks support" 52382e91ffeSThomas Graf depends on NET_CLS_U32 524a7f7f624SMasahiro Yamada help 52552ab4ac2SThomas Graf Say Y here to be able to use netfilter marks as u32 key. 5261da177e4SLinus Torvalds 527e5dfb815SPatrick McHardyconfig NET_CLS_FLOW 528e5dfb815SPatrick McHardy tristate "Flow classifier" 529e5dfb815SPatrick McHardy select NET_CLS 530a7f7f624SMasahiro Yamada help 531e5dfb815SPatrick McHardy If you say Y here, you will be able to classify packets based on 532e5dfb815SPatrick McHardy a configurable combination of packet keys. This is mostly useful 533e5dfb815SPatrick McHardy in combination with SFQ. 534e5dfb815SPatrick McHardy 535e5dfb815SPatrick McHardy To compile this code as a module, choose M here: the 536e5dfb815SPatrick McHardy module will be called cls_flow. 537e5dfb815SPatrick McHardy 538f4009237SThomas Grafconfig NET_CLS_CGROUP 5398e039d84SBen Blum tristate "Control Group Classifier" 540f4009237SThomas Graf select NET_CLS 541fe1217c4SDaniel Borkmann select CGROUP_NET_CLASSID 542f4009237SThomas Graf depends on CGROUPS 543a7f7f624SMasahiro Yamada help 544f4009237SThomas Graf Say Y here if you want to classify packets based on the control 545f4009237SThomas Graf cgroup of their process. 546f4009237SThomas Graf 5478e039d84SBen Blum To compile this code as a module, choose M here: the 5488e039d84SBen Blum module will be called cls_cgroup. 5498e039d84SBen Blum 5507d1d65cbSDaniel Borkmannconfig NET_CLS_BPF 5517d1d65cbSDaniel Borkmann tristate "BPF-based classifier" 5527d1d65cbSDaniel Borkmann select NET_CLS 553a7f7f624SMasahiro Yamada help 5547d1d65cbSDaniel Borkmann If you say Y here, you will be able to classify packets based on 5557d1d65cbSDaniel Borkmann programmable BPF (JIT'ed) filters as an alternative to ematches. 5567d1d65cbSDaniel Borkmann 5577d1d65cbSDaniel Borkmann To compile this code as a module, choose M here: the module will 5587d1d65cbSDaniel Borkmann be called cls_bpf. 5597d1d65cbSDaniel Borkmann 56077b9900eSJiri Pirkoconfig NET_CLS_FLOWER 56177b9900eSJiri Pirko tristate "Flower classifier" 56277b9900eSJiri Pirko select NET_CLS 563a7f7f624SMasahiro Yamada help 56477b9900eSJiri Pirko If you say Y here, you will be able to classify packets based on 56577b9900eSJiri Pirko a configurable combination of packet keys and masks. 56677b9900eSJiri Pirko 56777b9900eSJiri Pirko To compile this code as a module, choose M here: the module will 56877b9900eSJiri Pirko be called cls_flower. 56977b9900eSJiri Pirko 570bf3994d2SJiri Pirkoconfig NET_CLS_MATCHALL 571bf3994d2SJiri Pirko tristate "Match-all classifier" 572bf3994d2SJiri Pirko select NET_CLS 573a7f7f624SMasahiro Yamada help 574bf3994d2SJiri Pirko If you say Y here, you will be able to classify packets based on 575bf3994d2SJiri Pirko nothing. Every packet will match. 576bf3994d2SJiri Pirko 577bf3994d2SJiri Pirko To compile this code as a module, choose M here: the module will 578bf3994d2SJiri Pirko be called cls_matchall. 579bf3994d2SJiri Pirko 5801da177e4SLinus Torvaldsconfig NET_EMATCH 5811da177e4SLinus Torvalds bool "Extended Matches" 58252ab4ac2SThomas Graf select NET_CLS 583a7f7f624SMasahiro Yamada help 5841da177e4SLinus Torvalds Say Y here if you want to use extended matches on top of classifiers 5851da177e4SLinus Torvalds and select the extended matches below. 5861da177e4SLinus Torvalds 5871da177e4SLinus Torvalds Extended matches are small classification helpers not worth writing 58852ab4ac2SThomas Graf a separate classifier for. 5891da177e4SLinus Torvalds 59052ab4ac2SThomas Graf A recent version of the iproute2 package is required to use 5911da177e4SLinus Torvalds extended matches. 5921da177e4SLinus Torvalds 5931da177e4SLinus Torvaldsconfig NET_EMATCH_STACK 5941da177e4SLinus Torvalds int "Stack size" 5951da177e4SLinus Torvalds depends on NET_EMATCH 5961da177e4SLinus Torvalds default "32" 597a7f7f624SMasahiro Yamada 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 600b824979aSThomas Graf encapsulated precedences. Every level requires 4 bytes of additional 6011da177e4SLinus Torvalds stack space. 6021da177e4SLinus Torvalds 6031da177e4SLinus Torvaldsconfig NET_EMATCH_CMP 6041da177e4SLinus Torvalds tristate "Simple packet data comparison" 6051da177e4SLinus Torvalds depends on NET_EMATCH 606a7f7f624SMasahiro Yamada 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. 6121da177e4SLinus Torvalds 6131da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE 6141da177e4SLinus Torvalds tristate "Multi byte comparison" 6151da177e4SLinus Torvalds depends on NET_EMATCH 616a7f7f624SMasahiro Yamada 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 62452ab4ac2SThomas Graf tristate "U32 key" 6251da177e4SLinus Torvalds depends on NET_EMATCH 626a7f7f624SMasahiro Yamada 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. 6321da177e4SLinus Torvalds 6331da177e4SLinus Torvaldsconfig NET_EMATCH_META 6341da177e4SLinus Torvalds tristate "Metadata" 6351da177e4SLinus Torvalds depends on NET_EMATCH 636a7f7f624SMasahiro Yamada help 637bb7e8c5aSAdrian Bunk Say Y here if you want to be able to classify packets based on 6381da177e4SLinus Torvalds metadata such as load average, netfilter attributes, socket 6391da177e4SLinus Torvalds attributes and routing decisions. 6401da177e4SLinus Torvalds 6411da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6421da177e4SLinus Torvalds module will be called em_meta. 6431da177e4SLinus Torvalds 644d675c989SThomas Grafconfig NET_EMATCH_TEXT 645d675c989SThomas Graf tristate "Textsearch" 646d675c989SThomas Graf depends on NET_EMATCH 647f2d368faSDavid S. Miller select TEXTSEARCH 648f7704347SDavid S. Miller select TEXTSEARCH_KMP 64929cb9f9cSDavid S. Miller select TEXTSEARCH_BM 650f7704347SDavid S. Miller select TEXTSEARCH_FSM 651a7f7f624SMasahiro Yamada help 65252ab4ac2SThomas Graf Say Y here if you want to be able to classify packets based on 653f7704347SDavid S. Miller textsearch comparisons. 654d675c989SThomas Graf 655d675c989SThomas Graf To compile this code as a module, choose M here: the 656d675c989SThomas Graf module will be called em_text. 657d675c989SThomas Graf 658f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID 659f057bbb6SRostislav Lisovy tristate "CAN Identifier" 660a303fbf3SMarc Kleine-Budde depends on NET_EMATCH && (CAN=y || CAN=m) 661a7f7f624SMasahiro Yamada help 662f057bbb6SRostislav Lisovy Say Y here if you want to be able to classify CAN frames based 663f057bbb6SRostislav Lisovy on CAN Identifier. 664f057bbb6SRostislav Lisovy 665f057bbb6SRostislav Lisovy To compile this code as a module, choose M here: the 666f057bbb6SRostislav Lisovy module will be called em_canid. 667f057bbb6SRostislav Lisovy 6686d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET 6696d4fa852SFlorian Westphal tristate "IPset" 6706d4fa852SFlorian Westphal depends on NET_EMATCH && IP_SET 671a7f7f624SMasahiro Yamada help 6726d4fa852SFlorian Westphal Say Y here if you want to be able to classify packets based on 6736d4fa852SFlorian Westphal ipset membership. 6746d4fa852SFlorian Westphal 6756d4fa852SFlorian Westphal To compile this code as a module, choose M here: the 6766d4fa852SFlorian Westphal module will be called em_ipset. 6776d4fa852SFlorian Westphal 678ccc007e4SEyal Birgerconfig NET_EMATCH_IPT 679ccc007e4SEyal Birger tristate "IPtables Matches" 680ccc007e4SEyal Birger depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES 681a7f7f624SMasahiro Yamada help 682ccc007e4SEyal Birger Say Y here to be able to classify packets based on iptables 683ccc007e4SEyal Birger matches. 684ccc007e4SEyal Birger Current supported match is "policy" which allows packet classification 685ccc007e4SEyal Birger based on IPsec policy that was used during decapsulation 686ccc007e4SEyal Birger 687ccc007e4SEyal Birger To compile this code as a module, choose M here: the 688ccc007e4SEyal Birger module will be called em_ipt. 689ccc007e4SEyal Birger 6901da177e4SLinus Torvaldsconfig NET_CLS_ACT 69152ab4ac2SThomas Graf bool "Actions" 6928ec1507dSJiri Pirko select NET_CLS 693e420bed0SDaniel Borkmann 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 70052ab4ac2SThomas Graf A recent version of the iproute2 package is required to use 70152ab4ac2SThomas Graf extended matches. 7021da177e4SLinus Torvalds 7031da177e4SLinus Torvaldsconfig NET_ACT_POLICE 70452ab4ac2SThomas Graf tristate "Traffic Policing" 7051da177e4SLinus Torvalds depends on NET_CLS_ACT 706a7f7f624SMasahiro Yamada 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. 71052ab4ac2SThomas Graf 71152ab4ac2SThomas Graf To compile this code as a module, choose M here: the 712d4ae20b3SJan Luebbe module will be called act_police. 7131da177e4SLinus Torvalds 7141da177e4SLinus Torvaldsconfig NET_ACT_GACT 71552ab4ac2SThomas Graf tristate "Generic actions" 7161da177e4SLinus Torvalds depends on NET_CLS_ACT 717a7f7f624SMasahiro Yamada help 71852ab4ac2SThomas Graf Say Y here to take generic actions such as dropping and 71952ab4ac2SThomas Graf accepting packets. 72052ab4ac2SThomas Graf 72152ab4ac2SThomas Graf To compile this code as a module, choose M here: the 722d4ae20b3SJan Luebbe module will be called act_gact. 7231da177e4SLinus Torvalds 7241da177e4SLinus Torvaldsconfig GACT_PROB 72552ab4ac2SThomas Graf bool "Probability support" 7261da177e4SLinus Torvalds depends on NET_ACT_GACT 727a7f7f624SMasahiro Yamada help 72852ab4ac2SThomas Graf Say Y here to use the generic action randomly or deterministically. 7291da177e4SLinus Torvalds 7301da177e4SLinus Torvaldsconfig NET_ACT_MIRRED 73152ab4ac2SThomas Graf tristate "Redirecting and Mirroring" 7321da177e4SLinus Torvalds depends on NET_CLS_ACT 733a7f7f624SMasahiro Yamada help 73452ab4ac2SThomas Graf Say Y here to allow packets to be mirrored or redirected to 73552ab4ac2SThomas Graf other devices. 73652ab4ac2SThomas Graf 73752ab4ac2SThomas Graf To compile this code as a module, choose M here: the 738d4ae20b3SJan Luebbe module will be called act_mirred. 7391da177e4SLinus Torvalds 7405c5670faSYotam Gigiconfig NET_ACT_SAMPLE 7415c5670faSYotam Gigi tristate "Traffic Sampling" 7425c5670faSYotam Gigi depends on NET_CLS_ACT 7435c5670faSYotam Gigi select PSAMPLE 744a7f7f624SMasahiro Yamada help 7455c5670faSYotam Gigi Say Y here to allow packet sampling tc action. The packet sample 7465c5670faSYotam Gigi action consists of statistically choosing packets and sampling 7475c5670faSYotam Gigi them using the psample module. 7485c5670faSYotam Gigi 7495c5670faSYotam Gigi To compile this code as a module, choose M here: the 7505c5670faSYotam Gigi module will be called act_sample. 7515c5670faSYotam Gigi 752b4219952SHerbert Xuconfig NET_ACT_NAT 753b4219952SHerbert Xu tristate "Stateless NAT" 754b4219952SHerbert Xu depends on NET_CLS_ACT 755a7f7f624SMasahiro Yamada help 756b4219952SHerbert Xu Say Y here to do stateless NAT on IPv4 packets. You should use 757b4219952SHerbert Xu netfilter for NAT unless you know what you are doing. 758b4219952SHerbert Xu 759b4219952SHerbert Xu To compile this code as a module, choose M here: the 760d4ae20b3SJan Luebbe module will be called act_nat. 761b4219952SHerbert Xu 7621da177e4SLinus Torvaldsconfig NET_ACT_PEDIT 76352ab4ac2SThomas Graf tristate "Packet Editing" 7641da177e4SLinus Torvalds depends on NET_CLS_ACT 765a7f7f624SMasahiro Yamada help 76652ab4ac2SThomas Graf Say Y here if you want to mangle the content of packets. 7671da177e4SLinus Torvalds 76852ab4ac2SThomas Graf To compile this code as a module, choose M here: the 769d4ae20b3SJan Luebbe module will be called act_pedit. 7701da177e4SLinus Torvalds 771db753079SJamal Hadi Salimconfig NET_ACT_SIMP 77252ab4ac2SThomas Graf tristate "Simple Example (Debug)" 773db753079SJamal Hadi Salim depends on NET_CLS_ACT 774a7f7f624SMasahiro Yamada help 77552ab4ac2SThomas Graf Say Y here to add a simple action for demonstration purposes. 77652ab4ac2SThomas Graf It is meant as an example and for debugging purposes. It will 77752ab4ac2SThomas Graf print a configured policy string followed by the packet count 77852ab4ac2SThomas Graf to the console for every packet that passes by. 779db753079SJamal Hadi Salim 78052ab4ac2SThomas Graf If unsure, say N. 78152ab4ac2SThomas Graf 78252ab4ac2SThomas Graf To compile this code as a module, choose M here: the 783d4ae20b3SJan Luebbe module will be called act_simple. 78452ab4ac2SThomas Graf 785ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT 786ca9b0e27SAlexander Duyck tristate "SKB Editing" 787ca9b0e27SAlexander Duyck depends on NET_CLS_ACT 788a7f7f624SMasahiro Yamada help 789ca9b0e27SAlexander Duyck Say Y here to change skb priority or queue_mapping settings. 790ca9b0e27SAlexander Duyck 791ca9b0e27SAlexander Duyck If unsure, say N. 792ca9b0e27SAlexander Duyck 793ca9b0e27SAlexander Duyck To compile this code as a module, choose M here: the 794d4ae20b3SJan Luebbe module will be called act_skbedit. 795ca9b0e27SAlexander Duyck 796eb4d4065SGrégoire Baronconfig NET_ACT_CSUM 797eb4d4065SGrégoire Baron tristate "Checksum Updating" 7987abac686SDavid S. Miller depends on NET_CLS_ACT && INET 799ab9d226eSDavide Caratti select LIBCRC32C 800a7f7f624SMasahiro Yamada help 801eb4d4065SGrégoire Baron Say Y here to update some common checksum after some direct 802eb4d4065SGrégoire Baron packet alterations. 803eb4d4065SGrégoire Baron 804eb4d4065SGrégoire Baron To compile this code as a module, choose M here: the 805eb4d4065SGrégoire Baron module will be called act_csum. 806eb4d4065SGrégoire Baron 8072a2ea508SJohn Hurleyconfig NET_ACT_MPLS 8082a2ea508SJohn Hurley tristate "MPLS manipulation" 8092a2ea508SJohn Hurley depends on NET_CLS_ACT 8102a2ea508SJohn Hurley help 8112a2ea508SJohn Hurley Say Y here to push or pop MPLS headers. 8122a2ea508SJohn Hurley 8132a2ea508SJohn Hurley If unsure, say N. 8142a2ea508SJohn Hurley 8152a2ea508SJohn Hurley To compile this code as a module, choose M here: the 8162a2ea508SJohn Hurley module will be called act_mpls. 8172a2ea508SJohn Hurley 818c7e2b968SJiri Pirkoconfig NET_ACT_VLAN 819c7e2b968SJiri Pirko tristate "Vlan manipulation" 820c7e2b968SJiri Pirko depends on NET_CLS_ACT 821a7f7f624SMasahiro Yamada help 822c7e2b968SJiri Pirko Say Y here to push or pop vlan headers. 823c7e2b968SJiri Pirko 824c7e2b968SJiri Pirko If unsure, say N. 825c7e2b968SJiri Pirko 826c7e2b968SJiri Pirko To compile this code as a module, choose M here: the 827c7e2b968SJiri Pirko module will be called act_vlan. 828c7e2b968SJiri Pirko 829d23b8ad8SJiri Pirkoconfig NET_ACT_BPF 830d23b8ad8SJiri Pirko tristate "BPF based action" 831d23b8ad8SJiri Pirko depends on NET_CLS_ACT 832a7f7f624SMasahiro Yamada help 833d23b8ad8SJiri Pirko Say Y here to execute BPF code on packets. The BPF code will decide 834d23b8ad8SJiri Pirko if the packet should be dropped or not. 835d23b8ad8SJiri Pirko 836d23b8ad8SJiri Pirko If unsure, say N. 837d23b8ad8SJiri Pirko 838d23b8ad8SJiri Pirko To compile this code as a module, choose M here: the 839d23b8ad8SJiri Pirko module will be called act_bpf. 840d23b8ad8SJiri Pirko 84122a5dc0eSFelix Fietkauconfig NET_ACT_CONNMARK 84222a5dc0eSFelix Fietkau tristate "Netfilter Connection Mark Retriever" 843102e2c07SPablo Neira Ayuso depends on NET_CLS_ACT && NETFILTER 8442dbce096SArnd Bergmann depends on NF_CONNTRACK && NF_CONNTRACK_MARK 845a7f7f624SMasahiro Yamada help 84622a5dc0eSFelix Fietkau Say Y here to allow retrieving of conn mark 84722a5dc0eSFelix Fietkau 84822a5dc0eSFelix Fietkau If unsure, say N. 84922a5dc0eSFelix Fietkau 85022a5dc0eSFelix Fietkau To compile this code as a module, choose M here: the 85122a5dc0eSFelix Fietkau module will be called act_connmark. 85222a5dc0eSFelix Fietkau 85324ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO 85424ec483cSKevin 'ldir' Darbyshire-Bryant tristate "Netfilter Connection Mark Actions" 855102e2c07SPablo Neira Ayuso depends on NET_CLS_ACT && NETFILTER 85624ec483cSKevin 'ldir' Darbyshire-Bryant depends on NF_CONNTRACK && NF_CONNTRACK_MARK 85724ec483cSKevin 'ldir' Darbyshire-Bryant help 85824ec483cSKevin 'ldir' Darbyshire-Bryant Say Y here to allow transfer of a connmark stored information. 85924ec483cSKevin 'ldir' Darbyshire-Bryant Current actions transfer connmark stored DSCP into 86024ec483cSKevin 'ldir' Darbyshire-Bryant ipv4/v6 diffserv and/or to transfer connmark to packet 86124ec483cSKevin 'ldir' Darbyshire-Bryant mark. Both are useful for restoring egress based marks 86224ec483cSKevin 'ldir' Darbyshire-Bryant back onto ingress connections for qdisc priority mapping 86324ec483cSKevin 'ldir' Darbyshire-Bryant purposes. 86424ec483cSKevin 'ldir' Darbyshire-Bryant 86524ec483cSKevin 'ldir' Darbyshire-Bryant If unsure, say N. 86624ec483cSKevin 'ldir' Darbyshire-Bryant 86724ec483cSKevin 'ldir' Darbyshire-Bryant To compile this code as a module, choose M here: the 86824ec483cSKevin 'ldir' Darbyshire-Bryant module will be called act_ctinfo. 86924ec483cSKevin 'ldir' Darbyshire-Bryant 87086da71b5SJamal Hadi Salimconfig NET_ACT_SKBMOD 87186da71b5SJamal Hadi Salim tristate "skb data modification action" 87286da71b5SJamal Hadi Salim depends on NET_CLS_ACT 873a7f7f624SMasahiro Yamada help 87486da71b5SJamal Hadi Salim Say Y here to allow modification of skb data 87586da71b5SJamal Hadi Salim 87686da71b5SJamal Hadi Salim If unsure, say N. 87786da71b5SJamal Hadi Salim 87886da71b5SJamal Hadi Salim To compile this code as a module, choose M here: the 87986da71b5SJamal Hadi Salim module will be called act_skbmod. 88086da71b5SJamal Hadi Salim 881ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE 882ef6980b6SJamal Hadi Salim tristate "Inter-FE action based on IETF ForCES InterFE LFB" 883ef6980b6SJamal Hadi Salim depends on NET_CLS_ACT 884295a6e06SYotam Gigi select NET_IFE 885a7f7f624SMasahiro Yamada help 886ef6980b6SJamal Hadi Salim Say Y here to allow for sourcing and terminating metadata 887ef6980b6SJamal Hadi Salim For details refer to netdev01 paper: 888ef6980b6SJamal Hadi Salim "Distributing Linux Traffic Control Classifier-Action Subsystem" 889ef6980b6SJamal Hadi Salim Authors: Jamal Hadi Salim and Damascene M. Joachimpillai 890ef6980b6SJamal Hadi Salim 891ef6980b6SJamal Hadi Salim To compile this code as a module, choose M here: the 892ef6980b6SJamal Hadi Salim module will be called act_ife. 893ef6980b6SJamal Hadi Salim 894d0f6dd8aSAmir Vadaiconfig NET_ACT_TUNNEL_KEY 895d0f6dd8aSAmir Vadai tristate "IP tunnel metadata manipulation" 896d0f6dd8aSAmir Vadai depends on NET_CLS_ACT 897a7f7f624SMasahiro Yamada help 898d0f6dd8aSAmir Vadai Say Y here to set/release ip tunnel metadata. 899d0f6dd8aSAmir Vadai 900d0f6dd8aSAmir Vadai If unsure, say N. 901d0f6dd8aSAmir Vadai 902d0f6dd8aSAmir Vadai To compile this code as a module, choose M here: the 903d0f6dd8aSAmir Vadai module will be called act_tunnel_key. 904d0f6dd8aSAmir Vadai 905b57dc7c1SPaul Blakeyconfig NET_ACT_CT 906b57dc7c1SPaul Blakey tristate "connection tracking tc action" 9078427fd10SXin Long depends on NET_CLS_ACT && NF_CONNTRACK && (!NF_NAT || NF_NAT) && NF_FLOW_TABLE 908c0c3ab63SXin Long select NF_CONNTRACK_OVS 909ebddb140SXin Long select NF_NAT_OVS if NF_NAT 910b57dc7c1SPaul Blakey help 911b57dc7c1SPaul Blakey Say Y here to allow sending the packets to conntrack module. 912b57dc7c1SPaul Blakey 913b57dc7c1SPaul Blakey If unsure, say N. 914b57dc7c1SPaul Blakey 915b57dc7c1SPaul Blakey To compile this code as a module, choose M here: the 916b57dc7c1SPaul Blakey module will be called act_ct. 917b57dc7c1SPaul Blakey 918a51c328dSPo Liuconfig NET_ACT_GATE 919a51c328dSPo Liu tristate "Frame gate entry list control tc action" 920a51c328dSPo Liu depends on NET_CLS_ACT 921a51c328dSPo Liu help 922a51c328dSPo Liu Say Y here to allow to control the ingress flow to be passed at 923a51c328dSPo Liu specific time slot and be dropped at other specific time slot by 924a51c328dSPo Liu the gate entry list. 925a51c328dSPo Liu 926a51c328dSPo Liu If unsure, say N. 927a51c328dSPo Liu To compile this code as a module, choose M here: the 928a51c328dSPo Liu module will be called act_gate. 929a51c328dSPo Liu 930084e2f65SJamal Hadi Salimconfig NET_IFE_SKBMARK 931084e2f65SJamal Hadi Salim tristate "Support to encoding decoding skb mark on IFE action" 932084e2f65SJamal Hadi Salim depends on NET_ACT_IFE 933084e2f65SJamal Hadi Salim 934200e10f4SJamal Hadi Salimconfig NET_IFE_SKBPRIO 935200e10f4SJamal Hadi Salim tristate "Support to encoding decoding skb prio on IFE action" 936200e10f4SJamal Hadi Salim depends on NET_ACT_IFE 937200e10f4SJamal Hadi Salim 938408fbc22SJamal Hadi Salimconfig NET_IFE_SKBTCINDEX 939408fbc22SJamal Hadi Salim tristate "Support to encoding decoding skb tcindex on IFE action" 940408fbc22SJamal Hadi Salim depends on NET_ACT_IFE 941408fbc22SJamal Hadi Salim 94295a7233cSPaul Blakeyconfig NET_TC_SKB_EXT 94395a7233cSPaul Blakey bool "TC recirculation support" 94495a7233cSPaul Blakey depends on NET_CLS_ACT 94595a7233cSPaul Blakey select SKB_EXTENSIONS 94695a7233cSPaul Blakey 94795a7233cSPaul Blakey help 94895a7233cSPaul Blakey Say Y here to allow tc chain misses to continue in OvS datapath in 94995a7233cSPaul Blakey the correct recirc_id, and hardware chain misses to continue in 95095a7233cSPaul Blakey the correct chain in tc software datapath. 95195a7233cSPaul Blakey 95295a7233cSPaul Blakey Say N here if you won't be using tc<->ovs offload or tc chains offload. 95395a7233cSPaul Blakey 95405b8b0faSRoman Zippelendif # NET_SCHED 95505b8b0faSRoman Zippel 95685ef3e5cSRandy Dunlapconfig NET_SCH_FIFO 95785ef3e5cSRandy Dunlap bool 958