[yz@bogon yz]$ tc -s class show dev enp0s8 # 显示 class htb 10:1 root prio 0 rate 10Mbit ceil 10Mbit burst 1600b cburst 1600b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0 tokens: 20000 ctokens: ...
[yz@bogon yz]$ tc -s class show dev enp0s8 # 显示 class htb 10:1 root prio 0 rate 10Mbit ceil 10Mbit burst 1600b cburst 1600b Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0 tokens: 20000 ctokens: ...
u32 prio; int refcnt; unsigned int divisor; struct idr handle_idr; bool is_root; struct rcu_head rcu; u32 flags; /* The 'ht' field MUST be the last field in structure to allow for * more entries allocated at end of structure.*...
+[yz@bogon yz]$ sudo tc filter add dev enp0s8 parent 10: protocol ip prio 10 handle 1: cgroup # 需要root权限 +[yz@bogon yz]$ tc -s filter show dev enp0s8 # 显示 +filter parent 10: protocol ip pref 10 cgroup ...