Family tc netlink 規範¶
概要¶
用於透過 rtnetlink 進行 tc qdisc、鏈、類和過濾器配置的 Netlink 原始族。
操作¶
newqdisc¶
建立新的 tc qdisc。
delqdisc¶
刪除現有 tc qdisc。
getqdisc¶
獲取/轉儲 tc qdisc 資訊。
newtclass¶
獲取/轉儲 tc 流量類資訊。
deltclass¶
獲取/轉儲 tc 流量類資訊。
gettclass¶
獲取/轉儲 tc 流量類資訊。
newtfilter¶
獲取/轉儲 tc 過濾器資訊。
deltfilter¶
獲取/轉儲 tc 過濾器資訊。
gettfilter¶
獲取/轉儲 tc 過濾器資訊。
newchain¶
獲取/轉儲 tc 鏈資訊。
delchain¶
獲取/轉儲 tc 鏈資訊。
getchain¶
獲取/轉儲 tc 鏈資訊。
多播組¶
rtnlgrp-tc
定義¶
tcmsg¶
- 型別:
結構體
- 標頭檔案:
linux/rtnetlink.h
- 成員:
- family (
u8): - ifindex (
s32): - handle (
u32): - parent (
u32): - info (
u32):
- family (
cls-flags¶
- 列舉名稱:
無
- 型別:
標誌
- 條目:
skip-hwskip-swin-hwnot-in-nwverbose
flower-key-ctrl-flags¶
- 名稱字首:
tca-flower-key-flags-
- 列舉名稱:
無
- 型別:
標誌
- 條目:
fragfirstfragtuncsumtundftunoamtuncrit
tc-stats¶
- 型別:
結構體
- 成員:
- bytes (
u64): 排隊位元組數
- packets (
u32): 排隊資料包數
- drops (
u32): 因資源不足而丟棄的資料包
- overlimits (
u32): 當此流超出分配頻寬時節流事件的數量
- bps (
u32): 當前流位元組速率
- pps (
u32): 當前流資料包速率
- qlen (
u32): - backlog (
u32):
- bytes (
tc-cbs-qopt¶
- 型別:
結構體
- 成員:
- offload (
u8): - hicredit (
s32): - locredit (
s32): - idleslope (
s32): - sendslope (
s32):
- offload (
tc-etf-qopt¶
- 型別:
結構體
- 成員:
- delta (
s32): - clockid (
s32): - flags (
s32):
- delta (
tc-fifo-qopt¶
- 型別:
結構體
- 成員:
- limit (
u32): 佇列長度;bfifo 為位元組數,pfifo 為資料包數
- limit (
tc-htb-opt¶
- 型別:
結構體
- 成員:
- rate (
binary): - ceil (
binary): - buffer (
u32): - cbuffer (
u32): - quantum (
u32): - level (
u32): - prio (
u32):
- rate (
tc-htb-glob¶
- 型別:
結構體
- 成員:
- version (
u32): - rate2quantum (
u32): bps 到 quantum 的除數
- defcls (
u32): 預設類編號
- debug (
u32): 除錯標誌
- direct-pkts (
u32): 未整形資料包計數
- version (
tc-gred-qopt¶
- 型別:
結構體
- 成員:
- limit (
u32): 硬性最大佇列長度(位元組)
- qth-min (
u32): 最小平均長度閾值(位元組)
- qth-max (
u32): 最大平均長度閾值(位元組)
- DP (
u32): 多達 2^32 DP
- backlog (
u32): - qave (
u32): - forced (
u32): - early (
u32): - other (
u32): - pdrop (
u32): - Wlog (
u8): log(W)
- Plog (
u8): log(P_max / (qth-max - qth-min))
- Scell-log (
u8): 用於空閒阻尼的單元格大小
- prio (
u8): 此 VQ 的優先順序
- packets (
u32): - bytesin (
u32):
- limit (
tc-gred-sopt¶
- 型別:
結構體
- 成員:
- DPs (
u32): - def-DP (
u32): - grio (
u8): - flags (
u8):
- DPs (
tc-hfsc-qopt¶
- 型別:
結構體
- 成員:
- defcls (
u16):
- defcls (
tc-mqprio-qopt¶
- 型別:
結構體
- 成員:
- num-tc (
u8): - prio-tc-map (
binary): - hw (
u8): - count (
binary): - offset (
binary):
- num-tc (
tc-multiq-qopt¶
- 型別:
結構體
- 成員:
- bands (
u16): 頻段數
- max-bands (
u16): 最大佇列數
- bands (
tc-netem-qopt¶
- 型別:
結構體
- 成員:
- latency (
u32): 新增的延遲(微秒)
- limit (
u32): Fifo 資料包限制
- loss (
u32): 隨機資料包丟失(0=無,~0=100%)
- gap (
u32): 重排序間隔(0 表示無)
- duplicate (
u32): 隨機資料包重複(0=無,~0=100%)
- jitter (
u32): 隨機抖動延遲(微秒)
- latency (
tc-netem-gimodel¶
- 文件:
4 狀態模型的狀態轉移機率
- 型別:
結構體
- 成員:
- p13 (
u32): - p31 (
u32): - p32 (
u32): - p14 (
u32): - p23 (
u32):
- p13 (
tc-netem-gemodel¶
- 文件:
Gilbert-Elliot 模型
- 型別:
結構體
- 成員:
- p (
u32): - r (
u32): - h (
u32): - k1 (
u32):
- p (
tc-netem-corr¶
- 型別:
結構體
- 成員:
- delay-corr (
u32): 延遲相關性
- loss-corr (
u32): 資料包丟失相關性
- dup-corr (
u32): 重複相關性
- delay-corr (
tc-netem-reorder¶
- 型別:
結構體
- 成員:
- probability (
u32): - correlation (
u32):
- probability (
tc-netem-corrupt¶
- 型別:
結構體
- 成員:
- probability (
u32): - correlation (
u32):
- probability (
tc-netem-rate¶
- 型別:
結構體
- 成員:
- rate (
u32): - packet-overhead (
s32): - cell-size (
u32): - cell-overhead (
s32):
- rate (
tc-netem-slot¶
- 型別:
結構體
- 成員:
- min-delay (
s64): - max-delay (
s64): - max-packets (
s32): - max-bytes (
s32): - dist-delay (
s64): - dist-jitter (
s64):
- min-delay (
tc-plug-qopt¶
- 型別:
結構體
- 成員:
- action (
s32): - limit (
u32):
- action (
tc-prio-qopt¶
- 型別:
結構體
- 成員:
- bands (
u32): 頻段數
- priomap (
binary): 邏輯優先順序到 PRIO 頻段的對映
- bands (
tc-red-qopt¶
- 型別:
結構體
- 成員:
- limit (
u32): 硬性佇列長度(資料包)
- qth-min (
u32): 最小平均閾值(資料包)
- qth-max (
u32): 最大平均閾值(資料包)
- Wlog (
u8): log(W)
- Plog (
u8): log(P_max / (qth-max - qth-min))
- Scell-log (
u8): 用於空閒阻尼的單元格大小
- flags (
u8):
- limit (
tc-sfb-qopt¶
- 型別:
結構體
- 成員:
- rehash-interval (
u32): - warmup-time (
u32): - max (
u32): - bin-size (
u32): - increment (
u32): - decrement (
u32): - limit (
u32): - penalty-rate (
u32): - penalty-burst (
u32):
- rehash-interval (
tc-sfq-qopt¶
- 型別:
結構體
- 成員:
- quantum (
u32): 分配給流的每輪位元組數
- perturb-period (
s32): 雜湊擾動週期
- limit (
u32): 佇列中最大資料包數
- divisor (
u32): 雜湊除數
- flows (
u32): 最大流數
- quantum (
tc-sfqred-stats¶
- 型別:
結構體
- 成員:
- prob-drop (
u32): 早期丟棄,低於最大閾值
- forced-drop (
u32): 早期丟棄,超過最大閾值
- prob-mark (
u32): 標記資料包,低於最大閾值
- forced-mark (
u32): 標記資料包,超過最大閾值
- prob-mark-head (
u32): 標記資料包,低於最大閾值
- forced-mark-head (
u32): 標記資料包,超過最大閾值
- prob-drop (
tc-sfq-qopt-v1¶
- 型別:
結構體
- 成員:
- v0 (
binary): - depth (
u32): 每個流的最大資料包數
- headdrop (
u32): - limit (
u32): 硬性最大流佇列長度(位元組)
- qth-min (
u32): 最小平均長度閾值(位元組)
- qth-max (
u32): 最大平均長度閾值(位元組)
- Wlog (
u8): log(W)
- Plog (
u8): log(P_max / (qth-max - qth-min))
- Scell-log (
u8): 用於空閒阻尼的單元格大小
- flags (
u8): - max-P (
u32): 機率,高解析度
- stats (
binary):
- v0 (
tc-ratespec¶
- 型別:
結構體
- 標頭檔案:
linux/pkt_sched.h
- 成員:
- cell-log (
u8): - linklayer (
u8): - overhead (
u8): - cell-align (
u8): - mpu (
u8): - rate (
u32):
- cell-log (
tc-tbf-qopt¶
- 型別:
結構體
- 成員:
- rate (
binary): - peakrate (
binary): - limit (
u32): - buffer (
u32): - mtu (
u32):
- rate (
tc-sizespec¶
- 型別:
結構體
- 成員:
- cell-log (
u8): - size-log (
u8): - cell-align (
s16): - overhead (
s32): - linklayer (
u32): - mpu (
u32): - mtu (
u32): - tsize (
u32):
- cell-log (
gnet-estimator¶
- 型別:
結構體
- 成員:
- interval (
s8): 取樣週期
- ewma-log (
u8): 測量視窗權重的對數()
- interval (
tc-choke-xstats¶
- 型別:
結構體
- 成員:
- early (
u32): 早期丟棄
- pdrop (
u32): 因佇列限制而丟棄
- other (
u32): 因 drop() 呼叫而丟棄
- marked (
u32): 標記資料包
- matched (
u32): 因流匹配而丟棄
- early (
tc-codel-xstats¶
- 型別:
結構體
- 成員:
- maxpacket (
u32): 迄今為止看到的最大資料包
- count (
u32): 自上次進入丟包狀態以來已丟棄的資料包數量
- lastcount (
u32): 進入丟棄狀態時的計數
- ldelay (
u32): 最近出隊資料包看到的佇列內延遲
- drop-next (
s32): 丟棄下一個資料包的時間
- drop-overlimit (
u32): 達到最大 qdisc 資料包限制的次數
- ecn-mark (
u32): 我們已 ECN 標記而非丟棄的資料包數量
- dropping (
u32): 我們是否處於丟棄狀態?
- ce-mark (
u32): 由於 ce-threshold 而標記的 CE 資料包數量
- maxpacket (
tc-fq-codel-xstats¶
- 型別:
結構體
- 成員:
- type (
u32): - maxpacket (
u32): 迄今為止看到的最大資料包
- drop-overlimit (
u32): 達到最大 qdisc 資料包限制的次數
- ecn-mark (
u32): 我們已 ECN 標記而非丟棄的資料包數量
- new-flow-count (
u32): 資料包建立新流的次數
- new-flows-len (
u32): 新列表中流的數量
- old-flows-len (
u32): 舊列表中流的數量
- ce-mark (
u32): 超過 ce-threshold 的資料包
- memory-usage (
u32): 記憶體使用量(位元組)
- drop-overmemory (
u32):
- type (
tc-fq-pie-xstats¶
- 型別:
結構體
- 成員:
- packets-in (
u32): 排隊資料包總數
- dropped (
u32): 因 fq_pie_action 而丟棄的資料包
- overlimit (
u32): 因佇列空間不足而丟棄
- overmemory (
u32): 因佇列記憶體不足而丟棄
- ecn-mark (
u32): 用 ECN 標記的資料包
- new-flow-count (
u32): 資料包建立的新流數量
- new-flows-len (
u32): 新列表中流的數量
- old-flows-len (
u32): 舊列表中流的數量
- memory-usage (
u32): 所有佇列的總記憶體
- packets-in (
tc-fq-qd-stats¶
- 型別:
結構體
- 成員:
- gc-flows (
u64): - highprio-packets (
u64): 已廢棄
- tcp-retrans (
u64): 已廢棄
- throttled (
u64): - flows-plimit (
u64): - pkts-too-long (
u64): - allocation-errors (
u64): - time-next-delayed-flow (
s64): - flows (
u32): - inactive-flows (
u32): - throttled-flows (
u32): - unthrottle-latency-ns (
u32): - ce-mark (
u64): 超過 ce-threshold 的資料包
- horizon-drops (
u64): - horizon-caps (
u64): - fastpath-packets (
u64): - band-drops (
binary): - band-pkt-count (
binary):
- gc-flows (
tc-hhf-xstats¶
- 型別:
結構體
- 成員:
- drop-overlimit (
u32): 達到最大 qdisc 資料包限制的次數
- hh-overlimit (
u32): 達到最大流量命中者的次數
- hh-tot-count (
u32): 迄今捕獲的流量命中者數量
- hh-cur-count (
u32): 當前流量命中者數量
- drop-overlimit (
tc-pie-xstats¶
- 型別:
結構體
- 成員:
- prob (
u64): 當前機率
- delay (
u32): 當前延遲(毫秒)
- avg-dq-rate (
u32): 當前平均 dq 速率(位元/pie-time)
- dq-rate-estimating (
u32): 是否正在計算 avg-dq-rate?
- packets-in (
u32): 排隊資料包總數
- dropped (
u32): 因 pie 動作而丟棄的資料包
- overlimit (
u32): 因佇列空間不足而丟棄
- maxq (
u32): 最大佇列大小
- ecn-mark (
u32): 用 ECN 標記的資料包
- prob (
tc-red-xstats¶
- 型別:
結構體
- 成員:
- early (
u32): 早期丟棄
- pdrop (
u32): 因佇列限制而丟棄
- other (
u32): 因 drop() 呼叫而丟棄
- marked (
u32): 標記資料包
- early (
tc-sfb-xstats¶
- 型別:
結構體
- 成員:
- earlydrop (
u32): - penaltydrop (
u32): - bucketdrop (
u32): - queuedrop (
u32): - childdrop (
u32): 子 qdisc 中的丟棄
- marked (
u32): - maxqlen (
u32): - maxprob (
u32): - avgprob (
u32):
- earlydrop (
tc-sfq-xstats¶
- 型別:
結構體
- 成員:
- allot (
s32):
- allot (
gnet-stats-basic¶
- 型別:
結構體
- 成員:
- bytes (
u64): - packets (
u32):
- bytes (
gnet-stats-rate-est¶
- 型別:
結構體
- 成員:
- bps (
u32): - pps (
u32):
- bps (
gnet-stats-rate-est64¶
- 型別:
結構體
- 成員:
- bps (
u64): - pps (
u64):
- bps (
gnet-stats-queue¶
- 型別:
結構體
- 成員:
- qlen (
u32): - backlog (
u32): - drops (
u32): - requeues (
u32): - overlimits (
u32):
- qlen (
tc-u32-key¶
- 型別:
結構體
- 成員:
- mask (
u32): - val (
u32): - off (
s32): - offmask (
s32):
- mask (
tc-u32-mark¶
- 型別:
結構體
- 成員:
- val (
u32): - mask (
u32): - success (
u32):
- val (
tc-u32-sel¶
- 型別:
結構體
- 成員:
- flags (
u8): - offshift (
u8): - nkeys (
u8): - offmask (
u16): - off (
u16): - offoff (
s16): - hoff (
s16): - hmask (
u32): - keys (
binary):
- flags (
tc-u32-pcnt¶
- 型別:
結構體
- 成員:
- rcnt (
u64): - rhit (
u64): - kcnts (
u64):
- rcnt (
tcf-t¶
- 型別:
結構體
- 成員:
- install (
u64): - lastuse (
u64): - expires (
u64): - firstuse (
u64):
- install (
tc-gact¶
- 型別:
結構體
- 成員:
- index (
u32): - capab (
u32): - action (
s32): - refcnt (
s32): - bindcnt (
s32):
- index (
tc-gact-p¶
- 型別:
結構體
- 成員:
- ptype (
u16): - pval (
u16): - paction (
s32):
- ptype (
tcf-ematch-tree-hdr¶
- 型別:
結構體
- 成員:
- nmatches (
u16): - progid (
u16):
- nmatches (
tc-basic-pcnt¶
- 型別:
結構體
- 成員:
- rcnt (
u64): - rhit (
u64):
- rcnt (
tc-matchall-pcnt¶
- 型別:
結構體
- 成員:
- rhit (
u64):
- rhit (
tc-mpls¶
- 型別:
結構體
- 成員:
- index (
u32): - capab (
u32): - action (
s32): - refcnt (
s32): - bindcnt (
s32): - m-action (
s32):
- index (
tc-police¶
- 型別:
結構體
- 成員:
- index (
u32): - action (
s32): - limit (
u32): - burst (
u32): - mtu (
u32): - rate (
binary): - peakrate (
binary): - refcnt (
s32): - bindcnt (
s32): - capab (
u32):
- index (
tc-pedit-sel¶
- 型別:
結構體
- 成員:
- index (
u32): - capab (
u32): - action (
s32): - refcnt (
s32): - bindcnt (
s32): - nkeys (
u8): - flags (
u8): - keys (
binary):
- index (
tc-pedit-key¶
- 型別:
結構體
- 成員:
- mask (
u32): - val (
u32): - off (
u32): - at (
u32): - offmask (
u32): - shift (
u32):
- mask (
tc-vlan¶
- 型別:
結構體
- 成員:
- index (
u32): - capab (
u32): - action (
s32): - refcnt (
s32): - bindcnt (
s32): - v-action (
s32):
- index (
屬性集¶
attrs¶
kind (string)¶
options (sub-message)¶
- 子訊息:
- 選擇器:
種類
stats (binary)¶
- 結構體:
xstats (sub-message)¶
- 子訊息:
- 選擇器:
種類
rate (binary)¶
- 結構體:
fcnt (u32)¶
stats2 (nest)¶
- 巢狀屬性:
stab (nest)¶
- 巢狀屬性:
pad (pad)¶
dump-invisible (flag)¶
chain (u32)¶
hw-offload (u8)¶
ingress-block (u32)¶
egress-block (u32)¶
dump-flags (bitfield32)¶
ext-warn-msg (string)¶
act-attrs¶
kind (string)¶
options (sub-message)¶
- 子訊息:
- 選擇器:
種類
index (u32)¶
stats (nest)¶
- 巢狀屬性:
pad (pad)¶
flags (bitfield32)¶
hw-stats (bitfield32)¶
used-hw-stats (bitfield32)¶
in-hw-count (u32)¶
act-bpf-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
ops-len (u16)¶
ops (binary)¶
fd (u32)¶
name (string)¶
pad (pad)¶
tag (binary)¶
id (binary)¶
act-connmark-attrs¶
parms (binary)¶
tm (binary)¶
- 結構體:
pad (pad)¶
act-csum-attrs¶
parms (binary)¶
tm (binary)¶
- 結構體:
pad (pad)¶
act-ct-attrs¶
parms (binary)¶
tm (binary)¶
- 結構體:
action (u16)¶
zone (u16)¶
mark (u32)¶
mark-mask (u32)¶
labels (binary)¶
labels-mask (binary)¶
nat-ipv4-min (u32)¶
- 位元組序:
大端
nat-ipv4-max (u32)¶
- 位元組序:
大端
nat-ipv6-min (binary)¶
nat-ipv6-max (binary)¶
nat-port-min (u16)¶
- 位元組序:
大端
nat-port-max (u16)¶
- 位元組序:
大端
pad (pad)¶
helper-name (string)¶
helper-family (u8)¶
helper-proto (u8)¶
act-ctinfo-attrs¶
pad (pad)¶
tm (binary)¶
- 結構體:
act (binary)¶
zone (u16)¶
parms-dscp-mask (u32)¶
parms-dscp-statemask (u32)¶
parms-cpmark-mask (u32)¶
stats-dscp-set (u64)¶
stats-dscp-error (u64)¶
stats-cpmark-set (u64)¶
act-gate-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
pad (pad)¶
priority (s32)¶
entry-list (binary)¶
base-time (u64)¶
cycle-time (u64)¶
cycle-time-ext (u64)¶
flags (u32)¶
clockid (s32)¶
act-ife-attrs¶
parms (binary)¶
tm (binary)¶
- 結構體:
dmac (binary)¶
smac (binary)¶
type (u16)¶
metalst (binary)¶
pad (pad)¶
act-mirred-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
pad (pad)¶
blockid (binary)¶
act-mpls-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
- 結構體:
pad (pad)¶
proto (u16)¶
- 位元組序:
大端
label (u32)¶
tc (u8)¶
ttl (u8)¶
bos (u8)¶
act-nat-attrs¶
parms (binary)¶
tm (binary)¶
- 結構體:
pad (pad)¶
act-pedit-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
- 結構體:
pad (pad)¶
parms-ex (binary)¶
keys-ex (binary)¶
key-ex (binary)¶
act-simple-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
data (binary)¶
pad (pad)¶
act-skbedit-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
priority (u32)¶
queue-mapping (u16)¶
mark (u32)¶
pad (pad)¶
ptype (u16)¶
mask (u32)¶
flags (u64)¶
queue-mapping-max (u16)¶
act-skbmod-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
dmac (binary)¶
smac (binary)¶
etype (binary)¶
pad (pad)¶
act-tunnel-key-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
enc-ipv4-src (u32)¶
- 位元組序:
大端
enc-ipv4-dst (u32)¶
- 位元組序:
大端
enc-ipv6-src (binary)¶
enc-ipv6-dst (binary)¶
enc-key-id (u64)¶
- 位元組序:
大端
pad (pad)¶
enc-dst-port (u16)¶
- 位元組序:
大端
no-csum (u8)¶
enc-opts (binary)¶
enc-tos (u8)¶
enc-ttl (u8)¶
no-frag (flag)¶
act-vlan-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
- 結構體:
push-vlan-id (u16)¶
push-vlan-protocol (u16)¶
pad (pad)¶
push-vlan-priority (u8)¶
push-eth-dst (binary)¶
push-eth-src (binary)¶
basic-attrs¶
classid (u32)¶
ematches (nest)¶
- 巢狀屬性:
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
police (nest)¶
- 巢狀屬性:
pcnt (binary)¶
- 結構體:
pad (pad)¶
bpf-attrs¶
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
police (nest)¶
- 巢狀屬性:
classid (u32)¶
ops-len (u16)¶
ops (binary)¶
fd (u32)¶
name (string)¶
flags (u32)¶
flags-gen (u32)¶
tag (binary)¶
id (u32)¶
cake-attrs¶
pad (pad)¶
base-rate64 (u64)¶
diffserv-mode (u32)¶
atm (u32)¶
flow-mode (u32)¶
overhead (u32)¶
rtt (u32)¶
target (u32)¶
autorate (u32)¶
memory (u32)¶
nat (u32)¶
raw (u32)¶
wash (u32)¶
mpu (u32)¶
ingress (u32)¶
ack-filter (u32)¶
split-gso (u32)¶
fwmark (u32)¶
cake-stats-attrs¶
pad (pad)¶
capacity-estimate64 (u64)¶
memory-limit (u32)¶
memory-used (u32)¶
avg-netoff (u32)¶
min-netlen (u32)¶
max-netlen (u32)¶
min-adjlen (u32)¶
max-adjlen (u32)¶
tin-stats (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
deficit (s32)¶
cobalt-count (u32)¶
dropping (u32)¶
drop-next-us (s32)¶
p-drop (u32)¶
blue-timer-us (s32)¶
cake-tin-stats-attrs¶
pad (pad)¶
sent-packets (u32)¶
sent-bytes64 (u64)¶
dropped-packets (u32)¶
dropped-bytes64 (u64)¶
acks-dropped-packets (u32)¶
acks-dropped-bytes64 (u64)¶
ecn-marked-packets (u32)¶
ecn-marked-bytes64 (u64)¶
backlog-packets (u32)¶
backlog-bytes (u32)¶
threshold-rate64 (u64)¶
target-us (u32)¶
interval-us (u32)¶
way-indirect-hits (u32)¶
way-misses (u32)¶
way-collisions (u32)¶
peak-delay-us (u32)¶
avg-delay-us (u32)¶
base-delay-us (u32)¶
sparse-flows (u32)¶
bulk-flows (u32)¶
unresponsive-flows (u32)¶
max-skblen (u32)¶
flow-quantum (u32)¶
cbs-attrs¶
parms (binary)¶
- 結構體:
cgroup-attrs¶
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
police (nest)¶
- 巢狀屬性:
ematches (binary)¶
choke-attrs¶
parms (binary)¶
- 結構體:
stab (binary)¶
max-p (u32)¶
codel-attrs¶
target (u32)¶
limit (u32)¶
interval (u32)¶
ecn (u32)¶
ce-threshold (u32)¶
drr-attrs¶
quantum (u32)¶
ematch-attrs¶
tree-hdr (binary)¶
- 結構體:
tree-list (binary)¶
flow-attrs¶
keys (u32)¶
mode (u32)¶
baseclass (u32)¶
rshift (u32)¶
addend (u32)¶
mask (u32)¶
xor (u32)¶
divisor (u32)¶
act (binary)¶
police (nest)¶
- 巢狀屬性:
ematches (binary)¶
perturb (u32)¶
flower-attrs¶
classid (u32)¶
indev (string)¶
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
key-eth-dst (binary)¶
- display-hint:
mac
key-eth-dst-mask (binary)¶
- display-hint:
mac
key-eth-src (binary)¶
- display-hint:
mac
key-eth-src-mask (binary)¶
- display-hint:
mac
key-eth-type (u16)¶
- 位元組序:
大端
key-ip-proto (u8)¶
key-ipv4-src (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-ipv4-src-mask (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-ipv4-dst (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-ipv4-dst-mask (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-ipv6-src (binary)¶
- display-hint:
ipv6
key-ipv6-src-mask (binary)¶
- display-hint:
ipv6
key-ipv6-dst (binary)¶
- display-hint:
ipv6
key-ipv6-dst-mask (binary)¶
- display-hint:
ipv6
key-tcp-src (u16)¶
- 位元組序:
大端
key-tcp-dst (u16)¶
- 位元組序:
大端
key-udp-src (u16)¶
- 位元組序:
大端
key-udp-dst (u16)¶
- 位元組序:
大端
flags (u32)¶
- enum:
- enum-as-flags:
True
key-vlan-id (u16)¶
- 位元組序:
大端
key-vlan-prio (u8)¶
key-vlan-eth-type (u16)¶
- 位元組序:
大端
key-enc-key-id (u32)¶
- 位元組序:
大端
key-enc-ipv4-src (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-enc-ipv4-src-mask (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-enc-ipv4-dst (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-enc-ipv4-dst-mask (u32)¶
- 位元組序:
大端
- display-hint:
ipv4
key-enc-ipv6-src (binary)¶
- display-hint:
ipv6
key-enc-ipv6-src-mask (binary)¶
- display-hint:
ipv6
key-enc-ipv6-dst (binary)¶
- display-hint:
ipv6
key-enc-ipv6-dst-mask (binary)¶
- display-hint:
ipv6
key-tcp-src-mask (u16)¶
- 位元組序:
大端
key-tcp-dst-mask (u16)¶
- 位元組序:
大端
key-udp-src-mask (u16)¶
- 位元組序:
大端
key-udp-dst-mask (u16)¶
- 位元組序:
大端
key-sctp-src-mask (u16)¶
- 位元組序:
大端
key-sctp-dst-mask (u16)¶
- 位元組序:
大端
key-sctp-src (u16)¶
- 位元組序:
大端
key-sctp-dst (u16)¶
- 位元組序:
大端
key-enc-udp-src-port (u16)¶
- 位元組序:
大端
key-enc-udp-src-port-mask (u16)¶
- 位元組序:
大端
key-enc-udp-dst-port (u16)¶
- 位元組序:
大端
key-enc-udp-dst-port-mask (u16)¶
- 位元組序:
大端
key-flags (u32)¶
- 位元組序:
大端
- enum:
- enum-as-flags:
True
key-flags-mask (u32)¶
- 位元組序:
大端
- enum:
- enum-as-flags:
True
key-icmpv4-code (u8)¶
key-icmpv4-code-mask (u8)¶
key-icmpv4-type (u8)¶
key-icmpv4-type-mask (u8)¶
key-icmpv6-code (u8)¶
key-icmpv6-code-mask (u8)¶
key-icmpv6-type (u8)¶
key-icmpv6-type-mask (u8)¶
key-arp-sip (u32)¶
- 位元組序:
大端
key-arp-sip-mask (u32)¶
- 位元組序:
大端
key-arp-tip (u32)¶
- 位元組序:
大端
key-arp-tip-mask (u32)¶
- 位元組序:
大端
key-arp-op (u8)¶
key-arp-op-mask (u8)¶
key-arp-sha (binary)¶
- display-hint:
mac
key-arp-sha-mask (binary)¶
- display-hint:
mac
key-arp-tha (binary)¶
- display-hint:
mac
key-arp-tha-mask (binary)¶
- display-hint:
mac
key-mpls-ttl (u8)¶
key-mpls-bos (u8)¶
key-mpls-tc (u8)¶
key-mpls-label (u32)¶
- 位元組序:
大端
key-tcp-flags (u16)¶
- 位元組序:
大端
key-tcp-flags-mask (u16)¶
- 位元組序:
大端
key-ip-tos (u8)¶
key-ip-tos-mask (u8)¶
key-ip-ttl (u8)¶
key-ip-ttl-mask (u8)¶
key-cvlan-id (u16)¶
- 位元組序:
大端
key-cvlan-prio (u8)¶
key-cvlan-eth-type (u16)¶
- 位元組序:
大端
key-enc-ip-tos (u8)¶
key-enc-ip-tos-mask (u8)¶
key-enc-ip-ttl (u8)¶
key-enc-ip-ttl-mask (u8)¶
key-enc-opts (nest)¶
key-enc-opts-mask (nest)¶
in-hw-count (u32)¶
key-port-src-min (u16)¶
- 位元組序:
大端
key-port-src-max (u16)¶
- 位元組序:
大端
key-port-dst-min (u16)¶
- 位元組序:
大端
key-port-dst-max (u16)¶
- 位元組序:
大端
key-ct-state (u16)¶
key-ct-state-mask (u16)¶
key-ct-zone (u16)¶
key-ct-zone-mask (u16)¶
key-ct-mark (u32)¶
key-ct-mark-mask (u32)¶
key-ct-labels (binary)¶
key-ct-labels-mask (binary)¶
key-mpls-opts (nest)¶
key-hash (u32)¶
key-hash-mask (u32)¶
key-num-of-vlans (u8)¶
key-pppoe-sid (u16)¶
- 位元組序:
大端
key-ppp-proto (u16)¶
- 位元組序:
大端
key-l2tpv3-sid (u32)¶
- 位元組序:
大端
l2-miss (u8)¶
key-cfm (nest)¶
- 巢狀屬性:
key-spi (u32)¶
- 位元組序:
大端
key-spi-mask (u32)¶
- 位元組序:
大端
key-enc-flags (u32)¶
- 位元組序:
大端
- enum:
- enum-as-flags:
True
key-enc-flags-mask (u32)¶
- 位元組序:
大端
- enum:
- enum-as-flags:
True
flower-key-enc-opts-attrs¶
geneve (nest)¶
vxlan (nest)¶
erspan (nest)¶
gtp (nest)¶
flower-key-enc-opt-geneve-attrs¶
class (u16)¶
type (u8)¶
data (binary)¶
flower-key-enc-opt-vxlan-attrs¶
gbp (u32)¶
flower-key-enc-opt-erspan-attrs¶
ver (u8)¶
index (u32)¶
dir (u8)¶
hwid (u8)¶
flower-key-enc-opt-gtp-attrs¶
pdu-type (u8)¶
qfi (u8)¶
flower-key-mpls-opt-attrs¶
lse-depth (u8)¶
lse-ttl (u8)¶
lse-bos (u8)¶
lse-tc (u8)¶
lse-label (u32)¶
flower-key-cfm-attrs¶
md-level (u8)¶
opcode (u8)¶
fw-attrs¶
classid (u32)¶
police (nest)¶
- 巢狀屬性:
indev (string)¶
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
mask (u32)¶
gred-attrs¶
parms (binary)¶
stab (binary)¶
- sub-type:
u8
dps (binary)¶
- 結構體:
max-p (binary)¶
- sub-type:
u32
limit (u32)¶
vq-list (nest)¶
- 巢狀屬性:
tca-gred-vq-list-attrs¶
entry (nest)¶
- 巢狀屬性:
- multi-attr:
True
tca-gred-vq-entry-attrs¶
pad (pad)¶
dp (u32)¶
stat-bytes (u64)¶
stat-packets (u32)¶
stat-backlog (u32)¶
stat-prob-drop (u32)¶
stat-prob-mark (u32)¶
stat-forced-drop (u32)¶
stat-forced-mark (u32)¶
stat-pdrop (u32)¶
stat-other (u32)¶
flags (u32)¶
hfsc-attrs¶
rsc (binary)¶
fsc (binary)¶
usc (binary)¶
hhf-attrs¶
backlog-limit (u32)¶
quantum (u32)¶
hh-flows-limit (u32)¶
reset-timeout (u32)¶
admit-bytes (u32)¶
evict-timeout (u32)¶
non-hh-weight (u32)¶
htb-attrs¶
parms (binary)¶
- 結構體:
init (binary)¶
- 結構體:
ctab (binary)¶
rtab (binary)¶
direct-qlen (u32)¶
rate64 (u64)¶
ceil64 (u64)¶
pad (pad)¶
offload (flag)¶
matchall-attrs¶
classid (u32)¶
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
flags (u32)¶
pcnt (binary)¶
- 結構體:
pad (pad)¶
etf-attrs¶
parms (binary)¶
- 結構體:
ets-attrs¶
nbands (u8)¶
nstrict (u8)¶
quanta (nest)¶
- 巢狀屬性:
quanta-band (u32)¶
- multi-attr:
True
priomap (nest)¶
- 巢狀屬性:
priomap-band (u8)¶
- multi-attr:
True
fq-attrs¶
plimit (u32)¶
- 文件:
佇列中資料包總數的限制
flow-plimit (u32)¶
- 文件:
每個流的資料包限制
quantum (u32)¶
- 文件:
RR 量子
initial-quantum (u32)¶
- 文件:
新流的 RR 量子
rate-enable (u32)¶
- 文件:
啟用/停用速率限制
flow-default-rate (u32)¶
- 文件:
已過時,請勿使用
flow-max-rate (u32)¶
- 文件:
每個流的最大速率
buckets-log (u32)¶
- 文件:
log2(桶的數量)
flow-refill-delay (u32)¶
- 文件:
流信用補充延遲(微秒)
orphan-mask (u32)¶
- 文件:
應用於孤立 skb 雜湊的掩碼
low-rate-threshold (u32)¶
- 文件:
低於此速率的每包延遲
ce-threshold (u32)¶
- 文件:
類 DCTCP 的 CE 標記閾值
timer-slack (u32)¶
horizon (u32)¶
- 文件:
時間範圍(微秒)
horizon-drop (u8)¶
- 文件:
丟棄超出範圍的資料包,或限制其 EDT
priomap (binary)¶
- 結構體:
weights (binary)¶
- sub-type:
s32
- 文件:
每個頻段的權重
fq-codel-attrs¶
target (u32)¶
limit (u32)¶
interval (u32)¶
ecn (u32)¶
flows (u32)¶
quantum (u32)¶
ce-threshold (u32)¶
drop-batch-size (u32)¶
memory-limit (u32)¶
ce-threshold-selector (u8)¶
ce-threshold-mask (u8)¶
fq-pie-attrs¶
limit (u32)¶
flows (u32)¶
target (u32)¶
tupdate (u32)¶
alpha (u32)¶
beta (u32)¶
quantum (u32)¶
memory-limit (u32)¶
ecn-prob (u32)¶
ecn (u32)¶
bytemode (u32)¶
dq-rate-estimator (u32)¶
netem-attrs¶
corr (binary)¶
- 結構體:
delay-dist (binary)¶
- sub-type:
s16
reorder (binary)¶
- 結構體:
corrupt (binary)¶
- 結構體:
loss (nest)¶
- 巢狀屬性:
rate (binary)¶
- 結構體:
ecn (u32)¶
rate64 (u64)¶
pad (u32)¶
latency64 (s64)¶
jitter64 (s64)¶
slot (binary)¶
- 結構體:
slot-dist (binary)¶
- sub-type:
s16
prng-seed (u64)¶
netem-loss-attrs¶
gi (binary)¶
- 文件:
通用直觀 - 4 狀態模型
- 結構體:
ge (binary)¶
- 文件:
吉爾伯特-埃利奧特模型
- 結構體:
pie-attrs¶
target (u32)¶
limit (u32)¶
tupdate (u32)¶
alpha (u32)¶
beta (u32)¶
ecn (u32)¶
bytemode (u32)¶
dq-rate-estimator (u32)¶
police-attrs¶
tbf (binary)¶
- 結構體:
rate (binary)¶
peakrate (binary)¶
avrate (u32)¶
result (u32)¶
tm (binary)¶
- 結構體:
pad (pad)¶
rate64 (u64)¶
peakrate64 (u64)¶
pktrate64 (u64)¶
pktburst64 (u64)¶
qfq-attrs¶
weight (u32)¶
lmax (u32)¶
red-attrs¶
parms (binary)¶
- 結構體:
stab (binary)¶
max-p (u32)¶
flags (bitfield32)¶
early-drop-block (u32)¶
mark-block (u32)¶
route-attrs¶
classid (u32)¶
to (u32)¶
from (u32)¶
iif (u32)¶
police (nest)¶
- 巢狀屬性:
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
taprio-attrs¶
priomap (binary)¶
- 結構體:
sched-entry-list (nest)¶
- 巢狀屬性:
sched-base-time (s64)¶
sched-single-entry (nest)¶
- 巢狀屬性:
sched-clockid (s32)¶
pad (pad)¶
admin-sched (binary)¶
sched-cycle-time (s64)¶
sched-cycle-time-extension (s64)¶
flags (u32)¶
txtime-delay (u32)¶
tc-entry (nest)¶
- 巢狀屬性:
taprio-sched-entry-list¶
entry (nest)¶
- 巢狀屬性:
- multi-attr:
True
taprio-sched-entry¶
index (u32)¶
cmd (u8)¶
gate-mask (u32)¶
interval (u32)¶
taprio-tc-entry-attrs¶
index (u32)¶
max-sdu (u32)¶
fp (u32)¶
tbf-attrs¶
parms (binary)¶
- 結構體:
rtab (binary)¶
ptab (binary)¶
rate64 (u64)¶
prate64 (u64)¶
burst (u32)¶
pburst (u32)¶
pad (pad)¶
act-sample-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
- 結構體:
rate (u32)¶
trunc-size (u32)¶
psample-group (u32)¶
pad (pad)¶
act-gact-attrs¶
tm (binary)¶
- 結構體:
parms (binary)¶
- 結構體:
prob (binary)¶
- 結構體:
pad (pad)¶
tca-stab-attrs¶
base (binary)¶
- 結構體:
data (binary)¶
tca-stats-attrs¶
basic (binary)¶
- 結構體:
rate-est (binary)¶
- 結構體:
queue (binary)¶
- 結構體:
app (sub-message)¶
- 子訊息:
- 選擇器:
種類
rate-est64 (binary)¶
pad (pad)¶
basic-hw (binary)¶
- 結構體:
pkt64 (u64)¶
u32-attrs¶
classid (u32)¶
hash (u32)¶
link (u32)¶
divisor (u32)¶
sel (binary)¶
- 結構體:
police (nest)¶
- 巢狀屬性:
act (indexed-array)¶
- sub-type:
nest
- 巢狀屬性:
indev (string)¶
pcnt (binary)¶
- 結構體:
mark (binary)¶
- 結構體:
flags (u32)¶
pad (pad)¶
子訊息¶
options-msg¶
- basic
- 屬性集:
- bpf
- 屬性集:
- bfifo
- 固定頭:
- cake
- 屬性集:
- cbs
- 屬性集:
- cgroup
- 屬性集:
- choke
- 屬性集:
clsact
- codel
- 屬性集:
- drr
- 屬性集:
- etf
- 屬性集:
- ets
- 屬性集:
- flow
- 屬性集:
- flower
- 屬性集:
- fq
- 屬性集:
- fq_codel
- 屬性集:
- fq_pie
- 屬性集:
- fw
- 屬性集:
- gred
- 屬性集:
- hfsc
- 固定頭:
- hhf
- 屬性集:
- htb
- 屬性集:
ingress
- matchall
- 屬性集:
mq
- mqprio
- 固定頭:
- multiq
- 固定頭:
- netem
- 固定頭:
- 屬性集:
- pfifo
- 固定頭:
- pfifo_fast
- 固定頭:
- pfifo_head_drop
- 固定頭:
- pie
- 屬性集:
- plug
- 固定頭:
- prio
- 固定頭:
- qfq
- 屬性集:
- red
- 屬性集:
- route
- 屬性集:
- sfb
- 固定頭:
- sfq
- 固定頭:
- taprio
- 屬性集:
- tbf
- 屬性集:
- u32
- 屬性集:
act-options-msg¶
- bpf
- 屬性集:
- connmark
- 屬性集:
- csum
- 屬性集:
- ct
- 屬性集:
- ctinfo
- 屬性集:
- gact
- 屬性集:
- gate
- 屬性集:
- ife
- 屬性集:
- mirred
- 屬性集:
- mpls
- 屬性集:
- nat
- 屬性集:
- pedit
- 屬性集:
- police
- 屬性集:
- sample
- 屬性集:
- simple
- 屬性集:
- skbedit
- 屬性集:
- skbmod
- 屬性集:
- tunnel_key
- 屬性集:
- vlan
- 屬性集:
tca-stats-app-msg¶
- cake
- 屬性集:
- choke
- 固定頭:
- codel
- 固定頭:
- fq
- 固定頭:
- fq_codel
- 固定頭:
- fq_pie
- 固定頭:
- hhf
- 固定頭:
- pie
- 固定頭:
- red
- 固定頭:
- sfb
- 固定頭:
- sfq
- 固定頭: