Lines Matching refs:cbq
3 # cbq.init v0.7.3
8 # description: sets up CBQ-based traffic control
25 # http://freshmeat.net/projects/cbq.init
69 # - added caching to speed up CBQ start, the cache is invalidated
105 # - optional tc & ip command logging (into /var/run/cbq-*)
136 # Just start "cbq.init timecheck" periodically from cron
138 # "cbq.init start" for CBQ to initialize.
147 # First of all - this is just a SIMPLE EXAMPLE of CBQ power.
151 # CBQ-based traffic control on Linux. Access to advanced networking features
166 # configuration is stored in a file (/var/cache/cbq.init by default) which
168 # configuration files. This cache is invalidated whenever any of the CBQ
169 # configuration files changes. If you want to run "cbq.init start" without
170 # caching, run it as "cbq.init start nocache". If you want to force cache
171 # invalidation, run it as "cbq.init start invalidate". Caching is disabled
181 # All CBQ parameters are valid for Ethernet interfaces only, The script was
190 # (/etc/sysconfig/cbq by default) - one file per class.
192 # The config file names must obey mandatory format: cbq-<clsid>.<name> where
194 # is a CBQ class ID) and <name> is the name of the class -- anything to help
200 # cbq-1280.My_first_shaper
250 # structures of CBQ classes. The ordering is important so that parent
255 # Tells the script to attach specified leaf queueing discipline to CBQ
256 # class. By default, TBF is used. Note that attaching TBF to CBQ class
323 # that SFQ does not do any traffic shaping - the shaping is done by the CBQ
422 # Sample configuration file: cbq-1280.My_first_shaper
437 # traffic in both directions, you must set up CBQ for both interfaces.
446 # and traffic in the opposite direction to 128Kbit. You need to setup CBQ
449 # cbq-028.backbone-client
458 # cbq-128.client-backbone
486 CBQ_PATH=${CBQ_PATH:-/etc/sysconfig/cbq}
487 CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}
490 #CBQ_DEBUG="/var/run/cbq-$1"
504 [ -r /etc/sysconfig/cbq/avpkt ] && . /etc/sysconfig/cbq/avpkt
525 ### Remove CBQ from all devices
535 echo -e "**CBQ: $@"
544 ### Failure w/ cbq-off
560 ### Display CBQ setup
581 CLASSLIST=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
586 ### Gather all DEVICE fields from $1/cbq-*
587 DEVFIELDS=`find $1 -maxdepth 1 \( -type f -or -type l \) -name 'cbq-*' \
592 cbq_failure "no DEVICE field found in $1/cbq-*!"
603 CLASS=`echo $2| sed 's/^cbq-0*//; s/^\([0-9a-fA-F]\+\).*/\1/'`
721 cbq_fail_off "failed to compile CBQ configuration!"
754 tc qdisc add dev $dev root handle 1 cbq \
759 tc class change dev $dev root cbq weight $DEVWGHT allot 1514
770 tc class add dev $DEVICE parent 1:$PARENT classid 1:$CLASS cbq \
916 ### Get current RATE of CBQ class
918 "/cbq 1:$CLASS / { s/.*rate //; s/ .*//; p; q; }"`
943 ### Replace CBQ class
944 tc class replace dev $DEVICE classid 1:$CLASS cbq \