Lines Matching refs:DEVICE
54 # - faster initial scanning of DEVICE fields
206 ### Device parameters
208 # DEVICE=<ifname>,<bandwidth>[,<weight>] mandatory
209 # DEVICE=eth0,10Mbit,1Mbit
213 # <bandwidth> is the physical bandwidth of the device, e.g. for
220 # need to set DEVICE=<ifname>.
426 # DEVICE=eth0,10Mbit,1Mbit
434 # device eth0 and the traffic going to network 192.168.1.0 will be
452 # DEVICE=eth1,10Mbit,1Mbit
461 # DEVICE=eth0,10Mbit,1Mbit
500 CBQ_WORDS="DEVICE|RATE|WEIGHT|PRIO|PARENT|LEAF|BOUNDED|ISOLATED"
520 ### Remove root class from device $1
587 ### Gather all DEVICE fields from $1/cbq-*
590 s/[[:space:]]//g; /^DEVICE=[^,]*,[^,]*\(,[^,]*\)\?/ \
593 cbq_failure "no DEVICE field found in $1/cbq-*!"
595 ### Check for different DEVICE fields for the same device
598 cbq_failure "different DEVICE fields for single device!\n$DEVFIELDS"
628 ### Class device
629 DEVICE=${DEVICE%%,*}
630 [ -z "$DEVICE" ] && cbq_fail_off "missing DEVICE field in $2!"
632 BANDWIDTH=`echo "$DEVFIELDS"| sed -n "/^$DEVICE,/ \
735 ### Retrieve device bandwidth and, optionally, weight
740 ### Device bandwidth is required
742 cbq_message "could not determine bandwidth for device $dev!"
743 cbq_failure "please set up the DEVICE fields properly!"
746 ### Check if the device is there
748 cbq_fail_off "device $dev not found!"
750 ### Remove old root qdisc from device
754 ### Setup root qdisc + class for device
771 tc class add dev $DEVICE parent 1:$PARENT classid 1:$CLASS cbq \
774 cbq_fail_off "failed to add class $CLASS with parent $PARENT on $DEVICE!"
778 tc qdisc add dev $DEVICE parent 1:$CLASS handle $CLASS tbf \
781 tc qdisc add dev $DEVICE parent 1:$CLASS handle $CLASS sfq \
789 tc filter add dev $DEVICE parent 1:0 protocol ip \
803 tc filter add dev $DEVICE parent 1:0 protocol ip \
847 tc filter add dev $DEVICE parent 1:0 protocol ip \
918 RATE_NOW=`tc class show dev $DEVICE| sed -n \
945 tc class replace dev $DEVICE classid 1:$CLASS cbq \
951 tc qdisc replace dev $DEVICE handle $CLASS tbf \
955 cbq_message "$TIME_NOW: class $CLASS on $DEVICE changed rate ($RATE_NOW -> $NEW_RATE)"