mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-16 14:35:34 +08:00
03b26ef4e8
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
11 lines
588 B
Bash
Executable File
11 lines
588 B
Bash
Executable File
#!/bin/sh
|
|
$TC qdisc del dev $DEV root >/dev/null 2>&1
|
|
$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
|
|
$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded
|
|
$TC qdisc list dev $DEV
|
|
$TC qdisc del dev $DEV root
|
|
$TC qdisc list dev $DEV
|
|
$TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
|
|
$TC class add dev $DEV parent 10:0 classid 10:12 cbq bandwidth 100mbit rate 100mbit allot 1514 prio 3 maxburst 1 avpkt 500 bounded
|
|
$TC qdisc del dev $DEV root
|