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 350*e420bed0SDaniel Borkmann select NET_XGRESS 351a7f7f624SMasahiro Yamada help 3521f211a1bSDaniel Borkmann Say Y here if you want to use classifiers for incoming and/or outgoing 3531f211a1bSDaniel Borkmann packets. This qdisc doesn't do anything else besides running classifiers, 3541f211a1bSDaniel Borkmann which can also have actions attached to them. In case of outgoing packets, 3551f211a1bSDaniel Borkmann classifiers that this qdisc holds are executed in the transmit path 3561f211a1bSDaniel Borkmann before real enqueuing to an egress qdisc happens. 3571f211a1bSDaniel Borkmann 3581da177e4SLinus Torvalds If unsure, say Y. 3591da177e4SLinus Torvalds 3601f211a1bSDaniel Borkmann To compile this code as a module, choose M here: the module will be 3611f211a1bSDaniel Borkmann called sch_ingress with alias of sch_clsact. 3621da177e4SLinus Torvalds 363c3059be1SShriram Rajagopalanconfig NET_SCH_PLUG 364c3059be1SShriram Rajagopalan tristate "Plug network traffic until release (PLUG)" 365a7f7f624SMasahiro Yamada help 366c3059be1SShriram Rajagopalan 367c3059be1SShriram Rajagopalan This queuing discipline allows userspace to plug/unplug a network 368c3059be1SShriram Rajagopalan output queue, using the netlink interface. When it receives an 369c3059be1SShriram Rajagopalan enqueue command it inserts a plug into the outbound queue that 370c3059be1SShriram Rajagopalan causes following packets to enqueue until a dequeue command arrives 371c3059be1SShriram Rajagopalan over netlink, causing the plug to be removed and resuming the normal 372c3059be1SShriram Rajagopalan packet flow. 373c3059be1SShriram Rajagopalan 374c3059be1SShriram Rajagopalan This module also provides a generic "network output buffering" 375c3059be1SShriram Rajagopalan functionality (aka output commit), wherein upon arrival of a dequeue 376c3059be1SShriram Rajagopalan command, only packets up to the first plug are released for delivery. 377c3059be1SShriram Rajagopalan The Remus HA project uses this module to enable speculative execution 378c3059be1SShriram Rajagopalan of virtual machines by allowing the generated network output to be rolled 379c3059be1SShriram Rajagopalan back if needed. 380c3059be1SShriram Rajagopalan 3815d330cddSAndrew Shewmaker For more information, please refer to <http://wiki.xenproject.org/wiki/Remus> 382c3059be1SShriram Rajagopalan 383c3059be1SShriram Rajagopalan Say Y here if you are using this kernel for Xen dom0 and 384c3059be1SShriram Rajagopalan want to protect Xen guests with Remus. 385c3059be1SShriram Rajagopalan 386c3059be1SShriram Rajagopalan To compile this code as a module, choose M here: the 387c3059be1SShriram Rajagopalan module will be called sch_plug. 388c3059be1SShriram Rajagopalan 389dcc68b4dSPetr Machataconfig NET_SCH_ETS 390dcc68b4dSPetr Machata tristate "Enhanced transmission selection scheduler (ETS)" 391dcc68b4dSPetr Machata help 392dcc68b4dSPetr Machata The Enhanced Transmission Selection scheduler is a classful 393dcc68b4dSPetr Machata queuing discipline that merges functionality of PRIO and DRR 394dcc68b4dSPetr Machata qdiscs in one scheduler. ETS makes it easy to configure a set of 395dcc68b4dSPetr Machata strict and bandwidth-sharing bands to implement the transmission 396dcc68b4dSPetr Machata selection described in 802.1Qaz. 397dcc68b4dSPetr Machata 398dcc68b4dSPetr Machata Say Y here if you want to use the ETS packet scheduling 399dcc68b4dSPetr Machata algorithm. 400dcc68b4dSPetr Machata 401dcc68b4dSPetr Machata To compile this driver as a module, choose M here: the module 402dcc68b4dSPetr Machata will be called sch_ets. 403dcc68b4dSPetr Machata 404dcc68b4dSPetr Machata If unsure, say N. 405dcc68b4dSPetr Machata 4068ea3e439Sstephen hemmingermenuconfig NET_SCH_DEFAULT 4078ea3e439Sstephen hemminger bool "Allow override default queue discipline" 408a7f7f624SMasahiro Yamada help 4098ea3e439Sstephen hemminger Support for selection of default queuing discipline. 4108ea3e439Sstephen hemminger 4118ea3e439Sstephen hemminger Nearly all users can safely say no here, and the default 4128ea3e439Sstephen hemminger of pfifo_fast will be used. Many distributions already set 4138ea3e439Sstephen hemminger the default value via /proc/sys/net/core/default_qdisc. 4148ea3e439Sstephen hemminger 4158ea3e439Sstephen hemminger If unsure, say N. 4168ea3e439Sstephen hemminger 4178ea3e439Sstephen hemmingerif NET_SCH_DEFAULT 4188ea3e439Sstephen hemminger 4198ea3e439Sstephen hemmingerchoice 4208ea3e439Sstephen hemminger prompt "Default queuing discipline" 4218ea3e439Sstephen hemminger default DEFAULT_PFIFO_FAST 4228ea3e439Sstephen hemminger help 4238ea3e439Sstephen hemminger Select the queueing discipline that will be used by default 4248ea3e439Sstephen hemminger for all network devices. 4258ea3e439Sstephen hemminger 4268ea3e439Sstephen hemminger config DEFAULT_FQ 4278ea3e439Sstephen hemminger bool "Fair Queue" if NET_SCH_FQ 4288ea3e439Sstephen hemminger 4298ea3e439Sstephen hemminger config DEFAULT_CODEL 4308ea3e439Sstephen hemminger bool "Controlled Delay" if NET_SCH_CODEL 4318ea3e439Sstephen hemminger 4328ea3e439Sstephen hemminger config DEFAULT_FQ_CODEL 4338ea3e439Sstephen hemminger bool "Fair Queue Controlled Delay" if NET_SCH_FQ_CODEL 4348ea3e439Sstephen hemminger 435b97e9d9dSDanny Lin config DEFAULT_FQ_PIE 436b97e9d9dSDanny Lin bool "Flow Queue Proportional Integral controller Enhanced" if NET_SCH_FQ_PIE 437b97e9d9dSDanny Lin 4388ea3e439Sstephen hemminger config DEFAULT_SFQ 4398ea3e439Sstephen hemminger bool "Stochastic Fair Queue" if NET_SCH_SFQ 4408ea3e439Sstephen hemminger 4418ea3e439Sstephen hemminger config DEFAULT_PFIFO_FAST 4428ea3e439Sstephen hemminger bool "Priority FIFO Fast" 4438ea3e439Sstephen hemmingerendchoice 4448ea3e439Sstephen hemminger 4458ea3e439Sstephen hemmingerconfig DEFAULT_NET_SCH 4468ea3e439Sstephen hemminger string 4478ea3e439Sstephen hemminger default "pfifo_fast" if DEFAULT_PFIFO_FAST 4488ea3e439Sstephen hemminger default "fq" if DEFAULT_FQ 4498ea3e439Sstephen hemminger default "fq_codel" if DEFAULT_FQ_CODEL 450b97e9d9dSDanny Lin default "fq_pie" if DEFAULT_FQ_PIE 4518ea3e439Sstephen hemminger default "sfq" if DEFAULT_SFQ 4528ea3e439Sstephen hemminger default "pfifo_fast" 4538ea3e439Sstephen hemmingerendif 4548ea3e439Sstephen hemminger 45552ab4ac2SThomas Grafcomment "Classification" 4561da177e4SLinus Torvalds 4571da177e4SLinus Torvaldsconfig NET_CLS 4586341e62bSChristoph Jaeger bool 4591da177e4SLinus Torvalds 4601da177e4SLinus Torvaldsconfig NET_CLS_BASIC 46152ab4ac2SThomas Graf tristate "Elementary classification (BASIC)" 46252ab4ac2SThomas Graf select NET_CLS 463a7f7f624SMasahiro Yamada help 4641da177e4SLinus Torvalds Say Y here if you want to be able to classify packets using 4651da177e4SLinus Torvalds only extended matches and actions. 4661da177e4SLinus Torvalds 4671da177e4SLinus Torvalds To compile this code as a module, choose M here: the 4681da177e4SLinus Torvalds module will be called cls_basic. 4691da177e4SLinus Torvalds 4701da177e4SLinus Torvaldsconfig NET_CLS_ROUTE4 47152ab4ac2SThomas Graf tristate "Routing decision (ROUTE)" 472034cfe48SRandy Dunlap depends on INET 473c7066f70SPatrick McHardy select IP_ROUTE_CLASSID 47452ab4ac2SThomas Graf select NET_CLS 475a7f7f624SMasahiro Yamada help 47652ab4ac2SThomas Graf If you say Y here, you will be able to classify packets 47752ab4ac2SThomas Graf according to the route table entry they matched. 4781da177e4SLinus Torvalds 4791da177e4SLinus Torvalds To compile this code as a module, choose M here: the 4801da177e4SLinus Torvalds module will be called cls_route. 4811da177e4SLinus Torvalds 4821da177e4SLinus Torvaldsconfig NET_CLS_FW 48352ab4ac2SThomas Graf tristate "Netfilter mark (FW)" 48452ab4ac2SThomas Graf select NET_CLS 485a7f7f624SMasahiro Yamada help 48652ab4ac2SThomas Graf If you say Y here, you will be able to classify packets 48752ab4ac2SThomas Graf according to netfilter/firewall marks. 4881da177e4SLinus Torvalds 4891da177e4SLinus Torvalds To compile this code as a module, choose M here: the 4901da177e4SLinus Torvalds module will be called cls_fw. 4911da177e4SLinus Torvalds 4921da177e4SLinus Torvaldsconfig NET_CLS_U32 49352ab4ac2SThomas Graf tristate "Universal 32bit comparisons w/ hashing (U32)" 49452ab4ac2SThomas Graf select NET_CLS 495a7f7f624SMasahiro Yamada help 4963539c272SMatt LaPlante Say Y here to be able to classify packets using a universal 49752ab4ac2SThomas Graf 32bit pieces based comparison scheme. 4981da177e4SLinus Torvalds 4991da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5001da177e4SLinus Torvalds module will be called cls_u32. 5011da177e4SLinus Torvalds 5021da177e4SLinus Torvaldsconfig CLS_U32_PERF 50352ab4ac2SThomas Graf bool "Performance counters support" 5041da177e4SLinus Torvalds depends on NET_CLS_U32 505a7f7f624SMasahiro Yamada help 50652ab4ac2SThomas Graf Say Y here to make u32 gather additional statistics useful for 50752ab4ac2SThomas Graf fine tuning u32 classifiers. 5081da177e4SLinus Torvalds 5091da177e4SLinus Torvaldsconfig CLS_U32_MARK 51052ab4ac2SThomas Graf bool "Netfilter marks support" 51182e91ffeSThomas Graf depends on NET_CLS_U32 512a7f7f624SMasahiro Yamada help 51352ab4ac2SThomas Graf Say Y here to be able to use netfilter marks as u32 key. 5141da177e4SLinus Torvalds 515e5dfb815SPatrick McHardyconfig NET_CLS_FLOW 516e5dfb815SPatrick McHardy tristate "Flow classifier" 517e5dfb815SPatrick McHardy select NET_CLS 518a7f7f624SMasahiro Yamada help 519e5dfb815SPatrick McHardy If you say Y here, you will be able to classify packets based on 520e5dfb815SPatrick McHardy a configurable combination of packet keys. This is mostly useful 521e5dfb815SPatrick McHardy in combination with SFQ. 522e5dfb815SPatrick McHardy 523e5dfb815SPatrick McHardy To compile this code as a module, choose M here: the 524e5dfb815SPatrick McHardy module will be called cls_flow. 525e5dfb815SPatrick McHardy 526f4009237SThomas Grafconfig NET_CLS_CGROUP 5278e039d84SBen Blum tristate "Control Group Classifier" 528f4009237SThomas Graf select NET_CLS 529fe1217c4SDaniel Borkmann select CGROUP_NET_CLASSID 530f4009237SThomas Graf depends on CGROUPS 531a7f7f624SMasahiro Yamada help 532f4009237SThomas Graf Say Y here if you want to classify packets based on the control 533f4009237SThomas Graf cgroup of their process. 534f4009237SThomas Graf 5358e039d84SBen Blum To compile this code as a module, choose M here: the 5368e039d84SBen Blum module will be called cls_cgroup. 5378e039d84SBen Blum 5387d1d65cbSDaniel Borkmannconfig NET_CLS_BPF 5397d1d65cbSDaniel Borkmann tristate "BPF-based classifier" 5407d1d65cbSDaniel Borkmann select NET_CLS 541a7f7f624SMasahiro Yamada help 5427d1d65cbSDaniel Borkmann If you say Y here, you will be able to classify packets based on 5437d1d65cbSDaniel Borkmann programmable BPF (JIT'ed) filters as an alternative to ematches. 5447d1d65cbSDaniel Borkmann 5457d1d65cbSDaniel Borkmann To compile this code as a module, choose M here: the module will 5467d1d65cbSDaniel Borkmann be called cls_bpf. 5477d1d65cbSDaniel Borkmann 54877b9900eSJiri Pirkoconfig NET_CLS_FLOWER 54977b9900eSJiri Pirko tristate "Flower classifier" 55077b9900eSJiri Pirko select NET_CLS 551a7f7f624SMasahiro Yamada help 55277b9900eSJiri Pirko If you say Y here, you will be able to classify packets based on 55377b9900eSJiri Pirko a configurable combination of packet keys and masks. 55477b9900eSJiri Pirko 55577b9900eSJiri Pirko To compile this code as a module, choose M here: the module will 55677b9900eSJiri Pirko be called cls_flower. 55777b9900eSJiri Pirko 558bf3994d2SJiri Pirkoconfig NET_CLS_MATCHALL 559bf3994d2SJiri Pirko tristate "Match-all classifier" 560bf3994d2SJiri Pirko select NET_CLS 561a7f7f624SMasahiro Yamada help 562bf3994d2SJiri Pirko If you say Y here, you will be able to classify packets based on 563bf3994d2SJiri Pirko nothing. Every packet will match. 564bf3994d2SJiri Pirko 565bf3994d2SJiri Pirko To compile this code as a module, choose M here: the module will 566bf3994d2SJiri Pirko be called cls_matchall. 567bf3994d2SJiri Pirko 5681da177e4SLinus Torvaldsconfig NET_EMATCH 5691da177e4SLinus Torvalds bool "Extended Matches" 57052ab4ac2SThomas Graf select NET_CLS 571a7f7f624SMasahiro Yamada help 5721da177e4SLinus Torvalds Say Y here if you want to use extended matches on top of classifiers 5731da177e4SLinus Torvalds and select the extended matches below. 5741da177e4SLinus Torvalds 5751da177e4SLinus Torvalds Extended matches are small classification helpers not worth writing 57652ab4ac2SThomas Graf a separate classifier for. 5771da177e4SLinus Torvalds 57852ab4ac2SThomas Graf A recent version of the iproute2 package is required to use 5791da177e4SLinus Torvalds extended matches. 5801da177e4SLinus Torvalds 5811da177e4SLinus Torvaldsconfig NET_EMATCH_STACK 5821da177e4SLinus Torvalds int "Stack size" 5831da177e4SLinus Torvalds depends on NET_EMATCH 5841da177e4SLinus Torvalds default "32" 585a7f7f624SMasahiro Yamada help 5861da177e4SLinus Torvalds Size of the local stack variable used while evaluating the tree of 5871da177e4SLinus Torvalds ematches. Limits the depth of the tree, i.e. the number of 588b824979aSThomas Graf encapsulated precedences. Every level requires 4 bytes of additional 5891da177e4SLinus Torvalds stack space. 5901da177e4SLinus Torvalds 5911da177e4SLinus Torvaldsconfig NET_EMATCH_CMP 5921da177e4SLinus Torvalds tristate "Simple packet data comparison" 5931da177e4SLinus Torvalds depends on NET_EMATCH 594a7f7f624SMasahiro Yamada help 5951da177e4SLinus Torvalds Say Y here if you want to be able to classify packets based on 5961da177e4SLinus Torvalds simple packet data comparisons for 8, 16, and 32bit values. 5971da177e4SLinus Torvalds 5981da177e4SLinus Torvalds To compile this code as a module, choose M here: the 5991da177e4SLinus Torvalds module will be called em_cmp. 6001da177e4SLinus Torvalds 6011da177e4SLinus Torvaldsconfig NET_EMATCH_NBYTE 6021da177e4SLinus Torvalds tristate "Multi byte comparison" 6031da177e4SLinus Torvalds depends on NET_EMATCH 604a7f7f624SMasahiro Yamada help 6051da177e4SLinus Torvalds Say Y here if you want to be able to classify packets based on 6061da177e4SLinus Torvalds multiple byte comparisons mainly useful for IPv6 address comparisons. 6071da177e4SLinus Torvalds 6081da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6091da177e4SLinus Torvalds module will be called em_nbyte. 6101da177e4SLinus Torvalds 6111da177e4SLinus Torvaldsconfig NET_EMATCH_U32 61252ab4ac2SThomas Graf tristate "U32 key" 6131da177e4SLinus Torvalds depends on NET_EMATCH 614a7f7f624SMasahiro Yamada help 6151da177e4SLinus Torvalds Say Y here if you want to be able to classify packets using 6161da177e4SLinus Torvalds the famous u32 key in combination with logic relations. 6171da177e4SLinus Torvalds 6181da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6191da177e4SLinus Torvalds module will be called em_u32. 6201da177e4SLinus Torvalds 6211da177e4SLinus Torvaldsconfig NET_EMATCH_META 6221da177e4SLinus Torvalds tristate "Metadata" 6231da177e4SLinus Torvalds depends on NET_EMATCH 624a7f7f624SMasahiro Yamada help 625bb7e8c5aSAdrian Bunk Say Y here if you want to be able to classify packets based on 6261da177e4SLinus Torvalds metadata such as load average, netfilter attributes, socket 6271da177e4SLinus Torvalds attributes and routing decisions. 6281da177e4SLinus Torvalds 6291da177e4SLinus Torvalds To compile this code as a module, choose M here: the 6301da177e4SLinus Torvalds module will be called em_meta. 6311da177e4SLinus Torvalds 632d675c989SThomas Grafconfig NET_EMATCH_TEXT 633d675c989SThomas Graf tristate "Textsearch" 634d675c989SThomas Graf depends on NET_EMATCH 635f2d368faSDavid S. Miller select TEXTSEARCH 636f7704347SDavid S. Miller select TEXTSEARCH_KMP 63729cb9f9cSDavid S. Miller select TEXTSEARCH_BM 638f7704347SDavid S. Miller select TEXTSEARCH_FSM 639a7f7f624SMasahiro Yamada help 64052ab4ac2SThomas Graf Say Y here if you want to be able to classify packets based on 641f7704347SDavid S. Miller textsearch comparisons. 642d675c989SThomas Graf 643d675c989SThomas Graf To compile this code as a module, choose M here: the 644d675c989SThomas Graf module will be called em_text. 645d675c989SThomas Graf 646f057bbb6SRostislav Lisovyconfig NET_EMATCH_CANID 647f057bbb6SRostislav Lisovy tristate "CAN Identifier" 648a303fbf3SMarc Kleine-Budde depends on NET_EMATCH && (CAN=y || CAN=m) 649a7f7f624SMasahiro Yamada help 650f057bbb6SRostislav Lisovy Say Y here if you want to be able to classify CAN frames based 651f057bbb6SRostislav Lisovy on CAN Identifier. 652f057bbb6SRostislav Lisovy 653f057bbb6SRostislav Lisovy To compile this code as a module, choose M here: the 654f057bbb6SRostislav Lisovy module will be called em_canid. 655f057bbb6SRostislav Lisovy 6566d4fa852SFlorian Westphalconfig NET_EMATCH_IPSET 6576d4fa852SFlorian Westphal tristate "IPset" 6586d4fa852SFlorian Westphal depends on NET_EMATCH && IP_SET 659a7f7f624SMasahiro Yamada help 6606d4fa852SFlorian Westphal Say Y here if you want to be able to classify packets based on 6616d4fa852SFlorian Westphal ipset membership. 6626d4fa852SFlorian Westphal 6636d4fa852SFlorian Westphal To compile this code as a module, choose M here: the 6646d4fa852SFlorian Westphal module will be called em_ipset. 6656d4fa852SFlorian Westphal 666ccc007e4SEyal Birgerconfig NET_EMATCH_IPT 667ccc007e4SEyal Birger tristate "IPtables Matches" 668ccc007e4SEyal Birger depends on NET_EMATCH && NETFILTER && NETFILTER_XTABLES 669a7f7f624SMasahiro Yamada help 670ccc007e4SEyal Birger Say Y here to be able to classify packets based on iptables 671ccc007e4SEyal Birger matches. 672ccc007e4SEyal Birger Current supported match is "policy" which allows packet classification 673ccc007e4SEyal Birger based on IPsec policy that was used during decapsulation 674ccc007e4SEyal Birger 675ccc007e4SEyal Birger To compile this code as a module, choose M here: the 676ccc007e4SEyal Birger module will be called em_ipt. 677ccc007e4SEyal Birger 6781da177e4SLinus Torvaldsconfig NET_CLS_ACT 67952ab4ac2SThomas Graf bool "Actions" 6808ec1507dSJiri Pirko select NET_CLS 681*e420bed0SDaniel Borkmann select NET_XGRESS 682a7f7f624SMasahiro Yamada help 68352ab4ac2SThomas Graf Say Y here if you want to use traffic control actions. Actions 68452ab4ac2SThomas Graf get attached to classifiers and are invoked after a successful 68552ab4ac2SThomas Graf classification. They are used to overwrite the classification 68652ab4ac2SThomas Graf result, instantly drop or redirect packets, etc. 68752ab4ac2SThomas Graf 68852ab4ac2SThomas Graf A recent version of the iproute2 package is required to use 68952ab4ac2SThomas Graf extended matches. 6901da177e4SLinus Torvalds 6911da177e4SLinus Torvaldsconfig NET_ACT_POLICE 69252ab4ac2SThomas Graf tristate "Traffic Policing" 6931da177e4SLinus Torvalds depends on NET_CLS_ACT 694a7f7f624SMasahiro Yamada help 69552ab4ac2SThomas Graf Say Y here if you want to do traffic policing, i.e. strict 69652ab4ac2SThomas Graf bandwidth limiting. This action replaces the existing policing 69752ab4ac2SThomas Graf module. 69852ab4ac2SThomas Graf 69952ab4ac2SThomas Graf To compile this code as a module, choose M here: the 700d4ae20b3SJan Luebbe module will be called act_police. 7011da177e4SLinus Torvalds 7021da177e4SLinus Torvaldsconfig NET_ACT_GACT 70352ab4ac2SThomas Graf tristate "Generic actions" 7041da177e4SLinus Torvalds depends on NET_CLS_ACT 705a7f7f624SMasahiro Yamada help 70652ab4ac2SThomas Graf Say Y here to take generic actions such as dropping and 70752ab4ac2SThomas Graf accepting packets. 70852ab4ac2SThomas Graf 70952ab4ac2SThomas Graf To compile this code as a module, choose M here: the 710d4ae20b3SJan Luebbe module will be called act_gact. 7111da177e4SLinus Torvalds 7121da177e4SLinus Torvaldsconfig GACT_PROB 71352ab4ac2SThomas Graf bool "Probability support" 7141da177e4SLinus Torvalds depends on NET_ACT_GACT 715a7f7f624SMasahiro Yamada help 71652ab4ac2SThomas Graf Say Y here to use the generic action randomly or deterministically. 7171da177e4SLinus Torvalds 7181da177e4SLinus Torvaldsconfig NET_ACT_MIRRED 71952ab4ac2SThomas Graf tristate "Redirecting and Mirroring" 7201da177e4SLinus Torvalds depends on NET_CLS_ACT 721a7f7f624SMasahiro Yamada help 72252ab4ac2SThomas Graf Say Y here to allow packets to be mirrored or redirected to 72352ab4ac2SThomas Graf other devices. 72452ab4ac2SThomas Graf 72552ab4ac2SThomas Graf To compile this code as a module, choose M here: the 726d4ae20b3SJan Luebbe module will be called act_mirred. 7271da177e4SLinus Torvalds 7285c5670faSYotam Gigiconfig NET_ACT_SAMPLE 7295c5670faSYotam Gigi tristate "Traffic Sampling" 7305c5670faSYotam Gigi depends on NET_CLS_ACT 7315c5670faSYotam Gigi select PSAMPLE 732a7f7f624SMasahiro Yamada help 7335c5670faSYotam Gigi Say Y here to allow packet sampling tc action. The packet sample 7345c5670faSYotam Gigi action consists of statistically choosing packets and sampling 7355c5670faSYotam Gigi them using the psample module. 7365c5670faSYotam Gigi 7375c5670faSYotam Gigi To compile this code as a module, choose M here: the 7385c5670faSYotam Gigi module will be called act_sample. 7395c5670faSYotam Gigi 7401da177e4SLinus Torvaldsconfig NET_ACT_IPT 74152ab4ac2SThomas Graf tristate "IPtables targets" 742102e2c07SPablo Neira Ayuso depends on NET_CLS_ACT && NETFILTER && NETFILTER_XTABLES 743a7f7f624SMasahiro Yamada help 7443539c272SMatt LaPlante Say Y here to be able to invoke iptables targets after successful 74552ab4ac2SThomas Graf classification. 74652ab4ac2SThomas Graf 74752ab4ac2SThomas Graf To compile this code as a module, choose M here: the 748d4ae20b3SJan Luebbe module will be called act_ipt. 7491da177e4SLinus Torvalds 750b4219952SHerbert Xuconfig NET_ACT_NAT 751b4219952SHerbert Xu tristate "Stateless NAT" 752b4219952SHerbert Xu depends on NET_CLS_ACT 753a7f7f624SMasahiro Yamada help 754b4219952SHerbert Xu Say Y here to do stateless NAT on IPv4 packets. You should use 755b4219952SHerbert Xu netfilter for NAT unless you know what you are doing. 756b4219952SHerbert Xu 757b4219952SHerbert Xu To compile this code as a module, choose M here: the 758d4ae20b3SJan Luebbe module will be called act_nat. 759b4219952SHerbert Xu 7601da177e4SLinus Torvaldsconfig NET_ACT_PEDIT 76152ab4ac2SThomas Graf tristate "Packet Editing" 7621da177e4SLinus Torvalds depends on NET_CLS_ACT 763a7f7f624SMasahiro Yamada help 76452ab4ac2SThomas Graf Say Y here if you want to mangle the content of packets. 7651da177e4SLinus Torvalds 76652ab4ac2SThomas Graf To compile this code as a module, choose M here: the 767d4ae20b3SJan Luebbe module will be called act_pedit. 7681da177e4SLinus Torvalds 769db753079SJamal Hadi Salimconfig NET_ACT_SIMP 77052ab4ac2SThomas Graf tristate "Simple Example (Debug)" 771db753079SJamal Hadi Salim depends on NET_CLS_ACT 772a7f7f624SMasahiro Yamada help 77352ab4ac2SThomas Graf Say Y here to add a simple action for demonstration purposes. 77452ab4ac2SThomas Graf It is meant as an example and for debugging purposes. It will 77552ab4ac2SThomas Graf print a configured policy string followed by the packet count 77652ab4ac2SThomas Graf to the console for every packet that passes by. 777db753079SJamal Hadi Salim 77852ab4ac2SThomas Graf If unsure, say N. 77952ab4ac2SThomas Graf 78052ab4ac2SThomas Graf To compile this code as a module, choose M here: the 781d4ae20b3SJan Luebbe module will be called act_simple. 78252ab4ac2SThomas Graf 783ca9b0e27SAlexander Duyckconfig NET_ACT_SKBEDIT 784ca9b0e27SAlexander Duyck tristate "SKB Editing" 785ca9b0e27SAlexander Duyck depends on NET_CLS_ACT 786a7f7f624SMasahiro Yamada help 787ca9b0e27SAlexander Duyck Say Y here to change skb priority or queue_mapping settings. 788ca9b0e27SAlexander Duyck 789ca9b0e27SAlexander Duyck If unsure, say N. 790ca9b0e27SAlexander Duyck 791ca9b0e27SAlexander Duyck To compile this code as a module, choose M here: the 792d4ae20b3SJan Luebbe module will be called act_skbedit. 793ca9b0e27SAlexander Duyck 794eb4d4065SGrégoire Baronconfig NET_ACT_CSUM 795eb4d4065SGrégoire Baron tristate "Checksum Updating" 7967abac686SDavid S. Miller depends on NET_CLS_ACT && INET 797ab9d226eSDavide Caratti select LIBCRC32C 798a7f7f624SMasahiro Yamada help 799eb4d4065SGrégoire Baron Say Y here to update some common checksum after some direct 800eb4d4065SGrégoire Baron packet alterations. 801eb4d4065SGrégoire Baron 802eb4d4065SGrégoire Baron To compile this code as a module, choose M here: the 803eb4d4065SGrégoire Baron module will be called act_csum. 804eb4d4065SGrégoire Baron 8052a2ea508SJohn Hurleyconfig NET_ACT_MPLS 8062a2ea508SJohn Hurley tristate "MPLS manipulation" 8072a2ea508SJohn Hurley depends on NET_CLS_ACT 8082a2ea508SJohn Hurley help 8092a2ea508SJohn Hurley Say Y here to push or pop MPLS headers. 8102a2ea508SJohn Hurley 8112a2ea508SJohn Hurley If unsure, say N. 8122a2ea508SJohn Hurley 8132a2ea508SJohn Hurley To compile this code as a module, choose M here: the 8142a2ea508SJohn Hurley module will be called act_mpls. 8152a2ea508SJohn Hurley 816c7e2b968SJiri Pirkoconfig NET_ACT_VLAN 817c7e2b968SJiri Pirko tristate "Vlan manipulation" 818c7e2b968SJiri Pirko depends on NET_CLS_ACT 819a7f7f624SMasahiro Yamada help 820c7e2b968SJiri Pirko Say Y here to push or pop vlan headers. 821c7e2b968SJiri Pirko 822c7e2b968SJiri Pirko If unsure, say N. 823c7e2b968SJiri Pirko 824c7e2b968SJiri Pirko To compile this code as a module, choose M here: the 825c7e2b968SJiri Pirko module will be called act_vlan. 826c7e2b968SJiri Pirko 827d23b8ad8SJiri Pirkoconfig NET_ACT_BPF 828d23b8ad8SJiri Pirko tristate "BPF based action" 829d23b8ad8SJiri Pirko depends on NET_CLS_ACT 830a7f7f624SMasahiro Yamada help 831d23b8ad8SJiri Pirko Say Y here to execute BPF code on packets. The BPF code will decide 832d23b8ad8SJiri Pirko if the packet should be dropped or not. 833d23b8ad8SJiri Pirko 834d23b8ad8SJiri Pirko If unsure, say N. 835d23b8ad8SJiri Pirko 836d23b8ad8SJiri Pirko To compile this code as a module, choose M here: the 837d23b8ad8SJiri Pirko module will be called act_bpf. 838d23b8ad8SJiri Pirko 83922a5dc0eSFelix Fietkauconfig NET_ACT_CONNMARK 84022a5dc0eSFelix Fietkau tristate "Netfilter Connection Mark Retriever" 841102e2c07SPablo Neira Ayuso depends on NET_CLS_ACT && NETFILTER 8422dbce096SArnd Bergmann depends on NF_CONNTRACK && NF_CONNTRACK_MARK 843a7f7f624SMasahiro Yamada help 84422a5dc0eSFelix Fietkau Say Y here to allow retrieving of conn mark 84522a5dc0eSFelix Fietkau 84622a5dc0eSFelix Fietkau If unsure, say N. 84722a5dc0eSFelix Fietkau 84822a5dc0eSFelix Fietkau To compile this code as a module, choose M here: the 84922a5dc0eSFelix Fietkau module will be called act_connmark. 85022a5dc0eSFelix Fietkau 85124ec483cSKevin 'ldir' Darbyshire-Bryantconfig NET_ACT_CTINFO 85224ec483cSKevin 'ldir' Darbyshire-Bryant tristate "Netfilter Connection Mark Actions" 853102e2c07SPablo Neira Ayuso depends on NET_CLS_ACT && NETFILTER 85424ec483cSKevin 'ldir' Darbyshire-Bryant depends on NF_CONNTRACK && NF_CONNTRACK_MARK 85524ec483cSKevin 'ldir' Darbyshire-Bryant help 85624ec483cSKevin 'ldir' Darbyshire-Bryant Say Y here to allow transfer of a connmark stored information. 85724ec483cSKevin 'ldir' Darbyshire-Bryant Current actions transfer connmark stored DSCP into 85824ec483cSKevin 'ldir' Darbyshire-Bryant ipv4/v6 diffserv and/or to transfer connmark to packet 85924ec483cSKevin 'ldir' Darbyshire-Bryant mark. Both are useful for restoring egress based marks 86024ec483cSKevin 'ldir' Darbyshire-Bryant back onto ingress connections for qdisc priority mapping 86124ec483cSKevin 'ldir' Darbyshire-Bryant purposes. 86224ec483cSKevin 'ldir' Darbyshire-Bryant 86324ec483cSKevin 'ldir' Darbyshire-Bryant If unsure, say N. 86424ec483cSKevin 'ldir' Darbyshire-Bryant 86524ec483cSKevin 'ldir' Darbyshire-Bryant To compile this code as a module, choose M here: the 86624ec483cSKevin 'ldir' Darbyshire-Bryant module will be called act_ctinfo. 86724ec483cSKevin 'ldir' Darbyshire-Bryant 86886da71b5SJamal Hadi Salimconfig NET_ACT_SKBMOD 86986da71b5SJamal Hadi Salim tristate "skb data modification action" 87086da71b5SJamal Hadi Salim depends on NET_CLS_ACT 871a7f7f624SMasahiro Yamada help 87286da71b5SJamal Hadi Salim Say Y here to allow modification of skb data 87386da71b5SJamal Hadi Salim 87486da71b5SJamal Hadi Salim If unsure, say N. 87586da71b5SJamal Hadi Salim 87686da71b5SJamal Hadi Salim To compile this code as a module, choose M here: the 87786da71b5SJamal Hadi Salim module will be called act_skbmod. 87886da71b5SJamal Hadi Salim 879ef6980b6SJamal Hadi Salimconfig NET_ACT_IFE 880ef6980b6SJamal Hadi Salim tristate "Inter-FE action based on IETF ForCES InterFE LFB" 881ef6980b6SJamal Hadi Salim depends on NET_CLS_ACT 882295a6e06SYotam Gigi select NET_IFE 883a7f7f624SMasahiro Yamada help 884ef6980b6SJamal Hadi Salim Say Y here to allow for sourcing and terminating metadata 885ef6980b6SJamal Hadi Salim For details refer to netdev01 paper: 886ef6980b6SJamal Hadi Salim "Distributing Linux Traffic Control Classifier-Action Subsystem" 887ef6980b6SJamal Hadi Salim Authors: Jamal Hadi Salim and Damascene M. Joachimpillai 888ef6980b6SJamal Hadi Salim 889ef6980b6SJamal Hadi Salim To compile this code as a module, choose M here: the 890ef6980b6SJamal Hadi Salim module will be called act_ife. 891ef6980b6SJamal Hadi Salim 892d0f6dd8aSAmir Vadaiconfig NET_ACT_TUNNEL_KEY 893d0f6dd8aSAmir Vadai tristate "IP tunnel metadata manipulation" 894d0f6dd8aSAmir Vadai depends on NET_CLS_ACT 895a7f7f624SMasahiro Yamada help 896d0f6dd8aSAmir Vadai Say Y here to set/release ip tunnel metadata. 897d0f6dd8aSAmir Vadai 898d0f6dd8aSAmir Vadai If unsure, say N. 899d0f6dd8aSAmir Vadai 900d0f6dd8aSAmir Vadai To compile this code as a module, choose M here: the 901d0f6dd8aSAmir Vadai module will be called act_tunnel_key. 902d0f6dd8aSAmir Vadai 903b57dc7c1SPaul Blakeyconfig NET_ACT_CT 904b57dc7c1SPaul Blakey tristate "connection tracking tc action" 9058427fd10SXin Long depends on NET_CLS_ACT && NF_CONNTRACK && (!NF_NAT || NF_NAT) && NF_FLOW_TABLE 906c0c3ab63SXin Long select NF_CONNTRACK_OVS 907ebddb140SXin Long select NF_NAT_OVS if NF_NAT 908b57dc7c1SPaul Blakey help 909b57dc7c1SPaul Blakey Say Y here to allow sending the packets to conntrack module. 910b57dc7c1SPaul Blakey 911b57dc7c1SPaul Blakey If unsure, say N. 912b57dc7c1SPaul Blakey 913b57dc7c1SPaul Blakey To compile this code as a module, choose M here: the 914b57dc7c1SPaul Blakey module will be called act_ct. 915b57dc7c1SPaul Blakey 916a51c328dSPo Liuconfig NET_ACT_GATE 917a51c328dSPo Liu tristate "Frame gate entry list control tc action" 918a51c328dSPo Liu depends on NET_CLS_ACT 919a51c328dSPo Liu help 920a51c328dSPo Liu Say Y here to allow to control the ingress flow to be passed at 921a51c328dSPo Liu specific time slot and be dropped at other specific time slot by 922a51c328dSPo Liu the gate entry list. 923a51c328dSPo Liu 924a51c328dSPo Liu If unsure, say N. 925a51c328dSPo Liu To compile this code as a module, choose M here: the 926a51c328dSPo Liu module will be called act_gate. 927a51c328dSPo Liu 928084e2f65SJamal Hadi Salimconfig NET_IFE_SKBMARK 929084e2f65SJamal Hadi Salim tristate "Support to encoding decoding skb mark on IFE action" 930084e2f65SJamal Hadi Salim depends on NET_ACT_IFE 931084e2f65SJamal Hadi Salim 932200e10f4SJamal Hadi Salimconfig NET_IFE_SKBPRIO 933200e10f4SJamal Hadi Salim tristate "Support to encoding decoding skb prio on IFE action" 934200e10f4SJamal Hadi Salim depends on NET_ACT_IFE 935200e10f4SJamal Hadi Salim 936408fbc22SJamal Hadi Salimconfig NET_IFE_SKBTCINDEX 937408fbc22SJamal Hadi Salim tristate "Support to encoding decoding skb tcindex on IFE action" 938408fbc22SJamal Hadi Salim depends on NET_ACT_IFE 939408fbc22SJamal Hadi Salim 94095a7233cSPaul Blakeyconfig NET_TC_SKB_EXT 94195a7233cSPaul Blakey bool "TC recirculation support" 94295a7233cSPaul Blakey depends on NET_CLS_ACT 94395a7233cSPaul Blakey select SKB_EXTENSIONS 94495a7233cSPaul Blakey 94595a7233cSPaul Blakey help 94695a7233cSPaul Blakey Say Y here to allow tc chain misses to continue in OvS datapath in 94795a7233cSPaul Blakey the correct recirc_id, and hardware chain misses to continue in 94895a7233cSPaul Blakey the correct chain in tc software datapath. 94995a7233cSPaul Blakey 95095a7233cSPaul Blakey Say N here if you won't be using tc<->ovs offload or tc chains offload. 95195a7233cSPaul Blakey 95205b8b0faSRoman Zippelendif # NET_SCHED 95305b8b0faSRoman Zippel 95485ef3e5cSRandy Dunlapconfig NET_SCH_FIFO 95585ef3e5cSRandy Dunlap bool 956