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
- 固定头: