Netlink
Single-page view · as markdown
Netlink Family Specifications
Peios Kernel / Internals / Netlink / specs
- Family binder netlink specification
- Family conntrack netlink specification
- Family dev-energymodel netlink specification
- Family devlink netlink specification
- Family dpll netlink specification
- Family ethtool netlink specification
- Family fou netlink specification
- Family handshake netlink specification
- Family lockd netlink specification
- Family mptcp_pm netlink specification
- Family net-shaper netlink specification
- Family netdev netlink specification
- Family nfsd netlink specification
- Family nftables netlink specification
- Family nl80211 netlink specification
- Family nlctrl netlink specification
- Family ovpn netlink specification
- Family ovs_datapath netlink specification
- Family ovs_flow netlink specification
- Family ovs_vport netlink specification
- Family psp netlink specification
- Family rt-addr netlink specification
- Family rt-link netlink specification
- Family rt-neigh netlink specification
- Family rt-route netlink specification
- Family rt-rule netlink specification
- Family tc netlink specification
- Family tcp_metrics netlink specification
- Family team netlink specification
- Family wireguard netlink specification
Family binder netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Binder interface over generic netlink
Operations #
report #
A multicast event sent to userspace subscribers to notify them about binder transaction failures. The generated report provides the full details of the specific transaction that failed. The intention is for programs to monitor these events and react to the failures as needed.
-
attribute-set:
-
mcgrp:
report
-
event:
-
attributes:
[
error,context,from-pid,from-tid,to-pid,to-tid,is-reply,flags,code,data-size]
-
Multicast groups #
- report
Attribute sets #
report #
Attributes included within a transaction failure report. The elements correspond directly with the specific transaction that failed, along with the error returned to the sender e.g. BR_DEAD_REPLY.
error (u32) #
-
doc:
The enum binder_driver_return_protocol returned to the sender.
context (string) #
-
doc:
The binder context where the transaction occurred.
from-pid (u32) #
-
doc:
The PID of the sender process.
from-tid (u32) #
-
doc:
The TID of the sender thread.
to-pid (u32) #
-
doc:
The PID of the recipient process. This attribute may not be present if the target could not be determined.
to-tid (u32) #
-
doc:
The TID of the recipient thread. This attribute may not be present if the target could not be determined.
is-reply (flag) #
-
doc:
When present, indicates the failed transaction is a reply.
flags (u32) #
-
doc:
The bitmask of enum transaction_flags from the transaction.
code (u32) #
-
doc:
The application-defined code from the transaction.
data-size (u32) #
-
doc:
The transaction payload size in bytes.
Family conntrack netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Netfilter connection tracking subsystem over nfnetlink
Operations #
get #
get / dump entries
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
tuple-orig,tuple-reply,zone]
reply
-
attributes:
[
tuple-orig,tuple-reply,status,protoinfo,help,nat-src,nat-dst,timeout,mark,counters-orig,counters-reply,use,id,nat-dst,tuple-master,seq-adj-orig,seq-adj-reply,zone,secctx,labels,synproxy]
-
-
dump:
request
-
attributes:
[
mark,filter,status,zone]
reply
-
attributes:
[
tuple-orig,tuple-reply,status,protoinfo,help,nat-src,nat-dst,timeout,mark,counters-orig,counters-reply,use,id,nat-dst,tuple-master,seq-adj-orig,seq-adj-reply,zone,secctx,labels,synproxy]
-
get-stats #
dump pcpu conntrack stats
-
attribute-set:
-
fixed-header:
-
dump:
request
reply
-
attributes:
[
searched,found,insert,insert-failed,drop,early-drop,error,search-restart,clash-resolve,chain-toolong]
-
Definitions #
nfgenmsg #
-
type:
struct
-
members:
-
nfgen-family (
u8) -
version (
u8) -
res-id (
u16)
-
nf-ct-tcp-flags-mask #
-
type:
struct
-
members:
-
flags (
u8) -
mask (
u8)
-
nf-ct-tcp-flags #
-
type:
flags
-
entries:
-
window-scale -
sack-perm -
close-init -
be-liberal -
unacked -
maxack -
challenge-ack -
simultaneous-open
-
nf-ct-tcp-state #
-
type:
enum
-
entries:
-
none -
syn-sent -
syn-recv -
established -
fin-wait -
close-wait -
last-ack -
time-wait -
close -
syn-sent2 -
max -
ignore -
retrans -
unack -
timeout-max
-
nf-ct-sctp-state #
-
type:
enum
-
entries:
-
none -
cloned -
cookie-wait -
cookie-echoed -
established -
shutdown-sent -
shutdown-received -
shutdown-ack-sent -
shutdown-heartbeat-sent
-
nf-ct-status #
-
type:
flags
-
entries:
-
expected -
seen-reply -
assured -
confirmed -
src-nat -
dst-nat -
seq-adj -
src-nat-done -
dst-nat-done -
dying -
fixed-timeout -
template -
nat-clash -
helper -
offload -
hw-offload
-
Attribute sets #
counter-attrs #
packets (u64) #
-
byte-order:
big-endian
bytes (u64) #
-
byte-order:
big-endian
packets-old (u32) #
bytes-old (u32) #
pad (pad) #
tuple-proto-attrs #
proto-num (u8) #
-
doc:
l4 protocol number
proto-src-port (u16) #
-
byte-order:
big-endian
-
doc:
l4 source port
proto-dst-port (u16) #
-
byte-order:
big-endian
-
doc:
l4 source port
proto-icmp-id (u16) #
-
byte-order:
big-endian
-
doc:
l4 icmp id
proto-icmp-type (u8) #
proto-icmp-code (u8) #
proto-icmpv6-id (u16) #
-
byte-order:
big-endian
-
doc:
l4 icmp id
proto-icmpv6-type (u8) #
proto-icmpv6-code (u8) #
tuple-ip-attrs #
ip-v4-src (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
-
doc:
ipv4 source address
ip-v4-dst (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
-
doc:
ipv4 destination address
ip-v6-src (binary) #
-
byte-order:
big-endian
-
display-hint:
ipv6
-
doc:
ipv6 source address
ip-v6-dst (binary) #
-
byte-order:
big-endian
-
display-hint:
ipv6
-
doc:
ipv6 destination address
tuple-attrs #
tuple-ip (nest) #
-
nested-attributes:
-
doc:
conntrack l3 information
tuple-proto (nest) #
-
nested-attributes:
-
doc:
conntrack l4 information
tuple-zone (u16) #
-
byte-order:
big-endian
-
doc:
conntrack zone id
protoinfo-tcp-attrs #
tcp-state (u8) #
-
enum:
-
doc:
tcp connection state
tcp-wscale-original (u8) #
-
doc:
window scaling factor in original direction
tcp-wscale-reply (u8) #
-
doc:
window scaling factor in reply direction
tcp-flags-original (binary) #
-
struct:
tcp-flags-reply (binary) #
-
struct:
protoinfo-dccp-attrs #
dccp-state (u8) #
-
doc:
dccp connection state
dccp-role (u8) #
dccp-handshake-seq (u64) #
-
byte-order:
big-endian
dccp-pad (pad) #
protoinfo-sctp-attrs #
sctp-state (u8) #
-
doc:
sctp connection state
-
enum:
vtag-original (u32) #
-
byte-order:
big-endian
vtag-reply (u32) #
-
byte-order:
big-endian
protoinfo-attrs #
protoinfo-tcp (nest) #
-
nested-attributes:
-
doc:
conntrack tcp state information
protoinfo-dccp (nest) #
-
nested-attributes:
-
doc:
conntrack dccp state information
protoinfo-sctp (nest) #
-
nested-attributes:
-
doc:
conntrack sctp state information
help-attrs #
help-name (string) #
-
doc:
helper name
nat-proto-attrs #
nat-port-min (u16) #
-
byte-order:
big-endian
nat-port-max (u16) #
-
byte-order:
big-endian
nat-attrs #
nat-v4-minip (u32) #
-
byte-order:
big-endian
nat-v4-maxip (u32) #
-
byte-order:
big-endian
nat-v6-minip (binary) #
nat-v6-maxip (binary) #
nat-proto (nest) #
-
nested-attributes:
seqadj-attrs #
correction-pos (u32) #
-
byte-order:
big-endian
offset-before (u32) #
-
byte-order:
big-endian
offset-after (u32) #
-
byte-order:
big-endian
secctx-attrs #
secctx-name (string) #
synproxy-attrs #
isn (u32) #
-
byte-order:
big-endian
its (u32) #
-
byte-order:
big-endian
tsoff (u32) #
-
byte-order:
big-endian
conntrack-attrs #
tuple-orig (nest) #
-
nested-attributes:
-
doc:
conntrack l3+l4 protocol information, original direction
tuple-reply (nest) #
-
nested-attributes:
-
doc:
conntrack l3+l4 protocol information, reply direction
status (u32) #
-
byte-order:
big-endian
-
enum:
-
enum-as-flags:
True
-
doc:
conntrack flag bits
protoinfo (nest) #
-
nested-attributes:
help (nest) #
-
nested-attributes:
nat-src (nest) #
-
nested-attributes:
timeout (u32) #
-
byte-order:
big-endian
mark (u32) #
-
byte-order:
big-endian
counters-orig (nest) #
-
nested-attributes:
counters-reply (nest) #
-
nested-attributes:
use (u32) #
-
byte-order:
big-endian
id (u32) #
-
byte-order:
big-endian
nat-dst (nest) #
-
nested-attributes:
tuple-master (nest) #
-
nested-attributes:
seq-adj-orig (nest) #
-
nested-attributes:
seq-adj-reply (nest) #
-
nested-attributes:
secmark (binary) #
-
doc:
obsolete
zone (u16) #
-
byte-order:
big-endian
-
doc:
conntrack zone id
secctx (nest) #
-
nested-attributes:
timestamp (u64) #
-
byte-order:
big-endian
mark-mask (u32) #
-
byte-order:
big-endian
labels (binary) #
labels-mask (binary) #
synproxy (nest) #
-
nested-attributes:
filter (nest) #
-
nested-attributes:
status-mask (u32) #
-
byte-order:
big-endian
-
enum:
-
enum-as-flags:
True
-
doc:
conntrack flag bits to change
timestamp-event (u64) #
-
byte-order:
big-endian
conntrack-stats-attrs #
searched (u32) #
-
byte-order:
big-endian
-
doc:
obsolete
found (u32) #
-
byte-order:
big-endian
new (u32) #
-
byte-order:
big-endian
-
doc:
obsolete
invalid (u32) #
-
byte-order:
big-endian
-
doc:
obsolete
ignore (u32) #
-
byte-order:
big-endian
-
doc:
obsolete
delete (u32) #
-
byte-order:
big-endian
-
doc:
obsolete
delete-list (u32) #
-
byte-order:
big-endian
-
doc:
obsolete
insert (u32) #
-
byte-order:
big-endian
insert-failed (u32) #
-
byte-order:
big-endian
drop (u32) #
-
byte-order:
big-endian
early-drop (u32) #
-
byte-order:
big-endian
error (u32) #
-
byte-order:
big-endian
search-restart (u32) #
-
byte-order:
big-endian
clash-resolve (u32) #
-
byte-order:
big-endian
chain-toolong (u32) #
-
byte-order:
big-endian
Family dev-energymodel netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Energy model netlink interface to notify its changes.
Operations #
get-perf-domains #
Get the list of information for all performance domains.
-
attribute-set:
-
do:
request
-
attributes:
[
perf-domain-id]
reply
-
attributes:
[
pad,perf-domain-id,flags,cpus]
-
-
dump:
reply
-
attributes:
[
pad,perf-domain-id,flags,cpus]
-
get-perf-table #
Get the energy model table of a performance domain.
-
attribute-set:
-
do:
request
-
attributes:
[
perf-domain-id]
reply
-
attributes:
[
perf-domain-id,perf-state]
-
perf-domain-created #
A performance domain is created.
-
notify:
get-perf-table
-
mcgrp:
event
perf-domain-updated #
A performance domain is updated.
-
notify:
get-perf-table
-
mcgrp:
event
perf-domain-deleted #
A performance domain is deleted.
-
attribute-set:
-
mcgrp:
event
-
event:
-
attributes:
[
perf-domain-id]
-
Multicast groups #
- event
Definitions #
perf-state-flags #
-
type:
flags
-
entries:
-
perf-state-inefficient:
The performance state is inefficient. There is in this perf-domain, another performance state with a higher frequency but a lower or equal power cost.
-
perf-domain-flags #
-
type:
flags
-
entries:
-
perf-domain-microwatts:
The power values are in micro-Watts or some other scale.
-
perf-domain-skip-inefficiencies:
Skip inefficient states when estimating energy consumption.
-
perf-domain-artificial:
The power values are artificial and might be created by platform missing real power information.
-
Attribute sets #
perf-domain #
Information on a single performance domains.
pad (pad) #
perf-domain-id (u32) #
-
doc:
A unique ID number for each performance domain.
flags (u64) #
-
doc:
Bitmask of performance domain flags.
-
enum:
cpus (u64) #
-
multi-attr:
True
-
doc:
CPUs that belong to this performance domain.
perf-table #
Performance states table.
perf-domain-id (u32) #
-
doc:
A unique ID number for each performance domain.
perf-state (nest) #
-
nested-attributes:
-
multi-attr:
True
perf-state #
Performance state of a performance domain.
pad (pad) #
performance (u64) #
-
doc:
CPU performance (capacity) at a given frequency.
frequency (u64) #
-
doc:
The frequency in KHz, for consistency with CPUFreq.
power (u64) #
-
doc:
The power consumed at this level (by 1 CPU or by a registered device). It can be a total power: static and dynamic.
cost (u64) #
-
doc:
The cost coefficient associated with this level, used during energy calculation. Equal to: power * max_frequency / frequency.
flags (u64) #
-
doc:
Bitmask of performance state flags.
-
enum:
Family devlink netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Partial family for Devlink.
Operations #
get #
Get devlink instances.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,reload-failed,dev-stats]
-
-
dump:
reply
-
attributes:
[
bus-name,dev-name,reload-failed,dev-stats]
-
port-get #
Get devlink port instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index]
reply
-
attributes:
[
bus-name,dev-name,port-index]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,port-index]
-
port-set #
Set devlink port instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,port-type,port-function]
-
port-new #
Create devlink port instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,port-flavour,port-pci-pf-number,port-pci-sf-number,port-controller-number]
reply
-
attributes:
[
bus-name,dev-name,port-index]
-
port-del #
Delete devlink port instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index]
-
port-split #
Split devlink port instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,port-split-count]
-
port-unsplit #
Unplit devlink port instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index]
-
sb-get #
Get shared buffer instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,sb-index]
reply
-
attributes:
[
bus-name,dev-name,sb-index]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,sb-index]
-
sb-pool-get #
Get shared buffer pool instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,sb-index,sb-pool-index]
reply
-
attributes:
[
bus-name,dev-name,sb-index,sb-pool-index]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,sb-index,sb-pool-index]
-
sb-pool-set #
Set shared buffer pool instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,sb-index,sb-pool-index,sb-pool-threshold-type,sb-pool-size]
-
sb-port-pool-get #
Get shared buffer port-pool combinations and threshold.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-index]
reply
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-index]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-index]
-
sb-port-pool-set #
Set shared buffer port-pool combinations and threshold.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-index,sb-threshold]
-
sb-tc-pool-bind-get #
Get shared buffer port-TC to pool bindings and threshold.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-type,sb-tc-index]
reply
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-type,sb-tc-index]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-type,sb-tc-index]
-
sb-tc-pool-bind-set #
Set shared buffer port-TC to pool bindings and threshold.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,sb-index,sb-pool-index,sb-pool-type,sb-tc-index,sb-threshold]
-
sb-occ-snapshot #
Take occupancy snapshot of shared buffer.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,sb-index]
-
sb-occ-max-clear #
Clear occupancy watermarks of shared buffer.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,sb-index]
-
eswitch-get #
Get eswitch attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,eswitch-mode,eswitch-inline-mode,eswitch-encap-mode]
-
eswitch-set #
Set eswitch attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,eswitch-mode,eswitch-inline-mode,eswitch-encap-mode]
-
dpipe-table-get #
Get dpipe table attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,dpipe-table-name]
reply
-
attributes:
[
bus-name,dev-name,dpipe-tables]
-
dpipe-entries-get #
Get dpipe entries attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,dpipe-table-name]
reply
-
attributes:
[
bus-name,dev-name,dpipe-entries]
-
dpipe-headers-get #
Get dpipe headers attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,dpipe-headers]
-
dpipe-table-counters-set #
Set dpipe counter attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,dpipe-table-name,dpipe-table-counters-enabled]
-
resource-set #
Set resource attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,resource-id,resource-size]
-
resource-dump #
Get resource attributes.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,resource-list]
-
reload #
Reload devlink.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-dev-lock
post
devlink-nl-post-doit-dev-lock
request
-
attributes:
[
bus-name,dev-name,reload-action,reload-limits,netns-pid,netns-fd,netns-id]
reply
-
attributes:
[
bus-name,dev-name,reload-actions-performed]
-
param-get #
Get param instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,param-name]
reply
-
attributes:
[
bus-name,dev-name,param-name]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,param-name]
-
param-set #
Set param instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,param-name,param-type,param-value-cmode,param-reset-default]
-
region-get #
Get region instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,region-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,region-name]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,region-name]
-
region-new #
Create region snapshot.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,region-name,region-snapshot-id]
reply
-
attributes:
[
bus-name,dev-name,port-index,region-name,region-snapshot-id]
-
region-del #
Delete region snapshot.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,region-name,region-snapshot-id]
-
region-read #
Read region data.
-
attribute-set:
-
dont-validate:
['dump-strict']
-
flags:
[
admin-perm] -
dump:
request
-
attributes:
[
bus-name,dev-name,port-index,region-name,region-snapshot-id,region-direct,region-chunk-addr,region-chunk-len]
reply
-
attributes:
[
bus-name,dev-name,port-index,region-name]
-
port-param-get #
Get port param instances.
-
attribute-set:
-
dont-validate:
['strict', 'dump-strict']
-
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index]
reply
-
attributes:
[
bus-name,dev-name,port-index]
-
-
dump:
reply
-
attributes:
[
bus-name,dev-name,port-index]
-
port-param-set #
Set port param instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index]
-
info-get #
Get device information, like driver name, hardware and firmware versions etc.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,info-driver-name,info-serial-number,info-version-fixed,info-version-running,info-version-stored,info-board-serial-number]
-
-
dump:
reply
-
attributes:
[
bus-name,dev-name,info-driver-name,info-serial-number,info-version-fixed,info-version-running,info-version-stored,info-board-serial-number]
-
health-reporter-get #
Get health reporter instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name,port-index]
reply
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
-
health-reporter-set #
Set health reporter instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name,health-reporter-graceful-period,health-reporter-auto-recover,health-reporter-auto-dump,health-reporter-burst-period]
-
health-reporter-recover #
Recover health reporter instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
-
health-reporter-diagnose #
Diagnose health reporter instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
-
health-reporter-dump-get #
Dump health reporter instances.
-
attribute-set:
-
dont-validate:
['dump-strict']
-
flags:
[
admin-perm] -
dump:
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
reply
-
attributes:
[
fmsg]
-
health-reporter-dump-clear #
Clear dump of health reporter instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
-
flash-update #
Flash update devlink instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,flash-update-file-name,flash-update-component,flash-update-overwrite-mask]
-
trap-get #
Get trap instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,trap-name]
reply
-
attributes:
[
bus-name,dev-name,trap-name]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,trap-name]
-
trap-set #
Set trap instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,trap-name,trap-action]
-
trap-group-get #
Get trap group instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,trap-group-name]
reply
-
attributes:
[
bus-name,dev-name,trap-group-name]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,trap-group-name]
-
trap-group-set #
Set trap group instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,trap-group-name,trap-action,trap-policer-id]
-
trap-policer-get #
Get trap policer instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,trap-policer-id]
reply
-
attributes:
[
bus-name,dev-name,trap-policer-id]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,trap-policer-id]
-
trap-policer-set #
Get trap policer instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,trap-policer-id,trap-policer-rate,trap-policer-burst]
-
health-reporter-test #
Test health reporter instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit-port-optional
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,health-reporter-name]
-
rate-get #
Get rate instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,port-index,rate-node-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,rate-node-name]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,port-index,rate-node-name]
-
rate-set #
Set rate instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,rate-node-name,rate-tx-share,rate-tx-max,rate-tx-priority,rate-tx-weight,rate-parent-node-name,rate-tc-bws]
-
rate-new #
Create rate instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,rate-node-name,rate-tx-share,rate-tx-max,rate-tx-priority,rate-tx-weight,rate-parent-node-name,rate-tc-bws]
-
rate-del #
Delete rate instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,rate-node-name]
-
linecard-get #
Get line card instances.
-
attribute-set:
-
dont-validate:
['strict']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,linecard-index]
reply
-
attributes:
[
bus-name,dev-name,linecard-index]
-
-
dump:
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name,linecard-index]
-
linecard-set #
Set line card instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,linecard-index,linecard-type]
-
selftests-get #
Get device selftest instances.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name]
reply
-
attributes:
[
bus-name,dev-name]
-
-
dump:
reply
-
attributes:
[
bus-name,dev-name]
-
selftests-run #
Run device selftest instances.
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
pre
devlink-nl-pre-doit
post
devlink-nl-post-doit
request
-
attributes:
[
bus-name,dev-name,selftests]
-
notify-filter-set #
Set notification messages socket filter.
-
attribute-set:
-
do:
request
-
attributes:
[
bus-name,dev-name,port-index]
-
Definitions #
sb-pool-type #
-
type:
enum
-
entries:
-
ingress
-
egress
-
port-type #
-
type:
enum
-
entries:
-
notset
-
auto
-
eth
-
ib
-
port-flavour #
-
type:
enum
-
entries:
-
physical
-
cpu
-
dsa
-
pci-pf
-
pci-vf
-
virtual
-
unused
-
pci-sf
-
port-fn-state #
-
type:
enum
-
entries:
-
inactive
-
active
-
port-fn-opstate #
-
type:
enum
-
entries:
-
detached
-
attached
-
port-fn-attr-cap #
-
type:
enum
-
entries:
-
roce-bit
-
migratable-bit
-
ipsec-crypto-bit
-
ipsec-packet-bit
-
rate-type #
-
type:
enum
-
entries:
-
leaf
-
node
-
sb-threshold-type #
-
type:
enum
-
entries:
-
static
-
dynamic
-
eswitch-mode #
-
type:
enum
-
entries:
-
legacy
-
switchdev
-
switchdev-inactive
-
eswitch-inline-mode #
-
type:
enum
-
entries:
-
none
-
link
-
network
-
transport
-
eswitch-encap-mode #
-
type:
enum
-
entries:
-
none
-
basic
-
dpipe-header-id #
-
type:
enum
-
entries:
-
ethernet
-
ipv4
-
ipv6
-
dpipe-match-type #
-
type:
enum
-
entries:
- field-exact
dpipe-action-type #
-
type:
enum
-
entries:
- field-modify
dpipe-field-mapping-type #
-
type:
enum
-
entries:
-
none
-
ifindex
-
resource-unit #
-
type:
enum
-
entries:
- entry
reload-action #
-
type:
enum
-
entries:
-
driver-reinit
-
fw-activate
-
param-cmode #
-
type:
enum
-
entries:
-
runtime
-
driverinit
-
permanent
-
flash-overwrite #
-
type:
enum
-
entries:
-
settings-bit
-
identifiers-bit
-
trap-action #
-
type:
enum
-
entries:
-
drop
-
trap
-
mirror
-
trap-type #
-
type:
enum
-
entries:
-
drop
-
exception
-
control
-
var-attr-type #
-
type:
enum
-
entries:
-
u8
-
u16
-
u32
-
u64
-
string
-
flag
-
nul-string
-
binary
-
rate-tc-index-max #
-
type:
const
-
value:
7
Attribute sets #
devlink #
bus-name (string) #
-
value:
1
dev-name (string) #
port-index (u32) #
port-type (u16) #
-
enum:
port-desired-type (u16) #
port-netdev-ifindex (u32) #
port-netdev-name (string) #
port-ibdev-name (string) #
port-split-count (u32) #
port-split-group (u32) #
sb-index (u32) #
sb-size (u32) #
sb-ingress-pool-count (u16) #
sb-egress-pool-count (u16) #
sb-ingress-tc-count (u16) #
sb-egress-tc-count (u16) #
sb-pool-index (u16) #
sb-pool-type (u8) #
-
enum:
sb-pool-size (u32) #
sb-pool-threshold-type (u8) #
-
enum:
sb-threshold (u32) #
sb-tc-index (u16) #
sb-occ-cur (u32) #
sb-occ-max (u32) #
eswitch-mode (u16) #
-
enum:
eswitch-inline-mode (u8) #
-
enum:
dpipe-tables (nest) #
-
nested-attributes:
dpipe-table (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-table-name (string) #
dpipe-table-size (u64) #
dpipe-table-matches (nest) #
-
nested-attributes:
dpipe-table-actions (nest) #
-
nested-attributes:
dpipe-table-counters-enabled (u8) #
dpipe-entries (nest) #
-
nested-attributes:
dpipe-entry (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-entry-index (u64) #
dpipe-entry-match-values (nest) #
-
nested-attributes:
dpipe-entry-action-values (nest) #
-
nested-attributes:
dpipe-entry-counter (u64) #
dpipe-match (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-match-value (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-match-type (u32) #
-
enum:
dpipe-action (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-action-value (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-action-type (u32) #
-
enum:
dpipe-value (binary) #
dpipe-value-mask (binary) #
dpipe-value-mapping (u32) #
dpipe-headers (nest) #
-
nested-attributes:
dpipe-header (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-header-name (string) #
dpipe-header-id (u32) #
-
enum:
dpipe-header-fields (nest) #
-
nested-attributes:
dpipe-header-global (u8) #
dpipe-header-index (u32) #
dpipe-field (nest) #
-
multi-attr:
True
-
nested-attributes:
dpipe-field-name (string) #
dpipe-field-id (u32) #
dpipe-field-bitwidth (u32) #
dpipe-field-mapping-type (u32) #
-
enum:
pad (pad) #
eswitch-encap-mode (u8) #
-
enum:
resource-list (nest) #
-
nested-attributes:
resource (nest) #
-
multi-attr:
True
-
nested-attributes:
resource-name (string) #
resource-id (u64) #
resource-size (u64) #
resource-size-new (u64) #
resource-size-valid (u8) #
resource-size-min (u64) #
resource-size-max (u64) #
resource-size-gran (u64) #
resource-unit (u8) #
-
enum:
resource-occ (u64) #
dpipe-table-resource-id (u64) #
dpipe-table-resource-units (u64) #
port-flavour (u16) #
-
enum:
port-number (u32) #
port-split-subport-number (u32) #
param (nest) #
-
nested-attributes:
param-name (string) #
param-generic (flag) #
param-type (u8) #
-
enum:
param-value-cmode (u8) #
-
enum:
-
value:
87
region-name (string) #
region-size (u64) #
region-snapshots (nest) #
-
nested-attributes:
region-snapshot (nest) #
-
nested-attributes:
region-snapshot-id (u32) #
region-chunks (nest) #
-
nested-attributes:
region-chunk (nest) #
-
nested-attributes:
region-chunk-data (binary) #
region-chunk-addr (u64) #
region-chunk-len (u64) #
info-driver-name (string) #
info-serial-number (string) #
info-version-fixed (nest) #
-
multi-attr:
True
-
nested-attributes:
info-version-running (nest) #
-
multi-attr:
True
-
nested-attributes:
info-version-stored (nest) #
-
multi-attr:
True
-
nested-attributes:
info-version-name (string) #
info-version-value (string) #
sb-pool-cell-size (u32) #
fmsg (nest) #
-
nested-attributes:
fmsg-obj-nest-start (flag) #
fmsg-pair-nest-start (flag) #
fmsg-arr-nest-start (flag) #
fmsg-nest-end (flag) #
fmsg-obj-name (string) #
fmsg-obj-value-type (u8) #
-
enum:
health-reporter (nest) #
-
value:
114
-
nested-attributes:
health-reporter-name (string) #
health-reporter-state (u8) #
health-reporter-err-count (u64) #
health-reporter-recover-count (u64) #
health-reporter-dump-ts (u64) #
health-reporter-graceful-period (u64) #
health-reporter-auto-recover (u8) #
flash-update-file-name (string) #
flash-update-component (string) #
flash-update-status-msg (string) #
flash-update-status-done (u64) #
flash-update-status-total (u64) #
port-pci-pf-number (u16) #
port-pci-vf-number (u16) #
stats (nest) #
-
nested-attributes:
trap-name (string) #
trap-action (u8) #
-
enum:
trap-type (u8) #
-
enum:
trap-generic (flag) #
trap-metadata (nest) #
-
nested-attributes:
trap-group-name (string) #
reload-failed (u8) #
health-reporter-dump-ts-ns (u64) #
netns-fd (u32) #
netns-pid (u32) #
netns-id (u32) #
health-reporter-auto-dump (u8) #
trap-policer-id (u32) #
trap-policer-rate (u64) #
trap-policer-burst (u64) #
port-function (nest) #
-
nested-attributes:
info-board-serial-number (string) #
port-lanes (u32) #
port-splittable (u8) #
port-external (u8) #
port-controller-number (u32) #
flash-update-status-timeout (u64) #
flash-update-overwrite-mask (bitfield32) #
-
enum:
-
enum-as-flags:
True
reload-action (u8) #
-
enum:
reload-actions-performed (bitfield32) #
-
enum:
-
enum-as-flags:
True
reload-limits (bitfield32) #
-
enum:
-
enum-as-flags:
True
dev-stats (nest) #
-
nested-attributes:
reload-stats (nest) #
-
nested-attributes:
reload-stats-entry (nest) #
-
multi-attr:
True
-
nested-attributes:
reload-stats-limit (u8) #
reload-stats-value (u32) #
remote-reload-stats (nest) #
-
nested-attributes:
reload-action-info (nest) #
-
multi-attr:
True
-
nested-attributes:
reload-action-stats (nest) #
-
multi-attr:
True
-
nested-attributes:
port-pci-sf-number (u32) #
rate-type (u16) #
-
enum:
rate-tx-share (u64) #
rate-tx-max (u64) #
rate-node-name (string) #
rate-parent-node-name (string) #
region-max-snapshots (u32) #
linecard-index (u32) #
linecard-state (u8) #
linecard-type (string) #
linecard-supported-types (nest) #
-
nested-attributes:
selftests (nest) #
-
value:
176
-
nested-attributes:
rate-tx-priority (u32) #
rate-tx-weight (u32) #
region-direct (flag) #
rate-tc-bws (nest) #
-
multi-attr:
True
-
nested-attributes:
health-reporter-burst-period (u64) #
-
doc:
Time (in msec) for recoveries before starting the grace period.
param-reset-default (flag) #
-
doc:
Request restoring parameter to its default value.
-
value:
183
dl-dev-stats #
reload-stats #
remote-reload-stats #
dl-reload-stats #
reload-action-info #
dl-reload-act-info #
reload-action #
reload-action-stats #
dl-reload-act-stats #
reload-stats-entry #
dl-reload-stats-entry #
reload-stats-limit #
reload-stats-value #
dl-info-version #
info-version-name #
info-version-value #
dl-port-function #
hw-addr (binary) #
-
name-prefix:
devlink-port-function-attr-
-
value:
1
state (u8) #
-
enum:
opstate (u8) #
-
enum:
caps (bitfield32) #
-
enum:
-
enum-as-flags:
True
dl-dpipe-tables #
dpipe-table #
dl-dpipe-table #
dpipe-table-name #
dpipe-table-size #
dpipe-table-name #
dpipe-table-size #
dpipe-table-matches #
dpipe-table-actions #
dpipe-table-counters-enabled #
dpipe-table-resource-id #
dpipe-table-resource-units #
dl-dpipe-table-matches #
dpipe-match #
dl-dpipe-table-actions #
dpipe-action #
dl-dpipe-entries #
dpipe-entry #
dl-dpipe-entry #
dpipe-entry-index #
dpipe-entry-match-values #
dpipe-entry-action-values #
dpipe-entry-counter #
dl-dpipe-entry-match-values #
dpipe-match-value #
dl-dpipe-entry-action-values #
dpipe-action-value #
dl-dpipe-match #
dpipe-match-type #
dpipe-header-id #
dpipe-header-global #
dpipe-header-index #
dpipe-field-id #
dl-dpipe-match-value #
dpipe-match #
dpipe-value #
dpipe-value-mask #
dpipe-value-mapping #
dl-dpipe-action #
dpipe-action-type #
dpipe-header-id #
dpipe-header-global #
dpipe-header-index #
dpipe-field-id #
dl-dpipe-action-value #
dpipe-action #
dpipe-value #
dpipe-value-mask #
dpipe-value-mapping #
dl-dpipe-headers #
dpipe-header #
dl-dpipe-header #
dpipe-header-name #
dpipe-header-id #
dpipe-header-global #
dpipe-header-fields #
dl-dpipe-header-fields #
dpipe-field #
dl-dpipe-field #
dpipe-field-name #
dpipe-field-id #
dpipe-field-bitwidth #
dpipe-field-mapping-type #
dl-resource #
resource-name #
resource-id #
resource-size #
resource-size-new #
resource-size-valid #
resource-size-min #
resource-size-max #
resource-size-gran #
resource-unit #
resource-occ #
dl-resource-list #
resource #
dl-param #
param-name #
param-generic #
param-type #
dl-region-snapshots #
region-snapshot #
dl-region-snapshot #
region-snapshot-id #
dl-region-chunks #
region-chunk #
dl-region-chunk #
region-chunk-data #
region-chunk-addr #
dl-fmsg #
fmsg-obj-nest-start #
fmsg-pair-nest-start #
fmsg-arr-nest-start #
fmsg-nest-end #
fmsg-obj-name #
dl-health-reporter #
health-reporter-name #
health-reporter-state #
health-reporter-err-count #
health-reporter-recover-count #
health-reporter-graceful-period #
health-reporter-auto-recover #
health-reporter-dump-ts #
health-reporter-dump-ts-ns #
health-reporter-auto-dump #
health-reporter-burst-period #
dl-attr-stats #
stats-rx-packets (u64) #
-
value:
0
stats-rx-bytes (u64) #
stats-rx-dropped (u64) #
dl-trap-metadata #
trap-metadata-type-in-port (flag) #
-
value:
0
trap-metadata-type-fa-cookie (flag) #
dl-linecard-supported-types #
linecard-type #
dl-selftest-id #
flash (flag) #
dl-rate-tc-bws #
index (u8) #
bw (u32) #
-
doc:
Specifies the bandwidth share assigned to the Traffic Class. The bandwidth for the traffic class is determined in proportion to the sum of the shares of all configured classes.
Family dpll netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
DPLL subsystem.
Operations #
device-id-get #
Get id of dpll device that matches given attributes
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
dpll-lock-doit
post
dpll-unlock-doit
request
-
attributes:
[
module-name,clock-id,type]
reply
-
attributes:
[
id]
-
device-get #
Get list of DPLL devices (dump) or attributes of a single dpll device
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
dpll-pre-doit
post
dpll-post-doit
request
-
attributes:
[
id]
reply
-
attributes:
[
id,module-name,mode,mode-supported,lock-status,lock-status-error,temp,clock-id,type,phase-offset-monitor,phase-offset-avg-factor]
-
-
dump:
reply
-
attributes:
[
id,module-name,mode,mode-supported,lock-status,lock-status-error,temp,clock-id,type,phase-offset-monitor,phase-offset-avg-factor]
-
device-set #
Set attributes for a DPLL device
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
dpll-pre-doit
post
dpll-post-doit
request
-
attributes:
[
id,mode,phase-offset-monitor,phase-offset-avg-factor]
-
device-create-ntf #
Notification about device appearing
-
notify:
device-get
-
mcgrp:
monitor
device-delete-ntf #
Notification about device disappearing
-
notify:
device-get
-
mcgrp:
monitor
device-change-ntf #
Notification about device configuration being changed
-
notify:
device-get
-
mcgrp:
monitor
pin-id-get #
Get id of a pin that matches given attributes
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
dpll-lock-doit
post
dpll-unlock-doit
request
-
attributes:
[
module-name,clock-id,board-label,panel-label,package-label,type]
reply
-
attributes:
[
id]
-
pin-get #
Get list of pins and its attributes.
-
dump request without any attributes given - list all the pins in the system
-
dump request with target dpll - list all the pins registered with a given dpll device
-
do request with target dpll and target pin - single pin attributes
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
dpll-pin-pre-doit
post
dpll-pin-post-doit
request
-
attributes:
[
id]
reply
-
attributes:
[
id,module-name,clock-id,board-label,panel-label,package-label,type,frequency,frequency-supported,capabilities,parent-device,parent-pin,phase-adjust-gran,phase-adjust-min,phase-adjust-max,phase-adjust,fractional-frequency-offset,fractional-frequency-offset-ppt,esync-frequency,esync-frequency-supported,esync-pulse,reference-sync]
-
-
dump:
request
-
attributes:
[
id]
reply
-
attributes:
[
id,module-name,clock-id,board-label,panel-label,package-label,type,frequency,frequency-supported,capabilities,parent-device,parent-pin,phase-adjust-gran,phase-adjust-min,phase-adjust-max,phase-adjust,fractional-frequency-offset,fractional-frequency-offset-ppt,esync-frequency,esync-frequency-supported,esync-pulse,reference-sync]
-
pin-set #
Set attributes of a target pin
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
dpll-pin-pre-doit
post
dpll-pin-post-doit
request
-
attributes:
[
id,frequency,direction,prio,state,parent-device,parent-pin,phase-adjust,esync-frequency,reference-sync]
-
pin-create-ntf #
Notification about pin appearing
-
notify:
pin-get
-
mcgrp:
monitor
pin-delete-ntf #
Notification about pin disappearing
-
notify:
pin-get
-
mcgrp:
monitor
pin-change-ntf #
Notification about pin configuration being changed
-
notify:
pin-get
-
mcgrp:
monitor
Multicast groups #
- monitor
Definitions #
mode #
-
type:
enum
-
doc:
working modes a dpll can support, differentiates if and how dpll selects one of its inputs to syntonize with it, valid values for DPLL_A_MODE attribute
-
entries:
-
manual:
input can be only selected by sending a request to dpll
-
automatic:
highest prio input pin auto selected by dpll
-
lock-status #
-
type:
enum
-
doc:
provides information of dpll device lock status, valid values for DPLL_A_LOCK_STATUS attribute
-
entries:
-
unlocked:
dpll was not yet locked to any valid input (or forced by setting DPLL_A_MODE to DPLL_MODE_DETACHED)
-
locked:
dpll is locked to a valid signal, but no holdover available
-
locked-ho-acq:
dpll is locked and holdover acquired
-
holdover:
dpll is in holdover state - lost a valid lock or was forced by disconnecting all the pins (latter possible only when dpll lock-state was already DPLL_LOCK_STATUS_LOCKED_HO_ACQ, if dpll lock-state was not DPLL_LOCK_STATUS_LOCKED_HO_ACQ, the dpll's lock-state shall remain DPLL_LOCK_STATUS_UNLOCKED)
-
lock-status-error #
-
type:
enum
-
doc:
if previous status change was done due to a failure, this provides information of dpll device lock status error. Valid values for DPLL_A_LOCK_STATUS_ERROR attribute
-
entries:
-
none:
dpll device lock status was changed without any error
-
undefined:
dpll device lock status was changed due to undefined error. Driver fills this value up in case it is not able to obtain suitable exact error type.
-
media-down:
dpll device lock status was changed because of associated media got down. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.
-
fractional-frequency-offset-too-high:
the FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media got too high. This may happen for example if dpll device was previously locked on an input pin of type PIN_TYPE_SYNCE_ETH_PORT.
-
clock-quality-level #
-
type:
enum
-
doc:
level of quality of a clock device. This mainly applies when the dpll lock-status is DPLL_LOCK_STATUS_HOLDOVER. The current list is defined according to the table 11-7 contained in ITU-T G.8264/Y.1364 document. One may extend this list freely by other ITU-T defined clock qualities, or different ones defined by another standardization body (for those, please use different prefix).
-
entries:
-
itu-opt1-prc
-
itu-opt1-ssu-a
-
itu-opt1-ssu-b
-
itu-opt1-eec1
-
itu-opt1-prtc
-
itu-opt1-eprtc
-
itu-opt1-eeec
-
itu-opt1-eprc
-
temp-divider #
-
type:
const
-
value:
1000
-
doc:
temperature divider allowing userspace to calculate the temperature as float with three digit decimal precision. Value of (DPLL_A_TEMP / DPLL_TEMP_DIVIDER) is integer part of temperature value. Value of (DPLL_A_TEMP % DPLL_TEMP_DIVIDER) is fractional part of temperature value.
type #
-
type:
enum
-
doc:
type of dpll, valid values for DPLL_A_TYPE attribute
-
entries:
-
pps:
dpll produces Pulse-Per-Second signal
-
eec:
dpll drives the Ethernet Equipment Clock
-
pin-type #
-
type:
enum
-
doc:
defines possible types of a pin, valid values for DPLL_A_PIN_TYPE attribute
-
entries:
-
mux:
aggregates another layer of selectable pins
-
ext:
external input
-
synce-eth-port:
ethernet port PHY's recovered clock
-
int-oscillator:
device internal oscillator
-
gnss:
GNSS recovered clock
-
pin-direction #
-
type:
enum
-
doc:
defines possible direction of a pin, valid values for DPLL_A_PIN_DIRECTION attribute
-
entries:
-
input:
pin used as a input of a signal
-
output:
pin used to output the signal
-
pin-frequency-1-hz #
-
type:
const
-
value:
1
pin-frequency-10-khz #
-
type:
const
-
value:
10000
pin-frequency-77-5-khz #
-
type:
const
-
value:
77500
pin-frequency-10-mhz #
-
type:
const
-
value:
10000000
pin-state #
-
type:
enum
-
doc:
defines possible states of a pin, valid values for DPLL_A_PIN_STATE attribute
-
entries:
-
connected:
pin connected, active input of phase locked loop
-
disconnected:
pin disconnected, not considered as a valid input
-
selectable:
pin enabled for automatic input selection
-
pin-capabilities #
-
type:
flags
-
doc:
defines possible capabilities of a pin, valid flags on DPLL_A_PIN_CAPABILITIES attribute
-
entries:
-
direction-can-change:
pin direction can be changed
-
priority-can-change:
pin priority can be changed
-
state-can-change:
pin state can be changed
-
phase-offset-divider #
-
type:
const
-
value:
1000
-
doc:
phase offset divider allows userspace to calculate a value of measured signal phase difference between a pin and dpll device as a fractional value with three digit decimal precision. Value of (DPLL_A_PHASE_OFFSET / DPLL_PHASE_OFFSET_DIVIDER) is an integer part of a measured phase offset value. Value of (DPLL_A_PHASE_OFFSET % DPLL_PHASE_OFFSET_DIVIDER) is a fractional part of a measured phase offset value.
feature-state #
-
type:
enum
-
doc:
Allow control (enable/disable) and status checking over features.
-
entries:
-
disable:
feature shall be disabled
-
enable:
feature shall be enabled
-
Attribute sets #
dpll #
id (u32) #
module-name (string) #
pad (pad) #
clock-id (u64) #
mode (u32) #
-
enum:
mode-supported (u32) #
-
enum:
-
multi-attr:
True
lock-status (u32) #
-
enum:
temp (s32) #
type (u32) #
-
enum:
lock-status-error (u32) #
-
enum:
clock-quality-level (u32) #
-
enum:
-
multi-attr:
True
-
doc:
Level of quality of a clock device. This mainly applies when the dpll lock-status is DPLL_LOCK_STATUS_HOLDOVER. This could be put to message multiple times to indicate possible parallel quality levels (e.g. one specified by ITU option 1 and another one specified by option 2).
phase-offset-monitor (u32) #
-
enum:
-
doc:
Receive or request state of phase offset monitor feature. If enabled, dpll device shall monitor and notify all currently available inputs for changes of their phase offset against the dpll device.
phase-offset-avg-factor (u32) #
-
doc:
Averaging factor applied to calculation of reported phase offset.
pin #
id (u32) #
parent-id (u32) #
module-name (string) #
pad (pad) #
clock-id (u64) #
board-label (string) #
panel-label (string) #
package-label (string) #
type (u32) #
-
enum:
direction (u32) #
-
enum:
frequency (u64) #
frequency-supported (nest) #
-
multi-attr:
True
-
nested-attributes:
frequency-min (u64) #
frequency-max (u64) #
prio (u32) #
state (u32) #
-
enum:
capabilities (u32) #
-
enum:
parent-device (nest) #
-
multi-attr:
True
-
nested-attributes:
parent-pin (nest) #
-
multi-attr:
True
-
nested-attributes:
phase-adjust-min (s32) #
phase-adjust-max (s32) #
phase-adjust (s32) #
phase-offset (s64) #
fractional-frequency-offset (sint) #
-
doc:
The FFO (Fractional Frequency Offset) between the RX and TX symbol rate on the media associated with the pin: (rx_frequency-tx_frequency)/rx_frequency Value is in PPM (parts per million). This may be implemented for example for pin of type PIN_TYPE_SYNCE_ETH_PORT.
esync-frequency (u64) #
-
doc:
Frequency of Embedded SYNC signal. If provided, the pin is configured with a SYNC signal embedded into its base clock frequency.
esync-frequency-supported (nest) #
-
multi-attr:
True
-
nested-attributes:
-
doc:
If provided a pin is capable of embedding a SYNC signal (within given range) into its base frequency signal.
esync-pulse (u32) #
-
doc:
A ratio of high to low state of a SYNC signal pulse embedded into base clock frequency. Value is in percents.
reference-sync (nest) #
-
multi-attr:
True
-
nested-attributes:
-
doc:
Capable pin provides list of pins that can be bound to create a reference-sync pin pair.
phase-adjust-gran (u32) #
-
doc:
Granularity of phase adjustment, in picoseconds. The value of phase adjustment must be a multiple of this granularity.
fractional-frequency-offset-ppt (sint) #
-
doc:
The FFO (Fractional Frequency Offset) of the pin with respect to the nominal frequency. Value = (frequency_measured - frequency_nominal) / frequency_nominal Value is in PPT (parts per trillion, 10^-12). Note: This attribute provides higher resolution than the standard fractional-frequency-offset (which is in PPM).
pin-parent-device #
parent-id #
direction #
prio #
state #
phase-offset #
pin-parent-pin #
parent-id #
state #
frequency-range #
frequency-min #
frequency-max #
reference-sync #
id #
state #
Family ethtool netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Partial family for Ethtool Netlink.
Operations #
strset-get #
Get string set from the kernel.
-
attribute-set:
-
do:
request
-
attributes:
[
header,stringsets,counts-only]
reply
-
attributes:
[
header,stringsets]
-
-
dump:
request
-
attributes:
[
header,stringsets,counts-only]
reply
-
attributes:
[
header,stringsets]
-
linkinfo-get #
Get link info.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,port,phyaddr,tp-mdix,tp-mdix-ctrl,transceiver]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,port,phyaddr,tp-mdix,tp-mdix-ctrl,transceiver]
-
linkinfo-set #
Set link info.
-
attribute-set:
-
do:
request
-
attributes:
[
header,port,phyaddr,tp-mdix,tp-mdix-ctrl,transceiver]
-
linkinfo-ntf #
Notification for change in link info.
-
notify:
linkinfo-get
linkmodes-get #
Get link modes.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,autoneg,ours,peer,speed,duplex,master-slave-cfg,master-slave-state,lanes,rate-matching]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,autoneg,ours,peer,speed,duplex,master-slave-cfg,master-slave-state,lanes,rate-matching]
-
linkmodes-set #
Set link modes.
-
attribute-set:
-
do:
request
-
attributes:
[
header,autoneg,ours,peer,speed,duplex,master-slave-cfg,master-slave-state,lanes,rate-matching]
-
linkmodes-ntf #
Notification for change in link modes.
-
notify:
linkmodes-get
linkstate-get #
Get link state.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,link,sqi,sqi-max,ext-state,ext-substate,ext-down-cnt]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,link,sqi,sqi-max,ext-state,ext-substate,ext-down-cnt]
-
debug-get #
Get debug message mask.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,msgmask]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,msgmask]
-
debug-set #
Set debug message mask.
-
attribute-set:
-
do:
request
-
attributes:
[
header,msgmask]
-
debug-ntf #
Notification for change in debug message mask.
-
notify:
debug-get
wol-get #
Get WOL params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,modes,sopass]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,modes,sopass]
-
wol-set #
Set WOL params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,modes,sopass]
-
wol-ntf #
Notification for change in WOL params.
-
notify:
wol-get
features-get #
Get features.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,hw,wanted,active,nochange]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,hw,wanted,active,nochange]
-
features-set #
Set features.
-
attribute-set:
-
do:
request
-
attributes:
[
header,hw,wanted,active,nochange]
reply
-
attributes:
[
header,hw,wanted,active,nochange]
-
features-ntf #
Notification for change in features.
-
notify:
features-get
privflags-get #
Get device private flags.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,flags]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,flags]
-
privflags-set #
Set device private flags.
-
attribute-set:
-
do:
request
-
attributes:
[
header,flags]
-
privflags-ntf #
Notification for change in device private flags.
-
notify:
privflags-get
rings-get #
Get ring params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,rx-max,rx-mini-max,rx-jumbo-max,tx-max,rx,rx-mini,rx-jumbo,tx,rx-buf-len,tcp-data-split,cqe-size,tx-push,rx-push,tx-push-buf-len,tx-push-buf-len-max,hds-thresh,hds-thresh-max]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,rx-max,rx-mini-max,rx-jumbo-max,tx-max,rx,rx-mini,rx-jumbo,tx,rx-buf-len,tcp-data-split,cqe-size,tx-push,rx-push,tx-push-buf-len,tx-push-buf-len-max,hds-thresh,hds-thresh-max]
-
rings-set #
Set ring params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,rx-max,rx-mini-max,rx-jumbo-max,tx-max,rx,rx-mini,rx-jumbo,tx,rx-buf-len,tcp-data-split,cqe-size,tx-push,rx-push,tx-push-buf-len,tx-push-buf-len-max,hds-thresh,hds-thresh-max]
-
rings-ntf #
Notification for change in ring params.
-
notify:
rings-get
channels-get #
Get channel params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,rx-max,tx-max,other-max,combined-max,rx-count,tx-count,other-count,combined-count]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,rx-max,tx-max,other-max,combined-max,rx-count,tx-count,other-count,combined-count]
-
channels-set #
Set channel params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,rx-max,tx-max,other-max,combined-max,rx-count,tx-count,other-count,combined-count]
-
channels-ntf #
Notification for change in channel params.
-
notify:
channels-get
coalesce-get #
Get coalesce params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,rx-usecs,rx-max-frames,rx-usecs-irq,rx-max-frames-irq,tx-usecs,tx-max-frames,tx-usecs-irq,tx-max-frames-irq,stats-block-usecs,use-adaptive-rx,use-adaptive-tx,pkt-rate-low,rx-usecs-low,rx-max-frames-low,tx-usecs-low,tx-max-frames-low,pkt-rate-high,rx-usecs-high,rx-max-frames-high,tx-usecs-high,tx-max-frames-high,rate-sample-interval,use-cqe-mode-tx,use-cqe-mode-rx,tx-aggr-max-bytes,tx-aggr-max-frames,tx-aggr-time-usecs,rx-profile,tx-profile]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,rx-usecs,rx-max-frames,rx-usecs-irq,rx-max-frames-irq,tx-usecs,tx-max-frames,tx-usecs-irq,tx-max-frames-irq,stats-block-usecs,use-adaptive-rx,use-adaptive-tx,pkt-rate-low,rx-usecs-low,rx-max-frames-low,tx-usecs-low,tx-max-frames-low,pkt-rate-high,rx-usecs-high,rx-max-frames-high,tx-usecs-high,tx-max-frames-high,rate-sample-interval,use-cqe-mode-tx,use-cqe-mode-rx,tx-aggr-max-bytes,tx-aggr-max-frames,tx-aggr-time-usecs,rx-profile,tx-profile]
-
coalesce-set #
Set coalesce params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,rx-usecs,rx-max-frames,rx-usecs-irq,rx-max-frames-irq,tx-usecs,tx-max-frames,tx-usecs-irq,tx-max-frames-irq,stats-block-usecs,use-adaptive-rx,use-adaptive-tx,pkt-rate-low,rx-usecs-low,rx-max-frames-low,tx-usecs-low,tx-max-frames-low,pkt-rate-high,rx-usecs-high,rx-max-frames-high,tx-usecs-high,tx-max-frames-high,rate-sample-interval,use-cqe-mode-tx,use-cqe-mode-rx,tx-aggr-max-bytes,tx-aggr-max-frames,tx-aggr-time-usecs,rx-profile,tx-profile]
-
coalesce-ntf #
Notification for change in coalesce params.
-
notify:
coalesce-get
pause-get #
Get pause params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,autoneg,rx,tx,stats,stats-src]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,autoneg,rx,tx,stats,stats-src]
-
pause-set #
Set pause params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,autoneg,rx,tx,stats,stats-src]
-
pause-ntf #
Notification for change in pause params.
-
notify:
pause-get
eee-get #
Get eee params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,modes-ours,modes-peer,active,enabled,tx-lpi-enabled,tx-lpi-timer]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,modes-ours,modes-peer,active,enabled,tx-lpi-enabled,tx-lpi-timer]
-
eee-set #
Set eee params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,modes-ours,modes-peer,active,enabled,tx-lpi-enabled,tx-lpi-timer]
-
eee-ntf #
Notification for change in eee params.
-
notify:
eee-get
tsinfo-get #
Get tsinfo params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,hwtstamp-provider]
reply
-
attributes:
[
header,timestamping,tx-types,rx-filters,phc-index,stats,hwtstamp-provider,hwtstamp-source,hwtstamp-phyindex]
-
-
dump:
request
-
attributes:
[
header,hwtstamp-provider]
reply
-
attributes:
[
header,timestamping,tx-types,rx-filters,phc-index,stats,hwtstamp-provider,hwtstamp-source,hwtstamp-phyindex]
-
cable-test-act #
Cable test.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
-
cable-test-ntf #
Cable test notification.
-
attribute-set:
-
event:
-
attributes:
[
header,status]
-
cable-test-tdr-act #
Cable test TDR.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
-
cable-test-tdr-ntf #
Cable test TDR notification.
-
attribute-set:
-
event:
-
attributes:
[
header,status,nest]
-
tunnel-info-get #
Get tsinfo params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,udp-ports]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,udp-ports]
-
fec-get #
Get FEC params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,modes,auto,active,stats]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,modes,auto,active,stats]
-
fec-set #
Set FEC params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,modes,auto,active,stats]
-
fec-ntf #
Notification for change in FEC params.
-
notify:
fec-get
module-eeprom-get #
Get module EEPROM params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,offset,length,page,bank,i2c-address]
reply
-
attributes:
[
header,data]
-
-
dump:
request
-
attributes:
[
header,offset,length,page,bank,i2c-address]
reply
-
attributes:
[
header,data]
-
stats-get #
Get statistics.
-
attribute-set:
-
do:
request
-
attributes:
[
header,groups]
reply
-
attributes:
[
header,groups,grp,src]
-
-
dump:
request
-
attributes:
[
header,groups]
reply
-
attributes:
[
header,groups,grp,src]
-
phc-vclocks-get #
Get PHC VCLOCKs.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,num]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,num]
-
module-get #
Get module params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,power-mode-policy,power-mode]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,power-mode-policy,power-mode]
-
module-set #
Set module params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,power-mode-policy,power-mode]
-
module-ntf #
Notification for change in module params.
-
notify:
module-get
pse-get #
Get Power Sourcing Equipment params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,podl-pse-admin-state,podl-pse-admin-control,podl-pse-pw-d-status,c33-pse-admin-state,c33-pse-admin-control,c33-pse-pw-d-status,c33-pse-pw-class,c33-pse-actual-pw,c33-pse-ext-state,c33-pse-ext-substate,c33-pse-avail-pw-limit,c33-pse-pw-limit-ranges,pse-pw-d-id,pse-prio-max,pse-prio]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,podl-pse-admin-state,podl-pse-admin-control,podl-pse-pw-d-status,c33-pse-admin-state,c33-pse-admin-control,c33-pse-pw-d-status,c33-pse-pw-class,c33-pse-actual-pw,c33-pse-ext-state,c33-pse-ext-substate,c33-pse-avail-pw-limit,c33-pse-pw-limit-ranges,pse-pw-d-id,pse-prio-max,pse-prio]
-
pse-set #
Set Power Sourcing Equipment params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,podl-pse-admin-control,c33-pse-admin-control,c33-pse-avail-pw-limit,pse-prio]
-
rss-get #
Get RSS params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,context]
reply
-
attributes:
[
header,context,hfunc,indir,hkey,input-xfrm,flow-hash]
-
-
dump:
request
-
attributes:
[
header,start-context]
reply
-
attributes:
[
header,context,hfunc,indir,hkey,input-xfrm,flow-hash]
-
plca-get-cfg #
Get PLCA params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,version,enabled,status,node-cnt,node-id,to-tmr,burst-cnt,burst-tmr]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,version,enabled,status,node-cnt,node-id,to-tmr,burst-cnt,burst-tmr]
-
plca-set-cfg #
Set PLCA params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,version,enabled,status,node-cnt,node-id,to-tmr,burst-cnt,burst-tmr]
-
plca-get-status #
Get PLCA status params.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,version,enabled,status,node-cnt,node-id,to-tmr,burst-cnt,burst-tmr]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,version,enabled,status,node-cnt,node-id,to-tmr,burst-cnt,burst-tmr]
-
plca-ntf #
Notification for change in PLCA params.
-
notify:
plca-get-cfg
mm-get #
Get MAC Merge configuration and state
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,pmac-enabled,tx-enabled,tx-active,tx-min-frag-size,rx-min-frag-size,verify-enabled,verify-time,max-verify-time,stats]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,pmac-enabled,tx-enabled,tx-active,tx-min-frag-size,rx-min-frag-size,verify-enabled,verify-time,max-verify-time,stats]
-
mm-set #
Set MAC Merge configuration
-
attribute-set:
-
do:
request
-
attributes:
[
header,verify-enabled,verify-time,tx-enabled,pmac-enabled,tx-min-frag-size]
-
mm-ntf #
Notification for change in MAC Merge configuration.
-
notify:
mm-get
module-fw-flash-act #
Flash transceiver module firmware.
-
attribute-set:
-
do:
request
-
attributes:
[
header,file-name,password]
-
module-fw-flash-ntf #
Notification for firmware flashing progress and status.
-
attribute-set:
-
event:
-
attributes:
[
header,status,status-msg,done,total]
-
phy-get #
Get PHY devices attached to an interface
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,index,drvname,name,upstream-type,upstream-index,upstream-sfp-name,downstream-sfp-name]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,index,drvname,name,upstream-type,upstream-index,upstream-sfp-name,downstream-sfp-name]
-
phy-ntf #
Notification for change in PHY devices.
-
notify:
phy-get
tsconfig-get #
Get hwtstamp config.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,hwtstamp-provider,tx-types,rx-filters,hwtstamp-flags]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,hwtstamp-provider,tx-types,rx-filters,hwtstamp-flags]
-
tsconfig-set #
Set hwtstamp config.
-
attribute-set:
-
do:
request
-
attributes:
[
header,hwtstamp-provider,tx-types,rx-filters,hwtstamp-flags]
reply
-
attributes:
[
header,hwtstamp-provider,tx-types,rx-filters,hwtstamp-flags]
-
pse-ntf #
Notification for PSE events.
-
attribute-set:
-
event:
-
attributes:
[
header,events]
-
rss-set #
Set RSS params.
-
attribute-set:
-
do:
request
-
attributes:
[
header,context,hfunc,indir,hkey,input-xfrm,flow-hash]
-
rss-ntf #
Notification for change in RSS configuration. For additional contexts only modifications use this notification, creation and deletion have dedicated messages.
-
notify:
rss-get
rss-create-act #
Create an RSS context.
-
attribute-set:
-
do:
request
-
attributes:
[
header,context,hfunc,indir,hkey,input-xfrm]
reply
-
attributes:
[
header,context,hfunc,indir,hkey,input-xfrm]
-
rss-create-ntf #
Notification for creation of an additional RSS context.
-
notify:
rss-create-act
rss-delete-act #
Delete an RSS context.
-
attribute-set:
-
do:
request
-
attributes:
[
header,context]
-
rss-delete-ntf #
Notification for deletion of an additional RSS context.
-
attribute-set:
-
event:
-
attributes:
[
header,context]
-
mse-get #
Get PHY MSE measurement data and capabilities.
-
attribute-set:
-
do:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,capabilities,channel-a,channel-b,channel-c,channel-d,worst-channel,link]
-
-
dump:
request
-
attributes:
[
header]
reply
-
attributes:
[
header,capabilities,channel-a,channel-b,channel-c,channel-d,worst-channel,link]
-
Multicast groups #
- monitor
Definitions #
udp-tunnel-type #
-
enum-name:
None
-
type:
enum
-
enum-cnt-name:
__ethtool-udp-tunnel-type-cnt
-
entries:
-
vxlan -
geneve -
vxlan-gpe
-
stringset #
-
type:
enum
-
header:
linux/ethtool.h
-
entries
header-flags #
-
type:
flags
-
name-prefix:
ethtool-flag-
-
doc:
common ethtool header flags
-
entries:
-
compact-bitsets:
use compact bitsets in reply
-
omit-reply:
provide optional reply for SET or ACT requests
-
stats:
request statistics, if supported by the driver
-
module-fw-flash-status #
-
type:
enum
-
doc:
plug-in module firmware flashing status
-
header:
linux/ethtool.h
-
entries:
-
started:
The firmware flashing process has started.
-
in-progress:
The firmware flashing process is in progress.
-
completed:
The firmware flashing process was completed successfully.
-
error:
The firmware flashing process was stopped due to an error.
-
c33-pse-ext-state #
-
doc:
"groups of PSE extended states functions. IEEE 802.3-2022 33.2.4.4 Variables"
-
type:
enum
-
name-prefix:
ethtool-c33-pse-ext-state-
-
header:
linux/ethtool.h
-
entries:
-
none:
none
-
error-condition:
Group of error_condition states
-
mr-mps-valid:
Group of mr_mps_valid states
-
mr-pse-enable:
Group of mr_pse_enable states
-
option-detect-ted:
Group of option_detect_ted states
-
option-vport-lim:
Group of option_vport_lim states
-
ovld-detected:
Group of ovld_detected states
-
power-not-available:
Group of power_not_available states
-
short-detected:
Group of short_detected states
-
phy-upstream-type #
-
enum-name:
phy-upstream
-
header:
linux/ethtool.h
-
type:
enum
-
name-prefix:
phy-upstream
-
entries:
-
mac -
phy
-
tcp-data-split #
-
type:
enum
-
entries:
-
unknown -
disabled -
enabled
-
hwtstamp-source #
-
doc:
Source of the hardware timestamp
-
enum-name:
hwtstamp-source
-
name-prefix:
hwtstamp-source-
-
type:
enum
-
entries:
-
netdev:
Hardware timestamp comes from a MAC or a device which has MAC and PHY integrated
-
phylib:
Hardware timestamp comes from one PHY device of the network topology
-
pse-event #
-
doc:
PSE event list for the PSE controller
-
type:
flags
-
name-prefix:
ethtool-
-
entries:
-
pse-event-over-current:
PSE output current is too high
-
pse-event-over-temp:
PSE in over temperature state
-
c33-pse-event-detection:
detection process occur on the PSE. IEEE 802.3-2022 33.2.5 and 145.2.6 PSE detection of PDs. IEEE 802.3-202 30.9.1.1.5 aPSEPowerDetectionStatus
-
c33-pse-event-classification:
classification process occur on the PSE. IEEE 802.3-2022 33.2.6 and 145.2.8 classification of PDs mutual identification. IEEE 802.3-2022 30.9.1.1.8 aPSEPowerClassification.
-
c33-pse-event-disconnection:
PD has been disconnected on the PSE. IEEE 802.3-2022 33.3.8 and 145.3.9 PD Maintain Power Signature. IEEE 802.3-2022 33.5.1.2.9 MPS Absent. IEEE 802.3-2022 30.9.1.1.20 aPSEMPSAbsentCounter.
-
pse-event-over-budget:
PSE turned off due to over budget situation
-
pse-event-sw-pw-control-error:
PSE faced an error managing the power control from software
-
input-xfrm #
-
doc:
RSS hash function transformations.
-
type:
flags
-
enum-name:
None
-
name-prefix:
rxh-xfrm-
-
header:
linux/ethtool.h
-
entries:
-
sym-xor:
XOR the corresponding source and destination fields of each specified protocol. Both copies of the XOR'ed fields are fed into the RSS and RXHASH calculation. Note that this XORing reduces the input set entropy and could be exploited to reduce the RSS queue spread.
-
sym-or-xor:
Similar to SYM_XOR, except that one copy of the XOR'ed fields is replaced by an OR of the same fields.
-
rxfh-fields #
-
name-prefix:
rxh-
-
enum-name:
None
-
header:
linux/ethtool.h
-
type:
flags
-
entries:
-
l2da
-
vlan
-
l3-proto
-
ip-src
-
ip-dst
-
l4-b-0-1:
src port in case of TCP/UDP/SCTP
-
l4-b-2-3:
dst port in case of TCP/UDP/SCTP
-
gtp-teid
-
ip6-fl:
IPv6 Flow Label
-
discard
-
Attribute sets #
header #
unspec (unused) #
-
value:
0
dev-index (u32) #
dev-name (string) #
flags (u32) #
-
enum:
phy-index (u32) #
bitset-bit #
unspec (unused) #
-
value:
0
index (u32) #
name (string) #
value (flag) #
bitset-bits #
unspec (unused) #
-
value:
0
bit (nest) #
-
multi-attr:
True
-
nested-attributes:
bitset #
unspec (unused) #
-
value:
0
nomask (flag) #
size (u32) #
bits (nest) #
-
nested-attributes:
value (binary) #
mask (binary) #
string #
unspec (unused) #
-
value:
0
index (u32) #
value (string) #
strings #
unspec (unused) #
-
value:
0
unspec (unused) #
-
value:
0
string (nest) #
-
multi-attr:
True
-
nested-attributes:
stringset #
unspec (unused) #
-
value:
0
id (u32) #
count (u32) #
strings (nest) #
-
multi-attr:
True
-
nested-attributes:
stringsets #
unspec (unused) #
-
value:
0
stringset (nest) #
-
multi-attr:
True
-
nested-attributes:
strset #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
stringsets (nest) #
-
nested-attributes:
counts-only (flag) #
privflags #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
flags (nest) #
-
nested-attributes:
rings #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
rx-max (u32) #
rx-mini-max (u32) #
rx-jumbo-max (u32) #
tx-max (u32) #
rx (u32) #
rx-mini (u32) #
rx-jumbo (u32) #
tx (u32) #
rx-buf-len (u32) #
tcp-data-split (u8) #
-
enum:
cqe-size (u32) #
tx-push (u8) #
rx-push (u8) #
tx-push-buf-len (u32) #
tx-push-buf-len-max (u32) #
hds-thresh (u32) #
hds-thresh-max (u32) #
mm-stat #
MAC Merge (802.3)
unspec (unused) #
-
value:
0
pad (pad) #
reassembly-errors (u64) #
-
doc:
aMACMergeFrameAssErrorCount
smd-errors (u64) #
-
doc:
aMACMergeFrameSmdErrorCount
reassembly-ok (u64) #
-
doc:
aMACMergeFrameAssOkCount
rx-frag-count (u64) #
-
doc:
aMACMergeFragCountRx
tx-frag-count (u64) #
-
doc:
aMACMergeFragCountTx
hold-count (u64) #
-
doc:
aMACMergeHoldCount
mm #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
pmac-enabled (u8) #
tx-enabled (u8) #
tx-active (u8) #
tx-min-frag-size (u32) #
rx-min-frag-size (u32) #
verify-enabled (u8) #
verify-status (u8) #
verify-time (u32) #
max-verify-time (u32) #
stats (nest) #
-
nested-attributes:
linkinfo #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
port (u8) #
phyaddr (u8) #
tp-mdix (u8) #
tp-mdix-ctrl (u8) #
transceiver (u8) #
linkmodes #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
autoneg (u8) #
ours (nest) #
-
nested-attributes:
peer (nest) #
-
nested-attributes:
speed (u32) #
duplex (u8) #
master-slave-cfg (u8) #
master-slave-state (u8) #
lanes (u32) #
rate-matching (u8) #
linkstate #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
link (u8) #
sqi (u32) #
sqi-max (u32) #
ext-state (u8) #
ext-substate (u8) #
ext-down-cnt (u32) #
debug #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
msgmask (nest) #
-
nested-attributes:
wol #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
modes (nest) #
-
nested-attributes:
sopass (binary) #
features #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
hw (nest) #
-
nested-attributes:
wanted (nest) #
-
nested-attributes:
active (nest) #
-
nested-attributes:
nochange (nest) #
-
nested-attributes:
channels #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
rx-max (u32) #
tx-max (u32) #
other-max (u32) #
combined-max (u32) #
rx-count (u32) #
tx-count (u32) #
other-count (u32) #
combined-count (u32) #
irq-moderation #
unspec (unused) #
-
value:
0
usec (u32) #
pkts (u32) #
comps (u32) #
profile #
unspec (unused) #
-
value:
0
irq-moderation (nest) #
-
multi-attr:
True
-
nested-attributes:
coalesce #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
rx-usecs (u32) #
rx-max-frames (u32) #
rx-usecs-irq (u32) #
rx-max-frames-irq (u32) #
tx-usecs (u32) #
tx-max-frames (u32) #
tx-usecs-irq (u32) #
tx-max-frames-irq (u32) #
stats-block-usecs (u32) #
use-adaptive-rx (u8) #
use-adaptive-tx (u8) #
pkt-rate-low (u32) #
rx-usecs-low (u32) #
rx-max-frames-low (u32) #
tx-usecs-low (u32) #
tx-max-frames-low (u32) #
pkt-rate-high (u32) #
rx-usecs-high (u32) #
rx-max-frames-high (u32) #
tx-usecs-high (u32) #
tx-max-frames-high (u32) #
rate-sample-interval (u32) #
use-cqe-mode-tx (u8) #
use-cqe-mode-rx (u8) #
tx-aggr-max-bytes (u32) #
tx-aggr-max-frames (u32) #
tx-aggr-time-usecs (u32) #
rx-profile (nest) #
-
nested-attributes:
tx-profile (nest) #
-
nested-attributes:
pause-stat #
unspec (unused) #
-
value:
0
pad (pad) #
tx-frames (u64) #
rx-frames (u64) #
pause #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
autoneg (u8) #
rx (u8) #
tx (u8) #
stats (nest) #
-
nested-attributes:
stats-src (u32) #
eee #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
modes-ours (nest) #
-
nested-attributes:
modes-peer (nest) #
-
nested-attributes:
active (u8) #
enabled (u8) #
tx-lpi-enabled (u8) #
tx-lpi-timer (u32) #
ts-stat #
unspec (unused) #
-
value:
0
tx-pkts (uint) #
tx-lost (uint) #
tx-err (uint) #
tx-onestep-pkts-unconfirmed (uint) #
ts-hwtstamp-provider #
unspec (unused) #
-
value:
0
index (u32) #
qualifier (u32) #
tsinfo #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
timestamping (nest) #
-
nested-attributes:
tx-types (nest) #
-
nested-attributes:
rx-filters (nest) #
-
nested-attributes:
phc-index (u32) #
stats (nest) #
-
nested-attributes:
hwtstamp-provider (nest) #
-
nested-attributes:
hwtstamp-source (u32) #
-
enum:
hwtstamp-phyindex (u32) #
cable-result #
unspec (unused) #
-
value:
0
pair (u8) #
-
doc:
ETHTOOL_A_CABLE_PAIR
code (u8) #
-
doc:
ETHTOOL_A_CABLE_RESULT_CODE
src (u32) #
-
doc:
ETHTOOL_A_CABLE_INF_SRC
cable-fault-length #
unspec (unused) #
-
value:
0
pair (u8) #
cm (u32) #
src (u32) #
cable-nest #
unspec (unused) #
-
value:
0
result (nest) #
-
nested-attributes:
fault-length (nest) #
-
nested-attributes:
cable-test #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
cable-test-ntf #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
status (u8) #
-
doc:
_STARTED/_COMPLETE
nest (nest) #
-
nested-attributes:
cable-test-tdr-cfg #
unspec (unused) #
-
value:
0
first (u32) #
last (u32) #
step (u32) #
pair (u8) #
cable-test-tdr-ntf #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
status (u8) #
nest (nest) #
-
nested-attributes:
cable-test-tdr #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
cfg (nest) #
-
nested-attributes:
tunnel-udp-entry #
unspec (unused) #
-
value:
0
port (u16) #
-
byte-order:
big-endian
type (u32) #
-
enum:
tunnel-udp-table #
unspec (unused) #
-
value:
0
size (u32) #
types (nest) #
-
nested-attributes:
entry (nest) #
-
multi-attr:
True
-
nested-attributes:
tunnel-udp #
unspec (unused) #
-
value:
0
table (nest) #
-
nested-attributes:
tunnel-info #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
udp-ports (nest) #
-
nested-attributes:
fec-hist #
pad (pad) #
bin-low (u32) #
-
doc:
Low bound of FEC bin (inclusive)
bin-high (u32) #
-
doc:
High bound of FEC bin (inclusive)
bin-val (uint) #
-
doc:
Error count in the bin (optional if per-lane values exist)
bin-val-per-lane (binary) #
-
sub-type:
u64
-
doc:
An array of per-lane error counters in the bin (optional)
fec-stat #
unspec (unused) #
-
value:
0
pad (pad) #
corrected (binary) #
-
sub-type:
u64
uncorr (binary) #
-
sub-type:
u64
corr-bits (binary) #
-
sub-type:
u64
hist (nest) #
-
multi-attr:
True
-
nested-attributes:
fec #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
modes (nest) #
-
nested-attributes:
auto (u8) #
active (u32) #
stats (nest) #
-
nested-attributes:
module-eeprom #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
offset (u32) #
length (u32) #
page (u8) #
bank (u8) #
i2c-address (u8) #
data (binary) #
stats-grp #
unspec (unused) #
-
value:
0
pad (pad) #
id (u32) #
ss-id (u32) #
stat (u64) #
-
type-value:
['id']
hist-rx (nest) #
-
nested-attributes:
hist-tx (nest) #
-
nested-attributes:
hist-bkt-low (u32) #
hist-bkt-hi (u32) #
hist-val (u64) #
stats-grp-hist #
hist-bkt-low #
hist-bkt-hi #
hist-val #
stats #
unspec (unused) #
-
value:
0
pad (pad) #
header (nest) #
-
nested-attributes:
groups (nest) #
-
nested-attributes:
grp (nest) #
-
nested-attributes:
src (u32) #
phc-vclocks #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
num (u32) #
index (binary) #
-
sub-type:
s32
module #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
power-mode-policy (u8) #
power-mode (u8) #
c33-pse-pw-limit #
unspec (unused) #
-
value:
0
min (u32) #
max (u32) #
pse #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
podl-pse-admin-state (u32) #
-
name-prefix:
ethtool-a-
podl-pse-admin-control (u32) #
-
name-prefix:
ethtool-a-
podl-pse-pw-d-status (u32) #
-
name-prefix:
ethtool-a-
c33-pse-admin-state (u32) #
-
name-prefix:
ethtool-a-
c33-pse-admin-control (u32) #
-
name-prefix:
ethtool-a-
c33-pse-pw-d-status (u32) #
-
name-prefix:
ethtool-a-
c33-pse-pw-class (u32) #
-
name-prefix:
ethtool-a-
c33-pse-actual-pw (u32) #
-
name-prefix:
ethtool-a-
c33-pse-ext-state (u32) #
-
name-prefix:
ethtool-a-
-
enum:
c33-pse-ext-substate (u32) #
-
name-prefix:
ethtool-a-
c33-pse-avail-pw-limit (u32) #
-
name-prefix:
ethtool-a-
c33-pse-pw-limit-ranges (nest) #
-
name-prefix:
ethtool-a-
-
multi-attr:
True
-
nested-attributes:
pse-pw-d-id (u32) #
-
name-prefix:
ethtool-a-
pse-prio-max (u32) #
-
name-prefix:
ethtool-a-
pse-prio (u32) #
-
name-prefix:
ethtool-a-
flow #
Flow types, corresponding to those defined in the old ethtool header for RXFH and RXNFC as ${PROTO}_FLOW. The values are not matching the old ones to avoid carrying into Netlink the IP_USER_FLOW vs IPV4_FLOW vs IPV4_USER_FLOW confusion.
ether (uint) #
-
enum:
ip4 (uint) #
-
enum:
ip6 (uint) #
-
enum:
tcp4 (uint) #
-
enum:
tcp6 (uint) #
-
enum:
udp4 (uint) #
-
enum:
udp6 (uint) #
-
enum:
sctp4 (uint) #
-
enum:
sctp6 (uint) #
-
enum:
ah4 (uint) #
-
enum:
ah6 (uint) #
-
enum:
esp4 (uint) #
-
enum:
esp6 (uint) #
-
enum:
ah-esp4 (uint) #
-
enum:
ah-esp6 (uint) #
-
enum:
gtpu4 (uint) #
-
enum:
gtpu6 (uint) #
-
enum:
gtpc4 (uint) #
-
enum:
gtpc6 (uint) #
-
enum:
gtpc-teid4 (uint) #
-
enum:
gtpc-teid6 (uint) #
-
enum:
gtpu-eh4 (uint) #
-
enum:
gtpu-eh6 (uint) #
-
enum:
gtpu-ul4 (uint) #
-
enum:
gtpu-ul6 (uint) #
-
enum:
gtpu-dl4 (uint) #
-
enum:
gtpu-dl6 (uint) #
-
enum:
rss #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
context (u32) #
hfunc (u32) #
indir (binary) #
-
sub-type:
u32
hkey (binary) #
input-xfrm (u32) #
-
enum:
start-context (u32) #
flow-hash (nest) #
-
nested-attributes:
plca #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
version (u16) #
enabled (u8) #
status (u8) #
node-cnt (u32) #
node-id (u32) #
to-tmr (u32) #
burst-cnt (u32) #
burst-tmr (u32) #
module-fw-flash #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
file-name (string) #
password (u32) #
status (u32) #
-
enum:
status-msg (string) #
done (uint) #
total (uint) #
phy #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
index (u32) #
drvname (string) #
name (string) #
upstream-type (u32) #
-
enum:
upstream-index (u32) #
upstream-sfp-name (string) #
downstream-sfp-name (string) #
tsconfig #
unspec (unused) #
-
value:
0
header (nest) #
-
nested-attributes:
hwtstamp-provider (nest) #
-
nested-attributes:
tx-types (nest) #
-
nested-attributes:
rx-filters (nest) #
-
nested-attributes:
hwtstamp-flags (nest) #
-
nested-attributes:
pse-ntf #
header (nest) #
-
nested-attributes:
events (uint) #
-
enum:
-
doc:
List of events reported by the PSE controller
mse-capabilities #
MSE capabilities attribute set
max-average-mse (uint) #
max-peak-mse (uint) #
refresh-rate-ps (uint) #
num-symbols (uint) #
mse-snapshot #
MSE snapshot attribute set
average-mse (uint) #
peak-mse (uint) #
worst-peak-mse (uint) #
mse #
header (nest) #
-
nested-attributes:
capabilities (nest) #
-
nested-attributes:
channel-a (nest) #
-
nested-attributes:
channel-b (nest) #
-
nested-attributes:
channel-c (nest) #
-
nested-attributes:
channel-d (nest) #
-
nested-attributes:
worst-channel (nest) #
-
nested-attributes:
link (nest) #
-
nested-attributes:
Family fou netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Foo-over-UDP.
Operations #
unspec #
unused
-
value:
0
add #
Add port.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
port,ipproto,type,remcsum-nopartial,local-v4,peer-v4,local-v6,peer-v6,peer-port,ifindex]
-
del #
Delete port.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
af,ifindex,port,peer-port,local-v4,peer-v4,local-v6,peer-v6]
-
get #
Get tunnel info.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
do:
request
-
attributes:
[
af,ifindex,port,peer-port,local-v4,peer-v4,local-v6,peer-v6]
reply
-
attributes:
[
port,ipproto,type,remcsum-nopartial,local-v4,peer-v4,local-v6,peer-v6,peer-port,ifindex]
-
-
dump:
reply
-
attributes:
[
port,ipproto,type,remcsum-nopartial,local-v4,peer-v4,local-v6,peer-v6,peer-port,ifindex]
-
Definitions #
encap-type #
-
type:
enum
-
name-prefix:
fou-encap-
-
enum-name:
None
-
entries:
-
unspec -
direct -
gue
-
Attribute sets #
fou #
unspec (unused) #
-
value:
0
port (u16) #
-
byte-order:
big-endian
af (u8) #
ipproto (u8) #
type (u8) #
remcsum-nopartial (flag) #
local-v4 (u32) #
local-v6 (binary) #
peer-v4 (u32) #
peer-v6 (binary) #
peer-port (u16) #
-
byte-order:
big-endian
ifindex (s32) #
Family handshake netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Netlink protocol to request a transport layer security handshake.
Operations #
ready #
Notify handlers that a new handshake request is waiting
-
notify:
accept
accept #
Handler retrieves next queued handshake request
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
handler-class]
reply
-
attributes:
[
sockfd,message-type,timeout,auth-mode,peer-identity,certificate,peername,keyring]
-
done #
Handler reports handshake completion
-
attribute-set:
-
do:
request
-
attributes:
[
status,sockfd,remote-auth]
-
Multicast groups #
-
none
-
tlshd
Definitions #
handler-class #
-
type:
enum
-
value-start:
0
-
entries:
-
none -
tlshd -
max
-
msg-type #
-
type:
enum
-
value-start:
0
-
entries:
-
unspec -
clienthello -
serverhello
-
auth #
-
type:
enum
-
value-start:
0
-
entries:
-
unspec -
unauth -
psk -
x509
-
Attribute sets #
x509 #
cert (s32) #
privkey (s32) #
accept #
sockfd (s32) #
handler-class (u32) #
-
enum:
message-type (u32) #
-
enum:
timeout (u32) #
auth-mode (u32) #
-
enum:
peer-identity (u32) #
-
multi-attr:
True
certificate (nest) #
-
nested-attributes:
-
multi-attr:
True
peername (string) #
keyring (u32) #
done #
status (u32) #
sockfd (s32) #
remote-auth (u32) #
-
multi-attr:
True
Family lockd netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
lockd configuration over generic netlink
Operations #
server-set #
set the lockd server parameters
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
gracetime,tcp-port,udp-port]
-
server-get #
get the lockd server parameters
-
attribute-set:
-
do:
reply
-
attributes:
[
gracetime,tcp-port,udp-port]
-
Attribute sets #
server #
gracetime (u32) #
tcp-port (u16) #
udp-port (u16) #
Family mptcp_pm netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Multipath TCP.
Operations #
unspec #
unused
-
value:
0
add-addr #
Add endpoint
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr]
-
del-addr #
Delete endpoint
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr]
-
get-addr #
Get endpoint information
-
attribute-set:
-
dont-validate:
['strict']
-
do:
request
-
attributes:
[
addr,token]
reply
-
attributes:
[
addr]
-
-
dump:
reply
-
attributes:
[
addr]
-
flush-addrs #
Flush addresses
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr]
-
set-limits #
Set protocol limits
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
rcv-add-addrs,subflows]
-
get-limits #
Get protocol limits
-
attribute-set:
-
dont-validate:
['strict']
-
do:
request
-
attributes:
[
rcv-add-addrs,subflows]
reply
-
attributes:
[
rcv-add-addrs,subflows]
-
set-flags #
Change endpoint flags
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr,token,addr-remote]
-
announce #
Announce new address
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr,token]
-
remove #
Announce removal
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
token,loc-id]
-
subflow-create #
Create subflow
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr,token,addr-remote]
-
subflow-destroy #
Destroy subflow
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
addr,token,addr-remote]
-
Definitions #
event-type #
-
type:
enum
-
enum-name:
mptcp-event-type
-
doc:
Netlink MPTCP event types
-
name-prefix:
mptcp-event-
-
entries:
-
unspec:
unused event
-
created:
A new MPTCP connection has been created. It is the good time to allocate memory and send ADD_ADDR if needed. Depending on the traffic-patterns it can take a long time until the MPTCP_EVENT_ESTABLISHED is sent. Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6, sport, dport, [server-side], [flags].
-
established:
A MPTCP connection is established (can start new subflows). Attributes: token, family, saddr4 | saddr6, daddr4 | daddr6, sport, dport, [server-side], [flags].
-
closed:
A MPTCP connection has stopped. Attribute: token.
-
announced:
A new address has been announced by the peer. Attributes: token, rem_id, family, daddr4 | daddr6 [, dport].
-
removed:
An address has been lost by the peer. Attributes: token, rem_id.
-
sub-established:
A new subflow has been established. 'error' should not be set. Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport, dport, backup, if-idx [, error].
-
sub-closed:
A subflow has been closed. An error (copy of sk_err) could be set if an error has been detected for this subflow. Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport, dport, backup, if-idx [, error].
-
sub-priority:
The priority of a subflow has changed. 'error' should not be set. Attributes: token, family, loc_id, rem_id, saddr4 | saddr6, daddr4 | daddr6, sport, dport, backup, if-idx [, error].
-
listener-created:
A new PM listener is created. Attributes: family, sport, saddr4 | saddr6.
-
listener-closed:
A PM listener is closed. Attributes: family, sport, saddr4 | saddr6.
-
Attribute sets #
address #
unspec (unused) #
-
value:
0
family (u16) #
id (u8) #
addr4 (u32) #
-
byte-order:
big-endian
addr6 (binary) #
port (u16) #
flags (u32) #
if-idx (s32) #
subflow-attribute #
unspec (unused) #
-
value:
0
token-rem (u32) #
token-loc (u32) #
relwrite-seq (u32) #
map-seq (u64) #
map-sfseq (u32) #
ssn-offset (u32) #
map-datalen (u16) #
flags (u32) #
id-rem (u8) #
id-loc (u8) #
pad (pad) #
endpoint #
addr (nest) #
-
nested-attributes:
attr #
unspec (unused) #
-
value:
0
addr (nest) #
-
nested-attributes:
rcv-add-addrs (u32) #
subflows (u32) #
token (u32) #
loc-id (u8) #
addr-remote (nest) #
-
nested-attributes:
event-attr #
unspec (unused) #
-
value:
0
token (u32) #
family (u16) #
loc-id (u8) #
rem-id (u8) #
saddr4 (u32) #
-
byte-order:
big-endian
saddr6 (binary) #
daddr4 (u32) #
-
byte-order:
big-endian
daddr6 (binary) #
sport (u16) #
-
byte-order:
big-endian
dport (u16) #
-
byte-order:
big-endian
backup (u8) #
error (u8) #
flags (u16) #
timeout (u32) #
if-idx (s32) #
reset-reason (u32) #
reset-flags (u32) #
server-side (u8) #
-
doc:
Deprecated: use 'flags'
Family net-shaper netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Networking HW rate limiting configuration.
This API allows configuring HW shapers available on the network devices at different levels (queues, network device) and allows arbitrary manipulation of the scheduling tree of the involved shapers.
Each @shaper is identified within the given device, by a @handle, comprising both a @scope and an @id.
Depending on the @scope value, the shapers are attached to specific HW objects (queues, devices) or, for @node scope, represent a scheduling group, that can be placed in an arbitrary location of the scheduling tree.
Shapers can be created with two different operations: the @set operation, to create and update a single "attached" shaper, and the @group operation, to create and update a scheduling group. Only the @group operation can create @node scope shapers.
Existing shapers can be deleted/reset via the @delete operation.
The user can query the running configuration via the @get operation.
Different devices can provide different feature sets, e.g. with no support for complex scheduling hierarchy, or for some shaping parameters. The user can introspect the HW capabilities via the @cap-get operation.
Operations #
get #
Get information about a shaper for a given device.
-
attribute-set:
-
do:
pre
net-shaper-nl-pre-doit
post
net-shaper-nl-post-doit
request
-
attributes:
[
ifindex,handle]
reply
-
attributes:
[
ifindex,parent,handle,metric,bw-min,bw-max,burst,priority,weight]
-
-
dump:
pre
net-shaper-nl-pre-dumpit
post
net-shaper-nl-post-dumpit
request
-
attributes:
[
ifindex]
reply
-
attributes:
[
ifindex,parent,handle,metric,bw-min,bw-max,burst,priority,weight]
-
set #
Create or update the specified shaper. The set operation can't be used to create a @node scope shaper, use the @group operation instead.
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
net-shaper-nl-pre-doit-write
post
net-shaper-nl-post-doit-write
request
-
attributes:
[
ifindex,handle,metric,bw-min,bw-max,burst,priority,weight]
-
delete #
Clear (remove) the specified shaper. When deleting a @node shaper, reattach all the node's leaves to the deleted node's parent. If, after the removal, the parent shaper has no more leaves and the parent shaper scope is @node, the parent node is deleted, recursively. When deleting a @queue shaper or a @netdev shaper, the shaper disappears from the hierarchy, but the queue/device can still send traffic: it has an implicit node with infinite bandwidth. The queue's implicit node feeds an implicit RR node at the root of the hierarchy.
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
net-shaper-nl-pre-doit-write
post
net-shaper-nl-post-doit-write
request
-
attributes:
[
ifindex,handle]
-
group #
Create or update a scheduling group, attaching the specified @leaves shapers under the specified node identified by @handle. The @leaves shapers scope must be @queue and the node shaper scope must be either @node or @netdev. When the node shaper has @node scope, if the @handle @id is not specified, a new shaper of such scope is created, otherwise the specified node must already exist. When updating an existing node shaper, the specified @leaves are added to the existing node; such node will also retain any preexisting leave. The @parent handle for a new node shaper defaults to the parent of all the leaves, provided all the leaves share the same parent. Otherwise @parent handle must be specified. The user can optionally provide shaping attributes for the node shaper. The operation is atomic, on failure no change is applied to the device shaping configuration, otherwise the @node shaper full identifier, comprising @binding and @handle, is provided as the reply.
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
net-shaper-nl-pre-doit-write
post
net-shaper-nl-post-doit-write
request
-
attributes:
[
ifindex,parent,handle,metric,bw-min,bw-max,burst,priority,weight,leaves]
reply
-
attributes:
[
ifindex,handle]
-
cap-get #
Get the shaper capabilities supported by the given device for the specified scope.
-
attribute-set:
-
do:
pre
net-shaper-nl-cap-pre-doit
post
net-shaper-nl-cap-post-doit
request
-
attributes:
[
ifindex,scope]
reply
-
attributes:
[
ifindex,scope,support-metric-bps,support-metric-pps,support-nesting,support-bw-min,support-bw-max,support-burst,support-priority,support-weight]
-
-
dump:
pre
net-shaper-nl-cap-pre-dumpit
post
net-shaper-nl-cap-post-dumpit
request
-
attributes:
[
ifindex]
reply
-
attributes:
[
ifindex,scope,support-metric-bps,support-metric-pps,support-nesting,support-bw-min,support-bw-max,support-burst,support-priority,support-weight]
-
Definitions #
scope #
-
type:
enum
-
doc:
Defines the shaper @id interpretation.
-
entries:
-
unspec:
The scope is not specified.
-
netdev:
The main shaper for the given network device.
-
queue:
The shaper is attached to the given device queue, the @id represents the queue number.
-
node:
The shaper allows grouping of queues or other node shapers; can be nested in either @netdev shapers or other @node shapers, allowing placement in any location of the scheduling tree, except leaves and root.
-
metric #
-
type:
enum
-
doc:
Different metric supported by the shaper.
-
entries:
-
bps:
Shaper operates on a bits per second basis.
-
pps:
Shaper operates on a packets per second basis.
-
Attribute sets #
net-shaper #
handle (nest) #
-
nested-attributes:
-
doc:
Unique identifier for the given shaper inside the owning device.
metric (u32) #
-
enum:
-
doc:
Metric used by the given shaper for bw-min, bw-max and burst.
bw-min (uint) #
-
doc:
Guaranteed bandwidth for the given shaper.
bw-max (uint) #
-
doc:
Maximum bandwidth for the given shaper or 0 when unlimited.
burst (uint) #
-
doc:
Maximum burst-size for shaping. Should not be interpreted as a quantum.
priority (u32) #
-
doc:
Scheduling priority for the given shaper. The priority scheduling is applied to sibling shapers.
weight (u32) #
-
doc:
Relative weight for round robin scheduling of the given shaper. The scheduling is applied to all sibling shapers with the same priority.
ifindex (u32) #
-
doc:
Interface index owning the specified shaper.
parent (nest) #
-
nested-attributes:
-
doc:
Identifier for the parent of the affected shaper. Only needed for @group operation.
leaves (nest) #
-
multi-attr:
True
-
nested-attributes:
-
doc:
Describes a set of leaves shapers for a @group operation.
handle #
scope (u32) #
-
enum:
-
doc:
Defines the shaper @id interpretation.
id (u32) #
-
doc:
Numeric identifier of a shaper. The id semantic depends on the scope. For @queue scope it's the queue id and for @node scope it's the node identifier.
leaf-info #
handle #
priority #
weight #
caps #
ifindex (u32) #
-
doc:
Interface index queried for shapers capabilities.
scope (u32) #
-
enum:
-
doc:
The scope to which the queried capabilities apply.
support-metric-bps (flag) #
-
doc:
The device accepts 'bps' metric for bw-min, bw-max and burst.
support-metric-pps (flag) #
-
doc:
The device accepts 'pps' metric for bw-min, bw-max and burst.
support-nesting (flag) #
-
doc:
The device supports nesting shaper belonging to this scope below 'node' scoped shapers. Only 'queue' and 'node' scope can have flag 'support-nesting'.
support-bw-min (flag) #
-
doc:
The device supports a minimum guaranteed B/W.
support-bw-max (flag) #
-
doc:
The device supports maximum B/W shaping.
support-burst (flag) #
-
doc:
The device supports a maximum burst size.
support-priority (flag) #
-
doc:
The device supports priority scheduling.
support-weight (flag) #
-
doc:
The device supports weighted round robin scheduling.
Family netdev netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
netdev configuration over generic netlink.
Operations #
dev-get #
Get / dump information about a netdev.
-
attribute-set:
-
do:
request
-
attributes:
[
ifindex]
reply
-
attributes:
[
ifindex,xdp-features,xdp-zc-max-segs,xdp-rx-metadata-features,xsk-features]
-
-
dump:
reply
-
attributes:
[
ifindex,xdp-features,xdp-zc-max-segs,xdp-rx-metadata-features,xsk-features]
-
dev-add-ntf #
Notification about device appearing.
-
notify:
dev-get
-
mcgrp:
mgmt
dev-del-ntf #
Notification about device disappearing.
-
notify:
dev-get
-
mcgrp:
mgmt
dev-change-ntf #
Notification about device configuration being changed.
-
notify:
dev-get
-
mcgrp:
mgmt
page-pool-get #
Get / dump information about Page Pools. Only Page Pools associated by the driver with a net_device can be listed. ifindex will not be reported if the net_device no longer exists.
-
attribute-set:
-
config-cond:
page-pool
-
do:
request
-
attributes:
[
id]
reply
-
attributes:
[
id,ifindex,napi-id,inflight,inflight-mem,detach-time,dmabuf,io-uring]
-
-
dump:
reply
-
attributes:
[
id,ifindex,napi-id,inflight,inflight-mem,detach-time,dmabuf,io-uring]
-
page-pool-add-ntf #
Notification about page pool appearing.
-
notify:
page-pool-get
-
mcgrp:
page-pool
-
config-cond:
page-pool
page-pool-del-ntf #
Notification about page pool disappearing.
-
notify:
page-pool-get
-
mcgrp:
page-pool
-
config-cond:
page-pool
page-pool-change-ntf #
Notification about page pool configuration being changed.
-
notify:
page-pool-get
-
mcgrp:
page-pool
-
config-cond:
page-pool
page-pool-stats-get #
Get page pool statistics.
-
attribute-set:
-
config-cond:
page-pool-stats
-
do:
request
-
attributes:
[
info]
reply
-
attributes:
[
info,alloc-fast,alloc-slow,alloc-slow-high-order,alloc-empty,alloc-refill,alloc-waive,recycle-cached,recycle-cache-full,recycle-ring,recycle-ring-full,recycle-released-refcnt]
-
-
dump:
reply
-
attributes:
[
info,alloc-fast,alloc-slow,alloc-slow-high-order,alloc-empty,alloc-refill,alloc-waive,recycle-cached,recycle-cache-full,recycle-ring,recycle-ring-full,recycle-released-refcnt]
-
queue-get #
Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).
-
attribute-set:
-
do:
request
-
attributes:
[
ifindex,type,id]
reply
-
attributes:
[
id,type,napi-id,ifindex,dmabuf,io-uring,xsk]
-
-
dump:
request
-
attributes:
[
ifindex]
reply
-
attributes:
[
id,type,napi-id,ifindex,dmabuf,io-uring,xsk]
-
napi-get #
Get information about NAPI instances configured on the system.
-
attribute-set:
-
do:
request
-
attributes:
[
id]
reply
-
attributes:
[
id,ifindex,irq,pid,defer-hard-irqs,gro-flush-timeout,irq-suspend-timeout,threaded]
-
-
dump:
request
-
attributes:
[
ifindex]
reply
-
attributes:
[
id,ifindex,irq,pid,defer-hard-irqs,gro-flush-timeout,irq-suspend-timeout,threaded]
-
qstats-get #
Get / dump fine grained statistics. Which statistics are reported depends on the device and the driver, and whether the driver stores software counters per-queue.
-
attribute-set:
-
dump:
request
-
attributes:
[
ifindex,scope]
reply
-
attributes:
[
ifindex,queue-type,queue-id,rx-packets,rx-bytes,tx-packets,tx-bytes,rx-alloc-fail,rx-hw-drops,rx-hw-drop-overruns,rx-csum-complete,rx-csum-unnecessary,rx-csum-none,rx-csum-bad,rx-hw-gro-packets,rx-hw-gro-bytes,rx-hw-gro-wire-packets,rx-hw-gro-wire-bytes,rx-hw-drop-ratelimits,tx-hw-drops,tx-hw-drop-errors,tx-csum-none,tx-needs-csum,tx-hw-gso-packets,tx-hw-gso-bytes,tx-hw-gso-wire-packets,tx-hw-gso-wire-bytes,tx-hw-drop-ratelimits,tx-stop,tx-wake]
-
bind-rx #
Bind dmabuf to netdev
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
ifindex,fd,queues]
reply
-
attributes:
[
id]
-
napi-set #
Set configurable NAPI instance settings.
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
id,defer-hard-irqs,gro-flush-timeout,irq-suspend-timeout,threaded]
-
bind-tx #
Bind dmabuf to netdev for TX
-
attribute-set:
-
do:
request
-
attributes:
[
ifindex,fd]
reply
-
attributes:
[
id]
-
Multicast groups #
-
mgmt
-
page-pool
Definitions #
xdp-act #
-
type:
flags
-
entries:
-
basic:
XDP features set supported by all drivers (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX)
-
redirect:
The netdev supports XDP_REDIRECT
-
ndo-xmit:
This feature informs if netdev implements ndo_xdp_xmit callback.
-
xsk-zerocopy:
This feature informs if netdev supports AF_XDP in zero copy mode.
-
hw-offload:
This feature informs if netdev supports XDP hw offloading.
-
rx-sg:
This feature informs if netdev implements non-linear XDP buffer support in the driver napi callback.
-
ndo-xmit-sg:
This feature informs if netdev implements non-linear XDP buffer support in ndo_xdp_xmit callback.
-
xdp-rx-metadata #
-
type:
flags
-
entries:
-
timestamp:
Device is capable of exposing receive HW timestamp via bpf_xdp_metadata_rx_timestamp().
-
hash:
Device is capable of exposing receive packet hash via bpf_xdp_metadata_rx_hash().
-
vlan-tag:
Device is capable of exposing receive packet VLAN tag via bpf_xdp_metadata_rx_vlan_tag().
-
xsk-flags #
-
type:
flags
-
entries:
-
tx-timestamp:
HW timestamping egress packets is supported by the driver.
-
tx-checksum:
L3 checksum HW offload is supported by the driver.
-
tx-launch-time-fifo:
Launch time HW offload is supported by the driver.
-
queue-type #
-
type:
enum
-
entries:
-
rx -
tx
-
qstats-scope #
-
type:
flags
-
entries:
queue
napi-threaded #
-
type:
enum
-
entries:
-
disabled -
enabled -
busy-poll
-
Attribute sets #
dev #
ifindex (u32) #
-
doc:
netdev ifindex
pad (pad) #
xdp-features (u64) #
-
doc:
Bitmask of enabled xdp-features.
-
enum:
xdp-zc-max-segs (u32) #
-
doc:
max fragment count supported by ZC driver
xdp-rx-metadata-features (u64) #
-
doc:
Bitmask of supported XDP receive metadata features. See Documentation/networking/xdp-rx-metadata.rst for more details.
-
enum:
xsk-features (u64) #
-
doc:
Bitmask of enabled AF_XDP features.
-
enum:
io-uring-provider-info #
page-pool #
id (uint) #
-
doc:
Unique ID of a Page Pool instance.
ifindex (u32) #
-
doc:
ifindex of the netdev to which the pool belongs. May not be reported if the page pool was allocated for a netdev which got destroyed already (page pools may outlast their netdevs because they wait for all memory to be returned).
napi-id (uint) #
-
doc:
Id of NAPI using this Page Pool instance.
inflight (uint) #
-
doc:
Number of outstanding references to this page pool (allocated but yet to be freed pages). Allocated pages may be held in socket receive queues, driver receive ring, page pool recycling ring, the page pool cache, etc.
inflight-mem (uint) #
-
doc:
Amount of memory held by inflight pages.
detach-time (uint) #
-
doc:
Seconds in CLOCK_BOOTTIME of when Page Pool was detached by the driver. Once detached Page Pool can no longer be used to allocate memory. Page Pools wait for all the memory allocated from them to be freed before truly disappearing. "Detached" Page Pools cannot be "re-attached", they are just waiting to disappear. Attribute is absent if Page Pool has not been detached, and can still be used to allocate new memory.
dmabuf (u32) #
-
doc:
ID of the dmabuf this page-pool is attached to.
io-uring (nest) #
-
doc:
io-uring memory provider information.
-
nested-attributes:
page-pool-info #
id #
ifindex #
page-pool-stats #
Page pool statistics, see docs for struct page_pool_stats for information about individual statistics.
info (nest) #
-
doc:
Page pool identifying information.
-
nested-attributes:
alloc-fast (uint) #
-
value:
8
alloc-slow (uint) #
alloc-slow-high-order (uint) #
alloc-empty (uint) #
alloc-refill (uint) #
alloc-waive (uint) #
recycle-cached (uint) #
recycle-cache-full (uint) #
recycle-ring (uint) #
recycle-ring-full (uint) #
recycle-released-refcnt (uint) #
napi #
ifindex (u32) #
-
doc:
ifindex of the netdevice to which NAPI instance belongs.
id (u32) #
-
doc:
ID of the NAPI instance.
irq (u32) #
-
doc:
The associated interrupt vector number for the napi
pid (u32) #
-
doc:
PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.
defer-hard-irqs (u32) #
-
doc:
The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
gro-flush-timeout (uint) #
-
doc:
The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.
irq-suspend-timeout (uint) #
-
doc:
The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events
threaded (u32) #
-
doc:
Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.
-
enum:
xsk-info #
queue #
id (u32) #
-
doc:
Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.
ifindex (u32) #
-
doc:
ifindex of the netdevice to which the queue belongs.
type (u32) #
-
doc:
Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.
-
enum:
napi-id (u32) #
-
doc:
ID of the NAPI instance which services this queue.
dmabuf (u32) #
-
doc:
ID of the dmabuf attached to this queue, if any.
io-uring (nest) #
-
doc:
io_uring memory provider information.
-
nested-attributes:
xsk (nest) #
-
doc:
XSK information for this queue, if any.
-
nested-attributes:
qstats #
Get device statistics, scoped to a device or a queue. These statistics extend (and partially duplicate) statistics available in struct rtnl_link_stats64. Value of the scope attribute determines how statistics are aggregated. When aggregated for the entire device the statistics represent the total number of events since last explicit reset of the device (i.e. not a reconfiguration like changing queue count). When reported per-queue, however, the statistics may not add up to the total number of events, will only be reported for currently active objects, and will likely report the number of events since last reconfiguration.
ifindex (u32) #
-
doc:
ifindex of the netdevice to which stats belong.
queue-type (u32) #
-
doc:
Queue type as rx, tx, for queue-id.
-
enum:
queue-id (u32) #
-
doc:
Queue ID, if stats are scoped to a single queue instance.
scope (uint) #
-
doc:
What object type should be used to iterate over the stats.
-
enum:
rx-packets (uint) #
-
doc:
Number of wire packets successfully received and passed to the stack. For drivers supporting XDP, XDP is considered the first layer of the stack, so packets consumed by XDP are still counted here.
-
value:
8
rx-bytes (uint) #
-
doc:
Successfully received bytes, see rx-packets.
tx-packets (uint) #
-
doc:
Number of wire packets successfully sent. Packet is considered to be successfully sent once it is in device memory (usually this means the device has issued a DMA completion for the packet).
tx-bytes (uint) #
-
doc:
Successfully sent bytes, see tx-packets.
rx-alloc-fail (uint) #
-
doc:
Number of times skb or buffer allocation failed on the Rx datapath. Allocation failure may, or may not result in a packet drop, depending on driver implementation and whether system recovers quickly.
rx-hw-drops (uint) #
-
doc:
Number of all packets which entered the device, but never left it, including but not limited to: packets dropped due to lack of buffer space, processing errors, explicit or implicit policies and packet filters.
rx-hw-drop-overruns (uint) #
-
doc:
Number of packets dropped due to transient lack of resources, such as buffer space, host descriptors etc.
rx-csum-complete (uint) #
-
doc:
Number of packets that were marked as CHECKSUM_COMPLETE.
rx-csum-unnecessary (uint) #
-
doc:
Number of packets that were marked as CHECKSUM_UNNECESSARY.
rx-csum-none (uint) #
-
doc:
Number of packets that were not checksummed by device.
rx-csum-bad (uint) #
-
doc:
Number of packets with bad checksum. The packets are not discarded, but still delivered to the stack.
rx-hw-gro-packets (uint) #
-
doc:
Number of packets that were coalesced from smaller packets by the device. Counts only packets coalesced with the HW-GRO netdevice feature, LRO-coalesced packets are not counted.
rx-hw-gro-bytes (uint) #
-
doc:
See rx-hw-gro-packets.
rx-hw-gro-wire-packets (uint) #
-
doc:
Number of packets that were coalesced to bigger packetss with the HW-GRO netdevice feature. LRO-coalesced packets are not counted.
rx-hw-gro-wire-bytes (uint) #
-
doc:
See rx-hw-gro-wire-packets.
rx-hw-drop-ratelimits (uint) #
-
doc:
Number of the packets dropped by the device due to the received packets bitrate exceeding the device rate limit.
tx-hw-drops (uint) #
-
doc:
Number of packets that arrived at the device but never left it, encompassing packets dropped for reasons such as processing errors, as well as those affected by explicitly defined policies and packet filtering criteria.
tx-hw-drop-errors (uint) #
-
doc:
Number of packets dropped because they were invalid or malformed.
tx-csum-none (uint) #
-
doc:
Number of packets that did not require the device to calculate the checksum.
tx-needs-csum (uint) #
-
doc:
Number of packets that required the device to calculate the checksum. This counter includes the number of GSO wire packets for which device calculated the L4 checksum.
tx-hw-gso-packets (uint) #
-
doc:
Number of packets that necessitated segmentation into smaller packets by the device.
tx-hw-gso-bytes (uint) #
-
doc:
See tx-hw-gso-packets.
tx-hw-gso-wire-packets (uint) #
-
doc:
Number of wire-sized packets generated by processing tx-hw-gso-packets
tx-hw-gso-wire-bytes (uint) #
-
doc:
See tx-hw-gso-wire-packets.
tx-hw-drop-ratelimits (uint) #
-
doc:
Number of the packets dropped by the device due to the transmit packets bitrate exceeding the device rate limit.
tx-stop (uint) #
-
doc:
Number of times driver paused accepting new tx packets from the stack to this queue, because the queue was full. Note that if BQL is supported and enabled on the device the networking stack will avoid queuing a lot of data at once.
tx-wake (uint) #
-
doc:
Number of times driver re-started accepting send requests to this queue from the stack.
queue-id #
id #
type #
dmabuf #
ifindex (u32) #
-
doc:
netdev ifindex to bind the dmabuf to.
queues (nest) #
-
doc:
receive queues to bind the dmabuf to.
-
nested-attributes:
-
multi-attr:
True
fd (u32) #
-
doc:
dmabuf file descriptor to bind.
id (u32) #
-
doc:
id of the dmabuf binding
Family nfsd netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
NFSD configuration over generic netlink.
Operations #
rpc-status-get #
dump pending nfsd rpc
-
attribute-set:
-
dump:
reply
-
attributes:
[
xid,flags,prog,version,proc,service-time,saddr4,daddr4,saddr6,daddr6,sport,dport,compound-ops]
-
threads-set #
set the maximum number of running threads
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
threads,gracetime,leasetime,scope,min-threads]
-
threads-get #
get the maximum number of running threads
-
attribute-set:
-
do:
reply
-
attributes:
[
threads,gracetime,leasetime,scope,min-threads]
-
version-set #
set nfs enabled versions
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
version]
-
version-get #
get nfs enabled versions
-
attribute-set:
-
do:
reply
-
attributes:
[
version]
-
listener-set #
set nfs running sockets
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
addr]
-
listener-get #
get nfs running listeners
-
attribute-set:
-
do:
reply
-
attributes:
[
addr]
-
pool-mode-set #
set the current server pool-mode
-
attribute-set:
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
mode]
-
pool-mode-get #
get info about server pool-mode
-
attribute-set:
-
do:
reply
-
attributes:
[
mode,npools]
-
Attribute sets #
rpc-status #
xid (u32) #
-
byte-order:
big-endian
flags (u32) #
prog (u32) #
version (u8) #
proc (u32) #
service-time (s64) #
pad (pad) #
saddr4 (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
daddr4 (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
saddr6 (binary) #
-
display-hint:
ipv6
daddr6 (binary) #
-
display-hint:
ipv6
sport (u16) #
-
byte-order:
big-endian
dport (u16) #
-
byte-order:
big-endian
compound-ops (u32) #
-
multi-attr:
True
server #
threads (u32) #
-
multi-attr:
True
gracetime (u32) #
leasetime (u32) #
scope (string) #
min-threads (u32) #
version #
major (u32) #
minor (u32) #
enabled (flag) #
server-proto #
version (nest) #
-
nested-attributes:
-
multi-attr:
True
sock #
addr (binary) #
transport-name (string) #
server-sock #
addr (nest) #
-
nested-attributes:
-
multi-attr:
True
pool-mode #
mode (string) #
npools (u32) #
Family nftables netlink specification
Peios Kernel / Internals / Netlink / specs
Peios: This describes an upstream interface disabled in the configured Peios kernel. Peios uses NTFE; nftables/iptables, IPVS and flow-table configuration are not enabled policy paths. Retained schemas and reference text do not imply runtime availability. See Peios kernel behaviour; NTFE is permissive before its first policy generation is ingested.
Summary #
Netfilter nftables configuration over netlink.
Operations #
batch-begin #
Start a batch of operations
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
genid]
reply
-
attributes:
[
genid]
-
batch-end #
Finish a batch of operations
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
genid]
-
newtable #
Create a new table.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
gettable #
Get / dump tables.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
deltable #
Delete an existing table.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
destroytable #
Delete an existing table with destroy semantics (ignoring ENOENT errors).
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
newchain #
Create a new chain.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
getchain #
Get / dump chains.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
delchain #
Delete an existing chain.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
destroychain #
Delete an existing chain with destroy semantics (ignoring ENOENT errors).
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
newrule #
Create a new rule.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
getrule #
Get / dump rules.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
getrule-reset #
Get / dump rules and reset stateful expressions.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
delrule #
Delete an existing rule.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
destroyrule #
Delete an existing rule with destroy semantics (ignoring ENOENT errors).
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
newset #
Create a new set.
getset #
Get / dump sets.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
delset #
Delete an existing set.
destroyset #
Delete an existing set with destroy semantics (ignoring ENOENT errors).
newsetelem #
Create a new set element.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
getsetelem #
Get / dump set elements.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
getsetelem-reset #
Get / dump set elements and reset stateful expressions.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
delsetelem #
Delete an existing set element.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
destroysetelem #
Delete an existing set element with destroy semantics.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
getgen #
Get / dump rule-set generation.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
newobj #
Create a new stateful object.
getobj #
Get / dump stateful objects.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
delobj #
Delete an existing stateful object.
destroyobj #
Delete an existing stateful object with destroy semantics.
newflowtable #
Create a new flow table.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
getflowtable #
Get / dump flow tables.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name]
-
delflowtable #
Delete an existing flow table.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
destroyflowtable #
Delete an existing flow table with destroy semantics.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
name]
-
Multicast groups #
- mgmt
Definitions #
nfgenmsg #
-
type:
struct
-
members:
-
nfgen-family (
u8) -
version (
u8) -
res-id (
u16)
-
meta-keys #
-
type:
enum
-
entries:
-
len -
protocol -
priority -
mark -
iif -
oif -
iifname -
oifname -
iftype -
oiftype -
skuid -
skgid -
nftrace -
rtclassid -
secmark -
nfproto -
l4-proto -
bri-iifname -
bri-oifname -
pkttype -
cpu -
iifgroup -
oifgroup -
cgroup -
prandom -
secpath -
iifkind -
oifkind -
bri-iifpvid -
bri-iifvproto -
time-ns -
time-day -
time-hour -
sdif -
sdifname -
bri-broute
-
bitwise-ops #
-
type:
enum
-
entries:
-
bool -
lshift -
rshift
-
cmp-ops #
-
type:
enum
-
entries:
-
eq -
neq -
lt -
lte -
gt -
gte
-
object-type #
-
type:
enum
-
entries:
-
unspec -
counter -
quota -
ct-helper -
limit -
connlimit -
tunnel -
ct-timeout -
secmark -
ct-expect -
synproxy
-
nat-range-flags #
-
type:
flags
-
entries:
-
map-ips -
proto-specified -
proto-random -
persistent -
proto-random-fully -
proto-offset -
netmap
-
table-flags #
-
type:
flags
-
entries:
-
dormant -
owner -
persist
-
chain-flags #
-
type:
flags
-
entries:
-
base -
hw-offload -
binding
-
set-flags #
-
type:
flags
-
entries:
-
anonymous -
constant -
interval -
map -
timeout -
eval -
object -
concat -
expr
-
lookup-flags #
-
type:
flags
-
entries:
invert
ct-keys #
-
type:
enum
-
entries:
-
state -
direction -
status -
mark -
secmark -
expiration -
helper -
l3protocol -
src -
dst -
protocol -
proto-src -
proto-dst -
labels -
pkts -
bytes -
avgpkt -
zone -
eventmask -
src-ip -
dst-ip -
src-ip6 -
dst-ip6 -
ct-id
-
ct-direction #
-
type:
enum
-
entries:
-
original -
reply
-
quota-flags #
-
type:
flags
-
entries:
-
invert -
depleted
-
verdict-code #
-
type:
enum
-
entries:
-
continue
-
break
-
jump
-
goto
-
return
-
drop
-
accept
-
stolen
-
queue
-
repeat
-
fib-result #
-
type:
enum
-
entries:
-
oif -
oifname -
addrtype
-
fib-flags #
-
type:
flags
-
entries:
-
saddr -
daddr -
mark -
iif -
oif -
present
-
reject-types #
-
type:
enum
-
entries:
-
icmp-unreach -
tcp-rst -
icmpx-unreach
-
Attribute sets #
empty-attrs #
name (string) #
batch-attrs #
genid (u32) #
-
byte-order:
big-endian
table-attrs #
name (string) #
-
doc:
name of the table
flags (u32) #
-
byte-order:
big-endian
-
doc:
bitmask of flags
-
enum:
-
enum-as-flags:
True
use (u32) #
-
byte-order:
big-endian
-
doc:
number of chains in this table
handle (u64) #
-
byte-order:
big-endian
-
doc:
numeric handle of the table
userdata (binary) #
-
doc:
user data
chain-attrs #
table (string) #
-
doc:
name of the table containing the chain
handle (u64) #
-
byte-order:
big-endian
-
doc:
numeric handle of the chain
name (string) #
-
doc:
name of the chain
hook (nest) #
-
nested-attributes:
-
doc:
hook specification for basechains
policy (u32) #
-
byte-order:
big-endian
-
doc:
numeric policy of the chain
use (u32) #
-
byte-order:
big-endian
-
doc:
number of references to this chain
type (string) #
-
doc:
type name of the chain
counters (nest) #
-
nested-attributes:
-
doc:
counter specification of the chain
flags (u32) #
-
byte-order:
big-endian
-
doc:
chain flags
-
enum:
-
enum-as-flags:
True
id (u32) #
-
byte-order:
big-endian
-
doc:
uniquely identifies a chain in a transaction
userdata (binary) #
-
doc:
user data
counter-attrs #
bytes (u64) #
-
byte-order:
big-endian
packets (u64) #
-
byte-order:
big-endian
pad (pad) #
nft-hook-attrs #
num (u32) #
-
byte-order:
big-endian
priority (s32) #
-
byte-order:
big-endian
dev (string) #
-
doc:
net device name
devs (nest) #
-
nested-attributes:
-
doc:
list of net devices
hook-dev-attrs #
name (string) #
-
multi-attr:
True
nft-counter-attrs #
bytes (u64) #
packets (u64) #
rule-attrs #
table (string) #
-
doc:
name of the table containing the rule
chain (string) #
-
doc:
name of the chain containing the rule
handle (u64) #
-
byte-order:
big-endian
-
doc:
numeric handle of the rule
expressions (nest) #
-
nested-attributes:
-
doc:
list of expressions
compat (nest) #
-
nested-attributes:
-
doc:
compatibility specifications of the rule
position (u64) #
-
byte-order:
big-endian
-
doc:
numeric handle of the previous rule
userdata (binary) #
-
doc:
user data
id (u32) #
-
doc:
uniquely identifies a rule in a transaction
position-id (u32) #
-
doc:
transaction unique identifier of the previous rule
chain-id (u32) #
-
doc:
add the rule to chain by ID, alternative to chain name
expr-list-attrs #
elem (nest) #
-
nested-attributes:
-
multi-attr:
True
expr-attrs #
name (string) #
-
doc:
name of the expression type
data (sub-message) #
-
sub-message:
-
selector:
name
-
doc:
type specific data
rule-compat-attrs #
proto (binary) #
-
doc:
numeric value of the handled protocol
flags (binary) #
-
doc:
bitmask of flags
set-attrs #
table (string) #
-
doc:
table name
name (string) #
-
doc:
set name
flags (u32) #
-
enum:
-
byte-order:
big-endian
-
doc:
bitmask of enum nft_set_flags
key-type (u32) #
-
byte-order:
big-endian
-
doc:
key data type, informational purpose only
key-len (u32) #
-
byte-order:
big-endian
-
doc:
key data length
data-type (u32) #
-
byte-order:
big-endian
-
doc:
mapping data type
data-len (u32) #
-
byte-order:
big-endian
-
doc:
mapping data length
policy (u32) #
-
byte-order:
big-endian
-
doc:
selection policy
desc (nest) #
-
nested-attributes:
-
doc:
set description
id (u32) #
-
doc:
uniquely identifies a set in a transaction
timeout (u64) #
-
doc:
default timeout value
gc-interval (u32) #
-
doc:
garbage collection interval
userdata (binary) #
-
doc:
user data
pad (pad) #
obj-type (u32) #
-
byte-order:
big-endian
-
doc:
stateful object type
handle (u64) #
-
byte-order:
big-endian
-
doc:
set handle
expr (nest) #
-
nested-attributes:
-
doc:
set expression
-
multi-attr:
True
expressions (nest) #
-
nested-attributes:
-
doc:
list of expressions
set-desc-attrs #
size (u32) #
-
byte-order:
big-endian
-
doc:
number of elements in set
concat (nest) #
-
nested-attributes:
-
doc:
description of field concatenation
-
multi-attr:
True
set-desc-concat-attrs #
elem (nest) #
-
nested-attributes:
set-field-attrs #
len (u32) #
-
byte-order:
big-endian
set-list-attrs #
elem (nest) #
-
nested-attributes:
-
multi-attr:
True
setelem-attrs #
key (nest) #
-
nested-attributes:
-
doc:
key value
data (nest) #
-
nested-attributes:
-
doc:
data value of mapping
flags (binary) #
-
doc:
bitmask of nft_set_elem_flags
timeout (u64) #
-
doc:
timeout value
expiration (u64) #
-
doc:
expiration time
userdata (binary) #
-
doc:
user data
expr (nest) #
-
nested-attributes:
-
doc:
expression
objref (string) #
-
doc:
stateful object reference
key-end (nest) #
-
nested-attributes:
-
doc:
closing key value
expressions (nest) #
-
nested-attributes:
-
doc:
list of expressions
setelem-list-elem-attrs #
elem (nest) #
-
nested-attributes:
-
multi-attr:
True
setelem-list-attrs #
table (string) #
set (string) #
elements (nest) #
-
nested-attributes:
set-id (u32) #
gen-attrs #
id (u32) #
-
byte-order:
big-endian
-
doc:
ruleset generation id
proc-pid (u32) #
-
byte-order:
big-endian
proc-name (string) #
obj-attrs #
table (string) #
-
doc:
name of the table containing the expression
name (string) #
-
doc:
name of this expression type
type (u32) #
-
enum:
-
byte-order:
big-endian
-
doc:
stateful object type
data (sub-message) #
-
sub-message:
-
selector:
type
-
doc:
stateful object data
use (u32) #
-
byte-order:
big-endian
-
doc:
number of references to this expression
handle (u64) #
-
byte-order:
big-endian
-
doc:
object handle
pad (pad) #
userdata (binary) #
-
doc:
user data
quota-attrs #
bytes (u64) #
-
byte-order:
big-endian
flags (u32) #
-
byte-order:
big-endian
-
enum:
pad (pad) #
consumed (u64) #
-
byte-order:
big-endian
flowtable-attrs #
table (string) #
name (string) #
hook (nest) #
-
nested-attributes:
use (u32) #
-
byte-order:
big-endian
handle (u64) #
-
byte-order:
big-endian
pad (pad) #
flags (u32) #
-
byte-order:
big-endian
flowtable-hook-attrs #
num (u32) #
-
byte-order:
big-endian
priority (u32) #
-
byte-order:
big-endian
devs (nest) #
-
nested-attributes:
expr-bitwise-attrs #
sreg (u32) #
-
byte-order:
big-endian
dreg (u32) #
-
byte-order:
big-endian
len (u32) #
-
byte-order:
big-endian
mask (nest) #
-
nested-attributes:
xor (nest) #
-
nested-attributes:
op (u32) #
-
byte-order:
big-endian
-
enum:
data (nest) #
-
nested-attributes:
expr-cmp-attrs #
sreg (u32) #
-
byte-order:
big-endian
op (u32) #
-
byte-order:
big-endian
-
enum:
data (nest) #
-
nested-attributes:
data-attrs #
value (binary) #
verdict (nest) #
-
nested-attributes:
verdict-attrs #
code (u32) #
-
byte-order:
big-endian
-
enum:
chain (string) #
chain-id (u32) #
expr-counter-attrs #
bytes (u64) #
-
doc:
Number of bytes
packets (u64) #
-
doc:
Number of packets
pad (pad) #
expr-fib-attrs #
dreg (u32) #
-
byte-order:
big-endian
result (u32) #
-
byte-order:
big-endian
-
enum:
flags (u32) #
-
byte-order:
big-endian
-
enum:
expr-ct-attrs #
dreg (u32) #
-
byte-order:
big-endian
key (u32) #
-
byte-order:
big-endian
-
enum:
direction (u8) #
-
enum:
sreg (u32) #
-
byte-order:
big-endian
expr-flow-offload-attrs #
name (string) #
-
doc:
Flow offload table name
expr-immediate-attrs #
dreg (u32) #
-
byte-order:
big-endian
data (nest) #
-
nested-attributes:
expr-lookup-attrs #
set (string) #
-
doc:
Name of set to use
set-id (u32) #
-
byte-order:
big-endian
-
doc:
ID of set to use
sreg (u32) #
-
byte-order:
big-endian
dreg (u32) #
-
byte-order:
big-endian
flags (u32) #
-
byte-order:
big-endian
-
enum:
expr-meta-attrs #
dreg (u32) #
-
byte-order:
big-endian
key (u32) #
-
byte-order:
big-endian
-
enum:
sreg (u32) #
-
byte-order:
big-endian
expr-nat-attrs #
type (u32) #
-
byte-order:
big-endian
family (u32) #
-
byte-order:
big-endian
reg-addr-min (u32) #
-
byte-order:
big-endian
reg-addr-max (u32) #
-
byte-order:
big-endian
reg-proto-min (u32) #
-
byte-order:
big-endian
reg-proto-max (u32) #
-
byte-order:
big-endian
flags (u32) #
-
byte-order:
big-endian
-
enum:
-
enum-as-flags:
True
expr-payload-attrs #
dreg (u32) #
-
byte-order:
big-endian
base (u32) #
-
byte-order:
big-endian
offset (u32) #
-
byte-order:
big-endian
len (u32) #
-
byte-order:
big-endian
sreg (u32) #
-
byte-order:
big-endian
csum-type (u32) #
-
byte-order:
big-endian
csum-offset (u32) #
-
byte-order:
big-endian
csum-flags (u32) #
-
byte-order:
big-endian
expr-reject-attrs #
type (u32) #
-
byte-order:
big-endian
-
enum:
icmp-code (u8) #
expr-target-attrs #
name (string) #
rev (u32) #
-
byte-order:
big-endian
info (binary) #
expr-tproxy-attrs #
family (u32) #
-
byte-order:
big-endian
reg-addr (u32) #
-
byte-order:
big-endian
reg-port (u32) #
-
byte-order:
big-endian
expr-objref-attrs #
imm-type (u32) #
-
byte-order:
big-endian
imm-name (string) #
-
doc:
object name
set-sreg (u32) #
-
byte-order:
big-endian
set-name (string) #
-
doc:
name of object map
set-id (u32) #
-
byte-order:
big-endian
-
doc:
id of object map
Sub-messages #
expr-ops #
-
bitwise
-
attribute-set:
-
-
cmp
-
attribute-set:
-
-
counter
-
attribute-set:
-
-
ct
-
attribute-set:
-
-
fib
-
attribute-set:
-
-
flow_offload
-
attribute-set:
-
-
immediate
-
attribute-set:
-
-
lookup
-
attribute-set:
-
-
meta
-
attribute-set:
-
-
nat
-
attribute-set:
-
-
objref
-
attribute-set:
-
-
payload
-
attribute-set:
-
-
quota
-
attribute-set:
-
-
reject
-
attribute-set:
-
-
target
-
attribute-set:
-
-
tproxy
-
attribute-set:
-
obj-data #
-
counter
-
attribute-set:
-
-
quota
-
attribute-set:
-
Family nl80211 netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Netlink API for 802.11 wireless devices
Operations #
get-wiphy #
Get information about a wiphy or dump a list of all wiphys. Requests to dump get-wiphy should unconditionally include the split-wiphy-dump flag in the request.
-
attribute-set:
-
do:
request
-
attributes:
[
wiphy,wdev,ifindex]
reply
-
attributes:
[
bands,cipher-suites,control-port-ethertype,ext-capa,ext-capa-mask,ext-features,feature-flags,generation,ht-capability-mask,interface-combinations,mac,max-csa-counters,max-match-sets,max-num-akm-suites,max-num-pmkids,max-num-scan-ssids,max-num-sched-scan-plans,max-num-sched-scan-ssids,max-remain-on-channel-duration,max-scan-ie-len,max-scan-plan-interval,max-scan-plan-iterations,max-sched-scan-ie-len,offchannel-tx-ok,rx-frame-types,sar-spec,sched-scan-max-reqs,software-iftypes,support-ap-uapsd,supported-commands,supported-iftypes,tdls-external-setup,tdls-support,tx-frame-types,txq-limit,txq-memory-limit,txq-quantum,txq-stats,vht-capability-mask,wiphy,wiphy-antenna-avail-rx,wiphy-antenna-avail-tx,wiphy-antenna-rx,wiphy-antenna-tx,wiphy-bands,wiphy-coverage-class,wiphy-frag-threshold,wiphy-name,wiphy-retry-long,wiphy-retry-short,wiphy-rts-threshold,wowlan-triggers-supported]
-
-
dump:
request
-
attributes:
[
wiphy,wdev,ifindex,split-wiphy-dump]
reply
-
attributes:
[
bands,cipher-suites,control-port-ethertype,ext-capa,ext-capa-mask,ext-features,feature-flags,generation,ht-capability-mask,interface-combinations,mac,max-csa-counters,max-match-sets,max-num-akm-suites,max-num-pmkids,max-num-scan-ssids,max-num-sched-scan-plans,max-num-sched-scan-ssids,max-remain-on-channel-duration,max-scan-ie-len,max-scan-plan-interval,max-scan-plan-iterations,max-sched-scan-ie-len,offchannel-tx-ok,rx-frame-types,sar-spec,sched-scan-max-reqs,software-iftypes,support-ap-uapsd,supported-commands,supported-iftypes,tdls-external-setup,tdls-support,tx-frame-types,txq-limit,txq-memory-limit,txq-quantum,txq-stats,vht-capability-mask,wiphy,wiphy-antenna-avail-rx,wiphy-antenna-avail-tx,wiphy-antenna-rx,wiphy-antenna-tx,wiphy-bands,wiphy-coverage-class,wiphy-frag-threshold,wiphy-name,wiphy-retry-long,wiphy-retry-short,wiphy-rts-threshold,wowlan-triggers-supported]
-
get-interface #
Get information about an interface or dump a list of all interfaces
-
attribute-set:
-
do:
request
-
attributes:
[
ifname]
reply
-
attributes:
[
ifname,iftype,ifindex,wiphy,wdev,mac,generation,txq-stats,4addr]
-
-
dump:
request
-
attributes:
[
ifname]
reply
-
attributes:
[
ifname,iftype,ifindex,wiphy,wdev,mac,generation,txq-stats,4addr]
-
get-protocol-features #
Get information about supported protocol features
-
attribute-set:
-
do:
request
-
attributes:
[
protocol-features]
reply
-
attributes:
[
protocol-features]
-
Multicast groups #
-
config
-
scan
-
regulatory
-
mlme
-
vendor
-
nan
-
testmode
Definitions #
commands #
-
type:
enum
-
entries:
-
unspec -
get-wiphy -
set-wiphy -
new-wiphy -
del-wiphy -
get-interface -
set-interface -
new-interface -
del-interface -
get-key -
set-key -
new-key -
del-key -
get-beacon -
set-beacon -
new-beacon -
del-beacon -
get-station -
set-station -
new-station -
del-station -
get-mpath -
set-mpath -
new-mpath -
del-mpath -
set-bss -
set-reg -
req-set-reg -
get-mesh-config -
set-mesh-config -
set-mgmt-extra-ie -
get-reg -
get-scan -
trigger-scan -
new-scan-results -
scan-aborted -
reg-change -
authenticate -
associate -
deauthenticate -
disassociate -
michael-mic-failure -
reg-beacon-hint -
join-ibss -
leave-ibss -
testmode -
connect -
roam -
disconnect -
set-wiphy-netns -
get-survey -
new-survey-results -
set-pmksa -
del-pmksa -
flush-pmksa -
remain-on-channel -
cancel-remain-on-channel -
set-tx-bitrate-mask -
register-action -
action -
action-tx-status -
set-power-save -
get-power-save -
set-cqm -
notify-cqm -
set-channel -
set-wds-peer -
frame-wait-cancel -
join-mesh -
leave-mesh -
unprot-deauthenticate -
unprot-disassociate -
new-peer-candidate -
get-wowlan -
set-wowlan -
start-sched-scan -
stop-sched-scan -
sched-scan-results -
sched-scan-stopped -
set-rekey-offload -
pmksa-candidate -
tdls-oper -
tdls-mgmt -
unexpected-frame -
probe-client -
register-beacons -
unexpected-4-addr-frame -
set-noack-map -
ch-switch-notify -
start-p2p-device -
stop-p2p-device -
conn-failed -
set-mcast-rate -
set-mac-acl -
radar-detect -
get-protocol-features -
update-ft-ies -
ft-event -
crit-protocol-start -
crit-protocol-stop -
get-coalesce -
set-coalesce -
channel-switch -
vendor -
set-qos-map -
add-tx-ts -
del-tx-ts -
get-mpp -
join-ocb -
leave-ocb -
ch-switch-started-notify -
tdls-channel-switch -
tdls-cancel-channel-switch -
wiphy-reg-change -
abort-scan -
start-nan -
stop-nan -
add-nan-function -
del-nan-function -
change-nan-config -
nan-match -
set-multicast-to-unicast -
update-connect-params -
set-pmk -
del-pmk -
port-authorized -
reload-regdb -
external-auth -
sta-opmode-changed -
control-port-frame -
get-ftm-responder-stats -
peer-measurement-start -
peer-measurement-result -
peer-measurement-complete -
notify-radar -
update-owe-info -
probe-mesh-link -
set-tid-config -
unprot-beacon -
control-port-frame-tx-status -
set-sar-specs -
obss-color-collision -
color-change-request -
color-change-started -
color-change-aborted -
color-change-completed -
set-fils-aad -
assoc-comeback -
add-link -
remove-link -
add-link-sta -
modify-link-sta -
remove-link-sta -
set-hw-timestamp -
links-removed -
set-tid-to-link-mapping
-
feature-flags #
-
type:
flags
-
entries:
-
sk-tx-status -
ht-ibss -
inactivity-timer -
cell-base-reg-hints -
p2p-device-needs-channel -
sae -
low-priority-scan -
scan-flush -
ap-scan -
vif-txpower -
need-obss-scan -
p2p-go-ctwin -
p2p-go-oppps -
reserved -
advertise-chan-limits -
full-ap-client-state -
userspace-mpm -
active-monitor -
ap-mode-chan-width-change -
ds-param-set-ie-in-probes -
wfa-tpc-ie-in-probes -
quiet -
tx-power-insertion -
ackto-estimation -
static-smps -
dynamic-smps -
supports-wmm-admission -
mac-on-create -
tdls-channel-switch -
scan-random-mac-addr -
sched-scan-random-mac-addr -
no-random-mac-addr
-
channel-type #
-
type:
enum
-
entries:
-
no-ht -
ht20 -
ht40minus -
ht40plus
-
sta-flag-update #
-
type:
struct
-
members:
-
mask (
u32) -
set (
u32)
-
protocol-features #
-
type:
flags
-
entries:
split-wiphy-dump
Attribute sets #
nl80211-attrs #
wiphy (u32) #
wiphy-name (string) #
ifindex (u32) #
ifname (string) #
iftype (u32) #
mac (binary) #
-
display-hint:
mac
key-data (binary) #
key-idx (u8) #
key-cipher (u32) #
key-seq (binary) #
key-default (flag) #
beacon-interval (u32) #
dtim-period (u32) #
beacon-head (binary) #
beacon-tail (binary) #
sta-aid (u16) #
sta-flags (binary) #
sta-listen-interval (u16) #
sta-supported-rates (binary) #
sta-vlan (u32) #
sta-info (binary) #
wiphy-bands (nest) #
-
nested-attributes:
mntr-flags (binary) #
mesh-id (binary) #
sta-plink-action (u8) #
mpath-next-hop (binary) #
-
display-hint:
mac
mpath-info (binary) #
bss-cts-prot (u8) #
bss-short-preamble (u8) #
bss-short-slot-time (u8) #
ht-capability (binary) #
supported-iftypes (nest) #
-
nested-attributes:
reg-alpha2 (binary) #
reg-rules (binary) #
mesh-config (binary) #
bss-basic-rates (binary) #
wiphy-txq-params (binary) #
wiphy-freq (u32) #
wiphy-channel-type (u32) #
-
enum:
key-default-mgmt (flag) #
mgmt-subtype (u8) #
ie (binary) #
max-num-scan-ssids (u8) #
scan-frequencies (binary) #
scan-ssids (binary) #
generation (u32) #
bss (binary) #
reg-initiator (u8) #
reg-type (u8) #
supported-commands (indexed-array) #
-
sub-type:
u32
-
enum:
frame (binary) #
ssid (binary) #
auth-type (u32) #
reason-code (u16) #
key-type (u32) #
max-scan-ie-len (u16) #
cipher-suites (binary) #
-
sub-type:
u32
-
display-hint:
hex
freq-before (binary) #
freq-after (binary) #
freq-fixed (flag) #
wiphy-retry-short (u8) #
wiphy-retry-long (u8) #
wiphy-frag-threshold (u32) #
wiphy-rts-threshold (u32) #
timed-out (flag) #
use-mfp (u32) #
sta-flags2 (binary) #
-
struct:
control-port (flag) #
testdata (binary) #
privacy (flag) #
disconnected-by-ap (flag) #
status-code (u16) #
cipher-suites-pairwise (binary) #
cipher-suite-group (u32) #
wpa-versions (u32) #
akm-suites (binary) #
req-ie (binary) #
resp-ie (binary) #
prev-bssid (binary) #
key (binary) #
keys (binary) #
pid (u32) #
4addr (u8) #
survey-info (binary) #
pmkid (binary) #
max-num-pmkids (u8) #
duration (u32) #
cookie (u64) #
wiphy-coverage-class (u8) #
tx-rates (binary) #
frame-match (binary) #
ack (flag) #
ps-state (u32) #
cqm (binary) #
local-state-change (flag) #
ap-isolate (u8) #
wiphy-tx-power-setting (u32) #
wiphy-tx-power-level (u32) #
tx-frame-types (nest) #
-
nested-attributes:
rx-frame-types (nest) #
-
nested-attributes:
frame-type (u16) #
control-port-ethertype (flag) #
control-port-no-encrypt (flag) #
support-ibss-rsn (flag) #
wiphy-antenna-tx (u32) #
wiphy-antenna-rx (u32) #
mcast-rate (u32) #
offchannel-tx-ok (flag) #
bss-ht-opmode (u16) #
key-default-types (binary) #
max-remain-on-channel-duration (u32) #
mesh-setup (binary) #
wiphy-antenna-avail-tx (u32) #
wiphy-antenna-avail-rx (u32) #
support-mesh-auth (flag) #
sta-plink-state (u8) #
wowlan-triggers (binary) #
wowlan-triggers-supported (nest) #
-
nested-attributes:
sched-scan-interval (u32) #
interface-combinations (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
software-iftypes (nest) #
-
nested-attributes:
rekey-data (binary) #
max-num-sched-scan-ssids (u8) #
max-sched-scan-ie-len (u16) #
scan-supp-rates (binary) #
hidden-ssid (u32) #
ie-probe-resp (binary) #
ie-assoc-resp (binary) #
sta-wme (binary) #
support-ap-uapsd (flag) #
roam-support (flag) #
sched-scan-match (binary) #
max-match-sets (u8) #
pmksa-candidate (binary) #
tx-no-cck-rate (flag) #
tdls-action (u8) #
tdls-dialog-token (u8) #
tdls-operation (u8) #
tdls-support (flag) #
tdls-external-setup (flag) #
device-ap-sme (u32) #
dont-wait-for-ack (flag) #
feature-flags (u32) #
-
enum:
-
enum-as-flags:
True
probe-resp-offload (u32) #
probe-resp (binary) #
dfs-region (u8) #
disable-ht (flag) #
ht-capability-mask (binary) #
noack-map (u16) #
inactivity-timeout (u16) #
rx-signal-dbm (u32) #
bg-scan-period (u16) #
wdev (u64) #
user-reg-hint-type (u32) #
conn-failed-reason (u32) #
auth-data (binary) #
vht-capability (binary) #
scan-flags (u32) #
channel-width (u32) #
center-freq1 (u32) #
center-freq2 (u32) #
p2p-ctwindow (u8) #
p2p-oppps (u8) #
local-mesh-power-mode (u32) #
acl-policy (u32) #
mac-addrs (binary) #
mac-acl-max (u32) #
radar-event (u32) #
ext-capa (binary) #
ext-capa-mask (binary) #
sta-capability (u16) #
sta-ext-capability (binary) #
protocol-features (u32) #
-
enum:
split-wiphy-dump (flag) #
disable-vht (flag) #
vht-capability-mask (binary) #
mdid (u16) #
ie-ric (binary) #
crit-prot-id (u16) #
max-crit-prot-duration (u16) #
peer-aid (u16) #
coalesce-rule (binary) #
ch-switch-count (u32) #
ch-switch-block-tx (flag) #
csa-ies (binary) #
cntdwn-offs-beacon (binary) #
cntdwn-offs-presp (binary) #
rxmgmt-flags (binary) #
sta-supported-channels (binary) #
sta-supported-oper-classes (binary) #
handle-dfs (flag) #
support-5-mhz (flag) #
support-10-mhz (flag) #
opmode-notif (u8) #
vendor-id (u32) #
vendor-subcmd (u32) #
vendor-data (binary) #
vendor-events (binary) #
qos-map (binary) #
mac-hint (binary) #
-
display-hint:
mac
wiphy-freq-hint (u32) #
max-ap-assoc-sta (u32) #
tdls-peer-capability (u32) #
socket-owner (flag) #
csa-c-offsets-tx (binary) #
max-csa-counters (u8) #
tdls-initiator (flag) #
use-rrm (flag) #
wiphy-dyn-ack (flag) #
tsid (u8) #
user-prio (u8) #
admitted-time (u16) #
smps-mode (u8) #
oper-class (u8) #
mac-mask (binary) #
-
display-hint:
mac
wiphy-self-managed-reg (flag) #
ext-features (binary) #
survey-radio-stats (binary) #
netns-fd (u32) #
sched-scan-delay (u32) #
reg-indoor (flag) #
max-num-sched-scan-plans (u32) #
max-scan-plan-interval (u32) #
max-scan-plan-iterations (u32) #
sched-scan-plans (binary) #
pbss (flag) #
bss-select (binary) #
sta-support-p2p-ps (u8) #
pad (binary) #
iftype-ext-capa (binary) #
mu-mimo-group-data (binary) #
mu-mimo-follow-mac-addr (binary) #
-
display-hint:
mac
scan-start-time-tsf (u64) #
scan-start-time-tsf-bssid (binary) #
measurement-duration (u16) #
measurement-duration-mandatory (flag) #
mesh-peer-aid (u16) #
nan-master-pref (u8) #
bands (u32) #
nan-func (binary) #
nan-match (binary) #
fils-kek (binary) #
fils-nonces (binary) #
multicast-to-unicast-enabled (flag) #
bssid (binary) #
-
display-hint:
mac
sched-scan-relative-rssi (s8) #
sched-scan-rssi-adjust (binary) #
timeout-reason (u32) #
fils-erp-username (binary) #
fils-erp-realm (binary) #
fils-erp-next-seq-num (u16) #
fils-erp-rrk (binary) #
fils-cache-id (binary) #
pmk (binary) #
sched-scan-multi (flag) #
sched-scan-max-reqs (u32) #
want-1x-4way-hs (flag) #
pmkr0-name (binary) #
port-authorized (binary) #
external-auth-action (u32) #
external-auth-support (flag) #
nss (u8) #
ack-signal (s32) #
control-port-over-nl80211 (flag) #
txq-stats (nest) #
-
nested-attributes:
txq-limit (u32) #
txq-memory-limit (u32) #
txq-quantum (u32) #
he-capability (binary) #
ftm-responder (binary) #
ftm-responder-stats (binary) #
timeout (u32) #
peer-measurements (binary) #
airtime-weight (u16) #
sta-tx-power-setting (u8) #
sta-tx-power (s16) #
sae-password (binary) #
twt-responder (flag) #
he-obss-pd (binary) #
wiphy-edmg-channels (u8) #
wiphy-edmg-bw-config (u8) #
vlan-id (u16) #
he-bss-color (binary) #
iftype-akm-suites (binary) #
tid-config (binary) #
control-port-no-preauth (flag) #
pmk-lifetime (u32) #
pmk-reauth-threshold (u8) #
receive-multicast (flag) #
wiphy-freq-offset (u32) #
center-freq1-offset (u32) #
scan-freq-khz (binary) #
he-6ghz-capability (binary) #
fils-discovery (binary) #
unsol-bcast-probe-resp (binary) #
s1g-capability (binary) #
s1g-capability-mask (binary) #
sae-pwe (u8) #
reconnect-requested (binary) #
sar-spec (nest) #
-
nested-attributes:
disable-he (flag) #
obss-color-bitmap (u64) #
color-change-count (u8) #
color-change-color (u8) #
color-change-elems (binary) #
mbssid-config (binary) #
mbssid-elems (binary) #
radar-background (flag) #
ap-settings-flags (u32) #
eht-capability (binary) #
disable-eht (flag) #
mlo-links (binary) #
mlo-link-id (u8) #
mld-addr (binary) #
-
display-hint:
mac
mlo-support (flag) #
max-num-akm-suites (binary) #
eml-capability (u16) #
mld-capa-and-ops (u16) #
tx-hw-timestamp (u64) #
rx-hw-timestamp (u64) #
td-bitmap (binary) #
punct-bitmap (u32) #
max-hw-timestamp-peers (u16) #
hw-timestamp-enabled (flag) #
ema-rnr-elems (binary) #
mlo-link-disabled (flag) #
bss-dump-include-use-data (flag) #
mlo-ttlm-dlink (u16) #
mlo-ttlm-ulink (u16) #
assoc-spp-amsdu (flag) #
wiphy-radios (binary) #
wiphy-interface-combinations (binary) #
vif-radio-mask (u32) #
frame-type-attrs #
frame-type #
wiphy-bands #
2ghz (nest) #
-
doc:
2.4 GHz ISM band
-
value:
0
-
nested-attributes:
5ghz (nest) #
-
doc:
around 5 GHz band (4.9 - 5.7 GHz)
-
nested-attributes:
60ghz (nest) #
-
doc:
around 60 GHz band (58.32 - 69.12 GHz)
-
nested-attributes:
6ghz (nest) #
-
nested-attributes:
s1ghz (nest) #
-
nested-attributes:
lc (nest) #
-
nested-attributes:
band-attrs #
freqs (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
rates (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
ht-mcs-set (binary) #
ht-capa (u16) #
ht-ampdu-factor (u8) #
ht-ampdu-density (u8) #
vht-mcs-set (binary) #
vht-capa (u32) #
iftype-data (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
edmg-channels (binary) #
edmg-bw-config (binary) #
s1g-mcs-nss-set (binary) #
s1g-capa (binary) #
bitrate-attrs #
rate (u32) #
2ghz-shortpreamble (flag) #
frequency-attrs #
freq (u32) #
disabled (flag) #
no-ir (flag) #
no-ibss (flag) #
-
name-prefix:
__nl80211-frequency-attr-
radar (flag) #
max-tx-power (u32) #
dfs-state (u32) #
dfs-time (binary) #
no-ht40-minus (binary) #
no-ht40-plus (binary) #
no-80mhz (binary) #
no-160mhz (binary) #
dfs-cac-time (binary) #
indoor-only (binary) #
ir-concurrent (binary) #
no-20mhz (binary) #
no-10mhz (binary) #
wmm (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
no-he (binary) #
offset (u32) #
1mhz (binary) #
2mhz (binary) #
4mhz (binary) #
8mhz (binary) #
16mhz (binary) #
no-320mhz (binary) #
no-eht (binary) #
psd (binary) #
dfs-concurrent (binary) #
no-6ghz-vlp-client (binary) #
no-6ghz-afc-client (binary) #
can-monitor (binary) #
allow-6ghz-vlp-ap (binary) #
if-combination-attributes #
limits (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
maxnum (u32) #
sta-ap-bi-match (flag) #
num-channels (u32) #
radar-detect-widths (u32) #
radar-detect-regions (u32) #
bi-min-gcd (u32) #
iface-limit-attributes #
max (u32) #
types (nest) #
-
nested-attributes:
iftype-data-attrs #
iftypes (binary) #
he-cap-mac (binary) #
he-cap-phy (binary) #
he-cap-mcs-set (binary) #
he-cap-ppe (binary) #
he-6ghz-capa (binary) #
vendor-elems (binary) #
eht-cap-mac (binary) #
eht-cap-phy (binary) #
eht-cap-mcs-set (binary) #
eht-cap-ppe (binary) #
iftype-attrs #
unspecified (nest) #
-
value:
0
-
nested-attributes:
adhoc (nest) #
-
nested-attributes:
station (nest) #
-
nested-attributes:
ap (nest) #
-
nested-attributes:
ap-vlan (nest) #
-
nested-attributes:
wds (nest) #
-
nested-attributes:
monitor (nest) #
-
nested-attributes:
mesh-point (nest) #
-
nested-attributes:
p2p-client (nest) #
-
nested-attributes:
p2p-go (nest) #
-
nested-attributes:
p2p-device (nest) #
-
nested-attributes:
ocb (nest) #
-
nested-attributes:
nan (nest) #
-
nested-attributes:
sar-attributes #
type (u32) #
specs (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
sar-specs #
power (s32) #
range-index (u32) #
start-freq (u32) #
end-freq (u32) #
supported-iftypes #
adhoc (flag) #
station (flag) #
ap (flag) #
ap-vlan (flag) #
wds (flag) #
monitor (flag) #
mesh-point (flag) #
p2p-client (flag) #
p2p-go (flag) #
p2p-device (flag) #
ocb (flag) #
nan (flag) #
txq-stats-attrs #
backlog-bytes (u32) #
backlog-packets (u32) #
flows (u32) #
drops (u32) #
ecn-marks (u32) #
overlimit (u32) #
overmemory (u32) #
collisions (u32) #
tx-bytes (u32) #
tx-packets (u32) #
max-flows (u32) #
wmm-attrs #
cw-min (u16) #
cw-max (u16) #
aifsn (u8) #
txop (u16) #
wowlan-triggers-attrs #
any (flag) #
disconnect (flag) #
magic-pkt (flag) #
pkt-pattern (flag) #
gtk-rekey-supported (flag) #
gtk-rekey-failure (flag) #
eap-ident-request (flag) #
4way-handshake (flag) #
rfkill-release (flag) #
wakeup-pkt-80211 (flag) #
wakeup-pkt-80211-len (flag) #
wakeup-pkt-8023 (flag) #
wakeup-pkt-8023-len (flag) #
tcp-connection (flag) #
wakeup-tcp-match (flag) #
wakeup-tcp-connlost (flag) #
wakeup-tcp-nomoretokens (flag) #
net-detect (flag) #
net-detect-results (flag) #
unprotected-deauth-disassoc (flag) #
Family nlctrl netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
genetlink meta-family that exposes information about all genetlink families registered in the kernel (including itself).
Operations #
getfamily #
Get / dump genetlink families
-
attribute-set:
-
do:
request
-
attributes:
[
family-name]
reply
-
attributes:
[
family-id,family-name,hdrsize,maxattr,mcast-groups,ops,version]
-
-
dump:
reply
-
attributes:
[
family-id,family-name,hdrsize,maxattr,mcast-groups,ops,version]
-
getpolicy #
Get / dump genetlink policies
-
attribute-set:
-
dump:
request
-
attributes:
[
family-name,family-id,op]
reply
-
attributes:
[
family-id,op-policy,policy]
-
Definitions #
op-flags #
-
type:
flags
-
enum-name:
None
-
entries:
-
admin-perm -
cmd-cap-do -
cmd-cap-dump -
cmd-cap-haspol -
uns-admin-perm
-
attr-type #
-
enum-name:
netlink-attribute-type
-
type:
enum
-
entries:
-
invalid -
flag -
u8 -
u16 -
u32 -
u64 -
s8 -
s16 -
s32 -
s64 -
binary -
string -
nul-string -
nested -
nested-array -
bitfield32 -
sint -
uint
-
Attribute sets #
ctrl-attrs #
family-id (u16) #
family-name (string) #
version (u32) #
hdrsize (u32) #
maxattr (u32) #
ops (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
mcast-groups (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
policy (nest-type-value) #
-
type-value:
['policy-id', 'attr-id']
-
nested-attributes:
op-policy (nest-type-value) #
-
type-value:
['op-id']
-
nested-attributes:
op (u32) #
mcast-group-attrs #
name (string) #
id (u32) #
op-attrs #
id (u32) #
flags (u32) #
-
enum:
-
enum-as-flags:
True
policy-attrs #
type (u32) #
-
enum:
min-value-s (s64) #
max-value-s (s64) #
min-value-u (u64) #
max-value-u (u64) #
min-length (u32) #
max-length (u32) #
policy-idx (u32) #
policy-maxtype (u32) #
bitfield32-mask (u32) #
mask (u64) #
pad (pad) #
op-policy-attrs #
do (u32) #
dump (u32) #
Family ovpn netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Netlink protocol to control OpenVPN network devices
Operations #
peer-new #
Add a remote peer
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,peer]
-
peer-set #
modify a remote peer
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,peer]
-
peer-get #
Retrieve data about existing remote peers (or a specific one)
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,peer]
reply
-
attributes:
[
peer]
-
-
dump:
request
-
attributes:
[
ifindex]
reply
-
attributes:
[
peer]
-
peer-del #
Delete existing remote peer
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,peer]
-
peer-del-ntf #
Notification about a peer being deleted
-
notify:
peer-get
-
mcgrp:
peers
key-new #
Add a cipher key for a specific peer
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,keyconf]
-
key-get #
Retrieve non-sensitive data about peer key and cipher
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,keyconf]
reply
-
attributes:
[
keyconf]
-
key-swap #
Swap primary and secondary session keys for a specific peer
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,keyconf]
-
key-swap-ntf #
Notification about key having exhausted its IV space and requiring renegotiation
-
notify:
key-get
-
mcgrp:
peers
key-del #
Delete cipher key for a specific peer
-
attribute-set:
-
flags:
[
admin-perm] -
do:
pre
ovpn-nl-pre-doit
post
ovpn-nl-post-doit
request
-
attributes:
[
ifindex,keyconf]
-
Multicast groups #
- peers
Definitions #
nonce-tail-size #
-
type:
const
-
value:
8
cipher-alg #
-
type:
enum
-
entries:
-
none -
aes-gcm -
chacha20-poly1305
-
del-peer-reason #
-
type:
enum
-
entries:
-
teardown -
userspace -
expired -
transport-error -
transport-disconnect
-
key-slot #
-
type:
enum
-
entries:
-
primary -
secondary
-
Attribute sets #
peer #
id (u32) #
-
doc:
The unique ID of the peer in the device context. To be used to identify peers during operations for a specific device
remote-ipv4 (u32) #
-
doc:
The remote IPv4 address of the peer
-
byte-order:
big-endian
-
display-hint:
ipv4
remote-ipv6 (binary) #
-
doc:
The remote IPv6 address of the peer
-
display-hint:
ipv6
remote-ipv6-scope-id (u32) #
-
doc:
The scope id of the remote IPv6 address of the peer (RFC2553)
remote-port (u16) #
-
doc:
The remote port of the peer
-
byte-order:
big-endian
socket (u32) #
-
doc:
The socket to be used to communicate with the peer
socket-netnsid (s32) #
-
doc:
The ID of the netns the socket assigned to this peer lives in
vpn-ipv4 (u32) #
-
doc:
The IPv4 address assigned to the peer by the server
-
byte-order:
big-endian
-
display-hint:
ipv4
vpn-ipv6 (binary) #
-
doc:
The IPv6 address assigned to the peer by the server
-
display-hint:
ipv6
local-ipv4 (u32) #
-
doc:
The local IPv4 to be used to send packets to the peer (UDP only)
-
byte-order:
big-endian
-
display-hint:
ipv4
local-ipv6 (binary) #
-
doc:
The local IPv6 to be used to send packets to the peer (UDP only)
-
display-hint:
ipv6
local-port (u16) #
-
doc:
The local port to be used to send packets to the peer (UDP only)
-
byte-order:
big-endian
keepalive-interval (u32) #
-
doc:
The number of seconds after which a keep alive message is sent to the peer
keepalive-timeout (u32) #
-
doc:
The number of seconds from the last activity after which the peer is assumed dead
del-reason (u32) #
-
doc:
The reason why a peer was deleted
-
enum:
vpn-rx-bytes (uint) #
-
doc:
Number of bytes received over the tunnel
vpn-tx-bytes (uint) #
-
doc:
Number of bytes transmitted over the tunnel
vpn-rx-packets (uint) #
-
doc:
Number of packets received over the tunnel
vpn-tx-packets (uint) #
-
doc:
Number of packets transmitted over the tunnel
link-rx-bytes (uint) #
-
doc:
Number of bytes received at the transport level
link-tx-bytes (uint) #
-
doc:
Number of bytes transmitted at the transport level
link-rx-packets (uint) #
-
doc:
Number of packets received at the transport level
link-tx-packets (uint) #
-
doc:
Number of packets transmitted at the transport level
peer-new-input #
id #
remote-ipv4 #
remote-ipv6 #
remote-ipv6-scope-id #
remote-port #
socket #
vpn-ipv4 #
vpn-ipv6 #
local-ipv4 #
local-ipv6 #
keepalive-interval #
keepalive-timeout #
peer-set-input #
id #
remote-ipv4 #
remote-ipv6 #
remote-ipv6-scope-id #
remote-port #
vpn-ipv4 #
vpn-ipv6 #
local-ipv4 #
local-ipv6 #
keepalive-interval #
keepalive-timeout #
peer-del-input #
id #
keyconf #
peer-id (u32) #
-
doc:
The unique ID of the peer in the device context. To be used to identify peers during key operations
slot (u32) #
-
doc:
The slot where the key should be stored
-
enum:
key-id (u32) #
-
doc:
The unique ID of the key in the peer context. Used to fetch the correct key upon decryption
cipher-alg (u32) #
-
doc:
The cipher to be used when communicating with the peer
-
enum:
encrypt-dir (nest) #
-
doc:
Key material for encrypt direction
-
nested-attributes:
decrypt-dir (nest) #
-
doc:
Key material for decrypt direction
-
nested-attributes:
keydir #
cipher-key (binary) #
-
doc:
The actual key to be used by the cipher
nonce-tail (binary) #
-
doc:
Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV
keyconf-get #
peer-id #
slot #
key-id #
cipher-alg #
keyconf-swap-input #
peer-id #
keyconf-del-input #
peer-id #
slot #
ovpn #
ifindex (u32) #
-
doc:
Index of the ovpn interface to operate on
peer (nest) #
-
doc:
The peer object containing the attributed of interest for the specific operation
-
nested-attributes:
keyconf (nest) #
-
doc:
Peer specific cipher configuration
-
nested-attributes:
ovpn-peer-new-input #
ifindex #
peer #
-
nested-attributes:
ovpn-peer-set-input #
ifindex #
peer #
-
nested-attributes:
ovpn-peer-del-input #
ifindex #
peer #
-
nested-attributes:
ovpn-keyconf-get #
ifindex #
keyconf #
-
nested-attributes:
ovpn-keyconf-swap-input #
ifindex #
keyconf #
-
nested-attributes:
ovpn-keyconf-del-input #
ifindex #
keyconf #
-
nested-attributes:
Family ovs_datapath netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
OVS datapath configuration over generic netlink.
Operations #
get #
Get / dump OVS data path configuration and state
-
value:
3
-
attribute-set:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
name,upcall-pid,stats,megaflow-stats,user-features,masks-cache-size,per-cpu-pids]
-
-
dump:
request
-
attributes:
[
name]
reply
-
attributes:
[
name,upcall-pid,stats,megaflow-stats,user-features,masks-cache-size,per-cpu-pids]
-
new #
Create new OVS data path
-
value:
1
-
attribute-set:
-
do:
request
-
attributes:
[
name,upcall-pid,user-features]
-
del #
Delete existing OVS data path
-
value:
2
-
attribute-set:
-
do:
request
-
attributes:
[
name]
-
Multicast groups #
- ovs_datapath
Definitions #
ovs-header #
-
type:
struct
-
members:
- dp-ifindex (
u32)
- dp-ifindex (
user-features #
-
type:
flags
-
name-prefix:
ovs-dp-f-
-
enum-name:
None
-
entries:
-
unaligned:
Allow last Netlink attribute to be unaligned
-
vport-pids:
Allow datapath to associate multiple Netlink PIDs to each vport
-
tc-recirc-sharing:
Allow tc offload recirc sharing
-
dispatch-upcall-per-cpu:
Allow per-cpu dispatch of upcalls
-
ovs-dp-stats #
-
type:
struct
-
members:
-
n-hit (
u64) -
n-missed (
u64) -
n-lost (
u64) -
n-flows (
u64)
-
ovs-dp-megaflow-stats #
-
type:
struct
-
members:
-
n-mask-hit (
u64) -
n-masks (
u32) -
padding (
u32) -
n-cache-hit (
u64) -
pad1 (
u64)
-
Attribute sets #
datapath #
name (string) #
upcall-pid (u32) #
-
doc:
upcall pid
stats (binary) #
-
struct:
megaflow-stats (binary) #
-
struct:
user-features (u32) #
-
enum:
-
enum-as-flags:
True
pad (unused) #
masks-cache-size (u32) #
per-cpu-pids (binary) #
-
sub-type:
u32
ifindex (u32) #
Family ovs_flow netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
OVS flow configuration over generic netlink.
Operations #
get #
Get / dump OVS flow configuration and state
-
value:
3
-
attribute-set:
-
do:
request
-
attributes:
[
key,ufid,ufid-flags]
reply
-
attributes:
[
key,ufid,mask,stats,actions]
-
-
dump:
request
-
attributes:
[
key,ufid,ufid-flags]
reply
-
attributes:
[
key,ufid,mask,stats,actions]
-
new #
Create OVS flow configuration in a data path
-
value:
1
-
attribute-set:
-
do:
request
-
attributes:
[
key,ufid,mask,actions]
-
Multicast groups #
- ovs_flow
Definitions #
ovs-header #
-
type:
struct
-
doc:
Header for OVS Generic Netlink messages.
-
members:
-
dp-ifindex (
u32):ifindex of local port for datapath (0 to make a request not specific to a datapath).
-
ovs-flow-stats #
-
type:
struct
-
members:
-
n-packets (
u64):Number of matched packets.
-
n-bytes (
u64):Number of matched bytes.
-
ovs-key-ethernet #
-
type:
struct
-
members:
-
eth-src (
binary) -
eth-dst (
binary)
-
ovs-key-mpls #
-
type:
struct
-
members:
- mpls-lse (
u32)
- mpls-lse (
ovs-key-ipv4 #
-
type:
struct
-
members:
-
ipv4-src (
u32) -
ipv4-dst (
u32) -
ipv4-proto (
u8) -
ipv4-tos (
u8) -
ipv4-ttl (
u8) -
ipv4-frag (
u8)
-
ovs-key-ipv6 #
-
type:
struct
-
members:
-
ipv6-src (
binary) -
ipv6-dst (
binary) -
ipv6-label (
u32) -
ipv6-proto (
u8) -
ipv6-tclass (
u8) -
ipv6-hlimit (
u8) -
ipv6-frag (
u8)
-
ovs-key-ipv6-exthdrs #
-
type:
struct
-
members:
- hdrs (
u16)
- hdrs (
ovs-frag-type #
-
name-prefix:
ovs-frag-type-
-
enum-name:
ovs-frag-type
-
type:
enum
-
entries:
-
none:
Packet is not a fragment.
-
first:
Packet is a fragment with offset 0.
-
later:
Packet is a fragment with nonzero offset.
-
any
-
ovs-key-tcp #
-
type:
struct
-
members:
-
tcp-src (
u16) -
tcp-dst (
u16)
-
ovs-key-udp #
-
type:
struct
-
members:
-
udp-src (
u16) -
udp-dst (
u16)
-
ovs-key-sctp #
-
type:
struct
-
members:
-
sctp-src (
u16) -
sctp-dst (
u16)
-
ovs-key-icmp #
-
type:
struct
-
members:
-
icmp-type (
u8) -
icmp-code (
u8)
-
ovs-key-arp #
-
type:
struct
-
members:
-
arp-sip (
u32) -
arp-tip (
u32) -
arp-op (
u16) -
arp-sha (
binary) -
arp-tha (
binary)
-
ovs-key-nd #
-
type:
struct
-
members:
-
nd-target (
binary) -
nd-sll (
binary) -
nd-tll (
binary)
-
ovs-key-ct-tuple-ipv4 #
-
type:
struct
-
members:
-
ipv4-src (
u32) -
ipv4-dst (
u32) -
src-port (
u16) -
dst-port (
u16) -
ipv4-proto (
u8)
-
ovs-action-push-vlan #
-
type:
struct
-
members:
-
vlan-tpid (
u16):Tag protocol identifier (TPID) to push.
-
vlan-tci (
u16):Tag control identifier (TCI) to push.
-
ovs-ufid-flags #
-
name-prefix:
ovs-ufid-f-
-
enum-name:
None
-
type:
flags
-
entries:
-
omit-key -
omit-mask -
omit-actions
-
ovs-action-hash #
-
type:
struct
-
members:
-
hash-alg (
u32):Algorithm used to compute hash prior to recirculation.
-
hash-basis (
u32):Basis used for computing hash.
-
ovs-hash-alg #
-
enum-name:
ovs-hash-alg
-
type:
enum
-
doc:
Data path hash algorithm for computing Datapath hash. The algorithm type only specifies the fields in a flow will be used as part of the hash. Each datapath is free to use its own hash algorithm. The hash value will be opaque to the user space daemon.
-
entries:
ovs-hash-alg-l4
ovs-action-push-mpls #
-
type:
struct
-
members:
-
mpls-lse (
u32):MPLS label stack entry to push
-
mpls-ethertype (
u32):Ethertype to set in the encapsulating ethernet frame. The only values ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC, indicating MPLS unicast or multicast. Other are rejected.
-
ovs-action-add-mpls #
-
type:
struct
-
members:
-
mpls-lse (
u32):MPLS label stack entry to push
-
mpls-ethertype (
u32):Ethertype to set in the encapsulating ethernet frame. The only values ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC, indicating MPLS unicast or multicast. Other are rejected.
-
tun-flags (
u16):MPLS tunnel attributes.
-
ct-state-flags #
-
enum-name:
None
-
type:
flags
-
name-prefix:
ovs-cs-f-
-
entries:
-
new:
Beginning of a new connection.
-
established:
Part of an existing connenction
-
related:
Related to an existing connection.
-
reply-dir:
Flow is in the reply direction.
-
invalid:
Could not track the connection.
-
tracked:
Conntrack has occurred.
-
src-nat:
Packet's source address/port was mangled by NAT.
-
dst-nat:
Packet's destination address/port was mangled by NAT.
-
Attribute sets #
flow-attrs #
key (nest) #
-
nested-attributes:
-
doc:
Nested attributes specifying the flow key. Always present in notifications. Required for all requests (except dumps).
actions (nest) #
-
nested-attributes:
-
doc:
Nested attributes specifying the actions to take for packets that match the key. Always present in notifications. Required for OVS_FLOW_CMD_NEW requests, optional for OVS_FLOW_CMD_SET requests. An OVS_FLOW_CMD_SET without OVS_FLOW_ATTR_ACTIONS will not modify the actions. To clear the actions, an OVS_FLOW_ATTR_ACTIONS without any nested attributes must be given.
stats (binary) #
-
struct:
-
doc:
Statistics for this flow. Present in notifications if the stats would be nonzero. Ignored in requests.
tcp-flags (u8) #
-
doc:
An 8-bit value giving the ORed value of all of the TCP flags seen on packets in this flow. Only present in notifications for TCP flows, and only if it would be nonzero. Ignored in requests.
used (u64) #
-
doc:
A 64-bit integer giving the time, in milliseconds on the system monotonic clock, at which a packet was last processed for this flow. Only present in notifications if a packet has been processed for this flow. Ignored in requests.
clear (flag) #
-
doc:
If present in a OVS_FLOW_CMD_SET request, clears the last-used time, accumulated TCP flags, and statistics for this flow. Otherwise ignored in requests. Never present in notifications.
mask (nest) #
-
nested-attributes:
-
doc:
Nested attributes specifying the mask bits for wildcarded flow match. Mask bit value '1' specifies exact match with corresponding flow key bit, while mask bit value '0' specifies a wildcarded match. Omitting attribute is treated as wildcarding all corresponding fields. Optional for all requests. If not present, all flow key bits are exact match bits.
probe (binary) #
-
doc:
Flow operation is a feature probe, error logging should be suppressed.
ufid (binary) #
-
doc:
A value between 1-16 octets specifying a unique identifier for the flow. Causes the flow to be indexed by this value rather than the value of the OVS_FLOW_ATTR_KEY attribute. Optional for all requests. Present in notifications if the flow was created with this attribute.
-
display-hint:
uuid
ufid-flags (u32) #
-
enum:
-
doc:
A 32-bit value of ORed flags that provide alternative semantics for flow installation and retrieval. Optional for all requests.
pad (binary) #
key-attrs #
encap (nest) #
-
nested-attributes:
priority (u32) #
in-port (u32) #
ethernet (binary) #
-
struct:
-
doc:
struct ovs_key_ethernet
vlan (u16) #
-
byte-order:
big-endian
ethertype (u16) #
-
byte-order:
big-endian
ipv4 (binary) #
-
struct:
ipv6 (binary) #
-
struct:
-
doc:
struct ovs_key_ipv6
tcp (binary) #
-
struct:
udp (binary) #
-
struct:
icmp (binary) #
-
struct:
icmpv6 (binary) #
-
struct:
arp (binary) #
-
struct:
-
doc:
struct ovs_key_arp
nd (binary) #
-
struct:
-
doc:
struct ovs_key_nd
skb-mark (u32) #
tunnel (nest) #
-
nested-attributes:
sctp (binary) #
-
struct:
tcp-flags (u16) #
-
byte-order:
big-endian
dp-hash (u32) #
-
doc:
Value 0 indicates the hash is not computed by the datapath.
recirc-id (u32) #
mpls (binary) #
-
struct:
ct-state (u32) #
-
enum:
-
enum-as-flags:
True
ct-zone (u16) #
-
doc:
connection tracking zone
ct-mark (u32) #
-
doc:
connection tracking mark
ct-labels (binary) #
-
display-hint:
hex
-
doc:
16-octet connection tracking label
ct-orig-tuple-ipv4 (binary) #
-
struct:
ct-orig-tuple-ipv6 (binary) #
-
doc:
struct ovs_key_ct_tuple_ipv6
nsh (nest) #
-
nested-attributes:
packet-type (u32) #
-
byte-order:
big-endian
-
doc:
Should not be sent to the kernel
nd-extensions (binary) #
-
doc:
Should not be sent to the kernel
tunnel-info (binary) #
-
doc:
struct ip_tunnel_info
ipv6-exthdrs (binary) #
-
struct:
-
doc:
struct ovs_key_ipv6_exthdr
action-attrs #
output (u32) #
-
doc:
ovs port number in datapath
userspace (nest) #
-
nested-attributes:
set (nest) #
-
nested-attributes:
-
doc:
Replaces the contents of an existing header. The single nested attribute specifies a header to modify and its value.
push-vlan (binary) #
-
struct:
-
doc:
Push a new outermost 802.1Q or 802.1ad header onto the packet.
pop-vlan (flag) #
-
doc:
Pop the outermost 802.1Q or 802.1ad header from the packet.
sample (nest) #
-
nested-attributes:
-
doc:
Probabilistically executes actions, as specified in the nested attributes.
recirc (u32) #
-
doc:
recirc id
hash (binary) #
-
struct:
push-mpls (binary) #
-
struct:
-
doc:
Push a new MPLS label stack entry onto the top of the packets MPLS label stack. Set the ethertype of the encapsulating frame to either ETH_P_MPLS_UC or ETH_P_MPLS_MC to indicate the new packet contents.
pop-mpls (u16) #
-
byte-order:
big-endian
-
doc:
ethertype
set-masked (nest) #
-
nested-attributes:
-
doc:
Replaces the contents of an existing header. A nested attribute specifies a header to modify, its value, and a mask. For every bit set in the mask, the corresponding bit value is copied from the value to the packet header field, rest of the bits are left unchanged. The non-masked value bits must be passed in as zeroes. Masking is not supported for the OVS_KEY_ATTR_TUNNEL attribute.
ct (nest) #
-
nested-attributes:
-
doc:
Track the connection. Populate the conntrack-related entries in the flow key.
trunc (u32) #
-
doc:
struct ovs_action_trunc is a u32 max length
push-eth (binary) #
-
doc:
struct ovs_action_push_eth
pop-eth (flag) #
ct-clear (flag) #
push-nsh (nest) #
-
nested-attributes:
-
doc:
Push NSH header to the packet.
pop-nsh (flag) #
-
doc:
Pop the outermost NSH header off the packet.
meter (u32) #
-
doc:
Run packet through a meter, which may drop the packet, or modify the packet (e.g., change the DSCP field)
clone (nest) #
-
nested-attributes:
-
doc:
Make a copy of the packet and execute a list of actions without affecting the original packet and key.
check-pkt-len (nest) #
-
nested-attributes:
-
doc:
Check the packet length and execute a set of actions if greater than the specified packet length, else execute another set of actions.
add-mpls (binary) #
-
struct:
-
doc:
Push a new MPLS label stack entry at the start of the packet or at the start of the l3 header depending on the value of l3 tunnel flag in the tun_flags field of this OVS_ACTION_ATTR_ADD_MPLS argument.
dec-ttl (nest) #
-
nested-attributes:
psample (nest) #
-
nested-attributes:
-
doc:
Sends a packet sample to psample for external observation.
tunnel-key-attrs #
id (u64) #
-
byte-order:
big-endian
-
value:
0
ipv4-src (u32) #
-
byte-order:
big-endian
ipv4-dst (u32) #
-
byte-order:
big-endian
tos (u8) #
ttl (u8) #
dont-fragment (flag) #
csum (flag) #
oam (flag) #
geneve-opts (binary) #
-
sub-type:
u32
tp-src (u16) #
-
byte-order:
big-endian
tp-dst (u16) #
-
byte-order:
big-endian
vxlan-opts (nest) #
-
nested-attributes:
ipv6-src (binary) #
-
doc:
struct in6_addr source IPv6 address
ipv6-dst (binary) #
-
doc:
struct in6_addr destination IPv6 address
pad (binary) #
erspan-opts (binary) #
-
doc:
struct erspan_metadata
ipv4-info-bridge (flag) #
check-pkt-len-attrs #
pkt-len (u16) #
actions-if-greater (nest) #
-
nested-attributes:
actions-if-less-equal (nest) #
-
nested-attributes:
sample-attrs #
probability (u32) #
actions (nest) #
-
nested-attributes:
userspace-attrs #
pid (u32) #
userdata (binary) #
egress-tun-port (u32) #
actions (flag) #
ovs-nsh-key-attrs #
base (binary) #
md1 (binary) #
md2 (binary) #
ct-attrs #
commit (flag) #
zone (u16) #
mark (binary) #
labels (binary) #
helper (string) #
nat (nest) #
-
nested-attributes:
force-commit (flag) #
eventmask (u32) #
timeout (string) #
nat-attrs #
src (flag) #
dst (flag) #
ip-min (binary) #
ip-max (binary) #
proto-min (u16) #
proto-max (u16) #
persistent (flag) #
proto-hash (flag) #
proto-random (flag) #
dec-ttl-attrs #
action (nest) #
-
nested-attributes:
vxlan-ext-attrs #
gbp (u32) #
psample-attrs #
group (u32) #
cookie (binary) #
Family ovs_vport netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
OVS vport configuration over generic netlink.
Operations #
new #
Create a new OVS vport
-
attribute-set:
-
do:
request
-
attributes:
[
name,type,upcall-pid,ifindex,options]
-
del #
Delete existing OVS vport from a data path
-
attribute-set:
-
do:
request
-
attributes:
[
port-no,type,name]
-
get #
Get / dump OVS vport configuration and state
-
attribute-set:
-
do:
request
-
attributes:
[
name]
reply
-
attributes:
[
port-no,type,name,upcall-pid,stats,ifindex,netnsid,upcall-stats]
-
-
dump:
request
-
attributes:
[
name]
reply
-
attributes:
[
port-no,type,name,upcall-pid,stats,ifindex,netnsid,upcall-stats]
-
Multicast groups #
- ovs_vport
Definitions #
ovs-header #
-
type:
struct
-
members:
- dp-ifindex (
u32)
- dp-ifindex (
vport-type #
-
type:
enum
-
enum-name:
ovs-vport-type
-
name-prefix:
ovs-vport-type-
-
entries:
-
unspec -
netdev -
internal -
gre -
vxlan -
geneve
-
ovs-vport-stats #
-
type:
struct
-
members:
-
rx-packets (
u64) -
tx-packets (
u64) -
rx-bytes (
u64) -
tx-bytes (
u64) -
rx-errors (
u64) -
tx-errors (
u64) -
rx-dropped (
u64) -
tx-dropped (
u64)
-
Attribute sets #
vport-options #
dst-port (u32) #
extension (u32) #
upcall-stats #
success (u64) #
-
value:
0
fail (u64) #
vport #
unspec (unused) #
-
value:
0
port-no (u32) #
type (u32) #
-
enum:
name (string) #
options (nest) #
-
nested-attributes:
upcall-pid (binary) #
-
sub-type:
u32
stats (binary) #
-
struct:
pad (unused) #
ifindex (u32) #
netnsid (u32) #
upcall-stats (nest) #
-
nested-attributes:
Family psp netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
PSP Security Protocol Generic Netlink family.
Operations #
dev-get #
Get / dump information about PSP capable devices on the system.
-
attribute-set:
-
do:
request
-
attributes:
[
id]
reply
-
attributes:
[
id,ifindex,psp-versions-cap,psp-versions-ena]
pre
psp-device-get-locked
post
psp-device-unlock
-
-
dump:
reply
-
attributes:
[
id,ifindex,psp-versions-cap,psp-versions-ena]
-
dev-add-ntf #
Notification about device appearing.
-
notify:
dev-get
-
mcgrp:
mgmt
dev-del-ntf #
Notification about device disappearing.
-
notify:
dev-get
-
mcgrp:
mgmt
dev-set #
Set the configuration of a PSP device.
-
attribute-set:
-
do:
request
-
attributes:
[
id,psp-versions-ena]
reply
-
attributes:
[]
pre
psp-device-get-locked
post
psp-device-unlock
-
dev-change-ntf #
Notification about device configuration being changed.
-
notify:
dev-get
-
mcgrp:
mgmt
key-rotate #
Rotate the device key.
-
attribute-set:
-
do:
request
-
attributes:
[
id]
reply
-
attributes:
[
id]
pre
psp-device-get-locked
post
psp-device-unlock
-
key-rotate-ntf #
Notification about device key getting rotated.
-
notify:
key-rotate
-
mcgrp:
use
rx-assoc #
Allocate a new Rx key + SPI pair, associate it with a socket.
-
attribute-set:
-
do:
request
-
attributes:
[
dev-id,version,sock-fd]
reply
-
attributes:
[
dev-id,rx-key]
pre
psp-assoc-device-get-locked
post
psp-device-unlock
-
tx-assoc #
Add a PSP Tx association.
-
attribute-set:
-
do:
request
-
attributes:
[
dev-id,version,tx-key,sock-fd]
reply
-
attributes:
[]
pre
psp-assoc-device-get-locked
post
psp-device-unlock
-
get-stats #
Get device statistics.
-
attribute-set:
-
do:
request
-
attributes:
[
dev-id]
reply
-
attributes:
[
dev-id,key-rotations,stale-events]
pre
psp-device-get-locked
post
psp-device-unlock
-
-
dump:
reply
-
attributes:
[
dev-id,key-rotations,stale-events]
-
Multicast groups #
-
mgmt
-
use
Definitions #
version #
-
type:
enum
-
entries:
-
hdr0-aes-gcm-128 -
hdr0-aes-gcm-256 -
hdr0-aes-gmac-128 -
hdr0-aes-gmac-256
-
Attribute sets #
dev #
id (u32) #
-
doc:
PSP device ID.
ifindex (u32) #
-
doc:
ifindex of the main netdevice linked to the PSP device.
psp-versions-cap (u32) #
-
doc:
Bitmask of PSP versions supported by the device.
-
enum:
-
enum-as-flags:
True
psp-versions-ena (u32) #
-
doc:
Bitmask of currently enabled (accepted on Rx) PSP versions.
-
enum:
-
enum-as-flags:
True
assoc #
dev-id (u32) #
-
doc:
PSP device ID.
version (u32) #
-
doc:
PSP versions (AEAD and protocol version) used by this association, dictates the size of the key.
-
enum:
rx-key (nest) #
-
nested-attributes:
tx-key (nest) #
-
nested-attributes:
sock-fd (u32) #
-
doc:
Sockets which should be bound to the association immediately.
keys #
key (binary) #
spi (u32) #
-
doc:
Security Parameters Index (SPI) of the association.
stats #
dev-id (u32) #
-
doc:
PSP device ID.
key-rotations (uint) #
-
doc:
Number of key rotations during the lifetime of the device. Kernel statistic.
stale-events (uint) #
-
doc:
Number of times a socket's Rx got shut down due to using a key which went stale (fully rotated out). Kernel statistic.
rx-packets (uint) #
-
doc:
Number of successfully processed and authenticated PSP packets. Device statistic (from the PSP spec).
rx-bytes (uint) #
-
doc:
Number of successfully authenticated PSP bytes received, counting from the first byte after the IV through the last byte of payload. The fixed initial portion of the PSP header (16 bytes) and the PSP trailer/ICV (16 bytes) are not included in this count. Device statistic (from the PSP spec).
rx-auth-fail (uint) #
-
doc:
Number of received PSP packets with unsuccessful authentication. Device statistic (from the PSP spec).
rx-error (uint) #
-
doc:
Number of received PSP packets with length/framing errors. Device statistic (from the PSP spec).
rx-bad (uint) #
-
doc:
Number of received PSP packets with miscellaneous errors (invalid master key indicated by SPI, unsupported version, etc.) Device statistic (from the PSP spec).
tx-packets (uint) #
-
doc:
Number of successfully processed PSP packets for transmission. Device statistic (from the PSP spec).
tx-bytes (uint) #
-
doc:
Number of successfully processed PSP bytes for transmit, counting from the first byte after the IV through the last byte of payload. The fixed initial portion of the PSP header (16 bytes) and the PSP trailer/ICV (16 bytes) are not included in this count. Device statistic (from the PSP spec).
tx-error (uint) #
-
doc:
Number of PSP packets for transmission with errors. Device statistic (from the PSP spec).
Family rt-addr netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Address configuration over rtnetlink.
Operations #
newaddr #
Add new address
-
attribute-set:
-
do:
request
-
attributes:
[
address,label,local,cacheinfo]
-
deladdr #
Remove address
-
attribute-set:
-
do:
request
-
attributes:
[
address,local]
-
getaddr #
Dump address information.
-
attribute-set:
-
dump:
request
-
attributes:
[]
reply
-
attributes:
[
address,label,local,cacheinfo]
-
getmulticast #
Get / dump IPv4/IPv6 multicast addresses.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[]
reply
-
attributes:
[
multicast,cacheinfo]
-
-
dump:
request
-
attributes:
[]
reply
-
attributes:
[
multicast,cacheinfo]
-
Multicast groups #
-
rtnlgrp-ipv4-ifaddr
-
rtnlgrp-ipv6-ifaddr
Definitions #
ifaddrmsg #
-
type:
struct
-
members:
-
ifa-family (
u8) -
ifa-prefixlen (
u8) -
ifa-flags (
u8) -
ifa-scope (
u8) -
ifa-index (
u32)
-
ifa-cacheinfo #
-
type:
struct
-
members:
-
ifa-prefered (
u32) -
ifa-valid (
u32) -
cstamp (
u32) -
tstamp (
u32)
-
ifa-flags #
-
type:
flags
-
name-prefix:
ifa-f-
-
enum-name:
None
-
entries:
-
secondary
-
nodad
-
optimistic
-
dadfailed
-
homeaddress
-
deprecated
-
tentative
-
permanent
-
managetempaddr
-
noprefixroute
-
mcautojoin
-
stable-privacy
-
Attribute sets #
addr-attrs #
address (binary) #
-
display-hint:
ipv4-or-v6
local (binary) #
-
display-hint:
ipv4-or-v6
label (string) #
broadcast (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
anycast (binary) #
cacheinfo (binary) #
-
struct:
multicast (binary) #
flags (u32) #
-
enum:
-
enum-as-flags:
True
rt-priority (u32) #
target-netnsid (binary) #
proto (u8) #
Family rt-link netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Link configuration over rtnetlink.
Operations #
newlink #
Create a new link.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
ifname,net-ns-pid,net-ns-fd,target-netnsid,link-netnsid,linkinfo,group,num-tx-queues,num-rx-queues,address,broadcast,mtu,txqlen,operstate,linkmode,gso-max-size,gso-max-segs,gro-max-size,gso-ipv4-max-size,gro-ipv4-max-size,af-spec]
-
newlink-ntf #
Notify that a link has been created
-
value:
16
-
notify:
getlink
-
fixed-header:
dellink #
Delete an existing link.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
ifname]
-
getlink #
Get / dump information about a link.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
ifname,alt-ifname,ext-mask,target-netnsid]
reply
-
attributes:
[
address,broadcast,ifname,mtu,link,qdisc,stats,cost,priority,master,wireless,protinfo,txqlen,map,weight,operstate,linkmode,linkinfo,net-ns-pid,ifalias,num-vf,vfinfo-list,stats64,vf-ports,port-self,af-spec,group,net-ns-fd,ext-mask,promiscuity,num-tx-queues,num-rx-queues,carrier,phys-port-id,carrier-changes,phys-switch-id,link-netnsid,phys-port-name,proto-down,gso-max-segs,gso-max-size,pad,xdp,event,new-netnsid,target-netnsid,carrier-up-count,carrier-down-count,new-ifindex,min-mtu,max-mtu,prop-list,perm-address,proto-down-reason,parent-dev-name,parent-dev-bus-name,gro-max-size,tso-max-size,tso-max-segs,allmulti,devlink-port,gso-ipv4-max-size,gro-ipv4-max-size]
-
-
dump:
request
-
attributes:
[
target-netnsid,ext-mask,master,linkinfo]
reply
-
attributes:
[
address,broadcast,ifname,mtu,link,qdisc,stats,cost,priority,master,wireless,protinfo,txqlen,map,weight,operstate,linkmode,linkinfo,net-ns-pid,ifalias,num-vf,vfinfo-list,stats64,vf-ports,port-self,af-spec,group,net-ns-fd,ext-mask,promiscuity,num-tx-queues,num-rx-queues,carrier,phys-port-id,carrier-changes,phys-switch-id,link-netnsid,phys-port-name,proto-down,gso-max-segs,gso-max-size,pad,xdp,event,new-netnsid,target-netnsid,carrier-up-count,carrier-down-count,new-ifindex,min-mtu,max-mtu,prop-list,perm-address,proto-down-reason,parent-dev-name,parent-dev-bus-name,gro-max-size,tso-max-size,tso-max-segs,allmulti,devlink-port,gso-ipv4-max-size,gro-ipv4-max-size]
-
setlink #
Set information about a link.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
address,broadcast,ifname,mtu,link,qdisc,stats,cost,priority,master,wireless,protinfo,txqlen,map,weight,operstate,linkmode,linkinfo,net-ns-pid,ifalias,num-vf,vfinfo-list,stats64,vf-ports,port-self,af-spec,group,net-ns-fd,ext-mask,promiscuity,num-tx-queues,num-rx-queues,carrier,phys-port-id,carrier-changes,phys-switch-id,link-netnsid,phys-port-name,proto-down,gso-max-segs,gso-max-size,pad,xdp,event,new-netnsid,target-netnsid,carrier-up-count,carrier-down-count,new-ifindex,min-mtu,max-mtu,prop-list,perm-address,proto-down-reason,parent-dev-name,parent-dev-bus-name,gro-max-size,tso-max-size,tso-max-segs,allmulti,devlink-port,gso-ipv4-max-size,gro-ipv4-max-size]
-
getstats #
Get / dump link stats.
-
attribute-set:
-
fixed-header:
-
do:
request
reply
-
attributes:
[
link-64,link-xstats,link-xstats-slave,link-offload-xstats,af-spec]
-
-
dump:
request
reply
-
attributes:
[
link-64,link-xstats,link-xstats-slave,link-offload-xstats,af-spec]
-
Multicast groups #
-
rtnlgrp-link
-
rtnlgrp-stats
Definitions #
ifinfo-flags #
-
type:
flags
-
header:
linux/if.h
-
enum-name:
net-device-flags
-
name-prefix:
iff-
-
entries:
-
up
-
broadcast
-
debug
-
loopback
-
point-to-point
-
no-trailers
-
running
-
no-arp
-
promisc
-
all-multi
-
master
-
slave
-
multicast
-
portsel
-
auto-media
-
dynamic
-
lower-up
-
dormant
-
echo
-
vlan-protocols #
-
type:
enum
-
enum-name:
None
-
entries:
-
8021q
-
8021ad
-
rtgenmsg #
-
type:
struct
-
members:
- family (
u8)
- family (
ifinfomsg #
-
type:
struct
-
members:
-
ifi-family (
u8) -
ifi-type (
u16) -
ifi-index (
s32) -
ifi-flags (
u32) -
ifi-change (
u32)
-
ifla-bridge-id #
-
type:
struct
-
members:
-
prio (
u16) -
addr (
binary)
-
ifla-cacheinfo #
-
type:
struct
-
members:
-
max-reasm-len (
u32) -
tstamp (
u32) -
reachable-time (
s32) -
retrans-time (
u32)
-
rtnl-link-stats #
-
type:
struct
-
members:
-
rx-packets (
u32) -
tx-packets (
u32) -
rx-bytes (
u32) -
tx-bytes (
u32) -
rx-errors (
u32) -
tx-errors (
u32) -
rx-dropped (
u32) -
tx-dropped (
u32) -
multicast (
u32) -
collisions (
u32) -
rx-length-errors (
u32) -
rx-over-errors (
u32) -
rx-crc-errors (
u32) -
rx-frame-errors (
u32) -
rx-fifo-errors (
u32) -
rx-missed-errors (
u32) -
tx-aborted-errors (
u32) -
tx-carrier-errors (
u32) -
tx-fifo-errors (
u32) -
tx-heartbeat-errors (
u32) -
tx-window-errors (
u32) -
rx-compressed (
u32) -
tx-compressed (
u32) -
rx-nohandler (
u32)
-
rtnl-link-stats64 #
-
type:
struct
-
members:
-
rx-packets (
u64) -
tx-packets (
u64) -
rx-bytes (
u64) -
tx-bytes (
u64) -
rx-errors (
u64) -
tx-errors (
u64) -
rx-dropped (
u64) -
tx-dropped (
u64) -
multicast (
u64) -
collisions (
u64) -
rx-length-errors (
u64) -
rx-over-errors (
u64) -
rx-crc-errors (
u64) -
rx-frame-errors (
u64) -
rx-fifo-errors (
u64) -
rx-missed-errors (
u64) -
tx-aborted-errors (
u64) -
tx-carrier-errors (
u64) -
tx-fifo-errors (
u64) -
tx-heartbeat-errors (
u64) -
tx-window-errors (
u64) -
rx-compressed (
u64) -
tx-compressed (
u64) -
rx-nohandler (
u64) -
rx-otherhost-dropped (
u64)
-
rtnl-link-ifmap #
-
type:
struct
-
members:
-
mem-start (
u64) -
mem-end (
u64) -
base-addr (
u64) -
irq (
u16) -
dma (
u8) -
port (
u8)
-
ipv4-devconf #
-
enum-name:
None
-
type:
enum
-
entries:
-
forwarding
-
mc-forwarding
-
proxy-arp
-
accept-redirects
-
secure-redirects
-
send-redirects
-
shared-media
-
rp-filter
-
accept-source-route
-
bootp-relay
-
log-martians
-
tag
-
arpfilter
-
medium-id
-
noxfrm
-
nopolicy
-
force-igmp-version
-
arp-announce
-
arp-ignore
-
promote-secondaries
-
arp-accept
-
arp-notify
-
accept-local
-
src-vmark
-
proxy-arp-pvlan
-
route-localnet
-
igmpv2-unsolicited-report-interval
-
igmpv3-unsolicited-report-interval
-
ignore-routes-with-linkdown
-
drop-unicast-in-l2-multicast
-
drop-gratuitous-arp
-
bc-forwarding
-
arp-evict-nocarrier
-
ipv6-devconf #
-
enum-name:
None
-
type:
enum
-
entries:
-
forwarding
-
hoplimit
-
mtu6
-
accept-ra
-
accept-redirects
-
autoconf
-
dad-transmits
-
rtr-solicits
-
rtr-solicit-interval
-
rtr-solicit-delay
-
use-tempaddr
-
temp-valid-lft
-
temp-prefered-lft
-
regen-max-retry
-
max-desync-factor
-
max-addresses
-
force-mld-version
-
accept-ra-defrtr
-
accept-ra-pinfo
-
accept-ra-rtr-pref
-
rtr-probe-interval
-
accept-ra-rt-info-max-plen
-
proxy-ndp
-
optimistic-dad
-
accept-source-route
-
mc-forwarding
-
disable-ipv6
-
accept-dad
-
force-tllao
-
ndisc-notify
-
mldv1-unsolicited-report-interval
-
mldv2-unsolicited-report-interval
-
suppress-frag-ndisc
-
accept-ra-from-local
-
use-optimistic
-
accept-ra-mtu
-
stable-secret
-
use-oif-addrs-only
-
accept-ra-min-hop-limit
-
ignore-routes-with-linkdown
-
drop-unicast-in-l2-multicast
-
drop-unsolicited-na
-
keep-addr-on-down
-
rtr-solicit-max-interval
-
seg6-enabled
-
seg6-require-hmac
-
enhanced-dad
-
addr-gen-mode
-
disable-policy
-
accept-ra-rt-info-min-plen
-
ndisc-tclass
-
rpl-seg-enabled
-
ra-defrtr-metric
-
ioam6-enabled
-
ioam6-id
-
ioam6-id-wide
-
ndisc-evict-nocarrier
-
accept-untracked-na
-
ifla-icmp6-stats #
-
enum-name:
None
-
type:
enum
-
entries:
-
num
-
inmsgs
-
inerrors
-
outmsgs
-
outerrors
-
csumerrors
-
ratelimithost
-
ifla-inet6-stats #
-
enum-name:
None
-
type:
enum
-
entries:
-
num
-
inpkts
-
inoctets
-
indelivers
-
outforwdatagrams
-
outpkts
-
outoctets
-
inhdrerrors
-
intoobigerrors
-
innoroutes
-
inaddrerrors
-
inunknownprotos
-
intruncatedpkts
-
indiscards
-
outdiscards
-
outnoroutes
-
reasmtimeout
-
reasmreqds
-
reasmoks
-
reasmfails
-
fragoks
-
fragfails
-
fragcreates
-
inmcastpkts
-
outmcastpkts
-
inbcastpkts
-
outbcastpkts
-
inmcastoctets
-
outmcastoctets
-
inbcastoctets
-
outbcastoctets
-
csumerrors
-
noectpkts
-
ect1-pkts
-
ect0-pkts
-
cepkts
-
reasm-overlaps
-
br-boolopt-multi #
-
type:
struct
-
header:
linux/if_bridge.h
-
members:
-
optval (
u32) -
optmask (
u32)
-
if-stats-msg #
-
type:
struct
-
members:
-
family (
u8) -
ifindex (
u32) -
filter-mask (
u32)
-
ifla-vlan-flags #
-
type:
struct
-
members:
-
flags (
u32) -
mask (
u32)
-
vlan-flags #
-
type:
flags
-
enum-name:
None
-
entries:
-
reorder-hdr -
gvrp -
loose-binding -
mvrp -
bridge-binding
-
ifla-vlan-qos-mapping #
-
type:
struct
-
members:
-
from (
u32) -
to (
u32)
-
ifla-geneve-port-range #
-
type:
struct
-
members:
-
low (
u16) -
high (
u16)
-
ifla-vf-mac #
-
type:
struct
-
members:
-
vf (
u32) -
mac (
binary)
-
ifla-vf-vlan #
-
type:
struct
-
members:
-
vf (
u32) -
vlan (
u32) -
qos (
u32)
-
ifla-vf-tx-rate #
-
type:
struct
-
members:
-
vf (
u32) -
rate (
u32)
-
ifla-vf-spoofchk #
-
type:
struct
-
members:
-
vf (
u32) -
setting (
u32)
-
ifla-vf-link-state #
-
type:
struct
-
members:
-
vf (
u32) -
link-state (
u32)
-
ifla-vf-link-state-enum #
-
type:
enum
-
enum-name:
None
-
entries:
-
auto -
enable -
disable
-
ifla-vf-rate #
-
type:
struct
-
members:
-
vf (
u32) -
min-tx-rate (
u32) -
max-tx-rate (
u32)
-
ifla-vf-rss-query-en #
-
type:
struct
-
members:
-
vf (
u32) -
setting (
u32)
-
ifla-vf-trust #
-
type:
struct
-
members:
-
vf (
u32) -
setting (
u32)
-
ifla-vf-guid #
-
type:
struct
-
members:
-
vf (
u32) -
guid (
u64)
-
ifla-vf-vlan-info #
-
type:
struct
-
members:
-
vf (
u32) -
vlan (
u32) -
qos (
u32) -
vlan-proto (
u32)
-
rtext-filter #
-
type:
flags
-
enum-name:
None
-
entries:
-
vf -
brvlan -
brvlan-compressed -
skip-stats -
mrp -
cfm-config -
cfm-status -
mst
-
netkit-policy #
-
type:
enum
-
enum-name:
None
-
entries:
-
forward
-
blackhole
-
netkit-mode #
-
type:
enum
-
enum-name:
netkit-mode
-
entries:
-
l2
-
l3
-
netkit-scrub #
-
type:
enum
-
enum-name:
None
-
entries:
-
none
-
default
-
ovpn-mode #
-
enum-name:
ovpn-mode
-
name-prefix:
ovpn-mode
-
type:
enum
-
entries:
-
p2p -
mp
-
Attribute sets #
link-attrs #
address (binary) #
-
display-hint:
mac
broadcast (binary) #
-
display-hint:
mac
ifname (string) #
mtu (u32) #
link (u32) #
qdisc (string) #
stats (binary) #
-
struct:
cost (string) #
priority (string) #
master (u32) #
wireless (string) #
protinfo (string) #
txqlen (u32) #
map (binary) #
-
struct:
weight (u32) #
operstate (u8) #
linkmode (u8) #
linkinfo (nest) #
-
nested-attributes:
net-ns-pid (u32) #
ifalias (string) #
num-vf (u32) #
vfinfo-list (nest) #
-
nested-attributes:
stats64 (binary) #
-
struct:
vf-ports (nest) #
-
nested-attributes:
port-self (nest) #
-
nested-attributes:
af-spec (nest) #
-
nested-attributes:
group (u32) #
net-ns-fd (u32) #
ext-mask (u32) #
-
enum:
-
enum-as-flags:
True
promiscuity (u32) #
num-tx-queues (u32) #
num-rx-queues (u32) #
carrier (u8) #
phys-port-id (binary) #
carrier-changes (u32) #
phys-switch-id (binary) #
link-netnsid (s32) #
phys-port-name (string) #
proto-down (u8) #
gso-max-segs (u32) #
gso-max-size (u32) #
pad (pad) #
xdp (nest) #
-
nested-attributes:
event (u32) #
new-netnsid (s32) #
target-netnsid (s32) #
carrier-up-count (u32) #
carrier-down-count (u32) #
new-ifindex (s32) #
min-mtu (u32) #
max-mtu (u32) #
prop-list (nest) #
-
nested-attributes:
alt-ifname (string) #
perm-address (binary) #
-
display-hint:
mac
proto-down-reason (string) #
parent-dev-name (string) #
parent-dev-bus-name (string) #
gro-max-size (u32) #
tso-max-size (u32) #
tso-max-segs (u32) #
allmulti (u32) #
devlink-port (binary) #
gso-ipv4-max-size (u32) #
gro-ipv4-max-size (u32) #
dpll-pin (nest) #
-
nested-attributes:
max-pacing-offload-horizon (uint) #
-
doc:
EDT offload horizon supported by the device (in nsec).
netns-immutable (u8) #
headroom (u16) #
tailroom (u16) #
prop-list-link-attrs #
alt-ifname #
-
multi-attr:
True
af-spec-attrs #
inet (nest) #
-
value:
2
-
nested-attributes:
inet6 (nest) #
-
value:
10
-
nested-attributes:
mctp (nest) #
-
value:
45
-
nested-attributes:
vfinfo-list-attrs #
info (nest) #
-
nested-attributes:
-
multi-attr:
True
vfinfo-attrs #
mac (binary) #
-
struct:
vlan (binary) #
-
struct:
tx-rate (binary) #
-
struct:
spoofchk (binary) #
-
struct:
link-state (binary) #
-
struct:
rate (binary) #
-
struct:
rss-query-en (binary) #
-
struct:
stats (nest) #
-
nested-attributes:
trust (binary) #
-
struct:
ib-node-guid (binary) #
-
struct:
ib-port-guid (binary) #
-
struct:
vlan-list (nest) #
-
nested-attributes:
broadcast (binary) #
vf-stats-attrs #
rx-packets (u64) #
-
value:
0
tx-packets (u64) #
rx-bytes (u64) #
tx-bytes (u64) #
broadcast (u64) #
multicast (u64) #
pad (pad) #
rx-dropped (u64) #
tx-dropped (u64) #
vf-vlan-attrs #
info (binary) #
-
struct:
-
multi-attr:
True
vf-ports-attrs #
port-self-attrs #
linkinfo-attrs #
kind (string) #
data (sub-message) #
-
sub-message:
-
selector:
kind
xstats (binary) #
slave-kind (string) #
slave-data (sub-message) #
-
sub-message:
-
selector:
slave-kind
linkinfo-bond-attrs #
mode (u8) #
active-slave (u32) #
miimon (u32) #
updelay (u32) #
downdelay (u32) #
use-carrier (u8) #
arp-interval (u32) #
arp-ip-target (indexed-array) #
-
sub-type:
u32
-
byte-order:
big-endian
-
display-hint:
ipv4
arp-validate (u32) #
arp-all-targets (u32) #
primary (u32) #
primary-reselect (u8) #
fail-over-mac (u8) #
xmit-hash-policy (u8) #
resend-igmp (u32) #
num-peer-notif (u8) #
all-slaves-active (u8) #
min-links (u32) #
lp-interval (u32) #
packets-per-slave (u32) #
ad-lacp-rate (u8) #
ad-select (u8) #
ad-info (nest) #
-
nested-attributes:
ad-actor-sys-prio (u16) #
ad-user-port-key (u16) #
ad-actor-system (binary) #
-
display-hint:
mac
tlb-dynamic-lb (u8) #
peer-notif-delay (u32) #
ad-lacp-active (u8) #
missed-max (u8) #
ns-ip6-target (indexed-array) #
-
sub-type:
binary
-
display-hint:
ipv6
coupled-control (u8) #
bond-ad-info-attrs #
aggregator (u16) #
num-ports (u16) #
actor-key (u16) #
partner-key (u16) #
partner-mac (binary) #
-
display-hint:
mac
bond-slave-attrs #
state (u8) #
mii-status (u8) #
link-failure-count (u32) #
perm-hwaddr (binary) #
-
display-hint:
mac
queue-id (u16) #
ad-aggregator-id (u16) #
ad-actor-oper-port-state (u8) #
ad-partner-oper-port-state (u16) #
prio (u32) #
linkinfo-bridge-attrs #
forward-delay (u32) #
hello-time (u32) #
max-age (u32) #
ageing-time (u32) #
stp-state (u32) #
priority (u16) #
vlan-filtering (u8) #
vlan-protocol (u16) #
group-fwd-mask (u16) #
root-id (binary) #
-
struct:
bridge-id (binary) #
-
struct:
root-port (u16) #
root-path-cost (u32) #
topology-change (u8) #
topology-change-detected (u8) #
hello-timer (u64) #
tcn-timer (u64) #
topology-change-timer (u64) #
gc-timer (u64) #
group-addr (binary) #
-
display-hint:
mac
fdb-flush (binary) #
mcast-router (u8) #
mcast-snooping (u8) #
mcast-query-use-ifaddr (u8) #
mcast-querier (u8) #
mcast-hash-elasticity (u32) #
mcast-hash-max (u32) #
mcast-last-member-cnt (u32) #
mcast-startup-query-cnt (u32) #
mcast-last-member-intvl (u64) #
mcast-membership-intvl (u64) #
mcast-querier-intvl (u64) #
mcast-query-intvl (u64) #
mcast-query-response-intvl (u64) #
mcast-startup-query-intvl (u64) #
nf-call-iptables (u8) #
nf-call-ip6tables (u8) #
nf-call-arptables (u8) #
vlan-default-pvid (u16) #
pad (pad) #
vlan-stats-enabled (u8) #
mcast-stats-enabled (u8) #
mcast-igmp-version (u8) #
mcast-mld-version (u8) #
vlan-stats-per-port (u8) #
multi-boolopt (binary) #
-
struct:
mcast-querier-state (binary) #
fdb-n-learned (u32) #
fdb-max-learned (u32) #
linkinfo-brport-attrs #
state (u8) #
priority (u16) #
cost (u32) #
mode (flag) #
guard (flag) #
protect (flag) #
fast-leave (flag) #
learning (flag) #
unicast-flood (flag) #
proxyarp (flag) #
learning-sync (flag) #
proxyarp-wifi (flag) #
root-id (binary) #
-
struct:
bridge-id (binary) #
-
struct:
designated-port (u16) #
designated-cost (u16) #
id (u16) #
no (u16) #
topology-change-ack (u8) #
config-pending (u8) #
message-age-timer (u64) #
forward-delay-timer (u64) #
hold-timer (u64) #
flush (flag) #
multicast-router (u8) #
pad (pad) #
mcast-flood (flag) #
mcast-to-ucast (flag) #
vlan-tunnel (flag) #
bcast-flood (flag) #
group-fwd-mask (u16) #
neigh-suppress (flag) #
isolated (flag) #
backup-port (u32) #
mrp-ring-open (flag) #
mrp-in-open (flag) #
mcast-eht-hosts-limit (u32) #
mcast-eht-hosts-cnt (u32) #
locked (flag) #
mab (flag) #
mcast-n-groups (u32) #
mcast-max-groups (u32) #
neigh-vlan-suppress (flag) #
backup-nhid (u32) #
linkinfo-gre-attrs #
link (u32) #
iflags (u16) #
-
byte-order:
big-endian
oflags (u16) #
-
byte-order:
big-endian
ikey (u32) #
-
byte-order:
big-endian
okey (u32) #
-
byte-order:
big-endian
local (binary) #
-
display-hint:
ipv4-or-v6
remote (binary) #
-
display-hint:
ipv4-or-v6
ttl (u8) #
tos (u8) #
pmtudisc (u8) #
encap-limit (u8) #
flowinfo (u32) #
-
byte-order:
big-endian
flags (u32) #
encap-type (u16) #
encap-flags (u16) #
encap-sport (u16) #
-
byte-order:
big-endian
encap-dport (u16) #
-
byte-order:
big-endian
collect-metadata (flag) #
ignore-df (u8) #
fwmark (u32) #
erspan-index (u32) #
erspan-ver (u8) #
erspan-dir (u8) #
erspan-hwid (u16) #
linkinfo-gre6-attrs #
link #
iflags #
oflags #
ikey #
okey #
local #
-
display-hint:
ipv6
remote #
-
display-hint:
ipv6
ttl #
encap-limit #
flowinfo #
flags #
encap-type #
encap-flags #
encap-sport #
encap-dport #
collect-metadata #
fwmark #
erspan-index #
erspan-ver #
erspan-dir #
erspan-hwid #
linkinfo-vti-attrs #
link (u32) #
ikey (u32) #
-
byte-order:
big-endian
okey (u32) #
-
byte-order:
big-endian
local (binary) #
-
display-hint:
ipv4-or-v6
remote (binary) #
-
display-hint:
ipv4-or-v6
fwmark (u32) #
linkinfo-vti6-attrs #
link #
ikey #
okey #
local #
-
display-hint:
ipv6
remote #
-
display-hint:
ipv6
fwmark #
linkinfo-geneve-attrs #
id (u32) #
remote (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
ttl (u8) #
tos (u8) #
port (u16) #
-
byte-order:
big-endian
collect-metadata (flag) #
remote6 (binary) #
-
display-hint:
ipv6
udp-csum (u8) #
udp-zero-csum6-tx (u8) #
udp-zero-csum6-rx (u8) #
label (u32) #
-
byte-order:
big-endian
ttl-inherit (u8) #
df (u8) #
inner-proto-inherit (flag) #
port-range (binary) #
-
struct:
gro-hint (flag) #
linkinfo-hsr-attrs #
slave1 (u32) #
slave2 (u32) #
multicast-spec (u8) #
supervision-addr (binary) #
-
display-hint:
mac
seq-nr (u16) #
version (u8) #
protocol (u8) #
interlink (u32) #
linkinfo-iptun-attrs #
link (u32) #
local (binary) #
-
display-hint:
ipv4-or-v6
remote (binary) #
-
display-hint:
ipv4-or-v6
ttl (u8) #
tos (u8) #
encap-limit (u8) #
flowinfo (u32) #
-
byte-order:
big-endian
flags (u16) #
-
byte-order:
big-endian
proto (u8) #
pmtudisc (u8) #
6rd-prefix (binary) #
-
display-hint:
ipv6
6rd-relay-prefix (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
6rd-prefixlen (u16) #
6rd-relay-prefixlen (u16) #
encap-type (u16) #
encap-flags (u16) #
encap-sport (u16) #
-
byte-order:
big-endian
encap-dport (u16) #
-
byte-order:
big-endian
collect-metadata (flag) #
fwmark (u32) #
linkinfo-ip6tnl-attrs #
link #
local #
-
display-hint:
ipv6
remote #
-
display-hint:
ipv6
ttl #
encap-limit #
flowinfo #
flags (u32) #
proto #
encap-type #
encap-flags #
encap-sport #
encap-dport #
collect-metadata #
fwmark #
linkinfo-tun-attrs #
owner (u32) #
group (u32) #
type (u8) #
pi (u8) #
vnet-hdr (u8) #
persist (u8) #
multi-queue (u8) #
num-queues (u32) #
num-disabled-queues (u32) #
linkinfo-vlan-attrs #
id (u16) #
flags (binary) #
-
struct:
egress-qos (nest) #
-
nested-attributes:
ingress-qos (nest) #
-
nested-attributes:
protocol (u16) #
-
enum:
-
byte-order:
big-endian
ifla-vlan-qos #
mapping (binary) #
-
multi-attr:
True
-
struct:
linkinfo-vrf-attrs #
table (u32) #
xdp-attrs #
fd (s32) #
attached (u8) #
flags (u32) #
prog-id (u32) #
drv-prog-id (u32) #
skb-prog-id (u32) #
hw-prog-id (u32) #
expected-fd (s32) #
ifla-attrs #
conf (binary) #
-
sub-type:
u32
-
doc:
u32 indexed by ipv4-devconf - 1 on output, on input it's a nest
ifla6-attrs #
flags (u32) #
conf (binary) #
-
sub-type:
u32
-
doc:
u32 indexed by ipv6-devconf - 1 on output, on input it's a nest
stats (binary) #
-
sub-type:
u64
mcast (binary) #
cacheinfo (binary) #
-
struct:
icmp6stats (binary) #
-
sub-type:
u64
token (binary) #
addr-gen-mode (u8) #
ra-mtu (u32) #
mctp-attrs #
net (u32) #
phys-binding (u8) #
stats-attrs #
link-64 (binary) #
-
struct:
link-xstats (binary) #
link-xstats-slave (binary) #
link-offload-xstats (nest) #
-
nested-attributes:
af-spec (binary) #
link-offload-xstats #
cpu-hit (binary) #
hw-s-info (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
l3-stats (binary) #
hw-s-info-one #
request (u8) #
used (u8) #
link-dpll-pin-attrs #
id (u32) #
linkinfo-netkit-attrs #
peer-info (binary) #
primary (u8) #
policy (u32) #
-
enum:
peer-policy (u32) #
-
enum:
mode (u32) #
-
enum:
scrub (u32) #
-
enum:
peer-scrub (u32) #
-
enum:
headroom (u16) #
tailroom (u16) #
linkinfo-ovpn-attrs #
mode (u8) #
-
enum:
Sub-messages #
linkinfo-data-msg #
-
bond
-
attribute-set:
-
-
bridge
-
attribute-set:
-
-
erspan
-
attribute-set:
-
-
gre
-
attribute-set:
-
-
gretap
-
attribute-set:
-
-
ip6gre
-
attribute-set:
-
-
geneve
-
attribute-set:
-
-
hsr
-
attribute-set:
-
-
ipip
-
attribute-set:
-
-
ip6tnl
-
attribute-set:
-
-
sit
-
attribute-set:
-
-
tun
-
attribute-set:
-
-
vlan
-
attribute-set:
-
-
vrf
-
attribute-set:
-
-
vti
-
attribute-set:
-
-
vti6
-
attribute-set:
-
-
netkit
-
attribute-set:
-
-
ovpn
-
attribute-set:
-
linkinfo-member-data-msg #
-
bridge
-
attribute-set:
-
-
bond
-
attribute-set:
-
Family rt-neigh netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
IP neighbour management over rtnetlink.
Operations #
newneigh #
Add new neighbour entry
-
fixed-header:
-
attribute-set:
-
do:
request
-
attributes:
[
dst,lladdr,probes,vlan,port,vni,ifindex,master,protocol,nh-id,flags-ext,fdb-ext-attrs]
-
delneigh #
Remove an existing neighbour entry
-
fixed-header:
-
attribute-set:
-
do:
request
-
attributes:
[
dst,ifindex]
-
delneigh-ntf #
Notify a neighbour deletion
-
value:
29
-
notify:
getneigh
-
fixed-header:
getneigh #
Get or dump neighbour entries
-
fixed-header:
-
attribute-set:
-
do:
request
-
attributes:
[
dst]
reply
-
attributes:
[
dst,lladdr,probes,vlan,port,vni,ifindex,master,protocol,nh-id,flags-ext,fdb-ext-attrs]
-
-
dump:
request
-
attributes:
[
ifindex,master]
reply
-
attributes:
[
dst,lladdr,probes,vlan,port,vni,ifindex,master,protocol,nh-id,flags-ext,fdb-ext-attrs]
-
newneigh-ntf #
Notify a neighbour creation
-
value:
28
-
notify:
getneigh
-
fixed-header:
getneightbl #
Get or dump neighbour tables
-
fixed-header:
-
attribute-set:
-
dump:
request
reply
-
attributes:
[
name,thresh1,thresh2,thresh3,config,parms,stats,gc-interval]
-
setneightbl #
Set neighbour tables
-
fixed-header:
-
attribute-set:
-
do:
request
-
attributes:
[
name,thresh1,thresh2,thresh3,parms,gc-interval]
-
Multicast groups #
- rtnlgrp-neigh
Definitions #
ndmsg #
-
type:
struct
-
members:
-
ndm-family (
u8) -
ndm-pad (
pad) -
ndm-ifindex (
s32) -
ndm-state (
u16) -
ndm-flags (
u8) -
ndm-type (
u8)
-
ndtmsg #
-
type:
struct
-
members:
- family (
u8)
- family (
nud-state #
-
type:
flags
-
enum-name:
None
-
entries:
-
incomplete -
reachable -
stale -
delay -
probe -
failed -
noarp -
permanent
-
ntf-flags #
-
type:
flags
-
enum-name:
None
-
entries:
-
use -
self -
master -
proxy -
ext-learned -
offloaded -
sticky -
router
-
ntf-ext-flags #
-
type:
flags
-
enum-name:
None
-
entries:
-
managed -
locked -
ext-validated
-
rtm-type #
-
type:
enum
-
enum-name:
None
-
entries:
-
unspec -
unicast -
local -
broadcast -
anycast -
multicast -
blackhole -
unreachable -
prohibit -
throw -
nat -
xresolve
-
nda-cacheinfo #
-
type:
struct
-
members:
-
confirmed (
u32) -
used (
u32) -
updated (
u32) -
refcnt (
u32)
-
ndt-config #
-
type:
struct
-
members:
-
key-len (
u16) -
entry-size (
u16) -
entries (
u32) -
last-flush (
u32) -
last-rand (
u32) -
hash-rnd (
u32) -
hash-mask (
u32) -
hash-chain-gc (
u32) -
proxy-qlen (
u32)
-
ndt-stats #
-
type:
struct
-
members:
-
allocs (
u64) -
destroys (
u64) -
hash-grows (
u64) -
res-failed (
u64) -
lookups (
u64) -
hits (
u64) -
rcv-probes-mcast (
u64) -
rcv-probes-ucast (
u64) -
periodic-gc-runs (
u64) -
forced-gc-runs (
u64) -
table-fulls (
u64)
-
Attribute sets #
neighbour-attrs #
unspec (binary) #
-
value:
0
dst (binary) #
-
display-hint:
ipv4-or-v6
lladdr (binary) #
-
display-hint:
mac
cacheinfo (binary) #
-
struct:
probes (u32) #
vlan (u16) #
port (u16) #
vni (u32) #
ifindex (u32) #
master (u32) #
link-netnsid (s32) #
src-vni (u32) #
protocol (u8) #
nh-id (u32) #
fdb-ext-attrs (binary) #
flags-ext (u32) #
-
enum:
ndm-state-mask (u16) #
ndm-flags-mask (u8) #
ndt-attrs #
name (string) #
thresh1 (u32) #
thresh2 (u32) #
thresh3 (u32) #
config (binary) #
-
struct:
parms (nest) #
-
nested-attributes:
stats (binary) #
-
struct:
gc-interval (u64) #
pad (pad) #
ndtpa-attrs #
ifindex (u32) #
refcnt (u32) #
reachable-time (u64) #
base-reachable-time (u64) #
retrans-time (u64) #
gc-staletime (u64) #
delay-probe-time (u64) #
queue-len (u32) #
app-probes (u32) #
ucast-probes (u32) #
mcast-probes (u32) #
anycast-delay (u64) #
proxy-delay (u64) #
proxy-qlen (u32) #
locktime (u64) #
queue-lenbytes (u32) #
mcast-reprobes (u32) #
pad (pad) #
interval-probe-time-ms (u64) #
Family rt-route netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Route configuration over rtnetlink.
Operations #
getroute #
Dump route information.
-
attribute-set:
-
do:
request
-
attributes:
[
src,dst,iif,oif,ip-proto,sport,dport,mark,uid,flowlabel]
reply
-
attributes:
[
dst,src,iif,oif,gateway,priority,prefsrc,metrics,multipath,flow,cacheinfo,table,mark,mfc-stats,via,newdst,pref,encap-type,encap,expires,pad,uid,ttl-propagate,ip-proto,sport,dport,nh-id,flowlabel]
-
-
dump:
request
-
attributes:
[]
reply
-
attributes:
[
dst,src,iif,oif,gateway,priority,prefsrc,metrics,multipath,flow,cacheinfo,table,mark,mfc-stats,via,newdst,pref,encap-type,encap,expires,pad,uid,ttl-propagate,ip-proto,sport,dport,nh-id,flowlabel]
-
newroute #
Create a new route
-
attribute-set:
-
do:
request
-
attributes:
[
dst,src,iif,oif,gateway,priority,prefsrc,metrics,multipath,flow,cacheinfo,table,mark,mfc-stats,via,newdst,pref,encap-type,encap,expires,pad,uid,ttl-propagate,ip-proto,sport,dport,nh-id,flowlabel]
-
delroute #
Delete an existing route
-
attribute-set:
-
do:
request
-
attributes:
[
dst,src,iif,oif,gateway,priority,prefsrc,metrics,multipath,flow,cacheinfo,table,mark,mfc-stats,via,newdst,pref,encap-type,encap,expires,pad,uid,ttl-propagate,ip-proto,sport,dport,nh-id,flowlabel]
-
Definitions #
rtm-type #
-
name-prefix:
rtn-
-
enum-name:
None
-
type:
enum
-
entries:
-
unspec -
unicast -
local -
broadcast -
anycast -
multicast -
blackhole -
unreachable -
prohibit -
throw -
nat -
xresolve
-
rtmsg #
-
type:
struct
-
members:
-
rtm-family (
u8) -
rtm-dst-len (
u8) -
rtm-src-len (
u8) -
rtm-tos (
u8) -
rtm-table (
u8) -
rtm-protocol (
u8) -
rtm-scope (
u8) -
rtm-type (
u8) -
rtm-flags (
u32)
-
rta-cacheinfo #
-
type:
struct
-
members:
-
rta-clntref (
u32) -
rta-lastuse (
u32) -
rta-expires (
u32) -
rta-error (
u32) -
rta-used (
u32)
-
Attribute sets #
route-attrs #
dst (binary) #
-
display-hint:
ipv4-or-v6
src (binary) #
-
display-hint:
ipv4-or-v6
iif (u32) #
oif (u32) #
gateway (binary) #
-
display-hint:
ipv4-or-v6
priority (u32) #
prefsrc (binary) #
-
display-hint:
ipv4-or-v6
metrics (nest) #
-
nested-attributes:
multipath (binary) #
protoinfo (binary) #
flow (u32) #
cacheinfo (binary) #
-
struct:
session (binary) #
mp-algo (binary) #
table (u32) #
mark (u32) #
mfc-stats (binary) #
via (binary) #
newdst (binary) #
pref (u8) #
encap-type (u16) #
encap (binary) #
expires (u32) #
pad (binary) #
uid (u32) #
ttl-propagate (u8) #
ip-proto (u8) #
sport (u16) #
dport (u16) #
nh-id (u32) #
flowlabel (u32) #
-
byte-order:
big-endian
-
display-hint:
hex
metrics #
unspec (unused) #
-
value:
0
lock (u32) #
mtu (u32) #
window (u32) #
rtt (u32) #
rttvar (u32) #
ssthresh (u32) #
cwnd (u32) #
advmss (u32) #
reordering (u32) #
hoplimit (u32) #
initcwnd (u32) #
features (u32) #
rto-min (u32) #
initrwnd (u32) #
quickack (u32) #
cc-algo (string) #
fastopen-no-cookie (u32) #
Family rt-rule netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
FIB rule management over rtnetlink.
Operations #
newrule #
Add new FIB rule
-
attribute-set:
-
do:
request
-
attributes:
[
iifname,oifname,priority,fwmark,flow,tun-id,fwmask,table,suppress-prefixlen,suppress-ifgroup,goto,l3mdev,uid-range,protocol,ip-proto,sport-range,dport-range,dscp,flowlabel,flowlabel-mask,sport-mask,dport-mask,dscp-mask]
-
newrule-ntf #
Notify a rule creation
-
value:
32
-
notify:
getrule
delrule #
Remove an existing FIB rule
-
attribute-set:
-
do:
request
-
attributes:
[
iifname,oifname,priority,fwmark,flow,tun-id,fwmask,table,suppress-prefixlen,suppress-ifgroup,goto,l3mdev,uid-range,protocol,ip-proto,sport-range,dport-range,dscp,flowlabel,flowlabel-mask,sport-mask,dport-mask,dscp-mask]
-
delrule-ntf #
Notify a rule deletion
-
value:
33
-
notify:
getrule
getrule #
Dump all FIB rules
-
attribute-set:
-
dump:
request
reply
-
attributes:
[
iifname,oifname,priority,fwmark,flow,tun-id,fwmask,table,suppress-prefixlen,suppress-ifgroup,goto,l3mdev,uid-range,protocol,ip-proto,sport-range,dport-range,dscp,flowlabel,flowlabel-mask,sport-mask,dport-mask,dscp-mask]
-
Multicast groups #
-
rtnlgrp-ipv4-rule
-
rtnlgrp-ipv6-rule
Definitions #
rtgenmsg #
-
type:
struct
-
members:
- family (
u8)
- family (
fib-rule-hdr #
-
type:
struct
-
members:
-
family (
u8) -
dst-len (
u8) -
src-len (
u8) -
tos (
u8) -
table (
u8) -
res1 (
pad) -
res2 (
pad) -
action (
u8) -
flags (
u32)
-
fr-act #
-
type:
enum
-
enum-name:
None
-
entries:
-
unspec -
to-tbl -
goto -
nop -
res3 -
res4 -
blackhole -
unreachable -
prohibit
-
fib-rule-port-range #
-
type:
struct
-
members:
-
start (
u16) -
end (
u16)
-
fib-rule-uid-range #
-
type:
struct
-
members:
-
start (
u32) -
end (
u32)
-
Attribute sets #
fib-rule-attrs #
dst (binary) #
-
display-hint:
ipv4-or-v6
src (binary) #
-
display-hint:
ipv4-or-v6
iifname (string) #
goto (u32) #
unused2 (pad) #
priority (u32) #
unused3 (pad) #
unused4 (pad) #
unused5 (pad) #
fwmark (u32) #
-
display-hint:
hex
flow (u32) #
tun-id (u64) #
suppress-ifgroup (u32) #
suppress-prefixlen (u32) #
-
display-hint:
hex
table (u32) #
fwmask (u32) #
-
display-hint:
hex
oifname (string) #
pad (pad) #
l3mdev (u8) #
uid-range (binary) #
-
struct:
protocol (u8) #
ip-proto (u8) #
sport-range (binary) #
-
struct:
dport-range (binary) #
-
struct:
dscp (u8) #
flowlabel (u32) #
-
byte-order:
big-endian
-
display-hint:
hex
flowlabel-mask (u32) #
-
byte-order:
big-endian
-
display-hint:
hex
sport-mask (u16) #
-
display-hint:
hex
dport-mask (u16) #
-
display-hint:
hex
dscp-mask (u8) #
-
display-hint:
hex
Family tc netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Netlink raw family for tc qdisc, chain, class and filter configuration over rtnetlink.
Operations #
newqdisc #
Create new tc qdisc.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
kind,options,rate,chain,ingress-block,egress-block]
-
delqdisc #
Delete existing tc qdisc.
getqdisc #
Get / dump tc qdisc information.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
dump-invisible]
reply
-
attributes:
[
kind,options,stats,xstats,rate,fcnt,stats2,stab,chain,ingress-block,egress-block]
-
-
dump:
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:
-
fixed-header:
-
do:
request
-
attributes:
[
kind,options,rate,chain,ingress-block,egress-block]
-
deltclass #
Get / dump tc traffic class information.
gettclass #
Get / dump tc traffic class information.
-
attribute-set:
-
fixed-header:
-
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:
-
fixed-header:
-
do:
request
-
attributes:
[
kind,options,rate,chain,ingress-block,egress-block]
-
deltfilter #
Get / dump tc filter information.
gettfilter #
Get / dump tc filter information.
-
attribute-set:
-
fixed-header:
-
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:
-
fixed-header:
-
do:
request
-
attributes:
[
kind,options,rate,chain,ingress-block,egress-block]
-
delchain #
Get / dump tc chain information.
getchain #
Get / dump tc chain information.
-
attribute-set:
-
fixed-header:
-
do:
request
-
attributes:
[
chain]
reply
-
attributes:
[
kind,options,stats,xstats,rate,fcnt,stats2,stab,chain,ingress-block,egress-block]
-
Multicast groups #
- rtnlgrp-tc
Definitions #
tcmsg #
-
type:
struct
-
header:
linux/rtnetlink.h
-
members:
-
family (
u8) -
ifindex (
s32) -
handle (
u32) -
parent (
u32) -
info (
u32)
-
cls-flags #
-
enum-name:
None
-
type:
flags
-
entries:
-
skip-hw -
skip-sw -
in-hw -
not-in-nw -
verbose
-
flower-key-ctrl-flags #
-
name-prefix:
tca-flower-key-flags-
-
enum-name:
None
-
type:
flags
-
entries:
-
frag -
firstfrag -
tuncsum -
tundf -
tunoam -
tuncrit
-
dualpi2-drop-overload #
-
type:
enum
-
entries:
-
overflow -
drop
-
dualpi2-drop-early #
-
type:
enum
-
entries:
-
drop-dequeue -
drop-enqueue
-
dualpi2-ecn-mask #
-
type:
enum
-
value-start:
1
-
entries:
-
l4s-ect -
cla-ect -
any-ect
-
dualpi2-split-gso #
-
type:
enum
-
entries:
-
no-split-gso -
split-gso
-
tc-stats #
-
type:
struct
-
members:
-
bytes (
u64):Number of enqueued bytes
-
packets (
u32):Number of enqueued packets
-
drops (
u32):Packets dropped because of lack of resources
-
overlimits (
u32):Number of throttle events when this flow goes out of allocated bandwidth
-
bps (
u32):Current flow byte rate
-
pps (
u32):Current flow packet rate
-
qlen (
u32) -
backlog (
u32)
-
tc-cbs-qopt #
-
type:
struct
-
members:
-
offload (
u8) -
hicredit (
s32) -
locredit (
s32) -
idleslope (
s32) -
sendslope (
s32)
-
tc-etf-qopt #
-
type:
struct
-
members:
-
delta (
s32) -
clockid (
s32) -
flags (
s32)
-
tc-fifo-qopt #
-
type:
struct
-
members:
-
limit (
u32):Queue length; bytes for bfifo, packets for pfifo
-
tc-htb-opt #
-
type:
struct
-
members:
-
rate (
binary) -
ceil (
binary) -
buffer (
u32) -
cbuffer (
u32) -
quantum (
u32) -
level (
u32) -
prio (
u32)
-
tc-htb-glob #
-
type:
struct
-
members:
-
version (
u32) -
rate2quantum (
u32):bps->quantum divisor
-
defcls (
u32):Default class number
-
debug (
u32):Debug flags
-
direct-pkts (
u32):Count of non shaped packets
-
tc-gred-qopt #
-
type:
struct
-
members:
-
limit (
u32):HARD maximal queue length in bytes
-
qth-min (
u32):Min average length threshold in bytes
-
qth-max (
u32):Max average length threshold in bytes
-
DP (
u32):Up to 2^32 DPs
-
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):cell size for idle damping
-
prio (
u8):Priority of this VQ
-
packets (
u32) -
bytesin (
u32)
-
tc-gred-sopt #
-
type:
struct
-
members:
-
DPs (
u32) -
def-DP (
u32) -
grio (
u8) -
flags (
u8)
-
tc-hfsc-qopt #
-
type:
struct
-
members:
- defcls (
u16)
- defcls (
tc-mqprio-qopt #
-
type:
struct
-
members:
-
num-tc (
u8) -
prio-tc-map (
binary) -
hw (
u8) -
count (
binary) -
offset (
binary)
-
tc-multiq-qopt #
-
type:
struct
-
members:
-
bands (
u16):Number of bands
-
max-bands (
u16):Maximum number of queues
-
tc-netem-qopt #
-
type:
struct
-
members:
-
latency (
u32):Added delay in microseconds
-
limit (
u32):Fifo limit in packets
-
loss (
u32):Random packet loss (0=none, ~0=100%)
-
gap (
u32):Re-ordering gap (0 for none)
-
duplicate (
u32):Random packet duplication (0=none, ~0=100%)
-
jitter (
u32):Random jitter latency in microseconds
-
tc-netem-gimodel #
-
doc:
State transition probabilities for 4 state model
-
type:
struct
-
members:
-
p13 (
u32) -
p31 (
u32) -
p32 (
u32) -
p14 (
u32) -
p23 (
u32)
-
tc-netem-gemodel #
-
doc:
Gilbert-Elliot models
-
type:
struct
-
members:
-
p (
u32) -
r (
u32) -
h (
u32) -
k1 (
u32)
-
tc-netem-corr #
-
type:
struct
-
members:
-
delay-corr (
u32):Delay correlation
-
loss-corr (
u32):Packet loss correlation
-
dup-corr (
u32):Duplicate correlation
-
tc-netem-reorder #
-
type:
struct
-
members:
-
probability (
u32) -
correlation (
u32)
-
tc-netem-corrupt #
-
type:
struct
-
members:
-
probability (
u32) -
correlation (
u32)
-
tc-netem-rate #
-
type:
struct
-
members:
-
rate (
u32) -
packet-overhead (
s32) -
cell-size (
u32) -
cell-overhead (
s32)
-
tc-netem-slot #
-
type:
struct
-
members:
-
min-delay (
s64) -
max-delay (
s64) -
max-packets (
s32) -
max-bytes (
s32) -
dist-delay (
s64) -
dist-jitter (
s64)
-
tc-plug-qopt #
-
type:
struct
-
members:
-
action (
s32) -
limit (
u32)
-
tc-prio-qopt #
-
type:
struct
-
members:
-
bands (
u32):Number of bands
-
priomap (
binary):Map of logical priority -> PRIO band
-
tc-red-qopt #
-
type:
struct
-
members:
-
limit (
u32):Hard queue length in packets
-
qth-min (
u32):Min average threshold in packets
-
qth-max (
u32):Max average threshold in packets
-
Wlog (
u8):log(W)
-
Plog (
u8):log(P_max / (qth-max - qth-min))
-
Scell-log (
u8):Cell size for idle damping
-
flags (
u8)
-
tc-sfb-qopt #
-
type:
struct
-
members:
-
rehash-interval (
u32) -
warmup-time (
u32) -
max (
u32) -
bin-size (
u32) -
increment (
u32) -
decrement (
u32) -
limit (
u32) -
penalty-rate (
u32) -
penalty-burst (
u32)
-
tc-sfq-qopt #
-
type:
struct
-
members:
-
quantum (
u32):Bytes per round allocated to flow
-
perturb-period (
s32):Period of hash perturbation
-
limit (
u32):Maximal packets in queue
-
divisor (
u32):Hash divisor
-
flows (
u32):Maximal number of flows
-
tc-sfqred-stats #
-
type:
struct
-
members:
-
prob-drop (
u32):Early drops, below max threshold
-
forced-drop (
u32):Early drops, after max threshold
-
prob-mark (
u32):Marked packets, below max threshold
-
forced-mark (
u32):Marked packets, after max threshold
-
prob-mark-head (
u32):Marked packets, below max threshold
-
forced-mark-head (
u32):Marked packets, after max threshold
-
tc-sfq-qopt-v1 #
-
type:
struct
-
members:
-
v0 (
binary) -
depth (
u32):Maximum number of packets per flow
-
headdrop (
u32) -
limit (
u32):HARD maximal flow queue length in bytes
-
qth-min (
u32):Min average length threshold in bytes
-
qth-max (
u32):Max average length threshold in bytes
-
Wlog (
u8):log(W)
-
Plog (
u8):log(P_max / (qth-max - qth-min))
-
Scell-log (
u8):Cell size for idle damping
-
flags (
u8) -
max-P (
u32):probability, high resolution
-
stats (
binary)
-
tc-ratespec #
-
type:
struct
-
header:
linux/pkt_sched.h
-
members:
-
cell-log (
u8) -
linklayer (
u8) -
overhead (
u8) -
cell-align (
u8) -
mpu (
u8) -
rate (
u32)
-
tc-tbf-qopt #
-
type:
struct
-
members:
-
rate (
binary) -
peakrate (
binary) -
limit (
u32) -
buffer (
u32) -
mtu (
u32)
-
tc-sizespec #
-
type:
struct
-
members:
-
cell-log (
u8) -
size-log (
u8) -
cell-align (
s16) -
overhead (
s32) -
linklayer (
u32) -
mpu (
u32) -
mtu (
u32) -
tsize (
u32)
-
gnet-estimator #
-
type:
struct
-
members:
-
interval (
s8):Sampling period
-
ewma-log (
u8):The log() of measurement window weight
-
tc-choke-xstats #
-
type:
struct
-
members:
-
early (
u32):Early drops
-
pdrop (
u32):Drops due to queue limits
-
other (
u32):Drops due to drop() calls
-
marked (
u32):Marked packets
-
matched (
u32):Drops due to flow match
-
tc-codel-xstats #
-
type:
struct
-
members:
-
maxpacket (
u32):Largest packet we've seen so far
-
count (
u32):How many drops we've done since the last time we entered dropping state
-
lastcount (
u32):Count at entry to dropping state
-
ldelay (
u32):in-queue delay seen by most recently dequeued packet
-
drop-next (
s32):Time to drop next packet
-
drop-overlimit (
u32):Number of times max qdisc packet limit was hit
-
ecn-mark (
u32):Number of packets we've ECN marked instead of dropped
-
dropping (
u32):Are we in a dropping state?
-
ce-mark (
u32):Number of CE marked packets because of ce-threshold
-
tc-fq-codel-xstats #
-
type:
struct
-
members:
-
type (
u32) -
maxpacket (
u32):Largest packet we've seen so far
-
drop-overlimit (
u32):Number of times max qdisc packet limit was hit
-
ecn-mark (
u32):Number of packets we ECN marked instead of being dropped
-
new-flow-count (
u32):Number of times packets created a new flow
-
new-flows-len (
u32):Count of flows in new list
-
old-flows-len (
u32):Count of flows in old list
-
ce-mark (
u32):Packets above ce-threshold
-
memory-usage (
u32):Memory usage in bytes
-
drop-overmemory (
u32)
-
tc-dualpi2-xstats #
-
type:
struct
-
members:
-
prob (
u32):Current base PI probability
-
delay-c (
u32):Current C-queue delay in microseconds
-
delay-l (
u32):Current L-queue delay in microseconds
-
pkts-in-c (
u32):Number of packets enqueued in the C-queue
-
pkts-in-l (
u32):Number of packets enqueued in the L-queue
-
maxq (
u32):Maximum number of packets seen by the DualPI2
-
ecn-mark (
u32):All packets marked with ECN
-
step-mark (
u32):Only packets marked with ECN due to L-queue step AQM
-
credit (
s32):Current credit value for WRR
-
memory-used (
u32):Memory used in bytes by the DualPI2
-
max-memory-used (
u32):Maximum memory used in bytes by the DualPI2
-
memory-limit (
u32):Memory limit in bytes
-
tc-fq-pie-xstats #
-
type:
struct
-
members:
-
packets-in (
u32):Total number of packets enqueued
-
dropped (
u32):Packets dropped due to fq_pie_action
-
overlimit (
u32):Dropped due to lack of space in queue
-
overmemory (
u32):Dropped due to lack of memory in queue
-
ecn-mark (
u32):Packets marked with ECN
-
new-flow-count (
u32):Count of new flows created by packets
-
new-flows-len (
u32):Count of flows in new list
-
old-flows-len (
u32):Count of flows in old list
-
memory-usage (
u32):Total memory across all queues
-
tc-fq-qd-stats #
-
type:
struct
-
members:
-
gc-flows (
u64) -
highprio-packets (
u64):obsolete
-
tcp-retrans (
u64):obsolete
-
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):Packets above ce-threshold
-
horizon-drops (
u64) -
horizon-caps (
u64) -
fastpath-packets (
u64) -
band-drops (
binary) -
band-pkt-count (
binary)
-
tc-hhf-xstats #
-
type:
struct
-
members:
-
drop-overlimit (
u32):Number of times max qdisc packet limit was hit
-
hh-overlimit (
u32):Number of times max heavy-hitters was hit
-
hh-tot-count (
u32):Number of captured heavy-hitters so far
-
hh-cur-count (
u32):Number of current heavy-hitters
-
tc-pie-xstats #
-
type:
struct
-
members:
-
prob (
u64):Current probability
-
delay (
u32):Current delay in ms
-
avg-dq-rate (
u32):Current average dq rate in bits/pie-time
-
dq-rate-estimating (
u32):Is avg-dq-rate being calculated?
-
packets-in (
u32):Total number of packets enqueued
-
dropped (
u32):Packets dropped due to pie action
-
overlimit (
u32):Dropped due to lack of space in queue
-
maxq (
u32):Maximum queue size
-
ecn-mark (
u32):Packets marked with ECN
-
tc-red-xstats #
-
type:
struct
-
members:
-
early (
u32):Early drops
-
pdrop (
u32):Drops due to queue limits
-
other (
u32):Drops due to drop() calls
-
marked (
u32):Marked packets
-
tc-sfb-xstats #
-
type:
struct
-
members:
-
earlydrop (
u32) -
penaltydrop (
u32) -
bucketdrop (
u32) -
queuedrop (
u32) -
childdrop (
u32):drops in child qdisc
-
marked (
u32) -
maxqlen (
u32) -
maxprob (
u32) -
avgprob (
u32)
-
tc-sfq-xstats #
-
type:
struct
-
members:
- allot (
s32)
- allot (
gnet-stats-basic #
-
type:
struct
-
members:
-
bytes (
u64) -
packets (
u32)
-
gnet-stats-rate-est #
-
type:
struct
-
members:
-
bps (
u32) -
pps (
u32)
-
gnet-stats-rate-est64 #
-
type:
struct
-
members:
-
bps (
u64) -
pps (
u64)
-
gnet-stats-queue #
-
type:
struct
-
members:
-
qlen (
u32) -
backlog (
u32) -
drops (
u32) -
requeues (
u32) -
overlimits (
u32)
-
tc-u32-key #
-
type:
struct
-
members:
-
mask (
u32) -
val (
u32) -
off (
s32) -
offmask (
s32)
-
tc-u32-mark #
-
type:
struct
-
members:
-
val (
u32) -
mask (
u32) -
success (
u32)
-
tc-u32-sel #
-
type:
struct
-
members:
-
flags (
u8) -
offshift (
u8) -
nkeys (
u8) -
offmask (
u16) -
off (
u16) -
offoff (
s16) -
hoff (
s16) -
hmask (
u32) -
keys (
binary)
-
tc-u32-pcnt #
-
type:
struct
-
members:
-
rcnt (
u64) -
rhit (
u64) -
kcnts (
u64)
-
tcf-t #
-
type:
struct
-
members:
-
install (
u64) -
lastuse (
u64) -
expires (
u64) -
firstuse (
u64)
-
tc-gact #
-
type:
struct
-
members:
-
index (
u32) -
capab (
u32) -
action (
s32) -
refcnt (
s32) -
bindcnt (
s32)
-
tc-gact-p #
-
type:
struct
-
members:
-
ptype (
u16) -
pval (
u16) -
paction (
s32)
-
tcf-ematch-tree-hdr #
-
type:
struct
-
members:
-
nmatches (
u16) -
progid (
u16)
-
tc-basic-pcnt #
-
type:
struct
-
members:
-
rcnt (
u64) -
rhit (
u64)
-
tc-matchall-pcnt #
-
type:
struct
-
members:
- rhit (
u64)
- rhit (
tc-mpls #
-
type:
struct
-
members:
-
index (
u32) -
capab (
u32) -
action (
s32) -
refcnt (
s32) -
bindcnt (
s32) -
m-action (
s32)
-
tc-police #
-
type:
struct
-
members:
-
index (
u32) -
action (
s32) -
limit (
u32) -
burst (
u32) -
mtu (
u32) -
rate (
binary) -
peakrate (
binary) -
refcnt (
s32) -
bindcnt (
s32) -
capab (
u32)
-
tc-pedit-sel #
-
type:
struct
-
members:
-
index (
u32) -
capab (
u32) -
action (
s32) -
refcnt (
s32) -
bindcnt (
s32) -
nkeys (
u8) -
flags (
u8) -
keys (
binary)
-
tc-pedit-key #
-
type:
struct
-
members:
-
mask (
u32) -
val (
u32) -
off (
u32) -
at (
u32) -
offmask (
u32) -
shift (
u32)
-
tc-vlan #
-
type:
struct
-
members:
-
index (
u32) -
capab (
u32) -
action (
s32) -
refcnt (
s32) -
bindcnt (
s32) -
v-action (
s32)
-
Attribute sets #
attrs #
kind (string) #
options (sub-message) #
-
sub-message:
-
selector:
kind
stats (binary) #
-
struct:
xstats (sub-message) #
-
sub-message:
-
selector:
kind
rate (binary) #
-
struct:
fcnt (u32) #
stats2 (nest) #
-
nested-attributes:
stab (nest) #
-
nested-attributes:
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) #
-
sub-message:
-
selector:
kind
index (u32) #
stats (nest) #
-
nested-attributes:
pad (pad) #
cookie (binary) #
flags (bitfield32) #
hw-stats (bitfield32) #
used-hw-stats (bitfield32) #
in-hw-count (u32) #
act-bpf-attrs #
tm (binary) #
-
struct:
parms (binary) #
ops-len (u16) #
ops (binary) #
fd (u32) #
name (string) #
pad (pad) #
tag (binary) #
id (binary) #
act-connmark-attrs #
parms (binary) #
tm (binary) #
-
struct:
pad (pad) #
act-csum-attrs #
parms (binary) #
tm (binary) #
-
struct:
pad (pad) #
act-ct-attrs #
parms (binary) #
tm (binary) #
-
struct:
action (u16) #
zone (u16) #
mark (u32) #
mark-mask (u32) #
labels (binary) #
labels-mask (binary) #
nat-ipv4-min (u32) #
-
byte-order:
big-endian
nat-ipv4-max (u32) #
-
byte-order:
big-endian
nat-ipv6-min (binary) #
nat-ipv6-max (binary) #
nat-port-min (u16) #
-
byte-order:
big-endian
nat-port-max (u16) #
-
byte-order:
big-endian
pad (pad) #
helper-name (string) #
helper-family (u8) #
helper-proto (u8) #
act-ctinfo-attrs #
pad (pad) #
tm (binary) #
-
struct:
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) #
-
struct:
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) #
-
struct:
dmac (binary) #
smac (binary) #
type (u16) #
metalst (binary) #
pad (pad) #
act-mirred-attrs #
tm (binary) #
-
struct:
parms (binary) #
pad (pad) #
blockid (binary) #
act-mpls-attrs #
tm (binary) #
-
struct:
parms (binary) #
-
struct:
pad (pad) #
proto (u16) #
-
byte-order:
big-endian
label (u32) #
tc (u8) #
ttl (u8) #
bos (u8) #
act-nat-attrs #
parms (binary) #
tm (binary) #
-
struct:
pad (pad) #
act-pedit-attrs #
tm (binary) #
-
struct:
parms (binary) #
-
struct:
pad (pad) #
parms-ex (binary) #
keys-ex (binary) #
key-ex (binary) #
act-simple-attrs #
tm (binary) #
-
struct:
parms (binary) #
data (binary) #
pad (pad) #
act-skbedit-attrs #
tm (binary) #
-
struct:
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) #
-
struct:
parms (binary) #
dmac (binary) #
smac (binary) #
etype (binary) #
pad (pad) #
act-tunnel-key-attrs #
tm (binary) #
-
struct:
parms (binary) #
enc-ipv4-src (u32) #
-
byte-order:
big-endian
enc-ipv4-dst (u32) #
-
byte-order:
big-endian
enc-ipv6-src (binary) #
enc-ipv6-dst (binary) #
enc-key-id (u64) #
-
byte-order:
big-endian
pad (pad) #
enc-dst-port (u16) #
-
byte-order:
big-endian
no-csum (u8) #
enc-opts (binary) #
enc-tos (u8) #
enc-ttl (u8) #
no-frag (flag) #
act-vlan-attrs #
tm (binary) #
-
struct:
parms (binary) #
-
struct:
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) #
-
nested-attributes:
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
police (nest) #
-
nested-attributes:
pcnt (binary) #
-
struct:
pad (pad) #
bpf-attrs #
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
police (nest) #
-
nested-attributes:
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
-
nested-attributes:
deficit (s32) #
cobalt-count (u32) #
dropping (u32) #
drop-next-us (s32) #
p-drop (u32) #
blue-timer-us (s32) #
active-queues (u32) #
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) #
-
struct:
cgroup-attrs #
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
police (nest) #
-
nested-attributes:
ematches (binary) #
choke-attrs #
parms (binary) #
-
struct:
stab (binary) #
max-p (u32) #
codel-attrs #
target (u32) #
limit (u32) #
interval (u32) #
ecn (u32) #
ce-threshold (u32) #
drr-attrs #
quantum (u32) #
dualpi2-attrs #
limit (u32) #
-
doc:
Limit of total number of packets in queue
memory-limit (u32) #
-
doc:
Memory limit of total number of packets in queue
target (u32) #
-
doc:
Classic target delay in microseconds
tupdate (u32) #
-
doc:
Drop probability update interval time in microseconds
alpha (u32) #
-
doc:
Integral gain factor in Hz for PI controller
beta (u32) #
-
doc:
Proportional gain factor in Hz for PI controller
step-thresh-pkts (u32) #
-
doc:
L4S step marking threshold in packets
step-thresh-us (u32) #
-
doc:
L4S Step marking threshold in microseconds
min-qlen-step (u32) #
-
doc:
Packets enqueued to the L-queue can apply the step threshold when the queue length of L-queue is larger than this value. (0 is recommended)
coupling (u8) #
-
doc:
Probability coupling factor between Classic and L4S (2 is recommended)
drop-overload (u8) #
-
doc:
Control the overload strategy (drop to preserve latency or let the queue overflow)
-
enum:
drop-early (u8) #
-
doc:
Decide where the Classic packets are PI-based dropped or marked
-
enum:
c-protection (u8) #
-
doc:
Classic WRR weight in percentage (from 0 to 100)
ecn-mask (u8) #
-
doc:
Configure the L-queue ECN classifier
-
enum:
split-gso (u8) #
-
doc:
Split aggregated skb or not
-
enum:
ematch-attrs #
tree-hdr (binary) #
-
struct:
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) #
-
nested-attributes:
ematches (binary) #
perturb (u32) #
flower-attrs #
classid (u32) #
indev (string) #
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
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-ip-proto (u8) #
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:
-
enum-as-flags:
True
key-vlan-id (u16) #
-
byte-order:
big-endian
key-vlan-prio (u8) #
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
-
enum:
-
enum-as-flags:
True
key-flags-mask (u32) #
-
byte-order:
big-endian
-
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) #
-
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-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) #
-
byte-order:
big-endian
key-tcp-flags (u16) #
-
byte-order:
big-endian
key-tcp-flags-mask (u16) #
-
byte-order:
big-endian
key-ip-tos (u8) #
key-ip-tos-mask (u8) #
key-ip-ttl (u8) #
key-ip-ttl-mask (u8) #
key-cvlan-id (u16) #
-
byte-order:
big-endian
key-cvlan-prio (u8) #
key-cvlan-eth-type (u16) #
-
byte-order:
big-endian
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) #
-
nested-attributes:
key-enc-opts-mask (nest) #
-
nested-attributes:
in-hw-count (u32) #
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-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) #
-
nested-attributes:
key-hash (u32) #
key-hash-mask (u32) #
key-num-of-vlans (u8) #
key-pppoe-sid (u16) #
-
byte-order:
big-endian
key-ppp-proto (u16) #
-
byte-order:
big-endian
key-l2tpv3-sid (u32) #
-
byte-order:
big-endian
l2-miss (u8) #
key-cfm (nest) #
-
nested-attributes:
key-spi (u32) #
-
byte-order:
big-endian
key-spi-mask (u32) #
-
byte-order:
big-endian
key-enc-flags (u32) #
-
byte-order:
big-endian
-
enum:
-
enum-as-flags:
True
key-enc-flags-mask (u32) #
-
byte-order:
big-endian
-
enum:
-
enum-as-flags:
True
flower-key-enc-opts-attrs #
geneve (nest) #
-
nested-attributes:
vxlan (nest) #
-
nested-attributes:
erspan (nest) #
-
nested-attributes:
gtp (nest) #
-
nested-attributes:
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) #
-
nested-attributes:
indev (string) #
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
mask (u32) #
gred-attrs #
parms (binary) #
stab (binary) #
-
sub-type:
u8
dps (binary) #
-
struct:
max-p (binary) #
-
sub-type:
u32
limit (u32) #
vq-list (nest) #
-
nested-attributes:
tca-gred-vq-list-attrs #
entry (nest) #
-
nested-attributes:
-
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) #
-
struct:
init (binary) #
-
struct:
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
-
nested-attributes:
flags (u32) #
pcnt (binary) #
-
struct:
pad (pad) #
etf-attrs #
parms (binary) #
-
struct:
ets-attrs #
nbands (u8) #
nstrict (u8) #
quanta (nest) #
-
nested-attributes:
quanta-band (u32) #
-
multi-attr:
True
priomap (nest) #
-
nested-attributes:
priomap-band (u8) #
-
multi-attr:
True
fq-attrs #
plimit (u32) #
-
doc:
Limit of total number of packets in queue
flow-plimit (u32) #
-
doc:
Limit of packets per flow
quantum (u32) #
-
doc:
RR quantum
initial-quantum (u32) #
-
doc:
RR quantum for new flow
rate-enable (u32) #
-
doc:
Enable / disable rate limiting
flow-default-rate (u32) #
-
doc:
Obsolete, do not use
flow-max-rate (u32) #
-
doc:
Per flow max rate
buckets-log (u32) #
-
doc:
log2(number of buckets)
flow-refill-delay (u32) #
-
doc:
Flow credit refill delay in usec
orphan-mask (u32) #
-
doc:
Mask applied to orphaned skb hashes
low-rate-threshold (u32) #
-
doc:
Per packet delay under this rate
ce-threshold (u32) #
-
doc:
DCTCP-like CE marking threshold
timer-slack (u32) #
horizon (u32) #
-
doc:
Time horizon in usec
horizon-drop (u8) #
-
doc:
Drop packets beyond horizon, or cap their EDT
priomap (binary) #
-
struct:
weights (binary) #
-
sub-type:
s32
-
doc:
Weights for each band
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) #
-
struct:
delay-dist (binary) #
-
sub-type:
s16
reorder (binary) #
-
struct:
corrupt (binary) #
-
struct:
loss (nest) #
-
nested-attributes:
rate (binary) #
-
struct:
ecn (u32) #
rate64 (u64) #
pad (u32) #
latency64 (s64) #
jitter64 (s64) #
slot (binary) #
-
struct:
slot-dist (binary) #
-
sub-type:
s16
prng-seed (u64) #
netem-loss-attrs #
gi (binary) #
-
doc:
General Intuitive - 4 state model
-
struct:
ge (binary) #
-
doc:
Gilbert Elliot models
-
struct:
pie-attrs #
target (u32) #
limit (u32) #
tupdate (u32) #
alpha (u32) #
beta (u32) #
ecn (u32) #
bytemode (u32) #
dq-rate-estimator (u32) #
police-attrs #
tbf (binary) #
-
struct:
rate (binary) #
peakrate (binary) #
avrate (u32) #
result (u32) #
tm (binary) #
-
struct:
pad (pad) #
rate64 (u64) #
peakrate64 (u64) #
pktrate64 (u64) #
pktburst64 (u64) #
qfq-attrs #
weight (u32) #
lmax (u32) #
red-attrs #
parms (binary) #
-
struct:
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) #
-
nested-attributes:
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
taprio-attrs #
priomap (binary) #
-
struct:
sched-entry-list (nest) #
-
nested-attributes:
sched-base-time (s64) #
sched-single-entry (nest) #
-
nested-attributes:
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) #
-
nested-attributes:
taprio-sched-entry-list #
entry (nest) #
-
nested-attributes:
-
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) #
-
struct:
rtab (binary) #
ptab (binary) #
rate64 (u64) #
prate64 (u64) #
burst (u32) #
pburst (u32) #
pad (pad) #
act-sample-attrs #
tm (binary) #
-
struct:
parms (binary) #
-
struct:
rate (u32) #
trunc-size (u32) #
psample-group (u32) #
pad (pad) #
act-gact-attrs #
tm (binary) #
-
struct:
parms (binary) #
-
struct:
prob (binary) #
-
struct:
pad (pad) #
tca-stab-attrs #
base (binary) #
-
struct:
data (binary) #
tca-stats-attrs #
basic (binary) #
-
struct:
rate-est (binary) #
-
struct:
queue (binary) #
-
struct:
app (sub-message) #
-
sub-message:
-
selector:
kind
rate-est64 (binary) #
-
struct:
pad (pad) #
basic-hw (binary) #
-
struct:
pkt64 (u64) #
u32-attrs #
classid (u32) #
hash (u32) #
link (u32) #
divisor (u32) #
sel (binary) #
-
struct:
police (nest) #
-
nested-attributes:
act (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
indev (string) #
pcnt (binary) #
-
struct:
mark (binary) #
-
struct:
flags (u32) #
pad (pad) #
Sub-messages #
options-msg #
-
basic
-
attribute-set:
-
-
bpf
-
attribute-set:
-
-
bfifo
-
fixed-header:
-
-
cake
-
attribute-set:
-
-
cbs
-
attribute-set:
-
-
cgroup
-
attribute-set:
-
-
choke
-
attribute-set:
-
-
clsact
-
codel
-
attribute-set:
-
-
drr
-
attribute-set:
-
-
dualpi2
-
attribute-set:
-
-
etf
-
attribute-set:
-
-
ets
-
attribute-set:
-
-
flow
-
attribute-set:
-
-
flower
-
attribute-set:
-
-
fq
-
attribute-set:
-
-
fq_codel
-
attribute-set:
-
-
fq_pie
-
attribute-set:
-
-
fw
-
attribute-set:
-
-
gred
-
attribute-set:
-
-
hfsc
-
fixed-header:
-
-
hhf
-
attribute-set:
-
-
htb
-
attribute-set:
-
-
ingress
-
matchall
-
attribute-set:
-
-
mq
-
mqprio
-
fixed-header:
-
-
multiq
-
fixed-header:
-
-
netem
-
fixed-header:
-
attribute-set:
-
-
pfifo
-
fixed-header:
-
-
pfifo_fast
-
fixed-header:
-
-
pfifo_head_drop
-
fixed-header:
-
-
pie
-
attribute-set:
-
-
plug
-
fixed-header:
-
-
prio
-
fixed-header:
-
-
qfq
-
attribute-set:
-
-
red
-
attribute-set:
-
-
route
-
attribute-set:
-
-
sfb
-
fixed-header:
-
-
sfq
-
fixed-header:
-
-
taprio
-
attribute-set:
-
-
tbf
-
attribute-set:
-
-
u32
-
attribute-set:
-
act-options-msg #
-
bpf
-
attribute-set:
-
-
connmark
-
attribute-set:
-
-
csum
-
attribute-set:
-
-
ct
-
attribute-set:
-
-
ctinfo
-
attribute-set:
-
-
gact
-
attribute-set:
-
-
gate
-
attribute-set:
-
-
ife
-
attribute-set:
-
-
mirred
-
attribute-set:
-
-
mpls
-
attribute-set:
-
-
nat
-
attribute-set:
-
-
pedit
-
attribute-set:
-
-
police
-
attribute-set:
-
-
sample
-
attribute-set:
-
-
simple
-
attribute-set:
-
-
skbedit
-
attribute-set:
-
-
skbmod
-
attribute-set:
-
-
tunnel_key
-
attribute-set:
-
-
vlan
-
attribute-set:
-
tca-stats-app-msg #
-
cake
-
attribute-set:
-
-
choke
-
fixed-header:
-
-
codel
-
fixed-header:
-
-
dualpi2
-
fixed-header:
-
-
fq
-
fixed-header:
-
-
fq_codel
-
fixed-header:
-
-
fq_pie
-
fixed-header:
-
-
hhf
-
fixed-header:
-
-
pie
-
fixed-header:
-
-
red
-
fixed-header:
-
-
sfb
-
fixed-header:
-
-
sfq
-
fixed-header:
-
Family tcp_metrics netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Management interface for TCP metrics.
Operations #
get #
Retrieve metrics.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
do:
request
-
attributes:
[
addr-ipv4,addr-ipv6,saddr-ipv4,saddr-ipv6]
reply
-
attributes:
[
addr-ipv4,addr-ipv6,saddr-ipv4,saddr-ipv6,age,vals,fopen-mss,fopen-syn-drops,fopen-syn-drop-ts,fopen-cookie]
-
-
dump:
reply
-
attributes:
[
addr-ipv4,addr-ipv6,saddr-ipv4,saddr-ipv6,age,vals,fopen-mss,fopen-syn-drops,fopen-syn-drop-ts,fopen-cookie]
-
del #
Delete metrics.
-
attribute-set:
-
dont-validate:
['strict', 'dump']
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
addr-ipv4,addr-ipv6,saddr-ipv4,saddr-ipv6]
-
Definitions #
tcp-fastopen-cookie-max #
-
type:
const
-
value:
16
Attribute sets #
tcp-metrics #
addr-ipv4 (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
addr-ipv6 (binary) #
-
byte-order:
big-endian
-
display-hint:
ipv6
age (u64) #
tw-tsval (u32) #
-
doc:
unused
tw-ts-stamp (s32) #
-
doc:
unused
vals (nest) #
-
nested-attributes:
fopen-mss (u16) #
fopen-syn-drops (u16) #
fopen-syn-drop-ts (u64) #
fopen-cookie (binary) #
saddr-ipv4 (u32) #
-
byte-order:
big-endian
-
display-hint:
ipv4
saddr-ipv6 (binary) #
-
byte-order:
big-endian
-
display-hint:
ipv6
pad (pad) #
metrics #
Attributes with metrics. Note that the values here do not match the TCP_METRIC_* defines in the kernel, because kernel defines are off-by one (e.g. rtt is defined as enum 0, while netlink carries attribute type 1).
rtt (u32) #
-
doc:
Round Trip Time (RTT), in msecs with 3 bits fractional (left-shift by 3 to get the msec value).
rttvar (u32) #
-
doc:
Round Trip Time VARiance (RTT), in msecs with 2 bits fractional (left-shift by 2 to get the msec value).
ssthresh (u32) #
-
doc:
Slow Start THRESHold.
cwnd (u32) #
-
doc:
Congestion Window.
reodering (u32) #
-
doc:
Reodering metric.
rtt-us (u32) #
-
doc:
Round Trip Time (RTT), in usecs, with 3 bits fractional (left-shift by 3 to get the msec value).
rttvar-us (u32) #
-
doc:
Round Trip Time (RTT), in usecs, with 2 bits fractional (left-shift by 3 to get the msec value).
Family team netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Network team device driver.
Operations #
noop #
No operation
-
value:
0
-
attribute-set:
-
dont-validate:
['strict']
-
do:
reply
-
attributes:
[
team-ifindex]
-
options-set #
Set team options
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
team-ifindex,list-option]
reply
-
attributes:
[
team-ifindex,list-option]
-
options-get #
Get team options info
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
team-ifindex]
reply
-
attributes:
[
team-ifindex,list-option]
-
port-list-get #
Get team ports info
-
attribute-set:
-
dont-validate:
['strict']
-
flags:
[
admin-perm] -
do:
request
-
attributes:
[
team-ifindex]
reply
-
attributes:
[
team-ifindex,list-port]
-
Definitions #
string-max-len #
-
type:
const
-
value:
32
genl-change-event-mc-grp-name #
-
type:
const
-
value:
change_event
Attribute sets #
team #
The team nested layout of get/set msg looks like:
[TEAM_ATTR_LIST_OPTION]
[TEAM_ATTR_ITEM_OPTION]
[TEAM_ATTR_OPTION_*], ...
[TEAM_ATTR_ITEM_OPTION]
[TEAM_ATTR_OPTION_*], ...
...
[TEAM_ATTR_LIST_PORT]
[TEAM_ATTR_ITEM_PORT]
[TEAM_ATTR_PORT_*], ...
[TEAM_ATTR_ITEM_PORT]
[TEAM_ATTR_PORT_*], ...
...
unspec (unused) #
-
value:
0
team-ifindex (u32) #
list-option (nest) #
-
nested-attributes:
list-port (nest) #
-
nested-attributes:
item-option #
option-unspec (unused) #
-
value:
0
option (nest) #
-
nested-attributes:
attr-option #
unspec (unused) #
-
value:
0
name (string) #
changed (flag) #
type (u8) #
data (binary) #
removed (flag) #
port-ifindex (u32) #
-
doc:
for per-port options
array-index (u32) #
-
doc:
for array options
item-port #
port-unspec (unused) #
-
value:
0
port (nest) #
-
nested-attributes:
attr-port #
unspec (unused) #
-
value:
0
ifindex (u32) #
changed (flag) #
linkup (flag) #
speed (u32) #
duplex (u8) #
removed (flag) #
Family wireguard netlink specification
Peios Kernel / Internals / Netlink / specs
Summary #
Netlink protocol to control WireGuard network devices.
The below enums and macros are for interfacing with WireGuard, using generic
netlink, with family WG_GENL_NAME and version WG_GENL_VERSION. It
defines two commands: get and set. Note that while they share many common
attributes, these two commands actually accept a slightly different set of
inputs and outputs. These differences are noted under the individual
attributes.
Operations #
get-device #
Retrieve WireGuard device #
The command should be called with one but not both of:
-
WGDEVICE_A_IFINDEX -
WGDEVICE_A_IFNAME
The kernel will then return several messages (NLM_F_MULTI). It is
possible that all of the allowed IPs of a single peer will not fit
within a single netlink message. In that case, the same peer will be
written in the following message, except it will only contain
WGPEER_A_PUBLIC_KEY and WGPEER_A_ALLOWEDIPS. This may occur
several times in a row for the same peer. It is then up to the receiver
to coalesce adjacent peers. Likewise, it is possible that all peers will
not fit within a single message. So, subsequent peers will be sent in
following messages, except those will only contain WGDEVICE_A_IFNAME
and WGDEVICE_A_PEERS. It is then up to the receiver to coalesce
these messages to form the complete list of peers.
Since this is an NLA_F_DUMP command, the final message will always
be NLMSG_DONE, even if an error occurs. However, this NLMSG_DONE
message contains an integer error code. It is either zero or a negative
error code corresponding to the errno.
-
value:
0
-
attribute-set:
-
flags:
[
uns-admin-perm] -
dump:
pre
wg-get-device-start
post
wg-get-device-done
request
-
attributes:
[
ifindex,ifname]
reply
-
attributes:
[
ifindex,ifname,private-key,public-key,flags,listen-port,fwmark,peers]
-
set-device #
Set WireGuard device #
This command should be called with a wgdevice set, containing one but
not both of WGDEVICE_A_IFINDEX and WGDEVICE_A_IFNAME.
It is possible that the amount of configuration data exceeds that of the
maximum message length accepted by the kernel. In that case, several
messages should be sent one after another, with each successive one
filling in information not contained in the prior. Note that if
WGDEVICE_F_REPLACE_PEERS is specified in the first message, it
probably should not be specified in fragments that come after, so that
the list of peers is only cleared the first time but appended after.
Likewise for peers, if WGPEER_F_REPLACE_ALLOWEDIPS is specified in
the first message of a peer, it likely should not be specified in
subsequent fragments.
If an error occurs, NLMSG_ERROR will reply containing an errno.
-
value:
1
-
attribute-set:
-
flags:
[
uns-admin-perm] -
do:
request
-
attributes:
[
ifindex,ifname,private-key,public-key,flags,listen-port,fwmark,peers]
-
Definitions #
key-len #
-
name-prefix:
wg-
-
type:
const
-
value:
32
--kernel-timespec #
-
type:
struct
-
header:
linux/time_types.h
-
members:
-
sec (
u64):Number of seconds, since UNIX epoch.
-
nsec (
u64):Number of nanoseconds, after the second began.
-
wgdevice-flags #
-
name-prefix:
wgdevice-f-
-
enum-name:
wgdevice-flag
-
type:
flags
-
entries:
replace-peers
wgpeer-flags #
-
name-prefix:
wgpeer-f-
-
enum-name:
wgpeer-flag
-
type:
flags
-
entries:
-
remove-me -
replace-allowedips -
update-only
-
wgallowedip-flags #
-
name-prefix:
wgallowedip-f-
-
enum-name:
wgallowedip-flag
-
type:
flags
-
entries:
remove-me
Attribute sets #
wgdevice #
unspec (unused) #
-
value:
0
ifindex (u32) #
ifname (string) #
private-key (binary) #
-
doc:
Set to all zeros to remove.
-
display-hint:
hex
public-key (binary) #
-
display-hint:
hex
flags (u32) #
-
doc:
0orWGDEVICE_F_REPLACE_PEERSif all current peers should be removed prior to adding the list below. -
enum:
listen-port (u16) #
-
doc:
Set as
0to choose randomly.
fwmark (u32) #
-
doc:
Set as
0to disable.
peers (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
-
doc:
The index/type parameter is unused on
SET_DEVICEoperations and is zero onGET_DEVICEoperations.
wgpeer #
unspec (unused) #
-
value:
0
public-key (binary) #
-
display-hint:
hex
preshared-key (binary) #
-
doc:
Set as all zeros to remove.
-
display-hint:
hex
flags (u32) #
-
doc:
0and/orWGPEER_F_REMOVE_MEif the specified peer should not exist at the end of the operation, rather than added/updated and/orWGPEER_F_REPLACE_ALLOWEDIPSif all current allowed IPs of this peer should be removed prior to adding the list below and/orWGPEER_F_UPDATE_ONLYif the peer should only be set if it already exists. -
enum:
endpoint (binary) #
-
doc:
struct sockaddr_in or struct sockaddr_in6
persistent-keepalive-interval (u16) #
-
doc:
Set as
0to disable.
last-handshake-time (binary) #
-
struct:
rx-bytes (u64) #
tx-bytes (u64) #
allowedips (indexed-array) #
-
sub-type:
nest
-
nested-attributes:
-
doc:
The index/type parameter is unused on
SET_DEVICEoperations and is zero onGET_DEVICEoperations.
protocol-version (u32) #
-
doc:
Should not be set or used at all by most users of this API, as the most recent protocol will be used when this is unset. Otherwise, must be set to
1.
wgallowedip #
unspec (unused) #
-
value:
0
family (u16) #
-
doc:
IP family, either
AF_INETorAF_INET6.
ipaddr (binary) #
-
doc:
Either
struct in_addrorstruct in6_addr. -
display-hint:
ipv4-or-v6
cidr-mask (u8) #
flags (u32) #
-
doc:
WGALLOWEDIP_F_REMOVE_MEif the specified IP should be removed; otherwise, this IP will be added if it is not already present. -
enum:
genetlink-c Netlink schema
Peios Kernel / Internals / Netlink
Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
---
$id: http://kernel.org/schemas/netlink/genetlink-c.yaml#
$schema: https://json-schema.org/draft-07/schema
# Common defines
$defs:
uint:
type: integer
minimum: 0
len-or-define:
type:
pattern: ^[0-9A-Za-z_-]+( - 1)?$
minimum: 0
len-or-limit:
# literal int, const name, or limit based on fixed-width type
# e.g. u8-min, u16-max, etc.
type:
pattern: ^[0-9A-Za-z_-]+$
minimum: 0
# Schema for specs
title: Protocol
description: Specification of a genetlink protocol
type: object
required:
additionalProperties: False
properties:
name:
description: Name of the genetlink family.
type: string
doc:
type: string
protocol:
description: Schema compatibility level. Default is "genetlink".
enum:
uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h
type: string
# Start genetlink-c
c-family-name:
description: Name of the define for the family name.
type: string
c-version-name:
description: Name of the define for the version of the family.
type: string
max-by-define:
description: Makes the number of attributes and commands be specified by a define, not an enum value.
type: boolean
cmd-max-name:
description: Name of the define for the last operation in the list.
type: string
cmd-cnt-name:
description: The explicit name for constant holding the count of operations (last operation + 1).
type: string
# End genetlink-c
definitions:
description: List of type and constant definitions (enums, flags, defines).
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
type: string
header:
description: For C-compatible languages, header which already defines this value.
type: string
type:
enum:
doc:
type: string
# For const
value:
description: For const - the value.
type:
# For enum and flags
value-start:
description: For enum or flags the literal initializer for the first value.
type:
entries:
description: For enum or flags array of values.
type: array
items:
oneOf:
- type: string
- type: object
required:
additionalProperties: False
properties:
name:
type: string
value:
type: integer
doc:
type: string
render-max:
description: Render the max members for this enum.
type: boolean
# Start genetlink-c
enum-name:
description: Name for enum, if empty no name will be used.
type:
name-prefix:
description: For enum the prefix of the values, optional.
type: string
enum-cnt-name:
description: Name of the render-max counter enum entry.
type: string
# End genetlink-c
attribute-sets:
description: Definition of attribute spaces for this family.
type: array
items:
description: Definition of a single attribute space.
type: object
required:
additionalProperties: False
properties:
name:
description: |
Name used when referring to this space in other definitions, not used outside of the spec.
type: string
name-prefix:
description: |
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string
enum-name:
description: |
Name for the enum type of the attribute, if empty no name will be used.
type:
doc:
description: Documentation of the space.
type: string
subset-of:
description: |
Name of another space which this is a logical part of. Sub-spaces can be used to define
a limited group of attributes which are used in a nest.
type: string
# Start genetlink-c
attr-cnt-name:
description: The explicit name for constant holding the count of attributes (last attr + 1).
type: string
attr-max-name:
description: The explicit name for last member of attribute enum.
type: string
header:
description: For C-compatible languages, header which already defines this attribute set.
type: string
# End genetlink-c
attributes:
description: List of attributes in the space.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
type: string
type:
enum:
doc:
description: Documentation of the attribute.
type: string
value:
description: Value for the enum item representing this attribute in the uAPI.
$ref: '#/$defs/uint'
type-value:
description: Name of the value extracted from the type of a nest-type-value attribute.
type: array
items:
type: string
byte-order:
enum:
multi-attr:
type: boolean
nested-attributes:
description: Name of the space (sub-space) used inside the attribute.
type: string
enum:
description: Name of the enum type used for the attribute.
type: string
enum-as-flags:
description: |
Treat the enum as flags. In most cases enum is either used as flags or as values.
Sometimes, however, both forms are necessary, in which case header contains the enum
form while specific attributes may request to convert the values into a bitfield.
type: boolean
checks:
description: Kernel input validation.
type: object
additionalProperties: False
properties:
flags-mask:
description: Name of the flags constant on which to base mask (unsigned scalar types only).
type: string
min:
description: Min value for an integer attribute.
$ref: '#/$defs/len-or-limit'
max:
description: Max value for an integer attribute.
$ref: '#/$defs/len-or-limit'
min-len:
description: Min length for a binary attribute.
$ref: '#/$defs/len-or-define'
max-len:
description: Max length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
exact-len:
description: Exact length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
unterminated-ok:
description: |
For string attributes, do not check whether attribute
contains the terminating null character.
type: boolean
sub-type: *attr-type
display-hint:
description: |
Optional format indicator that is intended only for choosing
the right formatting mechanism when displaying values of this
type.
enum:
# Start genetlink-c
name-prefix:
type: string
# End genetlink-c
# Make sure name-prefix does not appear in subsets (subsets inherit naming)
dependencies:
name-prefix:
not:
required:
subset-of:
not:
required:
# type property is only required if not in subset definition
if:
properties:
subset-of:
not:
type: string
then:
properties:
attributes:
items:
required:
operations:
description: Operations supported by the protocol.
type: object
required:
additionalProperties: False
properties:
enum-model:
description: |
The model of assigning values to the operations.
"unified" is the recommended model where all message types belong
to a single enum.
"directional" has the messages sent to the kernel and from the kernel
enumerated separately.
enum:
name-prefix:
description: |
Prefix for the C enum name of the command. The name is formed by concatenating
the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string
enum-name:
description: |
Name for the enum type with commands, if empty no name will be used.
type:
async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum.
type: string
async-enum:
description: |
Name for the enum type with commands, if empty no name will be used.
type:
list:
description: List of commands
type: array
items:
type: object
additionalProperties: False
required:
properties:
name:
description: Name of the operation, also defining its C enum value in uAPI.
type: string
doc:
description: Documentation for the command.
type: string
value:
description: Value for the enum in the uAPI.
$ref: '#/$defs/uint'
attribute-set:
description: |
Attribute space from which attributes directly in the requests and replies
to this command are defined.
type: string
flags:
description: Command flags.
type: array
items:
enum:
dont-validate:
description: Kernel attribute validation flags.
type: array
items:
enum:
config-cond:
description: |
Name of the kernel config option gating the presence of
the operation, without the 'CONFIG_' prefix.
type: string
do:
description: Main command handler.
type: object
additionalProperties: False
properties:
request:
description: Definition of the request message for a given command.
type: object
additionalProperties: False
properties:
attributes:
description: |
Names of attributes from the attribute-set (not full attribute
definitions, just names).
type: array
items:
type: string
reply: *subop-attr-list
pre:
description: Hook for a function to run before the main callback (pre_doit or start).
type: string
post:
description: Hook for a function to run after the main callback (post_doit or done).
type: string
dump: *subop-type
notify:
description: Name of the command sharing the reply type with this notification.
type: string
event:
type: object
additionalProperties: False
properties:
attributes:
description: Explicit list of the attributes for the notification.
type: array
items:
type: string
mcgrp:
description: Name of the multicast group generating given notification.
type: string
mcast-groups:
description: List of multicast groups.
type: object
required:
additionalProperties: False
properties:
list:
description: List of groups.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
description: |
The name for the group, used to form the define and the value of the define.
type: string
# Start genetlink-c
c-define-name:
description: Override for the name of the define in C uAPI.
type: string
# End genetlink-c
flags: *cmd_flags
kernel-family:
description: Additional global attributes used for kernel C code generation.
type: object
additionalProperties: False
properties:
headers:
description: |
List of extra headers which should be included in the source
of the generated code.
type: array
items:
type: string
sock-priv:
description: |
Literal name of the type which is used within the kernel
to store the socket state. The type / structure is internal
to the kernel, and is not defined in the spec.
type: string
genetlink-legacy Netlink schema
Peios Kernel / Internals / Netlink
Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
---
$id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
$schema: https://json-schema.org/draft-07/schema
# Common defines
$defs:
name:
type: string
pattern: ^[0-9a-z-]+$
uint:
type: integer
minimum: 0
len-or-define:
type:
pattern: ^[0-9A-Za-z_-]+( - 1)?$
minimum: 0
len-or-limit:
# literal int, const name, or limit based on fixed-width type
# e.g. u8-min, u16-max, etc.
type:
pattern: ^[0-9A-Za-z_-]+$
minimum: 0
# Schema for specs
title: Protocol
description: Specification of a genetlink protocol
type: object
required:
additionalProperties: False
properties:
name:
description: Name of the genetlink family.
type: string
doc:
type: string
protocol:
description: Schema compatibility level. Default is "genetlink".
enum: # Trim
uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h
type: string
# Start genetlink-c
c-family-name:
description: Name of the define for the family name.
type: string
c-version-name:
description: Name of the define for the version of the family.
type: string
max-by-define:
description: Makes the number of attributes and commands be specified by a define, not an enum value.
type: boolean
cmd-max-name:
description: Name of the define for the last operation in the list.
type: string
cmd-cnt-name:
description: The explicit name for constant holding the count of operations (last operation + 1).
type: string
# End genetlink-c
# Start genetlink-legacy
kernel-policy:
description: |
Defines if the input policy in the kernel is global, per-operation, or split per operation type.
Default is split.
enum:
version:
description: Generic Netlink family version. Default is 1.
type: integer
minimum: 1
# End genetlink-legacy
definitions:
description: List of type and constant definitions (enums, flags, defines).
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
header:
description: For C-compatible languages, header which already defines this value.
type: string
type:
enum: # Trim
doc:
type: string
# For const
value:
description: For const - the value.
type:
# For enum and flags
value-start:
description: For enum or flags the literal initializer for the first value.
type:
entries:
description: For enum or flags array of values.
type: array
items:
oneOf:
- type: string
- type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
value:
type: integer
doc:
type: string
render-max:
description: Render the max members for this enum.
type: boolean
# Start genetlink-c
enum-name:
description: Name for enum, if empty no name will be used.
type:
name-prefix:
description: For enum the prefix of the values, optional.
type: string
enum-cnt-name:
description: Name of the render-max counter enum entry.
type: string
# End genetlink-c
# Start genetlink-legacy
members:
description: List of struct members. Only scalars and strings members allowed.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
type:
description: The netlink attribute type
enum:
len:
$ref: '#/$defs/len-or-define'
byte-order:
enum:
doc:
description: Documentation for the struct member attribute.
type: string
enum:
description: Name of the enum type used for the attribute.
type: string
display-hint:
description: |
Optional format indicator that is intended only for choosing
the right formatting mechanism when displaying values of this
type.
enum:
struct:
description: Name of the nested struct type.
type: string
# End genetlink-legacy
attribute-sets:
description: Definition of attribute spaces for this family.
type: array
items:
description: Definition of a single attribute space.
type: object
required:
additionalProperties: False
properties:
name:
description: |
Name used when referring to this space in other definitions, not used outside of the spec.
$ref: '#/$defs/name'
name-prefix:
description: |
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string
enum-name:
description: |
Name for the enum type of the attribute, if empty no name will be used.
type:
doc:
description: Documentation of the space.
type: string
subset-of:
description: |
Name of another space which this is a logical part of. Sub-spaces can be used to define
a limited group of attributes which are used in a nest.
type: string
# Start genetlink-c
attr-cnt-name:
description: The explicit name for constant holding the count of attributes (last attr + 1).
type: string
attr-max-name:
description: The explicit name for last member of attribute enum.
type: string
header:
description: For C-compatible languages, header which already defines this attribute set.
type: string
# End genetlink-c
attributes:
description: List of attributes in the space.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
type:
description: The netlink attribute type
enum:
doc:
description: Documentation of the attribute.
type: string
value:
description: Value for the enum item representing this attribute in the uAPI.
$ref: '#/$defs/uint'
type-value:
description: Name of the value extracted from the type of a nest-type-value attribute.
type: array
items:
type: string
byte-order:
enum:
multi-attr:
type: boolean
nested-attributes:
description: Name of the space (sub-space) used inside the attribute.
type: string
enum:
description: Name of the enum type used for the attribute.
type: string
enum-as-flags:
description: |
Treat the enum as flags. In most cases enum is either used as flags or as values.
Sometimes, however, both forms are necessary, in which case header contains the enum
form while specific attributes may request to convert the values into a bitfield.
type: boolean
checks:
description: Kernel input validation.
type: object
additionalProperties: False
properties:
flags-mask:
description: Name of the flags constant on which to base mask (unsigned scalar types only).
type: string
min:
description: Min value for an integer attribute.
$ref: '#/$defs/len-or-limit'
max:
description: Max value for an integer attribute.
$ref: '#/$defs/len-or-limit'
min-len:
description: Min length for a binary attribute.
$ref: '#/$defs/len-or-define'
max-len:
description: Max length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
exact-len:
description: Exact length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
unterminated-ok:
description: |
For string attributes, do not check whether attribute
contains the terminating null character.
type: boolean
sub-type: *attr-type
display-hint: *display-hint
# Start genetlink-c
name-prefix:
type: string
# End genetlink-c
# Start genetlink-legacy
struct:
description: Name of the struct type used for the attribute.
type: string
# End genetlink-legacy
# Make sure name-prefix does not appear in subsets (subsets inherit naming)
dependencies:
name-prefix:
not:
required:
subset-of:
not:
required:
# type property is only required if not in subset definition
if:
properties:
subset-of:
not:
type: string
then:
properties:
attributes:
items:
required:
operations:
description: Operations supported by the protocol.
type: object
required:
additionalProperties: False
properties:
enum-model:
description: |
The model of assigning values to the operations.
"unified" is the recommended model where all message types belong
to a single enum.
"directional" has the messages sent to the kernel and from the kernel
enumerated separately.
enum: # Trim
name-prefix:
description: |
Prefix for the C enum name of the command. The name is formed by concatenating
the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string
enum-name:
description: |
Name for the enum type with commands, if empty no name will be used.
type:
async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum.
type: string
async-enum:
description: |
Name for the enum type with commands, if empty no name will be used.
type:
# Start genetlink-legacy
fixed-header:
description: |
Name of the structure defining the optional fixed-length protocol
header. This header is placed in a message after the netlink and
genetlink headers and before any attributes.
type: string
# End genetlink-legacy
list:
description: List of commands
type: array
items:
type: object
additionalProperties: False
required:
properties:
name:
description: Name of the operation, also defining its C enum value in uAPI.
$ref: '#/$defs/name'
doc:
description: Documentation for the command.
type: string
value:
description: Value for the enum in the uAPI.
$ref: '#/$defs/uint'
attribute-set:
description: |
Attribute space from which attributes directly in the requests and replies
to this command are defined.
type: string
flags:
description: Command flags.
type: array
items:
enum:
dont-validate:
description: Kernel attribute validation flags.
type: array
items:
enum:
config-cond:
description: |
Name of the kernel config option gating the presence of
the operation, without the 'CONFIG_' prefix.
type: string
# Start genetlink-legacy
fixed-header: *fixed-header
# End genetlink-legacy
do:
description: Main command handler.
type: object
additionalProperties: False
properties:
request:
description: Definition of the request message for a given command.
type: object
additionalProperties: False
properties:
attributes:
description: |
Names of attributes from the attribute-set (not full attribute
definitions, just names).
type: array
items:
type: string
# Start genetlink-legacy
value:
description: |
ID of this message if value for request and response differ,
i.e. requests and responses have different message enums.
$ref: '#/$defs/uint'
# End genetlink-legacy
reply: *subop-attr-list
pre:
description: Hook for a function to run before the main callback (pre_doit or start).
type: string
post:
description: Hook for a function to run after the main callback (post_doit or done).
type: string
dump: *subop-type
notify:
description: Name of the command sharing the reply type with this notification.
type: string
event:
type: object
additionalProperties: False
properties:
attributes:
description: Explicit list of the attributes for the notification.
type: array
items:
type: string
mcgrp:
description: Name of the multicast group generating given notification.
type: string
mcast-groups:
description: List of multicast groups.
type: object
required:
additionalProperties: False
properties:
list:
description: List of groups.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
description: |
The name for the group, used to form the define and the value of the define.
type: string
# Start genetlink-c
c-define-name:
description: Override for the name of the define in C uAPI.
type: string
# End genetlink-c
flags: *cmd_flags
kernel-family:
description: Additional global attributes used for kernel C code generation.
type: object
additionalProperties: False
properties:
headers:
description: |
List of extra headers which should be included in the source
of the generated code.
type: array
items:
type: string
sock-priv:
description: |
Literal name of the type which is used within the kernel
to store the socket state. The type / structure is internal
to the kernel, and is not defined in the spec.
type: string
genetlink Netlink schema
Peios Kernel / Internals / Netlink
Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
---
$id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
$schema: https://json-schema.org/draft-07/schema
# Common defines
$defs:
name:
type: string
pattern: ^[0-9a-z-]+$
uint:
type: integer
minimum: 0
len-or-define:
type:
pattern: ^[0-9A-Za-z_-]+( - 1)?$
minimum: 0
len-or-limit:
# literal int, const name, or limit based on fixed-width type
# e.g. u8-min, u16-max, etc.
type:
pattern: ^[0-9A-Za-z_-]+$
minimum: 0
# Schema for specs
title: Protocol
description: Specification of a genetlink protocol
type: object
required:
additionalProperties: False
properties:
name:
description: Name of the genetlink family.
$ref: '#/$defs/name'
doc:
type: string
protocol:
description: Schema compatibility level. Default is "genetlink".
enum:
uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h
type: string
definitions:
description: List of type and constant definitions (enums, flags, defines).
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
header:
description: For C-compatible languages, header which already defines this value.
type: string
type:
enum:
doc:
type: string
# For const
value:
description: For const - the value.
type:
# For enum and flags
value-start:
description: For enum or flags the literal initializer for the first value.
type:
entries:
description: For enum or flags array of values.
type: array
items:
oneOf:
- type: string
- type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
value:
type: integer
doc:
type: string
render-max:
description: Render the max members for this enum.
type: boolean
attribute-sets:
description: Definition of attribute spaces for this family.
type: array
items:
description: Definition of a single attribute space.
type: object
required:
additionalProperties: False
properties:
name:
description: |
Name used when referring to this space in other definitions, not used outside of the spec.
$ref: '#/$defs/name'
name-prefix:
description: |
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string
enum-name:
description: Name for the enum type of the attribute.
type: string
doc:
description: Documentation of the space.
type: string
subset-of:
description: |
Name of another space which this is a logical part of. Sub-spaces can be used to define
a limited group of attributes which are used in a nest.
type: string
attributes:
description: List of attributes in the space.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
type:
enum:
doc:
description: Documentation of the attribute.
type: string
value:
description: Value for the enum item representing this attribute in the uAPI.
$ref: '#/$defs/uint'
type-value:
description: Name of the value extracted from the type of a nest-type-value attribute.
type: array
items:
type: string
byte-order:
enum:
multi-attr:
type: boolean
nested-attributes:
description: Name of the space (sub-space) used inside the attribute.
type: string
enum:
description: Name of the enum type used for the attribute.
type: string
enum-as-flags:
description: |
Treat the enum as flags. In most cases enum is either used as flags or as values.
Sometimes, however, both forms are necessary, in which case header contains the enum
form while specific attributes may request to convert the values into a bitfield.
type: boolean
checks:
description: Kernel input validation.
type: object
additionalProperties: False
properties:
flags-mask:
description: Name of the flags constant on which to base mask (unsigned scalar types only).
type: string
min:
description: Min value for an integer attribute.
$ref: '#/$defs/len-or-limit'
max:
description: Max value for an integer attribute.
$ref: '#/$defs/len-or-limit'
min-len:
description: Min length for a binary attribute.
$ref: '#/$defs/len-or-define'
max-len:
description: Max length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
exact-len:
description: Exact length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
sub-type: *attr-type
display-hint:
description: |
Optional format indicator that is intended only for choosing
the right formatting mechanism when displaying values of this
type.
enum:
# Make sure name-prefix does not appear in subsets (subsets inherit naming)
dependencies:
name-prefix:
not:
required:
subset-of:
not:
required:
# type property is only required if not in subset definition
if:
properties:
subset-of:
not:
type: string
then:
properties:
attributes:
items:
required:
operations:
description: Operations supported by the protocol.
type: object
required:
additionalProperties: False
properties:
enum-model:
description: |
The model of assigning values to the operations.
"unified" is the recommended model where all message types belong
to a single enum.
"directional" has the messages sent to the kernel and from the kernel
enumerated separately.
enum:
name-prefix:
description: |
Prefix for the C enum name of the command. The name is formed by concatenating
the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string
enum-name:
description: Name for the enum type with commands.
type: string
async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum.
type: string
async-enum:
description: Name for the enum type with notifications/events.
type: string
list:
description: List of commands
type: array
items:
type: object
additionalProperties: False
required:
properties:
name:
description: Name of the operation, also defining its C enum value in uAPI.
$ref: '#/$defs/name'
doc:
description: Documentation for the command.
type: string
value:
description: Value for the enum in the uAPI.
$ref: '#/$defs/uint'
attribute-set:
description: |
Attribute space from which attributes directly in the requests and replies
to this command are defined.
type: string
flags:
description: Command flags.
type: array
items:
enum:
dont-validate:
description: Kernel attribute validation flags.
type: array
items:
enum:
config-cond:
description: |
Name of the kernel config option gating the presence of
the operation, without the 'CONFIG_' prefix.
type: string
do:
description: Main command handler.
type: object
additionalProperties: False
properties:
request:
description: Definition of the request message for a given command.
type: object
additionalProperties: False
properties:
attributes:
description: |
Names of attributes from the attribute-set (not full attribute
definitions, just names).
type: array
items:
type: string
reply: *subop-attr-list
pre:
description: Hook for a function to run before the main callback (pre_doit or start).
type: string
post:
description: Hook for a function to run after the main callback (post_doit or done).
type: string
dump: *subop-type
notify:
description: Name of the command sharing the reply type with this notification.
type: string
event:
type: object
additionalProperties: False
properties:
attributes:
description: Explicit list of the attributes for the notification.
type: array
items:
type: string
mcgrp:
description: Name of the multicast group generating given notification.
type: string
mcast-groups:
description: List of multicast groups.
type: object
required:
additionalProperties: False
properties:
list:
description: List of groups.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
description: |
The name for the group, used to form the define and the value of the define.
$ref: '#/$defs/name'
flags: *cmd_flags
kernel-family:
description: Additional global attributes used for kernel C code generation.
type: object
additionalProperties: False
properties:
headers:
description: |
List of extra headers which should be included in the source
of the generated code.
type: array
items:
type: string
sock-priv:
description: |
Literal name of the type which is used within the kernel
to store the socket state. The type / structure is internal
to the kernel, and is not defined in the spec.
type: string
netlink-raw Netlink schema
Peios Kernel / Internals / Netlink
Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
---
$id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
$schema: https://json-schema.org/draft-07/schema
# Common defines
$defs:
name:
type: string
pattern: ^[0-9a-z-]+$
name-cap:
type: string
pattern: ^[0-9a-zA-Z-]+$
uint:
type: integer
minimum: 0
len-or-define:
type:
pattern: ^[0-9A-Za-z_-]+( - 1)?$
minimum: 0
# Schema for specs
title: Protocol
description: Specification of a raw netlink protocol
type: object
required:
additionalProperties: False
properties:
name:
description: Name of the netlink family.
type: string
doc:
type: string
protocol:
description: Schema compatibility level.
enum: # Trim
# Start netlink-raw
protonum:
description: Protocol number to use for netlink-raw
type: integer
# End netlink-raw
uapi-header:
description: Path to the uAPI header, default is linux/${family-name}.h
type: string
# Start genetlink-c
c-family-name:
description: Name of the define for the family name.
type: string
c-version-name:
description: Name of the define for the version of the family.
type: string
max-by-define:
description: Makes the number of attributes and commands be specified by a define, not an enum value.
type: boolean
cmd-max-name:
description: Name of the define for the last operation in the list.
type: string
cmd-cnt-name:
description: The explicit name for constant holding the count of operations (last operation + 1).
type: string
# End genetlink-c
# Start genetlink-legacy
kernel-policy:
description: |
Defines if the input policy in the kernel is global, per-operation, or split per operation type.
Default is split.
enum:
# End genetlink-legacy
definitions:
description: List of type and constant definitions (enums, flags, defines).
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
header:
description: For C-compatible languages, header which already defines this value.
type: string
type:
enum: # Trim
doc:
type: string
# For const
value:
description: For const - the value.
type:
# For enum and flags
value-start:
description: For enum or flags the literal initializer for the first value.
type:
entries:
description: For enum or flags array of values.
type: array
items:
oneOf:
- type: string
- type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
value:
type: integer
doc:
type: string
render-max:
description: Render the max members for this enum.
type: boolean
# Start genetlink-c
enum-name:
description: Name for enum, if empty no name will be used.
type:
name-prefix:
description: For enum the prefix of the values, optional.
type: string
# End genetlink-c
# Start genetlink-legacy
members:
description: List of struct members. Only scalars and strings members allowed.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name-cap'
type:
description: |
The netlink attribute type. Members of type 'binary' or 'pad'
must also have the 'len' property set.
enum:
len:
$ref: '#/$defs/len-or-define'
byte-order:
enum:
doc:
description: Documentation for the struct member attribute.
type: string
enum:
description: Name of the enum type used for the attribute.
type: string
enum-as-flags:
description: |
Treat the enum as flags. In most cases enum is either used as flags or as values.
Sometimes, however, both forms are necessary, in which case header contains the enum
form while specific attributes may request to convert the values into a bitfield.
type: boolean
display-hint:
description: |
Optional format indicator that is intended only for choosing
the right formatting mechanism when displaying values of this
type.
enum:
struct:
description: Name of the nested struct type.
type: string
if:
properties:
type:
const: pad
then:
required:
if:
properties:
type:
const: binary
then:
oneOf:
- required:
- required:
# End genetlink-legacy
attribute-sets:
description: Definition of attribute spaces for this family.
type: array
items:
description: Definition of a single attribute space.
type: object
required:
additionalProperties: False
properties:
name:
description: |
Name used when referring to this space in other definitions, not used outside of the spec.
$ref: '#/$defs/name'
name-prefix:
description: |
Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
type: string
enum-name:
description: |
Name for the enum type of the attribute, if empty no name will be used.
type:
doc:
description: Documentation of the space.
type: string
subset-of:
description: |
Name of another space which this is a logical part of. Sub-spaces can be used to define
a limited group of attributes which are used in a nest.
type: string
# Start genetlink-c
attr-cnt-name:
description: The explicit name for constant holding the count of attributes (last attr + 1).
type: string
attr-max-name:
description: The explicit name for last member of attribute enum.
type: string
header:
description: For C-compatible languages, header which already defines this attribute set.
type: string
# End genetlink-c
attributes:
description: List of attributes in the space.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
$ref: '#/$defs/name'
type:
description: The netlink attribute type
enum:
doc:
description: Documentation of the attribute.
type: string
value:
description: Value for the enum item representing this attribute in the uAPI.
$ref: '#/$defs/uint'
type-value:
description: Name of the value extracted from the type of a nest-type-value attribute.
type: array
items:
type: string
byte-order:
enum:
multi-attr:
type: boolean
nested-attributes:
description: Name of the space (sub-space) used inside the attribute.
type: string
enum:
description: Name of the enum type used for the attribute.
type: string
enum-as-flags:
description: |
Treat the enum as flags. In most cases enum is either used as flags or as values.
Sometimes, however, both forms are necessary, in which case header contains the enum
form while specific attributes may request to convert the values into a bitfield.
type: boolean
checks:
description: Kernel input validation.
type: object
additionalProperties: False
properties:
flags-mask:
description: Name of the flags constant on which to base mask (unsigned scalar types only).
type: string
min:
description: Min value for an integer attribute.
type: integer
min-len:
description: Min length for a binary attribute.
$ref: '#/$defs/len-or-define'
max-len:
description: Max length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
exact-len:
description: Exact length for a string or a binary attribute.
$ref: '#/$defs/len-or-define'
unterminated-ok:
description: |
For string attributes, do not check whether attribute
contains the terminating null character.
type: boolean
sub-type: *attr-type
display-hint: *display-hint
# Start genetlink-c
name-prefix:
type: string
# End genetlink-c
# Start genetlink-legacy
struct:
description: Name of the struct type used for the attribute.
type: string
# End genetlink-legacy
# Start netlink-raw
sub-message:
description: |
Name of the sub-message definition to use for the attribute.
type: string
selector:
description: |
Name of the attribute to use for dynamic selection of sub-message
format specifier.
type: string
# End netlink-raw
# Make sure name-prefix does not appear in subsets (subsets inherit naming)
dependencies:
name-prefix:
not:
required:
subset-of:
not:
required:
# type property is only required if not in subset definition
if:
properties:
subset-of:
not:
type: string
then:
properties:
attributes:
items:
required:
# Start netlink-raw
sub-messages:
description: Definition of sub message attributes
type: array
items:
type: object
additionalProperties: False
required:
properties:
name:
description: Name of the sub-message definition
type: string
formats:
description: Dynamically selected format specifiers
type: array
items:
type: object
additionalProperties: False
required:
properties:
value:
description: |
Value to match for dynamic selection of sub-message format
specifier.
type: string
fixed-header:
description: |
Name of the struct definition to use as the fixed header
for the sub message.
type: string
attribute-set:
description: |
Name of the attribute space from which to resolve attributes
in the sub message.
type: string
# End netlink-raw
operations:
description: Operations supported by the protocol.
type: object
required:
additionalProperties: False
properties:
enum-model:
description: |
The model of assigning values to the operations.
"unified" is the recommended model where all message types belong
to a single enum.
"directional" has the messages sent to the kernel and from the kernel
enumerated separately.
enum: # Trim
name-prefix:
description: |
Prefix for the C enum name of the command. The name is formed by concatenating
the prefix with the upper case name of the command, with dashes replaced by underscores.
type: string
enum-name:
description: |
Name for the enum type with commands, if empty no name will be used.
type:
async-prefix:
description: Same as name-prefix but used to render notifications and events to separate enum.
type: string
async-enum:
description: |
Name for the enum type with commands, if empty no name will be used.
type:
# Start genetlink-legacy
fixed-header:
description: |
Name of the structure defining the optional fixed-length protocol
header. This header is placed in a message after the netlink and
genetlink headers and before any attributes.
type: string
# End genetlink-legacy
list:
description: List of commands
type: array
items:
type: object
additionalProperties: False
required:
properties:
name:
description: Name of the operation, also defining its C enum value in uAPI.
$ref: '#/$defs/name'
doc:
description: Documentation for the command.
type: string
value:
description: Value for the enum in the uAPI.
$ref: '#/$defs/uint'
attribute-set:
description: |
Attribute space from which attributes directly in the requests and replies
to this command are defined.
type: string
flags:
description: Command flags.
type: array
items:
enum:
dont-validate:
description: Kernel attribute validation flags.
type: array
items:
enum:
# Start genetlink-legacy
fixed-header: *fixed-header
# End genetlink-legacy
do:
description: Main command handler.
type: object
additionalProperties: False
properties:
request:
description: Definition of the request message for a given command.
type: object
additionalProperties: False
properties:
attributes:
description: |
Names of attributes from the attribute-set (not full attribute
definitions, just names).
type: array
items:
type: string
# Start genetlink-legacy
value:
description: |
ID of this message if value for request and response differ,
i.e. requests and responses have different message enums.
$ref: '#/$defs/uint'
# End genetlink-legacy
reply: *subop-attr-list
pre:
description: Hook for a function to run before the main callback (pre_doit or start).
type: string
post:
description: Hook for a function to run after the main callback (post_doit or done).
type: string
dump: *subop-type
notify:
description: Name of the command sharing the reply type with this notification.
type: string
event:
type: object
additionalProperties: False
properties:
attributes:
description: Explicit list of the attributes for the notification.
type: array
items:
type: string
mcgrp:
description: Name of the multicast group generating given notification.
type: string
mcast-groups:
description: List of multicast groups.
type: object
required:
additionalProperties: False
properties:
list:
description: List of groups.
type: array
items:
type: object
required:
additionalProperties: False
properties:
name:
description: |
The name for the group, used to form the define and the value of the define.
type: string
# Start genetlink-c
c-define-name:
description: Override for the name of the define in C uAPI.
type: string
# End genetlink-c
flags: *cmd_flags
# Start netlink-raw
value:
description: Value of the netlink multicast group in the uAPI.
type: integer
# End netlink-raw