Family tc
netlink specification¶
Contents
Operations¶
newqdisc¶
Create new tc qdisc.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
kind
,options
,rate
,chain
,ingress-block
,egress-block
]
getqdisc¶
Get / dump tc qdisc information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
dump-invisible
]
- reply
- attributes
[
kind
,options
,stats
,xstats
,rate
,fcnt
,stats2
,stab
,chain
,ingress-block
,egress-block
]
newtclass¶
Get / dump tc traffic class information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
kind
,options
,rate
,chain
,ingress-block
,egress-block
]
deltclass¶
Get / dump tc traffic class information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
request
gettclass¶
Get / dump tc traffic class information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
request
- reply
- attributes
[
kind
,options
,stats
,xstats
,rate
,fcnt
,stats2
,stab
,chain
,ingress-block
,egress-block
]
newtfilter¶
Get / dump tc filter information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
kind
,options
,rate
,chain
,ingress-block
,egress-block
]
deltfilter¶
Get / dump tc filter information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
chain
,kind
]
gettfilter¶
Get / dump tc filter information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
chain
,kind
]
- reply
- attributes
[
kind
,options
,stats
,xstats
,rate
,fcnt
,stats2
,stab
,chain
,ingress-block
,egress-block
]
- dump
- request
- attributes
[
chain
,dump-flags
]
- reply
- attributes
[
kind
,options
,stats
,xstats
,rate
,fcnt
,stats2
,stab
,chain
,ingress-block
,egress-block
]
newchain¶
Get / dump tc chain information.
- attribute-set
tc-attrs
- fixed-header
tcmsg
- do
- request
- attributes
[
kind
,options
,rate
,chain
,ingress-block
,egress-block
]
Multicast groups¶
rtnlgrp-tc
Definitions¶
tc-cls-flags¶
- type
flags
- entries
skip-hw
skip-sw
in-hw
not-in-nw
verbose
tc-cbs-qopt¶
- type
struct
- members
- offload
- pad
- hicredit
- locredit
- idleslope
- sendslope
tc-etf-qopt¶
- type
struct
- members
- delta
- clockid
- flags
tc-fifo-qopt¶
- type
struct
- members
- limit
tc-htb-opt¶
- type
struct
- members
- rate
- ceil
- buffer
- cbuffer
- quantum
- level
- prio
tc-htb-glob¶
- type
struct
- members
- version
- rate2quantum
- defcls
- debug
- direct-pkts
tc-gred-qopt¶
- type
struct
- members
- limit
- qth-min
- qth-max
- DP
- backlog
- qave
- forced
- early
- other
- pdrop
- Wlog
- Plog
- Scell_log
- prio
- packets
- bytesin
tc-gred-sopt¶
- type
struct
- members
- DPs
- def_DP
- grio
- flags
- pad
tc-hfsc-qopt¶
- type
struct
- members
- defcls
tc-mqprio-qopt¶
- type
struct
- members
- num-tc
- prio-tc-map
- hw
- count
- offset
tc-multiq-qopt¶
- type
struct
- members
- bands
- max-bands
tc-netem-qopt¶
- type
struct
- members
- latency
- limit
- loss
- gap
- duplicate
- jitter
tc-plug-qopt¶
- type
struct
- members
- action
- limit
tc-prio-qopt¶
- type
struct
- members
- bands
- priomap
tc-red-qopt¶
- type
struct
- members
- limit
- qth-min
- qth-max
- Wlog
- Plog
- Scell-log
- flags
tc-sfb-qopt¶
- type
struct
- members
- rehash-interval
- warmup-time
- max
- bin-size
- increment
- decrement
- limit
- penalty-rate
- penalty-burst
tc-sfq-qopt-v1¶
- type
struct
- members
- quantum
- perturb-period
- limit
- divisor
- flows
- depth
- headdrop
- limit
- qth-min
- qth-mac
- Wlog
- Plog
- Scell-log
- flags
- max-P
- prob-drop
- forced-drop
- prob-mark
- forced-mark
- prob-mark-head
- forced-mark-head
tc-tbf-qopt¶
- type
struct
- members
- rate
- peakrate
- limit
- buffer
- mtu
tc-sizespec¶
- type
struct
- members
- cell-log
- size-log
- cell-align
- overhead
- linklayer
- mpu
- mtu
- tsize
gnet-estimator¶
- type
struct
- members
- interval
- ewma-log
Attribute sets¶
tc-attrs¶
options (sub-message
)¶
- sub-message
tc-options-msg
- selector
kind
stats (binary
)¶
- struct
tc-stats
rate (binary
)¶
- struct
gnet-estimator
stats2 (nest
)¶
- nested-attributes
tca-stats-attrs
stab (nest
)¶
- nested-attributes
tca-stab-attrs
tc-cbs-attrs¶
parms (binary
)¶
- struct
tc-cbs-qopt
tc-flower-attrs¶
act (array-nest
)¶
- nested-attributes
tc-act-attrs
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
)¶
- byte-order
big-endian
key-ipv4-src (u32
)¶
- byte-order
big-endian
- display-hint
ipv4
key-ipv4-src-mask (u32
)¶
- byte-order
big-endian
- display-hint
ipv4
key-ipv4-dst (u32
)¶
- byte-order
big-endian
- display-hint
ipv4
key-ipv4-dst-mask (u32
)¶
- byte-order
big-endian
- 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
)¶
- byte-order
big-endian
key-tcp-dst (u16
)¶
- byte-order
big-endian
key-udp-src (u16
)¶
- byte-order
big-endian
key-udp-dst (u16
)¶
- byte-order
big-endian
flags (u32
)¶
- enum
tc-cls-flags
- enum-as-flags
True
key-vlan-id (u16
)¶
- byte-order
big-endian
key-vlan-eth-type (u16
)¶
- byte-order
big-endian
key-enc-key-id (u32
)¶
- byte-order
big-endian
key-enc-ipv4-src (u32
)¶
- byte-order
big-endian
- display-hint
ipv4
key-enc-ipv4-src-mask (u32
)¶
- byte-order
big-endian
- display-hint
ipv4
key-enc-ipv4-dst (u32
)¶
- byte-order
big-endian
- display-hint
ipv4
key-enc-ipv4-dst-mask (u32
)¶
- byte-order
big-endian
- 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
)¶
- byte-order
big-endian
key-tcp-dst-mask (u16
)¶
- byte-order
big-endian
key-udp-src-mask (u16
)¶
- byte-order
big-endian
key-udp-dst-mask (u16
)¶
- byte-order
big-endian
key-sctp-src-mask (u16
)¶
- byte-order
big-endian
key-sctp-dst-mask (u16
)¶
- byte-order
big-endian
key-sctp-src (u16
)¶
- byte-order
big-endian
key-sctp-dst (u16
)¶
- byte-order
big-endian
key-enc-udp-src-port (u16
)¶
- byte-order
big-endian
key-enc-udp-src-port-mask (u16
)¶
- byte-order
big-endian
key-enc-udp-dst-port (u16
)¶
- byte-order
big-endian
key-enc-udp-dst-port-mask (u16
)¶
- byte-order
big-endian
key-flags (u32
)¶
- byte-order
big-endian
key-flags-mask (u32
)¶
- byte-order
big-endian
key-arp-sip (u32
)¶
- byte-order
big-endian
key-arp-sip-mask (u32
)¶
- byte-order
big-endian
key-arp-tip (u32
)¶
- byte-order
big-endian
key-arp-tip-mask (u32
)¶
- byte-order
big-endian
key-mpls-label (u32
)¶
- byte-order
big-endian
key-tcp-flags (u16
)¶
- byte-order
big-endian
key-tcp-flags-mask (u16
)¶
- byte-order
big-endian
key-cvlan-id (u16
)¶
- byte-order
big-endian
key-cvlan-eth-type (u16
)¶
- byte-order
big-endian
key-port-src-min (u16
)¶
- byte-order
big-endian
key-port-src-max (u16
)¶
- byte-order
big-endian
key-port-dst-min (u16
)¶
- byte-order
big-endian
key-port-dst-max (u16
)¶
- byte-order
big-endian
key-pppoe-sid (u16
)¶
- byte-order
big-endian
key-ppp-proto (u16
)¶
- byte-order
big-endian
key-l2-tpv3-sid (u32
)¶
- byte-order
big-endian
tc-gred-attrs¶
stab (binary
)¶
- sub-type
u8
dps (binary
)¶
- struct
tc-gred-sopt
max-p (binary
)¶
- sub-type
u32
vq-list (nest
)¶
- nested-attributes
tca-gred-vq-list-attrs
tca-gred-vq-list-attrs¶
entry (nest
)¶
- nested-attributes
tca-gred-vq-entry-attrs
- multi-attr
True
tc-act-attrs¶
options (sub-message
)¶
- sub-message
tc-act-options-msg
- selector
kind
tc-etf-attrs¶
parms (binary
)¶
- struct
tc-etf-qopt
tc-ets-attrs¶
quanta (nest
)¶
- nested-attributes
tc-ets-attrs
quanta-band (u32
)¶
- multi-attr
True
priomap (nest
)¶
- nested-attributes
tc-ets-attrs
priomap-band (u8
)¶
- multi-attr
True
tc-red-attrs¶
parms (binary
)¶
- struct
tc-red-qopt
tc-taprio-attrs¶
priomap (binary
)¶
- struct
tc-mqprio-qopt
sched-entry-list (nest
)¶
- nested-attributes
tc-taprio-sched-entry-list
sched-single-entry (nest
)¶
- nested-attributes
tc-taprio-sched-entry
tc-entry (nest
)¶
- nested-attributes
tc-taprio-tc-entry-attrs
tc-taprio-sched-entry-list¶
entry (nest
)¶
- nested-attributes
tc-taprio-sched-entry
tc-tbf-attrs¶
parms (binary
)¶
- struct
tc-tbf-qopt
tca-stats-attrs¶
app (binary
)¶
- sub-message
tca-stats-app-msg
- selector
kind
Sub-messages¶
tc-options-msg¶
- bfifo
- fixed-header
tc-fifo-qopt
- cake
- attribute-set
tc-cake-attrs
- cbs
- attribute-set
tc-cbs-attrs
- choke
- attribute-set
tc-choke-attrs
clsact
- codel
- attribute-set
tc-codel-attrs
- drr
- attribute-set
tc-drr-attrs
- etf
- attribute-set
tc-etf-attrs
- ets
- attribute-set
tc-ets-attrs
- fq
- attribute-set
tc-fq-attrs
- fq_codel
- attribute-set
tc-fq-codel-attrs
- fq_pie
- attribute-set
tc-fq-pie-attrs
- flower
- attribute-set
tc-flower-attrs
- gred
- attribute-set
tc-gred-attrs
- hfsc
- fixed-header
tc-hfsc-qopt
- hhf
- attribute-set
tc-hhf-attrs
- htb
- attribute-set
tc-htb-attrs
ingress
mq
- mqprio
- fixed-header
tc-mqprio-qopt
- multiq
- fixed-header
tc-multiq-qopt
- netem
- fixed-header
tc-netem-qopt
- attribute-set
tc-netem-attrs
- pfifo
- fixed-header
tc-fifo-qopt
- pfifo_fast
- fixed-header
tc-prio-qopt
- pfifo_head_drop
- fixed-header
tc-fifo-qopt
- pie
- attribute-set
tc-pie-attrs
- plug
- fixed-header
tc-plug-qopt
- prio
- fixed-header
tc-prio-qopt
- qfq
- attribute-set
tc-qfq-attrs
- red
- attribute-set
tc-red-attrs
- sfb
- fixed-header
tc-sfb-qopt
- sfq
- fixed-header
tc-sfq-qopt-v1
- taprio
- attribute-set
tc-taprio-attrs
- tbf
- attribute-set
tc-tbf-attrs
tc-act-options-msg¶
- gact
- attribute-set
tca-gact-attrs
tca-stats-app-msg¶
bfifo
blackhole
- cake
- attribute-set
tc-cake-stats-attrs
cbs
choke
clsact
codel
drr
etf
ets
fq
fq_codel
fq_pie
flower
gred
hfsc
hhf
htb
ingress
mq
mqprio
multiq
netem
noqueue
pfifo
pfifo_fast
pfifo_head_drop
pie
plug
prio
qfq
red
sfb
sfq
taprio
tbf