# Netlink

---

# Netlink Family Specifications

_Peios Kernel / Internals / Netlink / specs_

> Reference for Netlink Family Specifications.

<a id="rst-netlink-family-specifications"></a>
<a id="rst-specs"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

- [Family binder netlink specification](</kernel/internals/netlink/specs/binder.md>)
- [Family conntrack netlink specification](</kernel/internals/netlink/specs/conntrack.md>)
- [Family dev-energymodel netlink specification](</kernel/internals/netlink/specs/dev-energymodel.md>)
- [Family devlink netlink specification](</kernel/internals/netlink/specs/devlink.md>)
- [Family dpll netlink specification](</kernel/internals/netlink/specs/dpll.md>)
- [Family ethtool netlink specification](</kernel/internals/netlink/specs/ethtool.md>)
- [Family fou netlink specification](</kernel/internals/netlink/specs/fou.md>)
- [Family handshake netlink specification](</kernel/internals/netlink/specs/handshake.md>)
- [Family lockd netlink specification](</kernel/internals/netlink/specs/lockd.md>)
- [Family mptcp_pm netlink specification](</kernel/internals/netlink/specs/mptcp-pm.md>)
- [Family net-shaper netlink specification](</kernel/internals/netlink/specs/net-shaper.md>)
- [Family netdev netlink specification](</kernel/internals/netlink/specs/netdev.md>)
- [Family nfsd netlink specification](</kernel/internals/netlink/specs/nfsd.md>)
- [Family nftables netlink specification](</kernel/internals/netlink/specs/nftables.md>)
- [Family nl80211 netlink specification](</kernel/internals/netlink/specs/nl80211.md>)
- [Family nlctrl netlink specification](</kernel/internals/netlink/specs/nlctrl.md>)
- [Family ovpn netlink specification](</kernel/internals/netlink/specs/ovpn.md>)
- [Family ovs_datapath netlink specification](</kernel/internals/netlink/specs/ovs-datapath.md>)
- [Family ovs_flow netlink specification](</kernel/internals/netlink/specs/ovs-flow.md>)
- [Family ovs_vport netlink specification](</kernel/internals/netlink/specs/ovs-vport.md>)
- [Family psp netlink specification](</kernel/internals/netlink/specs/psp.md>)
- [Family rt-addr netlink specification](</kernel/internals/netlink/specs/rt-addr.md>)
- [Family rt-link netlink specification](</kernel/internals/netlink/specs/rt-link.md>)
- [Family rt-neigh netlink specification](</kernel/internals/netlink/specs/rt-neigh.md>)
- [Family rt-route netlink specification](</kernel/internals/netlink/specs/rt-route.md>)
- [Family rt-rule netlink specification](</kernel/internals/netlink/specs/rt-rule.md>)
- [Family tc netlink specification](</kernel/internals/netlink/specs/tc.md>)
- [Family tcp_metrics netlink specification](</kernel/internals/netlink/specs/tcp-metrics.md>)
- [Family team netlink specification](</kernel/internals/netlink/specs/team.md>)
- [Family wireguard netlink specification](</kernel/internals/netlink/specs/wireguard.md>)

---

# Family binder netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the binder Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-binder-netlink-specification"></a>
<a id="rst-netlink-binder"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Binder interface over generic netlink

<a id="rst-operations"></a>



## Operations

<a id="rst-report"></a>
<a id="rst-binder-operation-report"></a>



### 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**:

  [report](#rst-binder-attribute-set-report)

- **mcgrp**:

  report

- **event**:

  - **attributes**:

    \[`error`, `context`, `from-pid`, `from-tid`, `to-pid`, `to-tid`, `is-reply`, `flags`, `code`, `data-size`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- report


<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-report-1"></a>
<a id="rst-binder-attribute-set-report"></a>



### 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.

<a id="rst-error-u32"></a>



#### error (`u32`)

- **doc**:

  The enum binder\_driver\_return\_protocol returned to the sender.

<a id="rst-context-string"></a>



#### context (`string`)

- **doc**:

  The binder context where the transaction occurred.

<a id="rst-from-pid-u32"></a>



#### from-pid (`u32`)

- **doc**:

  The PID of the sender process.

<a id="rst-from-tid-u32"></a>



#### from-tid (`u32`)

- **doc**:

  The TID of the sender thread.

<a id="rst-to-pid-u32"></a>



#### to-pid (`u32`)

- **doc**:

  The PID of the recipient process. This attribute may not be present if the target could not be determined.

<a id="rst-to-tid-u32"></a>



#### to-tid (`u32`)

- **doc**:

  The TID of the recipient thread. This attribute may not be present if the target could not be determined.

<a id="rst-is-reply-flag"></a>



#### is-reply (`flag`)

- **doc**:

  When present, indicates the failed transaction is a reply.

<a id="rst-flags-u32"></a>



#### flags (`u32`)

- **doc**:

  The bitmask of enum transaction\_flags from the transaction.

<a id="rst-code-u32"></a>



#### code (`u32`)

- **doc**:

  The application-defined code from the transaction.

<a id="rst-data-size-u32"></a>



#### data-size (`u32`)

- **doc**:

  The transaction payload size in bytes.

---

# Family conntrack netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the conntrack Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-conntrack-netlink-specification"></a>
<a id="rst-netlink-conntrack"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netfilter connection tracking subsystem over nfnetlink

<a id="rst-operations"></a>



## Operations

<a id="rst-get"></a>
<a id="rst-conntrack-operation-get"></a>



### get



get / dump entries

- **attribute-set**:

  [conntrack-attrs](#rst-conntrack-attribute-set-conntrack-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-conntrack-definition-nfgenmsg)

- **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`\]

<a id="rst-get-stats"></a>
<a id="rst-conntrack-operation-get-stats"></a>



### get-stats



dump pcpu conntrack stats

- **attribute-set**:

  [conntrack-stats-attrs](#rst-conntrack-attribute-set-conntrack-stats-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-conntrack-definition-nfgenmsg)

- **dump**:

  **request**

  **reply**

  - **attributes**:

    \[`searched`, `found`, `insert`, `insert-failed`, `drop`, `early-drop`, `error`, `search-restart`, `clash-resolve`, `chain-toolong`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-nfgenmsg"></a>
<a id="rst-conntrack-definition-nfgenmsg"></a>



### nfgenmsg

- **type**:

  struct

- **members**:

  - **nfgen-family (`u8`)**

  - **version (`u8`)**

  - **res-id (`u16`)**

<a id="rst-nf-ct-tcp-flags-mask"></a>
<a id="rst-conntrack-definition-nf-ct-tcp-flags-mask"></a>



### nf-ct-tcp-flags-mask

- **type**:

  struct

- **members**:

  - **flags (`u8`)**

  - **mask (`u8`)**

<a id="rst-nf-ct-tcp-flags"></a>
<a id="rst-conntrack-definition-nf-ct-tcp-flags"></a>



### nf-ct-tcp-flags

- **type**:

  flags

- **entries**:

  - `window-scale`


  - `sack-perm`


  - `close-init`


  - `be-liberal`


  - `unacked`


  - `maxack`


  - `challenge-ack`


  - `simultaneous-open`

<a id="rst-nf-ct-tcp-state"></a>
<a id="rst-conntrack-definition-nf-ct-tcp-state"></a>



### 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`

<a id="rst-nf-ct-sctp-state"></a>
<a id="rst-conntrack-definition-nf-ct-sctp-state"></a>



### nf-ct-sctp-state

- **type**:

  enum

- **entries**:

  - `none`


  - `cloned`


  - `cookie-wait`


  - `cookie-echoed`


  - `established`


  - `shutdown-sent`


  - `shutdown-received`


  - `shutdown-ack-sent`


  - `shutdown-heartbeat-sent`

<a id="rst-nf-ct-status"></a>
<a id="rst-conntrack-definition-nf-ct-status"></a>



### 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`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-counter-attrs"></a>
<a id="rst-conntrack-attribute-set-counter-attrs"></a>



### counter-attrs

<a id="rst-packets-u64"></a>



#### packets (`u64`)

- **byte-order**:

  big-endian

<a id="rst-bytes-u64"></a>



#### bytes (`u64`)

- **byte-order**:

  big-endian

<a id="rst-packets-old-u32"></a>



#### packets-old (`u32`)

<a id="rst-bytes-old-u32"></a>



#### bytes-old (`u32`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-tuple-proto-attrs"></a>
<a id="rst-conntrack-attribute-set-tuple-proto-attrs"></a>



### tuple-proto-attrs

<a id="rst-proto-num-u8"></a>



#### proto-num (`u8`)

- **doc**:

  l4 protocol number

<a id="rst-proto-src-port-u16"></a>



#### proto-src-port (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  l4 source port

<a id="rst-proto-dst-port-u16"></a>



#### proto-dst-port (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  l4 source port

<a id="rst-proto-icmp-id-u16"></a>



#### proto-icmp-id (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  l4 icmp id

<a id="rst-proto-icmp-type-u8"></a>



#### proto-icmp-type (`u8`)

<a id="rst-proto-icmp-code-u8"></a>



#### proto-icmp-code (`u8`)

<a id="rst-proto-icmpv6-id-u16"></a>



#### proto-icmpv6-id (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  l4 icmp id

<a id="rst-proto-icmpv6-type-u8"></a>



#### proto-icmpv6-type (`u8`)

<a id="rst-proto-icmpv6-code-u8"></a>



#### proto-icmpv6-code (`u8`)

<a id="rst-tuple-ip-attrs"></a>
<a id="rst-conntrack-attribute-set-tuple-ip-attrs"></a>



### tuple-ip-attrs

<a id="rst-ip-v4-src-u32"></a>



#### ip-v4-src (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

- **doc**:

  ipv4 source address

<a id="rst-ip-v4-dst-u32"></a>



#### ip-v4-dst (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

- **doc**:

  ipv4 destination address

<a id="rst-ip-v6-src-binary"></a>



#### ip-v6-src (`binary`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv6

- **doc**:

  ipv6 source address

<a id="rst-ip-v6-dst-binary"></a>



#### ip-v6-dst (`binary`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv6

- **doc**:

  ipv6 destination address

<a id="rst-tuple-attrs"></a>
<a id="rst-conntrack-attribute-set-tuple-attrs"></a>



### tuple-attrs

<a id="rst-tuple-ip-nest"></a>



#### tuple-ip (`nest`)

- **nested-attributes**:

  [tuple-ip-attrs](#rst-conntrack-attribute-set-tuple-ip-attrs)

- **doc**:

  conntrack l3 information

<a id="rst-tuple-proto-nest"></a>



#### tuple-proto (`nest`)

- **nested-attributes**:

  [tuple-proto-attrs](#rst-conntrack-attribute-set-tuple-proto-attrs)

- **doc**:

  conntrack l4 information

<a id="rst-tuple-zone-u16"></a>



#### tuple-zone (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  conntrack zone id

<a id="rst-protoinfo-tcp-attrs"></a>
<a id="rst-conntrack-attribute-set-protoinfo-tcp-attrs"></a>



### protoinfo-tcp-attrs

<a id="rst-tcp-state-u8"></a>



#### tcp-state (`u8`)

- **enum**:

  [nf-ct-tcp-state](#rst-conntrack-definition-nf-ct-tcp-state)

- **doc**:

  tcp connection state

<a id="rst-tcp-wscale-original-u8"></a>



#### tcp-wscale-original (`u8`)

- **doc**:

  window scaling factor in original direction

<a id="rst-tcp-wscale-reply-u8"></a>



#### tcp-wscale-reply (`u8`)

- **doc**:

  window scaling factor in reply direction

<a id="rst-tcp-flags-original-binary"></a>



#### tcp-flags-original (`binary`)

- **struct**:

  [nf-ct-tcp-flags-mask](#rst-conntrack-definition-nf-ct-tcp-flags-mask)

<a id="rst-tcp-flags-reply-binary"></a>



#### tcp-flags-reply (`binary`)

- **struct**:

  [nf-ct-tcp-flags-mask](#rst-conntrack-definition-nf-ct-tcp-flags-mask)

<a id="rst-protoinfo-dccp-attrs"></a>
<a id="rst-conntrack-attribute-set-protoinfo-dccp-attrs"></a>



### protoinfo-dccp-attrs

<a id="rst-dccp-state-u8"></a>



#### dccp-state (`u8`)

- **doc**:

  dccp connection state

<a id="rst-dccp-role-u8"></a>



#### dccp-role (`u8`)

<a id="rst-dccp-handshake-seq-u64"></a>



#### dccp-handshake-seq (`u64`)

- **byte-order**:

  big-endian

<a id="rst-dccp-pad-pad"></a>



#### dccp-pad (`pad`)

<a id="rst-protoinfo-sctp-attrs"></a>
<a id="rst-conntrack-attribute-set-protoinfo-sctp-attrs"></a>



### protoinfo-sctp-attrs

<a id="rst-sctp-state-u8"></a>



#### sctp-state (`u8`)

- **doc**:

  sctp connection state

- **enum**:

  [nf-ct-sctp-state](#rst-conntrack-definition-nf-ct-sctp-state)

<a id="rst-vtag-original-u32"></a>



#### vtag-original (`u32`)

- **byte-order**:

  big-endian

<a id="rst-vtag-reply-u32"></a>



#### vtag-reply (`u32`)

- **byte-order**:

  big-endian

<a id="rst-protoinfo-attrs"></a>
<a id="rst-conntrack-attribute-set-protoinfo-attrs"></a>



### protoinfo-attrs

<a id="rst-protoinfo-tcp-nest"></a>



#### protoinfo-tcp (`nest`)

- **nested-attributes**:

  [protoinfo-tcp-attrs](#rst-conntrack-attribute-set-protoinfo-tcp-attrs)

- **doc**:

  conntrack tcp state information

<a id="rst-protoinfo-dccp-nest"></a>



#### protoinfo-dccp (`nest`)

- **nested-attributes**:

  [protoinfo-dccp-attrs](#rst-conntrack-attribute-set-protoinfo-dccp-attrs)

- **doc**:

  conntrack dccp state information

<a id="rst-protoinfo-sctp-nest"></a>



#### protoinfo-sctp (`nest`)

- **nested-attributes**:

  [protoinfo-sctp-attrs](#rst-conntrack-attribute-set-protoinfo-sctp-attrs)

- **doc**:

  conntrack sctp state information

<a id="rst-help-attrs"></a>
<a id="rst-conntrack-attribute-set-help-attrs"></a>



### help-attrs

<a id="rst-help-name-string"></a>



#### help-name (`string`)

- **doc**:

  helper name

<a id="rst-nat-proto-attrs"></a>
<a id="rst-conntrack-attribute-set-nat-proto-attrs"></a>



### nat-proto-attrs

<a id="rst-nat-port-min-u16"></a>



#### nat-port-min (`u16`)

- **byte-order**:

  big-endian

<a id="rst-nat-port-max-u16"></a>



#### nat-port-max (`u16`)

- **byte-order**:

  big-endian

<a id="rst-nat-attrs"></a>
<a id="rst-conntrack-attribute-set-nat-attrs"></a>



### nat-attrs

<a id="rst-nat-v4-minip-u32"></a>



#### nat-v4-minip (`u32`)

- **byte-order**:

  big-endian

<a id="rst-nat-v4-maxip-u32"></a>



#### nat-v4-maxip (`u32`)

- **byte-order**:

  big-endian

<a id="rst-nat-v6-minip-binary"></a>



#### nat-v6-minip (`binary`)

<a id="rst-nat-v6-maxip-binary"></a>



#### nat-v6-maxip (`binary`)

<a id="rst-nat-proto-nest"></a>



#### nat-proto (`nest`)

- **nested-attributes**:

  [nat-proto-attrs](#rst-conntrack-attribute-set-nat-proto-attrs)

<a id="rst-seqadj-attrs"></a>
<a id="rst-conntrack-attribute-set-seqadj-attrs"></a>



### seqadj-attrs

<a id="rst-correction-pos-u32"></a>



#### correction-pos (`u32`)

- **byte-order**:

  big-endian

<a id="rst-offset-before-u32"></a>



#### offset-before (`u32`)

- **byte-order**:

  big-endian

<a id="rst-offset-after-u32"></a>



#### offset-after (`u32`)

- **byte-order**:

  big-endian

<a id="rst-secctx-attrs"></a>
<a id="rst-conntrack-attribute-set-secctx-attrs"></a>



### secctx-attrs

<a id="rst-secctx-name-string"></a>



#### secctx-name (`string`)

<a id="rst-synproxy-attrs"></a>
<a id="rst-conntrack-attribute-set-synproxy-attrs"></a>



### synproxy-attrs

<a id="rst-isn-u32"></a>



#### isn (`u32`)

- **byte-order**:

  big-endian

<a id="rst-its-u32"></a>



#### its (`u32`)

- **byte-order**:

  big-endian

<a id="rst-tsoff-u32"></a>



#### tsoff (`u32`)

- **byte-order**:

  big-endian

<a id="rst-conntrack-attrs"></a>
<a id="rst-conntrack-attribute-set-conntrack-attrs"></a>



### conntrack-attrs

<a id="rst-tuple-orig-nest"></a>



#### tuple-orig (`nest`)

- **nested-attributes**:

  [tuple-attrs](#rst-conntrack-attribute-set-tuple-attrs)

- **doc**:

  conntrack l3+l4 protocol information, original direction

<a id="rst-tuple-reply-nest"></a>



#### tuple-reply (`nest`)

- **nested-attributes**:

  [tuple-attrs](#rst-conntrack-attribute-set-tuple-attrs)

- **doc**:

  conntrack l3+l4 protocol information, reply direction

<a id="rst-status-u32"></a>



#### status (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [nf-ct-status](#rst-conntrack-definition-nf-ct-status)

- **enum-as-flags**:

  True

- **doc**:

  conntrack flag bits

<a id="rst-protoinfo-nest"></a>



#### protoinfo (`nest`)

- **nested-attributes**:

  [protoinfo-attrs](#rst-conntrack-attribute-set-protoinfo-attrs)

<a id="rst-help-nest"></a>



#### help (`nest`)

- **nested-attributes**:

  [help-attrs](#rst-conntrack-attribute-set-help-attrs)

<a id="rst-nat-src-nest"></a>



#### nat-src (`nest`)

- **nested-attributes**:

  [nat-attrs](#rst-conntrack-attribute-set-nat-attrs)

<a id="rst-timeout-u32"></a>



#### timeout (`u32`)

- **byte-order**:

  big-endian

<a id="rst-mark-u32"></a>



#### mark (`u32`)

- **byte-order**:

  big-endian

<a id="rst-counters-orig-nest"></a>



#### counters-orig (`nest`)

- **nested-attributes**:

  [counter-attrs](#rst-conntrack-attribute-set-counter-attrs)

<a id="rst-counters-reply-nest"></a>



#### counters-reply (`nest`)

- **nested-attributes**:

  [counter-attrs](#rst-conntrack-attribute-set-counter-attrs)

<a id="rst-use-u32"></a>



#### use (`u32`)

- **byte-order**:

  big-endian

<a id="rst-id-u32"></a>



#### id (`u32`)

- **byte-order**:

  big-endian

<a id="rst-nat-dst-nest"></a>



#### nat-dst (`nest`)

- **nested-attributes**:

  [nat-attrs](#rst-conntrack-attribute-set-nat-attrs)

<a id="rst-tuple-master-nest"></a>



#### tuple-master (`nest`)

- **nested-attributes**:

  [tuple-attrs](#rst-conntrack-attribute-set-tuple-attrs)

<a id="rst-seq-adj-orig-nest"></a>



#### seq-adj-orig (`nest`)

- **nested-attributes**:

  [seqadj-attrs](#rst-conntrack-attribute-set-seqadj-attrs)

<a id="rst-seq-adj-reply-nest"></a>



#### seq-adj-reply (`nest`)

- **nested-attributes**:

  [seqadj-attrs](#rst-conntrack-attribute-set-seqadj-attrs)

<a id="rst-secmark-binary"></a>



#### secmark (`binary`)

- **doc**:

  obsolete

<a id="rst-zone-u16"></a>



#### zone (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  conntrack zone id

<a id="rst-secctx-nest"></a>



#### secctx (`nest`)

- **nested-attributes**:

  [secctx-attrs](#rst-conntrack-attribute-set-secctx-attrs)

<a id="rst-timestamp-u64"></a>



#### timestamp (`u64`)

- **byte-order**:

  big-endian

<a id="rst-mark-mask-u32"></a>



#### mark-mask (`u32`)

- **byte-order**:

  big-endian

<a id="rst-labels-binary"></a>



#### labels (`binary`)

<a id="rst-labels-mask-binary"></a>



#### labels-mask (`binary`)

<a id="rst-synproxy-nest"></a>



#### synproxy (`nest`)

- **nested-attributes**:

  [synproxy-attrs](#rst-conntrack-attribute-set-synproxy-attrs)

<a id="rst-filter-nest"></a>



#### filter (`nest`)

- **nested-attributes**:

  [tuple-attrs](#rst-conntrack-attribute-set-tuple-attrs)

<a id="rst-status-mask-u32"></a>



#### status-mask (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [nf-ct-status](#rst-conntrack-definition-nf-ct-status)

- **enum-as-flags**:

  True

- **doc**:

  conntrack flag bits to change

<a id="rst-timestamp-event-u64"></a>



#### timestamp-event (`u64`)

- **byte-order**:

  big-endian

<a id="rst-conntrack-stats-attrs"></a>
<a id="rst-conntrack-attribute-set-conntrack-stats-attrs"></a>



### conntrack-stats-attrs

<a id="rst-searched-u32"></a>



#### searched (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  obsolete

<a id="rst-found-u32"></a>



#### found (`u32`)

- **byte-order**:

  big-endian

<a id="rst-new-u32"></a>



#### new (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  obsolete

<a id="rst-invalid-u32"></a>



#### invalid (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  obsolete

<a id="rst-ignore-u32"></a>



#### ignore (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  obsolete

<a id="rst-delete-u32"></a>



#### delete (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  obsolete

<a id="rst-delete-list-u32"></a>



#### delete-list (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  obsolete

<a id="rst-insert-u32"></a>



#### insert (`u32`)

- **byte-order**:

  big-endian

<a id="rst-insert-failed-u32"></a>



#### insert-failed (`u32`)

- **byte-order**:

  big-endian

<a id="rst-drop-u32"></a>



#### drop (`u32`)

- **byte-order**:

  big-endian

<a id="rst-early-drop-u32"></a>



#### early-drop (`u32`)

- **byte-order**:

  big-endian

<a id="rst-error-u32"></a>



#### error (`u32`)

- **byte-order**:

  big-endian

<a id="rst-search-restart-u32"></a>



#### search-restart (`u32`)

- **byte-order**:

  big-endian

<a id="rst-clash-resolve-u32"></a>



#### clash-resolve (`u32`)

- **byte-order**:

  big-endian

<a id="rst-chain-toolong-u32"></a>



#### chain-toolong (`u32`)

- **byte-order**:

  big-endian

---

# Family dev-energymodel netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the dev-energymodel Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-dev-energymodel-netlink-specification"></a>
<a id="rst-netlink-dev-energymodel"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Energy model netlink interface to notify its changes.

<a id="rst-operations"></a>



## Operations

<a id="rst-get-perf-domains"></a>
<a id="rst-dev-energymodel-operation-get-perf-domains"></a>



### get-perf-domains



Get the list of information for all performance domains.

- **attribute-set**:

  [perf-domain](#rst-dev-energymodel-attribute-set-perf-domain)

- **do**:

  **request**

  - **attributes**:

    \[`perf-domain-id`\]

  **reply**

  - **attributes**:

    \[`pad`, `perf-domain-id`, `flags`, `cpus`\]

- **dump**:

  **reply**

  - **attributes**:

    \[`pad`, `perf-domain-id`, `flags`, `cpus`\]

<a id="rst-get-perf-table"></a>
<a id="rst-dev-energymodel-operation-get-perf-table"></a>



### get-perf-table



Get the energy model table of a performance domain.

- **attribute-set**:

  [perf-table](#rst-dev-energymodel-attribute-set-perf-table)

- **do**:

  **request**

  - **attributes**:

    \[`perf-domain-id`\]

  **reply**

  - **attributes**:

    \[`perf-domain-id`, `perf-state`\]

<a id="rst-perf-domain-created"></a>
<a id="rst-dev-energymodel-operation-perf-domain-created"></a>



### perf-domain-created



A performance domain is created.

- **notify**:

  get-perf-table

- **mcgrp**:

  event

<a id="rst-perf-domain-updated"></a>
<a id="rst-dev-energymodel-operation-perf-domain-updated"></a>



### perf-domain-updated



A performance domain is updated.

- **notify**:

  get-perf-table

- **mcgrp**:

  event

<a id="rst-perf-domain-deleted"></a>
<a id="rst-dev-energymodel-operation-perf-domain-deleted"></a>



### perf-domain-deleted



A performance domain is deleted.

- **attribute-set**:

  [perf-table](#rst-dev-energymodel-attribute-set-perf-table)

- **mcgrp**:

  event

- **event**:

  - **attributes**:

    \[`perf-domain-id`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- event


<a id="rst-definitions"></a>



## Definitions

<a id="rst-perf-state-flags"></a>
<a id="rst-dev-energymodel-definition-perf-state-flags"></a>



### 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.

<a id="rst-perf-domain-flags"></a>
<a id="rst-dev-energymodel-definition-perf-domain-flags"></a>



### 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.

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-perf-domain"></a>
<a id="rst-dev-energymodel-attribute-set-perf-domain"></a>



### perf-domain



Information on a single performance domains.

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-perf-domain-id-u32"></a>



#### perf-domain-id (`u32`)

- **doc**:

  A unique ID number for each performance domain.

<a id="rst-flags-u64"></a>



#### flags (`u64`)

- **doc**:

  Bitmask of performance domain flags.

- **enum**:

  [perf-domain-flags](#rst-dev-energymodel-definition-perf-domain-flags)

<a id="rst-cpus-u64"></a>



#### cpus (`u64`)

- **multi-attr**:

  True

- **doc**:

  CPUs that belong to this performance domain.

<a id="rst-perf-table"></a>
<a id="rst-dev-energymodel-attribute-set-perf-table"></a>



### perf-table



Performance states table.

<a id="rst-perf-domain-id-u32-1"></a>



#### perf-domain-id (`u32`)

- **doc**:

  A unique ID number for each performance domain.

<a id="rst-perf-state-nest"></a>



#### perf-state (`nest`)

- **nested-attributes**:

  [perf-state](#rst-dev-energymodel-attribute-set-perf-state)

- **multi-attr**:

  True

<a id="rst-perf-state"></a>
<a id="rst-dev-energymodel-attribute-set-perf-state"></a>



### perf-state



Performance state of a performance domain.

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-performance-u64"></a>



#### performance (`u64`)

- **doc**:

  CPU performance (capacity) at a given frequency.

<a id="rst-frequency-u64"></a>



#### frequency (`u64`)

- **doc**:

  The frequency in KHz, for consistency with CPUFreq.

<a id="rst-power-u64"></a>



#### 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.

<a id="rst-cost-u64"></a>



#### cost (`u64`)

- **doc**:

  The cost coefficient associated with this level, used during energy calculation. Equal to: power \* max\_frequency / frequency.

<a id="rst-flags-u64-1"></a>



#### flags (`u64`)

- **doc**:

  Bitmask of performance state flags.

- **enum**:

  [perf-state-flags](#rst-dev-energymodel-definition-perf-state-flags)

---

# Family devlink netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the devlink Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-devlink-netlink-specification"></a>
<a id="rst-netlink-devlink"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Partial family for Devlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-get"></a>
<a id="rst-devlink-operation-get"></a>



### get



Get devlink instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-get"></a>
<a id="rst-devlink-operation-port-get"></a>



### port-get



Get devlink port instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-set"></a>
<a id="rst-devlink-operation-port-set"></a>



### port-set



Set devlink port instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-new"></a>
<a id="rst-devlink-operation-port-new"></a>



### port-new



Create devlink port instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-del"></a>
<a id="rst-devlink-operation-port-del"></a>



### port-del



Delete devlink port instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-split"></a>
<a id="rst-devlink-operation-port-split"></a>



### port-split



Split devlink port instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-unsplit"></a>
<a id="rst-devlink-operation-port-unsplit"></a>



### port-unsplit



Unplit devlink port instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-get"></a>
<a id="rst-devlink-operation-sb-get"></a>



### sb-get



Get shared buffer instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-pool-get"></a>
<a id="rst-devlink-operation-sb-pool-get"></a>



### sb-pool-get



Get shared buffer pool instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-pool-set"></a>
<a id="rst-devlink-operation-sb-pool-set"></a>



### sb-pool-set



Set shared buffer pool instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-port-pool-get"></a>
<a id="rst-devlink-operation-sb-port-pool-get"></a>



### sb-port-pool-get



Get shared buffer port-pool combinations and threshold.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-port-pool-set"></a>
<a id="rst-devlink-operation-sb-port-pool-set"></a>



### sb-port-pool-set



Set shared buffer port-pool combinations and threshold.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-tc-pool-bind-get"></a>
<a id="rst-devlink-operation-sb-tc-pool-bind-get"></a>



### sb-tc-pool-bind-get



Get shared buffer port-TC to pool bindings and threshold.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-tc-pool-bind-set"></a>
<a id="rst-devlink-operation-sb-tc-pool-bind-set"></a>



### sb-tc-pool-bind-set



Set shared buffer port-TC to pool bindings and threshold.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-occ-snapshot"></a>
<a id="rst-devlink-operation-sb-occ-snapshot"></a>



### sb-occ-snapshot



Take occupancy snapshot of shared buffer.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-sb-occ-max-clear"></a>
<a id="rst-devlink-operation-sb-occ-max-clear"></a>



### sb-occ-max-clear



Clear occupancy watermarks of shared buffer.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-eswitch-get"></a>
<a id="rst-devlink-operation-eswitch-get"></a>



### eswitch-get



Get eswitch attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-eswitch-set"></a>
<a id="rst-devlink-operation-eswitch-set"></a>



### eswitch-set



Set eswitch attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-dpipe-table-get"></a>
<a id="rst-devlink-operation-dpipe-table-get"></a>



### dpipe-table-get



Get dpipe table attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-dpipe-entries-get"></a>
<a id="rst-devlink-operation-dpipe-entries-get"></a>



### dpipe-entries-get



Get dpipe entries attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-dpipe-headers-get"></a>
<a id="rst-devlink-operation-dpipe-headers-get"></a>



### dpipe-headers-get



Get dpipe headers attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-dpipe-table-counters-set"></a>
<a id="rst-devlink-operation-dpipe-table-counters-set"></a>



### dpipe-table-counters-set



Set dpipe counter attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-resource-set"></a>
<a id="rst-devlink-operation-resource-set"></a>



### resource-set



Set resource attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-resource-dump"></a>
<a id="rst-devlink-operation-resource-dump"></a>



### resource-dump



Get resource attributes.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-reload"></a>
<a id="rst-devlink-operation-reload"></a>



### reload



Reload devlink.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-param-get"></a>
<a id="rst-devlink-operation-param-get"></a>



### param-get



Get param instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-param-set"></a>
<a id="rst-devlink-operation-param-set"></a>



### param-set



Set param instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-region-get"></a>
<a id="rst-devlink-operation-region-get"></a>



### region-get



Get region instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-region-new"></a>
<a id="rst-devlink-operation-region-new"></a>



### region-new



Create region snapshot.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-region-del"></a>
<a id="rst-devlink-operation-region-del"></a>



### region-del



Delete region snapshot.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-region-read"></a>
<a id="rst-devlink-operation-region-read"></a>



### region-read



Read region data.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-param-get"></a>
<a id="rst-devlink-operation-port-param-get"></a>



### port-param-get



Get port param instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-port-param-set"></a>
<a id="rst-devlink-operation-port-param-set"></a>



### port-param-set



Set port param instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-info-get"></a>
<a id="rst-devlink-operation-info-get"></a>



### info-get



Get device information, like driver name, hardware and firmware versions
etc.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-health-reporter-get"></a>
<a id="rst-devlink-operation-health-reporter-get"></a>



### health-reporter-get



Get health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-health-reporter-set"></a>
<a id="rst-devlink-operation-health-reporter-set"></a>



### health-reporter-set



Set health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-health-reporter-recover"></a>
<a id="rst-devlink-operation-health-reporter-recover"></a>



### health-reporter-recover



Recover health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-health-reporter-diagnose"></a>
<a id="rst-devlink-operation-health-reporter-diagnose"></a>



### health-reporter-diagnose



Diagnose health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-health-reporter-dump-get"></a>
<a id="rst-devlink-operation-health-reporter-dump-get"></a>



### health-reporter-dump-get



Dump health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **dont-validate**:

  \['dump-strict'\]

- **flags**:

  \[`admin-perm`\]

- **dump**:

  **request**

  - **attributes**:

    \[`bus-name`, `dev-name`, `port-index`, `health-reporter-name`\]

  **reply**

  - **attributes**:

    \[`fmsg`\]

<a id="rst-health-reporter-dump-clear"></a>
<a id="rst-devlink-operation-health-reporter-dump-clear"></a>



### health-reporter-dump-clear



Clear dump of health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-flash-update"></a>
<a id="rst-devlink-operation-flash-update"></a>



### flash-update



Flash update devlink instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-trap-get"></a>
<a id="rst-devlink-operation-trap-get"></a>



### trap-get



Get trap instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-trap-set"></a>
<a id="rst-devlink-operation-trap-set"></a>



### trap-set



Set trap instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-trap-group-get"></a>
<a id="rst-devlink-operation-trap-group-get"></a>



### trap-group-get



Get trap group instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-trap-group-set"></a>
<a id="rst-devlink-operation-trap-group-set"></a>



### trap-group-set



Set trap group instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-trap-policer-get"></a>
<a id="rst-devlink-operation-trap-policer-get"></a>



### trap-policer-get



Get trap policer instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-trap-policer-set"></a>
<a id="rst-devlink-operation-trap-policer-set"></a>



### trap-policer-set



Get trap policer instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-health-reporter-test"></a>
<a id="rst-devlink-operation-health-reporter-test"></a>



### health-reporter-test



Test health reporter instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-rate-get"></a>
<a id="rst-devlink-operation-rate-get"></a>



### rate-get



Get rate instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-rate-set"></a>
<a id="rst-devlink-operation-rate-set"></a>



### rate-set



Set rate instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-rate-new"></a>
<a id="rst-devlink-operation-rate-new"></a>



### rate-new



Create rate instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-rate-del"></a>
<a id="rst-devlink-operation-rate-del"></a>



### rate-del



Delete rate instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-linecard-get"></a>
<a id="rst-devlink-operation-linecard-get"></a>



### linecard-get



Get line card instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-linecard-set"></a>
<a id="rst-devlink-operation-linecard-set"></a>



### linecard-set



Set line card instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-selftests-get"></a>
<a id="rst-devlink-operation-selftests-get"></a>



### selftests-get



Get device selftest instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **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`\]

<a id="rst-selftests-run"></a>
<a id="rst-devlink-operation-selftests-run"></a>



### selftests-run



Run device selftest instances.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  devlink-nl-pre-doit

  **post**



  devlink-nl-post-doit

  **request**

  - **attributes**:

    \[`bus-name`, `dev-name`, `selftests`\]

<a id="rst-notify-filter-set"></a>
<a id="rst-devlink-operation-notify-filter-set"></a>



### notify-filter-set



Set notification messages socket filter.

- **attribute-set**:

  [devlink](#rst-devlink-attribute-set-devlink)

- **do**:

  **request**

  - **attributes**:

    \[`bus-name`, `dev-name`, `port-index`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-sb-pool-type"></a>
<a id="rst-devlink-definition-sb-pool-type"></a>



### sb-pool-type

- **type**:

  enum

- **entries**:

  - **ingress**

  - **egress**

<a id="rst-port-type"></a>
<a id="rst-devlink-definition-port-type"></a>



### port-type

- **type**:

  enum

- **entries**:

  - **notset**

  - **auto**

  - **eth**

  - **ib**

<a id="rst-port-flavour"></a>
<a id="rst-devlink-definition-port-flavour"></a>



### port-flavour

- **type**:

  enum

- **entries**:

  - **physical**

  - **cpu**

  - **dsa**

  - **pci-pf**

  - **pci-vf**

  - **virtual**

  - **unused**

  - **pci-sf**

<a id="rst-port-fn-state"></a>
<a id="rst-devlink-definition-port-fn-state"></a>



### port-fn-state

- **type**:

  enum

- **entries**:

  - **inactive**

  - **active**

<a id="rst-port-fn-opstate"></a>
<a id="rst-devlink-definition-port-fn-opstate"></a>



### port-fn-opstate

- **type**:

  enum

- **entries**:

  - **detached**

  - **attached**

<a id="rst-port-fn-attr-cap"></a>
<a id="rst-devlink-definition-port-fn-attr-cap"></a>



### port-fn-attr-cap

- **type**:

  enum

- **entries**:

  - **roce-bit**

  - **migratable-bit**

  - **ipsec-crypto-bit**

  - **ipsec-packet-bit**

<a id="rst-rate-type"></a>
<a id="rst-devlink-definition-rate-type"></a>



### rate-type

- **type**:

  enum

- **entries**:

  - **leaf**

  - **node**

<a id="rst-sb-threshold-type"></a>
<a id="rst-devlink-definition-sb-threshold-type"></a>



### sb-threshold-type

- **type**:

  enum

- **entries**:

  - **static**

  - **dynamic**

<a id="rst-eswitch-mode"></a>
<a id="rst-devlink-definition-eswitch-mode"></a>



### eswitch-mode

- **type**:

  enum

- **entries**:

  - **legacy**

  - **switchdev**

  - **switchdev-inactive**

<a id="rst-eswitch-inline-mode"></a>
<a id="rst-devlink-definition-eswitch-inline-mode"></a>



### eswitch-inline-mode

- **type**:

  enum

- **entries**:

  - **none**

  - **link**

  - **network**

  - **transport**

<a id="rst-eswitch-encap-mode"></a>
<a id="rst-devlink-definition-eswitch-encap-mode"></a>



### eswitch-encap-mode

- **type**:

  enum

- **entries**:

  - **none**

  - **basic**

<a id="rst-dpipe-header-id"></a>
<a id="rst-devlink-definition-dpipe-header-id"></a>



### dpipe-header-id

- **type**:

  enum

- **entries**:

  - **ethernet**

  - **ipv4**

  - **ipv6**

<a id="rst-dpipe-match-type"></a>
<a id="rst-devlink-definition-dpipe-match-type"></a>



### dpipe-match-type

- **type**:

  enum

- **entries**:

  - **field-exact**

<a id="rst-dpipe-action-type"></a>
<a id="rst-devlink-definition-dpipe-action-type"></a>



### dpipe-action-type

- **type**:

  enum

- **entries**:

  - **field-modify**

<a id="rst-dpipe-field-mapping-type"></a>
<a id="rst-devlink-definition-dpipe-field-mapping-type"></a>



### dpipe-field-mapping-type

- **type**:

  enum

- **entries**:

  - **none**

  - **ifindex**

<a id="rst-resource-unit"></a>
<a id="rst-devlink-definition-resource-unit"></a>



### resource-unit

- **type**:

  enum

- **entries**:

  - **entry**

<a id="rst-reload-action"></a>
<a id="rst-devlink-definition-reload-action"></a>



### reload-action

- **type**:

  enum

- **entries**:

  - **driver-reinit**

  - **fw-activate**

<a id="rst-param-cmode"></a>
<a id="rst-devlink-definition-param-cmode"></a>



### param-cmode

- **type**:

  enum

- **entries**:

  - **runtime**

  - **driverinit**

  - **permanent**

<a id="rst-flash-overwrite"></a>
<a id="rst-devlink-definition-flash-overwrite"></a>



### flash-overwrite

- **type**:

  enum

- **entries**:

  - **settings-bit**

  - **identifiers-bit**

<a id="rst-trap-action"></a>
<a id="rst-devlink-definition-trap-action"></a>



### trap-action

- **type**:

  enum

- **entries**:

  - **drop**

  - **trap**

  - **mirror**

<a id="rst-trap-type"></a>
<a id="rst-devlink-definition-trap-type"></a>



### trap-type

- **type**:

  enum

- **entries**:

  - **drop**

  - **exception**

  - **control**

<a id="rst-var-attr-type"></a>
<a id="rst-devlink-definition-var-attr-type"></a>



### var-attr-type

- **type**:

  enum

- **entries**:

  - **u8**

  - **u16**

  - **u32**

  - **u64**

  - **string**

  - **flag**

  - **nul-string**

  - **binary**

<a id="rst-rate-tc-index-max"></a>
<a id="rst-devlink-definition-rate-tc-index-max"></a>



### rate-tc-index-max

- **type**:

  const

- **value**:

  7

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-devlink"></a>
<a id="rst-devlink-attribute-set-devlink"></a>



### devlink

<a id="rst-bus-name-string"></a>



#### bus-name (`string`)

- **value**:

  1

<a id="rst-dev-name-string"></a>



#### dev-name (`string`)

<a id="rst-port-index-u32"></a>



#### port-index (`u32`)

<a id="rst-port-type-u16"></a>



#### port-type (`u16`)

- **enum**:

  [port-type](#rst-devlink-definition-port-type)

<a id="rst-port-desired-type-u16"></a>



#### port-desired-type (`u16`)

<a id="rst-port-netdev-ifindex-u32"></a>



#### port-netdev-ifindex (`u32`)

<a id="rst-port-netdev-name-string"></a>



#### port-netdev-name (`string`)

<a id="rst-port-ibdev-name-string"></a>



#### port-ibdev-name (`string`)

<a id="rst-port-split-count-u32"></a>



#### port-split-count (`u32`)

<a id="rst-port-split-group-u32"></a>



#### port-split-group (`u32`)

<a id="rst-sb-index-u32"></a>



#### sb-index (`u32`)

<a id="rst-sb-size-u32"></a>



#### sb-size (`u32`)

<a id="rst-sb-ingress-pool-count-u16"></a>



#### sb-ingress-pool-count (`u16`)

<a id="rst-sb-egress-pool-count-u16"></a>



#### sb-egress-pool-count (`u16`)

<a id="rst-sb-ingress-tc-count-u16"></a>



#### sb-ingress-tc-count (`u16`)

<a id="rst-sb-egress-tc-count-u16"></a>



#### sb-egress-tc-count (`u16`)

<a id="rst-sb-pool-index-u16"></a>



#### sb-pool-index (`u16`)

<a id="rst-sb-pool-type-u8"></a>



#### sb-pool-type (`u8`)

- **enum**:

  [sb-pool-type](#rst-devlink-definition-sb-pool-type)

<a id="rst-sb-pool-size-u32"></a>



#### sb-pool-size (`u32`)

<a id="rst-sb-pool-threshold-type-u8"></a>



#### sb-pool-threshold-type (`u8`)

- **enum**:

  [sb-threshold-type](#rst-devlink-definition-sb-threshold-type)

<a id="rst-sb-threshold-u32"></a>



#### sb-threshold (`u32`)

<a id="rst-sb-tc-index-u16"></a>



#### sb-tc-index (`u16`)

<a id="rst-sb-occ-cur-u32"></a>



#### sb-occ-cur (`u32`)

<a id="rst-sb-occ-max-u32"></a>



#### sb-occ-max (`u32`)

<a id="rst-eswitch-mode-u16"></a>



#### eswitch-mode (`u16`)

- **enum**:

  [eswitch-mode](#rst-devlink-definition-eswitch-mode)

<a id="rst-eswitch-inline-mode-u8"></a>



#### eswitch-inline-mode (`u8`)

- **enum**:

  [eswitch-inline-mode](#rst-devlink-definition-eswitch-inline-mode)

<a id="rst-dpipe-tables-nest"></a>



#### dpipe-tables (`nest`)

- **nested-attributes**:

  [dl-dpipe-tables](#rst-devlink-attribute-set-dl-dpipe-tables)

<a id="rst-dpipe-table-nest"></a>



#### dpipe-table (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-table](#rst-devlink-attribute-set-dl-dpipe-table)

<a id="rst-dpipe-table-name-string"></a>



#### dpipe-table-name (`string`)

<a id="rst-dpipe-table-size-u64"></a>



#### dpipe-table-size (`u64`)

<a id="rst-dpipe-table-matches-nest"></a>



#### dpipe-table-matches (`nest`)

- **nested-attributes**:

  [dl-dpipe-table-matches](#rst-devlink-attribute-set-dl-dpipe-table-matches)

<a id="rst-dpipe-table-actions-nest"></a>



#### dpipe-table-actions (`nest`)

- **nested-attributes**:

  [dl-dpipe-table-actions](#rst-devlink-attribute-set-dl-dpipe-table-actions)

<a id="rst-dpipe-table-counters-enabled-u8"></a>



#### dpipe-table-counters-enabled (`u8`)

<a id="rst-dpipe-entries-nest"></a>



#### dpipe-entries (`nest`)

- **nested-attributes**:

  [dl-dpipe-entries](#rst-devlink-attribute-set-dl-dpipe-entries)

<a id="rst-dpipe-entry-nest"></a>



#### dpipe-entry (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-entry](#rst-devlink-attribute-set-dl-dpipe-entry)

<a id="rst-dpipe-entry-index-u64"></a>



#### dpipe-entry-index (`u64`)

<a id="rst-dpipe-entry-match-values-nest"></a>



#### dpipe-entry-match-values (`nest`)

- **nested-attributes**:

  [dl-dpipe-entry-match-values](#rst-devlink-attribute-set-dl-dpipe-entry-match-values)

<a id="rst-dpipe-entry-action-values-nest"></a>



#### dpipe-entry-action-values (`nest`)

- **nested-attributes**:

  [dl-dpipe-entry-action-values](#rst-devlink-attribute-set-dl-dpipe-entry-action-values)

<a id="rst-dpipe-entry-counter-u64"></a>



#### dpipe-entry-counter (`u64`)

<a id="rst-dpipe-match-nest"></a>



#### dpipe-match (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-match](#rst-devlink-attribute-set-dl-dpipe-match)

<a id="rst-dpipe-match-value-nest"></a>



#### dpipe-match-value (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-match-value](#rst-devlink-attribute-set-dl-dpipe-match-value)

<a id="rst-dpipe-match-type-u32"></a>



#### dpipe-match-type (`u32`)

- **enum**:

  [dpipe-match-type](#rst-devlink-definition-dpipe-match-type)

<a id="rst-dpipe-action-nest"></a>



#### dpipe-action (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-action](#rst-devlink-attribute-set-dl-dpipe-action)

<a id="rst-dpipe-action-value-nest"></a>



#### dpipe-action-value (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-action-value](#rst-devlink-attribute-set-dl-dpipe-action-value)

<a id="rst-dpipe-action-type-u32"></a>



#### dpipe-action-type (`u32`)

- **enum**:

  [dpipe-action-type](#rst-devlink-definition-dpipe-action-type)

<a id="rst-dpipe-value-binary"></a>



#### dpipe-value (`binary`)

<a id="rst-dpipe-value-mask-binary"></a>



#### dpipe-value-mask (`binary`)

<a id="rst-dpipe-value-mapping-u32"></a>



#### dpipe-value-mapping (`u32`)

<a id="rst-dpipe-headers-nest"></a>



#### dpipe-headers (`nest`)

- **nested-attributes**:

  [dl-dpipe-headers](#rst-devlink-attribute-set-dl-dpipe-headers)

<a id="rst-dpipe-header-nest"></a>



#### dpipe-header (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-header](#rst-devlink-attribute-set-dl-dpipe-header)

<a id="rst-dpipe-header-name-string"></a>



#### dpipe-header-name (`string`)

<a id="rst-dpipe-header-id-u32"></a>



#### dpipe-header-id (`u32`)

- **enum**:

  [dpipe-header-id](#rst-devlink-definition-dpipe-header-id)

<a id="rst-dpipe-header-fields-nest"></a>



#### dpipe-header-fields (`nest`)

- **nested-attributes**:

  [dl-dpipe-header-fields](#rst-devlink-attribute-set-dl-dpipe-header-fields)

<a id="rst-dpipe-header-global-u8"></a>



#### dpipe-header-global (`u8`)

<a id="rst-dpipe-header-index-u32"></a>



#### dpipe-header-index (`u32`)

<a id="rst-dpipe-field-nest"></a>



#### dpipe-field (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-dpipe-field](#rst-devlink-attribute-set-dl-dpipe-field)

<a id="rst-dpipe-field-name-string"></a>



#### dpipe-field-name (`string`)

<a id="rst-dpipe-field-id-u32"></a>



#### dpipe-field-id (`u32`)

<a id="rst-dpipe-field-bitwidth-u32"></a>



#### dpipe-field-bitwidth (`u32`)

<a id="rst-dpipe-field-mapping-type-u32"></a>



#### dpipe-field-mapping-type (`u32`)

- **enum**:

  [dpipe-field-mapping-type](#rst-devlink-definition-dpipe-field-mapping-type)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-eswitch-encap-mode-u8"></a>



#### eswitch-encap-mode (`u8`)

- **enum**:

  [eswitch-encap-mode](#rst-devlink-definition-eswitch-encap-mode)

<a id="rst-resource-list-nest"></a>



#### resource-list (`nest`)

- **nested-attributes**:

  [dl-resource-list](#rst-devlink-attribute-set-dl-resource-list)

<a id="rst-resource-nest"></a>



#### resource (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-resource](#rst-devlink-attribute-set-dl-resource)

<a id="rst-resource-name-string"></a>



#### resource-name (`string`)

<a id="rst-resource-id-u64"></a>



#### resource-id (`u64`)

<a id="rst-resource-size-u64"></a>



#### resource-size (`u64`)

<a id="rst-resource-size-new-u64"></a>



#### resource-size-new (`u64`)

<a id="rst-resource-size-valid-u8"></a>



#### resource-size-valid (`u8`)

<a id="rst-resource-size-min-u64"></a>



#### resource-size-min (`u64`)

<a id="rst-resource-size-max-u64"></a>



#### resource-size-max (`u64`)

<a id="rst-resource-size-gran-u64"></a>



#### resource-size-gran (`u64`)

<a id="rst-resource-unit-u8"></a>



#### resource-unit (`u8`)

- **enum**:

  [resource-unit](#rst-devlink-definition-resource-unit)

<a id="rst-resource-occ-u64"></a>



#### resource-occ (`u64`)

<a id="rst-dpipe-table-resource-id-u64"></a>



#### dpipe-table-resource-id (`u64`)

<a id="rst-dpipe-table-resource-units-u64"></a>



#### dpipe-table-resource-units (`u64`)

<a id="rst-port-flavour-u16"></a>



#### port-flavour (`u16`)

- **enum**:

  [port-flavour](#rst-devlink-definition-port-flavour)

<a id="rst-port-number-u32"></a>



#### port-number (`u32`)

<a id="rst-port-split-subport-number-u32"></a>



#### port-split-subport-number (`u32`)

<a id="rst-param-nest"></a>



#### param (`nest`)

- **nested-attributes**:

  [dl-param](#rst-devlink-attribute-set-dl-param)

<a id="rst-param-name-string"></a>



#### param-name (`string`)

<a id="rst-param-generic-flag"></a>



#### param-generic (`flag`)

<a id="rst-param-type-u8"></a>



#### param-type (`u8`)

- **enum**:

  [var-attr-type](#rst-devlink-definition-var-attr-type)

<a id="rst-param-value-cmode-u8"></a>



#### param-value-cmode (`u8`)

- **enum**:

  [param-cmode](#rst-devlink-definition-param-cmode)

- **value**:

  87

<a id="rst-region-name-string"></a>



#### region-name (`string`)

<a id="rst-region-size-u64"></a>



#### region-size (`u64`)

<a id="rst-region-snapshots-nest"></a>



#### region-snapshots (`nest`)

- **nested-attributes**:

  [dl-region-snapshots](#rst-devlink-attribute-set-dl-region-snapshots)

<a id="rst-region-snapshot-nest"></a>



#### region-snapshot (`nest`)

- **nested-attributes**:

  [dl-region-snapshot](#rst-devlink-attribute-set-dl-region-snapshot)

<a id="rst-region-snapshot-id-u32"></a>



#### region-snapshot-id (`u32`)

<a id="rst-region-chunks-nest"></a>



#### region-chunks (`nest`)

- **nested-attributes**:

  [dl-region-chunks](#rst-devlink-attribute-set-dl-region-chunks)

<a id="rst-region-chunk-nest"></a>



#### region-chunk (`nest`)

- **nested-attributes**:

  [dl-region-chunk](#rst-devlink-attribute-set-dl-region-chunk)

<a id="rst-region-chunk-data-binary"></a>



#### region-chunk-data (`binary`)

<a id="rst-region-chunk-addr-u64"></a>



#### region-chunk-addr (`u64`)

<a id="rst-region-chunk-len-u64"></a>



#### region-chunk-len (`u64`)

<a id="rst-info-driver-name-string"></a>



#### info-driver-name (`string`)

<a id="rst-info-serial-number-string"></a>



#### info-serial-number (`string`)

<a id="rst-info-version-fixed-nest"></a>



#### info-version-fixed (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-info-version](#rst-devlink-attribute-set-dl-info-version)

<a id="rst-info-version-running-nest"></a>



#### info-version-running (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-info-version](#rst-devlink-attribute-set-dl-info-version)

<a id="rst-info-version-stored-nest"></a>



#### info-version-stored (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-info-version](#rst-devlink-attribute-set-dl-info-version)

<a id="rst-info-version-name-string"></a>



#### info-version-name (`string`)

<a id="rst-info-version-value-string"></a>



#### info-version-value (`string`)

<a id="rst-sb-pool-cell-size-u32"></a>



#### sb-pool-cell-size (`u32`)

<a id="rst-fmsg-nest"></a>



#### fmsg (`nest`)

- **nested-attributes**:

  [dl-fmsg](#rst-devlink-attribute-set-dl-fmsg)

<a id="rst-fmsg-obj-nest-start-flag"></a>



#### fmsg-obj-nest-start (`flag`)

<a id="rst-fmsg-pair-nest-start-flag"></a>



#### fmsg-pair-nest-start (`flag`)

<a id="rst-fmsg-arr-nest-start-flag"></a>



#### fmsg-arr-nest-start (`flag`)

<a id="rst-fmsg-nest-end-flag"></a>



#### fmsg-nest-end (`flag`)

<a id="rst-fmsg-obj-name-string"></a>



#### fmsg-obj-name (`string`)

<a id="rst-fmsg-obj-value-type-u8"></a>



#### fmsg-obj-value-type (`u8`)

- **enum**:

  [var-attr-type](#rst-devlink-definition-var-attr-type)

<a id="rst-health-reporter-nest"></a>



#### health-reporter (`nest`)

- **value**:

  114

- **nested-attributes**:

  [dl-health-reporter](#rst-devlink-attribute-set-dl-health-reporter)

<a id="rst-health-reporter-name-string"></a>



#### health-reporter-name (`string`)

<a id="rst-health-reporter-state-u8"></a>



#### health-reporter-state (`u8`)

<a id="rst-health-reporter-err-count-u64"></a>



#### health-reporter-err-count (`u64`)

<a id="rst-health-reporter-recover-count-u64"></a>



#### health-reporter-recover-count (`u64`)

<a id="rst-health-reporter-dump-ts-u64"></a>



#### health-reporter-dump-ts (`u64`)

<a id="rst-health-reporter-graceful-period-u64"></a>



#### health-reporter-graceful-period (`u64`)

<a id="rst-health-reporter-auto-recover-u8"></a>



#### health-reporter-auto-recover (`u8`)

<a id="rst-flash-update-file-name-string"></a>



#### flash-update-file-name (`string`)

<a id="rst-flash-update-component-string"></a>



#### flash-update-component (`string`)

<a id="rst-flash-update-status-msg-string"></a>



#### flash-update-status-msg (`string`)

<a id="rst-flash-update-status-done-u64"></a>



#### flash-update-status-done (`u64`)

<a id="rst-flash-update-status-total-u64"></a>



#### flash-update-status-total (`u64`)

<a id="rst-port-pci-pf-number-u16"></a>



#### port-pci-pf-number (`u16`)

<a id="rst-port-pci-vf-number-u16"></a>



#### port-pci-vf-number (`u16`)

<a id="rst-stats-nest"></a>



#### stats (`nest`)

- **nested-attributes**:

  [dl-attr-stats](#rst-devlink-attribute-set-dl-attr-stats)

<a id="rst-trap-name-string"></a>



#### trap-name (`string`)

<a id="rst-trap-action-u8"></a>



#### trap-action (`u8`)

- **enum**:

  [trap-action](#rst-devlink-definition-trap-action)

<a id="rst-trap-type-u8"></a>



#### trap-type (`u8`)

- **enum**:

  [trap-type](#rst-devlink-definition-trap-type)

<a id="rst-trap-generic-flag"></a>



#### trap-generic (`flag`)

<a id="rst-trap-metadata-nest"></a>



#### trap-metadata (`nest`)

- **nested-attributes**:

  [dl-trap-metadata](#rst-devlink-attribute-set-dl-trap-metadata)

<a id="rst-trap-group-name-string"></a>



#### trap-group-name (`string`)

<a id="rst-reload-failed-u8"></a>



#### reload-failed (`u8`)

<a id="rst-health-reporter-dump-ts-ns-u64"></a>



#### health-reporter-dump-ts-ns (`u64`)

<a id="rst-netns-fd-u32"></a>



#### netns-fd (`u32`)

<a id="rst-netns-pid-u32"></a>



#### netns-pid (`u32`)

<a id="rst-netns-id-u32"></a>



#### netns-id (`u32`)

<a id="rst-health-reporter-auto-dump-u8"></a>



#### health-reporter-auto-dump (`u8`)

<a id="rst-trap-policer-id-u32"></a>



#### trap-policer-id (`u32`)

<a id="rst-trap-policer-rate-u64"></a>



#### trap-policer-rate (`u64`)

<a id="rst-trap-policer-burst-u64"></a>



#### trap-policer-burst (`u64`)

<a id="rst-port-function-nest"></a>



#### port-function (`nest`)

- **nested-attributes**:

  [dl-port-function](#rst-devlink-attribute-set-dl-port-function)

<a id="rst-info-board-serial-number-string"></a>



#### info-board-serial-number (`string`)

<a id="rst-port-lanes-u32"></a>



#### port-lanes (`u32`)

<a id="rst-port-splittable-u8"></a>



#### port-splittable (`u8`)

<a id="rst-port-external-u8"></a>



#### port-external (`u8`)

<a id="rst-port-controller-number-u32"></a>



#### port-controller-number (`u32`)

<a id="rst-flash-update-status-timeout-u64"></a>



#### flash-update-status-timeout (`u64`)

<a id="rst-flash-update-overwrite-mask-bitfield32"></a>



#### flash-update-overwrite-mask (`bitfield32`)

- **enum**:

  [flash-overwrite](#rst-devlink-definition-flash-overwrite)

- **enum-as-flags**:

  True

<a id="rst-reload-action-u8"></a>



#### reload-action (`u8`)

- **enum**:

  [reload-action](#rst-devlink-definition-reload-action)

<a id="rst-reload-actions-performed-bitfield32"></a>



#### reload-actions-performed (`bitfield32`)

- **enum**:

  [reload-action](#rst-devlink-definition-reload-action)

- **enum-as-flags**:

  True

<a id="rst-reload-limits-bitfield32"></a>



#### reload-limits (`bitfield32`)

- **enum**:

  [reload-action](#rst-devlink-definition-reload-action)

- **enum-as-flags**:

  True

<a id="rst-dev-stats-nest"></a>



#### dev-stats (`nest`)

- **nested-attributes**:

  [dl-dev-stats](#rst-devlink-attribute-set-dl-dev-stats)

<a id="rst-reload-stats-nest"></a>



#### reload-stats (`nest`)

- **nested-attributes**:

  [dl-reload-stats](#rst-devlink-attribute-set-dl-reload-stats)

<a id="rst-reload-stats-entry-nest"></a>



#### reload-stats-entry (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-reload-stats-entry](#rst-devlink-attribute-set-dl-reload-stats-entry)

<a id="rst-reload-stats-limit-u8"></a>



#### reload-stats-limit (`u8`)

<a id="rst-reload-stats-value-u32"></a>



#### reload-stats-value (`u32`)

<a id="rst-remote-reload-stats-nest"></a>



#### remote-reload-stats (`nest`)

- **nested-attributes**:

  [dl-reload-stats](#rst-devlink-attribute-set-dl-reload-stats)

<a id="rst-reload-action-info-nest"></a>



#### reload-action-info (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-reload-act-info](#rst-devlink-attribute-set-dl-reload-act-info)

<a id="rst-reload-action-stats-nest"></a>



#### reload-action-stats (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-reload-act-stats](#rst-devlink-attribute-set-dl-reload-act-stats)

<a id="rst-port-pci-sf-number-u32"></a>



#### port-pci-sf-number (`u32`)

<a id="rst-rate-type-u16"></a>



#### rate-type (`u16`)

- **enum**:

  [rate-type](#rst-devlink-definition-rate-type)

<a id="rst-rate-tx-share-u64"></a>



#### rate-tx-share (`u64`)

<a id="rst-rate-tx-max-u64"></a>



#### rate-tx-max (`u64`)

<a id="rst-rate-node-name-string"></a>



#### rate-node-name (`string`)

<a id="rst-rate-parent-node-name-string"></a>



#### rate-parent-node-name (`string`)

<a id="rst-region-max-snapshots-u32"></a>



#### region-max-snapshots (`u32`)

<a id="rst-linecard-index-u32"></a>



#### linecard-index (`u32`)

<a id="rst-linecard-state-u8"></a>



#### linecard-state (`u8`)

<a id="rst-linecard-type-string"></a>



#### linecard-type (`string`)

<a id="rst-linecard-supported-types-nest"></a>



#### linecard-supported-types (`nest`)

- **nested-attributes**:

  [dl-linecard-supported-types](#rst-devlink-attribute-set-dl-linecard-supported-types)

<a id="rst-selftests-nest"></a>



#### selftests (`nest`)

- **value**:

  176

- **nested-attributes**:

  [dl-selftest-id](#rst-devlink-attribute-set-dl-selftest-id)

<a id="rst-rate-tx-priority-u32"></a>



#### rate-tx-priority (`u32`)

<a id="rst-rate-tx-weight-u32"></a>



#### rate-tx-weight (`u32`)

<a id="rst-region-direct-flag"></a>



#### region-direct (`flag`)

<a id="rst-rate-tc-bws-nest"></a>



#### rate-tc-bws (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [dl-rate-tc-bws](#rst-devlink-attribute-set-dl-rate-tc-bws)

<a id="rst-health-reporter-burst-period-u64"></a>



#### health-reporter-burst-period (`u64`)

- **doc**:

  Time (in msec) for recoveries before starting the grace period.

<a id="rst-param-reset-default-flag"></a>



#### param-reset-default (`flag`)

- **doc**:

  Request restoring parameter to its default value.

- **value**:

  183

<a id="rst-dl-dev-stats"></a>
<a id="rst-devlink-attribute-set-dl-dev-stats"></a>



### dl-dev-stats

<a id="rst-reload-stats"></a>



#### reload-stats

<a id="rst-remote-reload-stats"></a>



#### remote-reload-stats

<a id="rst-dl-reload-stats"></a>
<a id="rst-devlink-attribute-set-dl-reload-stats"></a>



### dl-reload-stats

<a id="rst-reload-action-info"></a>



#### reload-action-info

<a id="rst-dl-reload-act-info"></a>
<a id="rst-devlink-attribute-set-dl-reload-act-info"></a>



### dl-reload-act-info

<a id="rst-reload-action-1"></a>



#### reload-action

<a id="rst-reload-action-stats"></a>



#### reload-action-stats

<a id="rst-dl-reload-act-stats"></a>
<a id="rst-devlink-attribute-set-dl-reload-act-stats"></a>



### dl-reload-act-stats

<a id="rst-reload-stats-entry"></a>



#### reload-stats-entry

<a id="rst-dl-reload-stats-entry"></a>
<a id="rst-devlink-attribute-set-dl-reload-stats-entry"></a>



### dl-reload-stats-entry

<a id="rst-reload-stats-limit"></a>



#### reload-stats-limit

<a id="rst-reload-stats-value"></a>



#### reload-stats-value

<a id="rst-dl-info-version"></a>
<a id="rst-devlink-attribute-set-dl-info-version"></a>



### dl-info-version

<a id="rst-info-version-name"></a>



#### info-version-name

<a id="rst-info-version-value"></a>



#### info-version-value

<a id="rst-dl-port-function"></a>
<a id="rst-devlink-attribute-set-dl-port-function"></a>



### dl-port-function

<a id="rst-hw-addr-binary"></a>



#### hw-addr (`binary`)

- **name-prefix**:

  devlink-port-function-attr-

- **value**:

  1

<a id="rst-state-u8"></a>



#### state (`u8`)

- **enum**:

  [port-fn-state](#rst-devlink-definition-port-fn-state)

<a id="rst-opstate-u8"></a>



#### opstate (`u8`)

- **enum**:

  [port-fn-opstate](#rst-devlink-definition-port-fn-opstate)

<a id="rst-caps-bitfield32"></a>



#### caps (`bitfield32`)

- **enum**:

  [port-fn-attr-cap](#rst-devlink-definition-port-fn-attr-cap)

- **enum-as-flags**:

  True

<a id="rst-dl-dpipe-tables"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-tables"></a>



### dl-dpipe-tables

<a id="rst-dpipe-table"></a>



#### dpipe-table

<a id="rst-dl-dpipe-table"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-table"></a>



### dl-dpipe-table

<a id="rst-dpipe-table-name"></a>



#### dpipe-table-name

<a id="rst-dpipe-table-size"></a>



#### dpipe-table-size

<a id="rst-dpipe-table-name-1"></a>



#### dpipe-table-name

<a id="rst-dpipe-table-size-1"></a>



#### dpipe-table-size

<a id="rst-dpipe-table-matches"></a>



#### dpipe-table-matches

<a id="rst-dpipe-table-actions"></a>



#### dpipe-table-actions

<a id="rst-dpipe-table-counters-enabled"></a>



#### dpipe-table-counters-enabled

<a id="rst-dpipe-table-resource-id"></a>



#### dpipe-table-resource-id

<a id="rst-dpipe-table-resource-units"></a>



#### dpipe-table-resource-units

<a id="rst-dl-dpipe-table-matches"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-table-matches"></a>



### dl-dpipe-table-matches

<a id="rst-dpipe-match"></a>



#### dpipe-match

<a id="rst-dl-dpipe-table-actions"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-table-actions"></a>



### dl-dpipe-table-actions

<a id="rst-dpipe-action"></a>



#### dpipe-action

<a id="rst-dl-dpipe-entries"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-entries"></a>



### dl-dpipe-entries

<a id="rst-dpipe-entry"></a>



#### dpipe-entry

<a id="rst-dl-dpipe-entry"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-entry"></a>



### dl-dpipe-entry

<a id="rst-dpipe-entry-index"></a>



#### dpipe-entry-index

<a id="rst-dpipe-entry-match-values"></a>



#### dpipe-entry-match-values

<a id="rst-dpipe-entry-action-values"></a>



#### dpipe-entry-action-values

<a id="rst-dpipe-entry-counter"></a>



#### dpipe-entry-counter

<a id="rst-dl-dpipe-entry-match-values"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-entry-match-values"></a>



### dl-dpipe-entry-match-values

<a id="rst-dpipe-match-value"></a>



#### dpipe-match-value

<a id="rst-dl-dpipe-entry-action-values"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-entry-action-values"></a>



### dl-dpipe-entry-action-values

<a id="rst-dpipe-action-value"></a>



#### dpipe-action-value

<a id="rst-dl-dpipe-match"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-match"></a>



### dl-dpipe-match

<a id="rst-dpipe-match-type-1"></a>



#### dpipe-match-type

<a id="rst-dpipe-header-id-1"></a>



#### dpipe-header-id

<a id="rst-dpipe-header-global"></a>



#### dpipe-header-global

<a id="rst-dpipe-header-index"></a>



#### dpipe-header-index

<a id="rst-dpipe-field-id"></a>



#### dpipe-field-id

<a id="rst-dl-dpipe-match-value"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-match-value"></a>



### dl-dpipe-match-value

<a id="rst-dpipe-match-1"></a>



#### dpipe-match

<a id="rst-dpipe-value"></a>



#### dpipe-value

<a id="rst-dpipe-value-mask"></a>



#### dpipe-value-mask

<a id="rst-dpipe-value-mapping"></a>



#### dpipe-value-mapping

<a id="rst-dl-dpipe-action"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-action"></a>



### dl-dpipe-action

<a id="rst-dpipe-action-type-1"></a>



#### dpipe-action-type

<a id="rst-dpipe-header-id-2"></a>



#### dpipe-header-id

<a id="rst-dpipe-header-global-1"></a>



#### dpipe-header-global

<a id="rst-dpipe-header-index-1"></a>



#### dpipe-header-index

<a id="rst-dpipe-field-id-1"></a>



#### dpipe-field-id

<a id="rst-dl-dpipe-action-value"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-action-value"></a>



### dl-dpipe-action-value

<a id="rst-dpipe-action-1"></a>



#### dpipe-action

<a id="rst-dpipe-value-1"></a>



#### dpipe-value

<a id="rst-dpipe-value-mask-1"></a>



#### dpipe-value-mask

<a id="rst-dpipe-value-mapping-1"></a>



#### dpipe-value-mapping

<a id="rst-dl-dpipe-headers"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-headers"></a>



### dl-dpipe-headers

<a id="rst-dpipe-header"></a>



#### dpipe-header

<a id="rst-dl-dpipe-header"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-header"></a>



### dl-dpipe-header

<a id="rst-dpipe-header-name"></a>



#### dpipe-header-name

<a id="rst-dpipe-header-id-3"></a>



#### dpipe-header-id

<a id="rst-dpipe-header-global-2"></a>



#### dpipe-header-global

<a id="rst-dpipe-header-fields"></a>



#### dpipe-header-fields

<a id="rst-dl-dpipe-header-fields"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-header-fields"></a>



### dl-dpipe-header-fields

<a id="rst-dpipe-field"></a>



#### dpipe-field

<a id="rst-dl-dpipe-field"></a>
<a id="rst-devlink-attribute-set-dl-dpipe-field"></a>



### dl-dpipe-field

<a id="rst-dpipe-field-name"></a>



#### dpipe-field-name

<a id="rst-dpipe-field-id-2"></a>



#### dpipe-field-id

<a id="rst-dpipe-field-bitwidth"></a>



#### dpipe-field-bitwidth

<a id="rst-dpipe-field-mapping-type-1"></a>



#### dpipe-field-mapping-type

<a id="rst-dl-resource"></a>
<a id="rst-devlink-attribute-set-dl-resource"></a>



### dl-resource

<a id="rst-resource-name"></a>



#### resource-name

<a id="rst-resource-id"></a>



#### resource-id

<a id="rst-resource-size"></a>



#### resource-size

<a id="rst-resource-size-new"></a>



#### resource-size-new

<a id="rst-resource-size-valid"></a>



#### resource-size-valid

<a id="rst-resource-size-min"></a>



#### resource-size-min

<a id="rst-resource-size-max"></a>



#### resource-size-max

<a id="rst-resource-size-gran"></a>



#### resource-size-gran

<a id="rst-resource-unit-1"></a>



#### resource-unit

<a id="rst-resource-occ"></a>



#### resource-occ

<a id="rst-dl-resource-list"></a>
<a id="rst-devlink-attribute-set-dl-resource-list"></a>



### dl-resource-list

<a id="rst-resource"></a>



#### resource

<a id="rst-dl-param"></a>
<a id="rst-devlink-attribute-set-dl-param"></a>



### dl-param

<a id="rst-param-name"></a>



#### param-name

<a id="rst-param-generic"></a>



#### param-generic

<a id="rst-param-type"></a>



#### param-type

<a id="rst-dl-region-snapshots"></a>
<a id="rst-devlink-attribute-set-dl-region-snapshots"></a>



### dl-region-snapshots

<a id="rst-region-snapshot"></a>



#### region-snapshot

<a id="rst-dl-region-snapshot"></a>
<a id="rst-devlink-attribute-set-dl-region-snapshot"></a>



### dl-region-snapshot

<a id="rst-region-snapshot-id"></a>



#### region-snapshot-id

<a id="rst-dl-region-chunks"></a>
<a id="rst-devlink-attribute-set-dl-region-chunks"></a>



### dl-region-chunks

<a id="rst-region-chunk"></a>



#### region-chunk

<a id="rst-dl-region-chunk"></a>
<a id="rst-devlink-attribute-set-dl-region-chunk"></a>



### dl-region-chunk

<a id="rst-region-chunk-data"></a>



#### region-chunk-data

<a id="rst-region-chunk-addr"></a>



#### region-chunk-addr

<a id="rst-dl-fmsg"></a>
<a id="rst-devlink-attribute-set-dl-fmsg"></a>



### dl-fmsg

<a id="rst-fmsg-obj-nest-start"></a>



#### fmsg-obj-nest-start

<a id="rst-fmsg-pair-nest-start"></a>



#### fmsg-pair-nest-start

<a id="rst-fmsg-arr-nest-start"></a>



#### fmsg-arr-nest-start

<a id="rst-fmsg-nest-end"></a>



#### fmsg-nest-end

<a id="rst-fmsg-obj-name"></a>



#### fmsg-obj-name

<a id="rst-dl-health-reporter"></a>
<a id="rst-devlink-attribute-set-dl-health-reporter"></a>



### dl-health-reporter

<a id="rst-health-reporter-name"></a>



#### health-reporter-name

<a id="rst-health-reporter-state"></a>



#### health-reporter-state

<a id="rst-health-reporter-err-count"></a>



#### health-reporter-err-count

<a id="rst-health-reporter-recover-count"></a>



#### health-reporter-recover-count

<a id="rst-health-reporter-graceful-period"></a>



#### health-reporter-graceful-period

<a id="rst-health-reporter-auto-recover"></a>



#### health-reporter-auto-recover

<a id="rst-health-reporter-dump-ts"></a>



#### health-reporter-dump-ts

<a id="rst-health-reporter-dump-ts-ns"></a>



#### health-reporter-dump-ts-ns

<a id="rst-health-reporter-auto-dump"></a>



#### health-reporter-auto-dump

<a id="rst-health-reporter-burst-period"></a>



#### health-reporter-burst-period

<a id="rst-dl-attr-stats"></a>
<a id="rst-devlink-attribute-set-dl-attr-stats"></a>



### dl-attr-stats

<a id="rst-stats-rx-packets-u64"></a>



#### stats-rx-packets (`u64`)

- **value**:

  0

<a id="rst-stats-rx-bytes-u64"></a>



#### stats-rx-bytes (`u64`)

<a id="rst-stats-rx-dropped-u64"></a>



#### stats-rx-dropped (`u64`)

<a id="rst-dl-trap-metadata"></a>
<a id="rst-devlink-attribute-set-dl-trap-metadata"></a>



### dl-trap-metadata

<a id="rst-trap-metadata-type-in-port-flag"></a>



#### trap-metadata-type-in-port (`flag`)

- **value**:

  0

<a id="rst-trap-metadata-type-fa-cookie-flag"></a>



#### trap-metadata-type-fa-cookie (`flag`)

<a id="rst-dl-linecard-supported-types"></a>
<a id="rst-devlink-attribute-set-dl-linecard-supported-types"></a>



### dl-linecard-supported-types

<a id="rst-linecard-type"></a>



#### linecard-type

<a id="rst-dl-selftest-id"></a>
<a id="rst-devlink-attribute-set-dl-selftest-id"></a>



### dl-selftest-id

<a id="rst-flash-flag"></a>



#### flash (`flag`)

<a id="rst-dl-rate-tc-bws"></a>
<a id="rst-devlink-attribute-set-dl-rate-tc-bws"></a>



### dl-rate-tc-bws

<a id="rst-index-u8"></a>



#### index (`u8`)

<a id="rst-bw-u32"></a>



#### 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_

> Protocol reference for the dpll Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-dpll-netlink-specification"></a>
<a id="rst-netlink-dpll"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



DPLL subsystem.

<a id="rst-operations"></a>



## Operations

<a id="rst-device-id-get"></a>
<a id="rst-dpll-operation-device-id-get"></a>



### device-id-get



Get id of dpll device that matches given attributes

- **attribute-set**:

  [dpll](#rst-dpll-attribute-set-dpll)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  dpll-lock-doit

  **post**



  dpll-unlock-doit

  **request**

  - **attributes**:

    \[`module-name`, `clock-id`, `type`\]

  **reply**

  - **attributes**:

    \[`id`\]

<a id="rst-device-get"></a>
<a id="rst-dpll-operation-device-get"></a>



### device-get



Get list of DPLL devices (dump) or attributes of a single dpll device

- **attribute-set**:

  [dpll](#rst-dpll-attribute-set-dpll)

- **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`\]

<a id="rst-device-set"></a>
<a id="rst-dpll-operation-device-set"></a>



### device-set



Set attributes for a DPLL device

- **attribute-set**:

  [dpll](#rst-dpll-attribute-set-dpll)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  dpll-pre-doit

  **post**



  dpll-post-doit

  **request**

  - **attributes**:

    \[`id`, `mode`, `phase-offset-monitor`, `phase-offset-avg-factor`\]

<a id="rst-device-create-ntf"></a>
<a id="rst-dpll-operation-device-create-ntf"></a>



### device-create-ntf



Notification about device appearing

- **notify**:

  device-get

- **mcgrp**:

  monitor

<a id="rst-device-delete-ntf"></a>
<a id="rst-dpll-operation-device-delete-ntf"></a>



### device-delete-ntf



Notification about device disappearing

- **notify**:

  device-get

- **mcgrp**:

  monitor

<a id="rst-device-change-ntf"></a>
<a id="rst-dpll-operation-device-change-ntf"></a>



### device-change-ntf



Notification about device configuration being changed

- **notify**:

  device-get

- **mcgrp**:

  monitor

<a id="rst-pin-id-get"></a>
<a id="rst-dpll-operation-pin-id-get"></a>



### pin-id-get



Get id of a pin that matches given attributes

- **attribute-set**:

  [pin](#rst-dpll-attribute-set-pin)

- **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`\]

<a id="rst-pin-get"></a>
<a id="rst-dpll-operation-pin-get"></a>



### 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**:

  [pin](#rst-dpll-attribute-set-pin)

- **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`\]

<a id="rst-pin-set"></a>
<a id="rst-dpll-operation-pin-set"></a>



### pin-set



Set attributes of a target pin

- **attribute-set**:

  [pin](#rst-dpll-attribute-set-pin)

- **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`\]

<a id="rst-pin-create-ntf"></a>
<a id="rst-dpll-operation-pin-create-ntf"></a>



### pin-create-ntf



Notification about pin appearing

- **notify**:

  pin-get

- **mcgrp**:

  monitor

<a id="rst-pin-delete-ntf"></a>
<a id="rst-dpll-operation-pin-delete-ntf"></a>



### pin-delete-ntf



Notification about pin disappearing

- **notify**:

  pin-get

- **mcgrp**:

  monitor

<a id="rst-pin-change-ntf"></a>
<a id="rst-dpll-operation-pin-change-ntf"></a>



### pin-change-ntf



Notification about pin configuration being changed

- **notify**:

  pin-get

- **mcgrp**:

  monitor

<a id="rst-multicast-groups"></a>



## Multicast groups

- monitor


<a id="rst-definitions"></a>



## Definitions

<a id="rst-mode"></a>
<a id="rst-dpll-definition-mode"></a>



### 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

<a id="rst-lock-status"></a>
<a id="rst-dpll-definition-lock-status"></a>



### 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)

<a id="rst-lock-status-error"></a>
<a id="rst-dpll-definition-lock-status-error"></a>



### 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.

<a id="rst-clock-quality-level"></a>
<a id="rst-dpll-definition-clock-quality-level"></a>



### 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**

<a id="rst-temp-divider"></a>
<a id="rst-dpll-definition-temp-divider"></a>



### 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.

<a id="rst-type"></a>
<a id="rst-dpll-definition-type"></a>



### 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

<a id="rst-pin-type"></a>
<a id="rst-dpll-definition-pin-type"></a>



### 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

<a id="rst-pin-direction"></a>
<a id="rst-dpll-definition-pin-direction"></a>



### 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

<a id="rst-pin-frequency-1-hz"></a>
<a id="rst-dpll-definition-pin-frequency-1-hz"></a>



### pin-frequency-1-hz

- **type**:

  const

- **value**:

  1

<a id="rst-pin-frequency-10-khz"></a>
<a id="rst-dpll-definition-pin-frequency-10-khz"></a>



### pin-frequency-10-khz

- **type**:

  const

- **value**:

  10000

<a id="rst-pin-frequency-77-5-khz"></a>
<a id="rst-dpll-definition-pin-frequency-77-5-khz"></a>



### pin-frequency-77-5-khz

- **type**:

  const

- **value**:

  77500

<a id="rst-pin-frequency-10-mhz"></a>
<a id="rst-dpll-definition-pin-frequency-10-mhz"></a>



### pin-frequency-10-mhz

- **type**:

  const

- **value**:

  10000000

<a id="rst-pin-state"></a>
<a id="rst-dpll-definition-pin-state"></a>



### 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

<a id="rst-pin-capabilities"></a>
<a id="rst-dpll-definition-pin-capabilities"></a>



### 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

<a id="rst-phase-offset-divider"></a>
<a id="rst-dpll-definition-phase-offset-divider"></a>



### 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.

<a id="rst-feature-state"></a>
<a id="rst-dpll-definition-feature-state"></a>



### 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

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-dpll"></a>
<a id="rst-dpll-attribute-set-dpll"></a>



### dpll

<a id="rst-id-u32"></a>



#### id (`u32`)

<a id="rst-module-name-string"></a>



#### module-name (`string`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-clock-id-u64"></a>



#### clock-id (`u64`)

<a id="rst-mode-u32"></a>



#### mode (`u32`)

- **enum**:

  [mode](#rst-dpll-definition-mode)

<a id="rst-mode-supported-u32"></a>



#### mode-supported (`u32`)

- **enum**:

  [mode](#rst-dpll-definition-mode)

- **multi-attr**:

  True

<a id="rst-lock-status-u32"></a>



#### lock-status (`u32`)

- **enum**:

  [lock-status](#rst-dpll-definition-lock-status)

<a id="rst-temp-s32"></a>



#### temp (`s32`)

<a id="rst-type-u32"></a>



#### type (`u32`)

- **enum**:

  [type](#rst-dpll-definition-type)

<a id="rst-lock-status-error-u32"></a>



#### lock-status-error (`u32`)

- **enum**:

  [lock-status-error](#rst-dpll-definition-lock-status-error)

<a id="rst-clock-quality-level-u32"></a>



#### clock-quality-level (`u32`)

- **enum**:

  [clock-quality-level](#rst-dpll-definition-clock-quality-level)

- **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).

<a id="rst-phase-offset-monitor-u32"></a>



#### phase-offset-monitor (`u32`)

- **enum**:

  [feature-state](#rst-dpll-definition-feature-state)

- **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.

<a id="rst-phase-offset-avg-factor-u32"></a>



#### phase-offset-avg-factor (`u32`)

- **doc**:

  Averaging factor applied to calculation of reported phase offset.

<a id="rst-pin"></a>
<a id="rst-dpll-attribute-set-pin"></a>



### pin

<a id="rst-id-u32-1"></a>



#### id (`u32`)

<a id="rst-parent-id-u32"></a>



#### parent-id (`u32`)

<a id="rst-module-name-string-1"></a>



#### module-name (`string`)

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-clock-id-u64-1"></a>



#### clock-id (`u64`)

<a id="rst-board-label-string"></a>



#### board-label (`string`)

<a id="rst-panel-label-string"></a>



#### panel-label (`string`)

<a id="rst-package-label-string"></a>



#### package-label (`string`)

<a id="rst-type-u32-1"></a>



#### type (`u32`)

- **enum**:

  [pin-type](#rst-dpll-definition-pin-type)

<a id="rst-direction-u32"></a>



#### direction (`u32`)

- **enum**:

  [pin-direction](#rst-dpll-definition-pin-direction)

<a id="rst-frequency-u64"></a>



#### frequency (`u64`)

<a id="rst-frequency-supported-nest"></a>



#### frequency-supported (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [frequency-range](#rst-dpll-attribute-set-frequency-range)

<a id="rst-frequency-min-u64"></a>



#### frequency-min (`u64`)

<a id="rst-frequency-max-u64"></a>



#### frequency-max (`u64`)

<a id="rst-prio-u32"></a>



#### prio (`u32`)

<a id="rst-state-u32"></a>



#### state (`u32`)

- **enum**:

  [pin-state](#rst-dpll-definition-pin-state)

<a id="rst-capabilities-u32"></a>



#### capabilities (`u32`)

- **enum**:

  [pin-capabilities](#rst-dpll-definition-pin-capabilities)

<a id="rst-parent-device-nest"></a>



#### parent-device (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [pin-parent-device](#rst-dpll-attribute-set-pin-parent-device)

<a id="rst-parent-pin-nest"></a>



#### parent-pin (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [pin-parent-pin](#rst-dpll-attribute-set-pin-parent-pin)

<a id="rst-phase-adjust-min-s32"></a>



#### phase-adjust-min (`s32`)

<a id="rst-phase-adjust-max-s32"></a>



#### phase-adjust-max (`s32`)

<a id="rst-phase-adjust-s32"></a>



#### phase-adjust (`s32`)

<a id="rst-phase-offset-s64"></a>



#### phase-offset (`s64`)

<a id="rst-fractional-frequency-offset-sint"></a>



#### 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.

<a id="rst-esync-frequency-u64"></a>



#### 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.

<a id="rst-esync-frequency-supported-nest"></a>



#### esync-frequency-supported (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [frequency-range](#rst-dpll-attribute-set-frequency-range)

- **doc**:

  If provided a pin is capable of embedding a SYNC signal (within given range) into its base frequency signal.

<a id="rst-esync-pulse-u32"></a>



#### 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.

<a id="rst-reference-sync-nest"></a>



#### reference-sync (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [reference-sync](#rst-dpll-attribute-set-reference-sync)

- **doc**:

  Capable pin provides list of pins that can be bound to create a reference-sync pin pair.

<a id="rst-phase-adjust-gran-u32"></a>



#### phase-adjust-gran (`u32`)

- **doc**:

  Granularity of phase adjustment, in picoseconds. The value of phase adjustment must be a multiple of this granularity.

<a id="rst-fractional-frequency-offset-ppt-sint"></a>



#### 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).

<a id="rst-pin-parent-device"></a>
<a id="rst-dpll-attribute-set-pin-parent-device"></a>



### pin-parent-device

<a id="rst-parent-id"></a>



#### parent-id

<a id="rst-direction"></a>



#### direction

<a id="rst-prio"></a>



#### prio

<a id="rst-state"></a>



#### state

<a id="rst-phase-offset"></a>



#### phase-offset

<a id="rst-pin-parent-pin"></a>
<a id="rst-dpll-attribute-set-pin-parent-pin"></a>



### pin-parent-pin

<a id="rst-parent-id-1"></a>



#### parent-id

<a id="rst-state-1"></a>



#### state

<a id="rst-frequency-range"></a>
<a id="rst-dpll-attribute-set-frequency-range"></a>



### frequency-range

<a id="rst-frequency-min"></a>



#### frequency-min

<a id="rst-frequency-max"></a>



#### frequency-max

<a id="rst-reference-sync"></a>
<a id="rst-dpll-attribute-set-reference-sync"></a>



### reference-sync

<a id="rst-id"></a>



#### id

<a id="rst-state-2"></a>



#### state

---

# Family ethtool netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ethtool Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-ethtool-netlink-specification"></a>
<a id="rst-netlink-ethtool"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Partial family for Ethtool Netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-strset-get"></a>
<a id="rst-ethtool-operation-strset-get"></a>



### strset-get



Get string set from the kernel.

- **attribute-set**:

  [strset](#rst-ethtool-attribute-set-strset)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `stringsets`, `counts-only`\]

  **reply**

  - **attributes**:

    \[`header`, `stringsets`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`, `stringsets`, `counts-only`\]

  **reply**

  - **attributes**:

    \[`header`, `stringsets`\]

<a id="rst-linkinfo-get"></a>
<a id="rst-ethtool-operation-linkinfo-get"></a>



### linkinfo-get



Get link info.

- **attribute-set**:

  [linkinfo](#rst-ethtool-attribute-set-linkinfo)

- **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`\]

<a id="rst-linkinfo-set"></a>
<a id="rst-ethtool-operation-linkinfo-set"></a>



### linkinfo-set



Set link info.

- **attribute-set**:

  [linkinfo](#rst-ethtool-attribute-set-linkinfo)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `port`, `phyaddr`, `tp-mdix`, `tp-mdix-ctrl`, `transceiver`\]

<a id="rst-linkinfo-ntf"></a>
<a id="rst-ethtool-operation-linkinfo-ntf"></a>



### linkinfo-ntf



Notification for change in link info.

- **notify**:

  linkinfo-get

<a id="rst-linkmodes-get"></a>
<a id="rst-ethtool-operation-linkmodes-get"></a>



### linkmodes-get



Get link modes.

- **attribute-set**:

  [linkmodes](#rst-ethtool-attribute-set-linkmodes)

- **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`\]

<a id="rst-linkmodes-set"></a>
<a id="rst-ethtool-operation-linkmodes-set"></a>



### linkmodes-set



Set link modes.

- **attribute-set**:

  [linkmodes](#rst-ethtool-attribute-set-linkmodes)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `autoneg`, `ours`, `peer`, `speed`, `duplex`, `master-slave-cfg`, `master-slave-state`, `lanes`, `rate-matching`\]

<a id="rst-linkmodes-ntf"></a>
<a id="rst-ethtool-operation-linkmodes-ntf"></a>



### linkmodes-ntf



Notification for change in link modes.

- **notify**:

  linkmodes-get

<a id="rst-linkstate-get"></a>
<a id="rst-ethtool-operation-linkstate-get"></a>



### linkstate-get



Get link state.

- **attribute-set**:

  [linkstate](#rst-ethtool-attribute-set-linkstate)

- **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`\]

<a id="rst-debug-get"></a>
<a id="rst-ethtool-operation-debug-get"></a>



### debug-get



Get debug message mask.

- **attribute-set**:

  [debug](#rst-ethtool-attribute-set-debug)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `msgmask`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `msgmask`\]

<a id="rst-debug-set"></a>
<a id="rst-ethtool-operation-debug-set"></a>



### debug-set



Set debug message mask.

- **attribute-set**:

  [debug](#rst-ethtool-attribute-set-debug)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `msgmask`\]

<a id="rst-debug-ntf"></a>
<a id="rst-ethtool-operation-debug-ntf"></a>



### debug-ntf



Notification for change in debug message mask.

- **notify**:

  debug-get

<a id="rst-wol-get"></a>
<a id="rst-ethtool-operation-wol-get"></a>



### wol-get



Get WOL params.

- **attribute-set**:

  [wol](#rst-ethtool-attribute-set-wol)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `modes`, `sopass`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `modes`, `sopass`\]

<a id="rst-wol-set"></a>
<a id="rst-ethtool-operation-wol-set"></a>



### wol-set



Set WOL params.

- **attribute-set**:

  [wol](#rst-ethtool-attribute-set-wol)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `modes`, `sopass`\]

<a id="rst-wol-ntf"></a>
<a id="rst-ethtool-operation-wol-ntf"></a>



### wol-ntf



Notification for change in WOL params.

- **notify**:

  wol-get

<a id="rst-features-get"></a>
<a id="rst-ethtool-operation-features-get"></a>



### features-get



Get features.

- **attribute-set**:

  [features](#rst-ethtool-attribute-set-features)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `hw`, `wanted`, `active`, `nochange`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `hw`, `wanted`, `active`, `nochange`\]

<a id="rst-features-set"></a>
<a id="rst-ethtool-operation-features-set"></a>



### features-set



Set features.

- **attribute-set**:

  [features](#rst-ethtool-attribute-set-features)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `hw`, `wanted`, `active`, `nochange`\]

  **reply**

  - **attributes**:

    \[`header`, `hw`, `wanted`, `active`, `nochange`\]

<a id="rst-features-ntf"></a>
<a id="rst-ethtool-operation-features-ntf"></a>



### features-ntf



Notification for change in features.

- **notify**:

  features-get

<a id="rst-privflags-get"></a>
<a id="rst-ethtool-operation-privflags-get"></a>



### privflags-get



Get device private flags.

- **attribute-set**:

  [privflags](#rst-ethtool-attribute-set-privflags)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `flags`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `flags`\]

<a id="rst-privflags-set"></a>
<a id="rst-ethtool-operation-privflags-set"></a>



### privflags-set



Set device private flags.

- **attribute-set**:

  [privflags](#rst-ethtool-attribute-set-privflags)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `flags`\]

<a id="rst-privflags-ntf"></a>
<a id="rst-ethtool-operation-privflags-ntf"></a>



### privflags-ntf



Notification for change in device private flags.

- **notify**:

  privflags-get

<a id="rst-rings-get"></a>
<a id="rst-ethtool-operation-rings-get"></a>



### rings-get



Get ring params.

- **attribute-set**:

  [rings](#rst-ethtool-attribute-set-rings)

- **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`\]

<a id="rst-rings-set"></a>
<a id="rst-ethtool-operation-rings-set"></a>



### rings-set



Set ring params.

- **attribute-set**:

  [rings](#rst-ethtool-attribute-set-rings)

- **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`\]

<a id="rst-rings-ntf"></a>
<a id="rst-ethtool-operation-rings-ntf"></a>



### rings-ntf



Notification for change in ring params.

- **notify**:

  rings-get

<a id="rst-channels-get"></a>
<a id="rst-ethtool-operation-channels-get"></a>



### channels-get



Get channel params.

- **attribute-set**:

  [channels](#rst-ethtool-attribute-set-channels)

- **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`\]

<a id="rst-channels-set"></a>
<a id="rst-ethtool-operation-channels-set"></a>



### channels-set



Set channel params.

- **attribute-set**:

  [channels](#rst-ethtool-attribute-set-channels)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `rx-max`, `tx-max`, `other-max`, `combined-max`, `rx-count`, `tx-count`, `other-count`, `combined-count`\]

<a id="rst-channels-ntf"></a>
<a id="rst-ethtool-operation-channels-ntf"></a>



### channels-ntf



Notification for change in channel params.

- **notify**:

  channels-get

<a id="rst-coalesce-get"></a>
<a id="rst-ethtool-operation-coalesce-get"></a>



### coalesce-get



Get coalesce params.

- **attribute-set**:

  [coalesce](#rst-ethtool-attribute-set-coalesce)

- **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`\]

<a id="rst-coalesce-set"></a>
<a id="rst-ethtool-operation-coalesce-set"></a>



### coalesce-set



Set coalesce params.

- **attribute-set**:

  [coalesce](#rst-ethtool-attribute-set-coalesce)

- **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`\]

<a id="rst-coalesce-ntf"></a>
<a id="rst-ethtool-operation-coalesce-ntf"></a>



### coalesce-ntf



Notification for change in coalesce params.

- **notify**:

  coalesce-get

<a id="rst-pause-get"></a>
<a id="rst-ethtool-operation-pause-get"></a>



### pause-get



Get pause params.

- **attribute-set**:

  [pause](#rst-ethtool-attribute-set-pause)

- **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`\]

<a id="rst-pause-set"></a>
<a id="rst-ethtool-operation-pause-set"></a>



### pause-set



Set pause params.

- **attribute-set**:

  [pause](#rst-ethtool-attribute-set-pause)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `autoneg`, `rx`, `tx`, `stats`, `stats-src`\]

<a id="rst-pause-ntf"></a>
<a id="rst-ethtool-operation-pause-ntf"></a>



### pause-ntf



Notification for change in pause params.

- **notify**:

  pause-get

<a id="rst-eee-get"></a>
<a id="rst-ethtool-operation-eee-get"></a>



### eee-get



Get eee params.

- **attribute-set**:

  [eee](#rst-ethtool-attribute-set-eee)

- **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`\]

<a id="rst-eee-set"></a>
<a id="rst-ethtool-operation-eee-set"></a>



### eee-set



Set eee params.

- **attribute-set**:

  [eee](#rst-ethtool-attribute-set-eee)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `modes-ours`, `modes-peer`, `active`, `enabled`, `tx-lpi-enabled`, `tx-lpi-timer`\]

<a id="rst-eee-ntf"></a>
<a id="rst-ethtool-operation-eee-ntf"></a>



### eee-ntf



Notification for change in eee params.

- **notify**:

  eee-get

<a id="rst-tsinfo-get"></a>
<a id="rst-ethtool-operation-tsinfo-get"></a>



### tsinfo-get



Get tsinfo params.

- **attribute-set**:

  [tsinfo](#rst-ethtool-attribute-set-tsinfo)

- **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`\]

<a id="rst-cable-test-act"></a>
<a id="rst-ethtool-operation-cable-test-act"></a>



### cable-test-act



Cable test.

- **attribute-set**:

  [cable-test](#rst-ethtool-attribute-set-cable-test)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

<a id="rst-cable-test-ntf"></a>
<a id="rst-ethtool-operation-cable-test-ntf"></a>



### cable-test-ntf



Cable test notification.

- **attribute-set**:

  [cable-test-ntf](#rst-ethtool-attribute-set-cable-test-ntf)

- **event**:

  - **attributes**:

    \[`header`, `status`\]

<a id="rst-cable-test-tdr-act"></a>
<a id="rst-ethtool-operation-cable-test-tdr-act"></a>



### cable-test-tdr-act



Cable test TDR.

- **attribute-set**:

  [cable-test-tdr](#rst-ethtool-attribute-set-cable-test-tdr)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

<a id="rst-cable-test-tdr-ntf"></a>
<a id="rst-ethtool-operation-cable-test-tdr-ntf"></a>



### cable-test-tdr-ntf



Cable test TDR notification.

- **attribute-set**:

  [cable-test-tdr-ntf](#rst-ethtool-attribute-set-cable-test-tdr-ntf)

- **event**:

  - **attributes**:

    \[`header`, `status`, `nest`\]

<a id="rst-tunnel-info-get"></a>
<a id="rst-ethtool-operation-tunnel-info-get"></a>



### tunnel-info-get



Get tsinfo params.

- **attribute-set**:

  [tunnel-info](#rst-ethtool-attribute-set-tunnel-info)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `udp-ports`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `udp-ports`\]

<a id="rst-fec-get"></a>
<a id="rst-ethtool-operation-fec-get"></a>



### fec-get



Get FEC params.

- **attribute-set**:

  [fec](#rst-ethtool-attribute-set-fec)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `modes`, `auto`, `active`, `stats`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `modes`, `auto`, `active`, `stats`\]

<a id="rst-fec-set"></a>
<a id="rst-ethtool-operation-fec-set"></a>



### fec-set



Set FEC params.

- **attribute-set**:

  [fec](#rst-ethtool-attribute-set-fec)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `modes`, `auto`, `active`, `stats`\]

<a id="rst-fec-ntf"></a>
<a id="rst-ethtool-operation-fec-ntf"></a>



### fec-ntf



Notification for change in FEC params.

- **notify**:

  fec-get

<a id="rst-module-eeprom-get"></a>
<a id="rst-ethtool-operation-module-eeprom-get"></a>



### module-eeprom-get



Get module EEPROM params.

- **attribute-set**:

  [module-eeprom](#rst-ethtool-attribute-set-module-eeprom)

- **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`\]

<a id="rst-stats-get"></a>
<a id="rst-ethtool-operation-stats-get"></a>



### stats-get



Get statistics.

- **attribute-set**:

  [stats](#rst-ethtool-attribute-set-stats)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `groups`\]

  **reply**

  - **attributes**:

    \[`header`, `groups`, `grp`, `src`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`, `groups`\]

  **reply**

  - **attributes**:

    \[`header`, `groups`, `grp`, `src`\]

<a id="rst-phc-vclocks-get"></a>
<a id="rst-ethtool-operation-phc-vclocks-get"></a>



### phc-vclocks-get



Get PHC VCLOCKs.

- **attribute-set**:

  [phc-vclocks](#rst-ethtool-attribute-set-phc-vclocks)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `num`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `num`\]

<a id="rst-module-get"></a>
<a id="rst-ethtool-operation-module-get"></a>



### module-get



Get module params.

- **attribute-set**:

  [module](#rst-ethtool-attribute-set-module)

- **do**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `power-mode-policy`, `power-mode`\]

- **dump**:

  **request**

  - **attributes**:

    \[`header`\]

  **reply**

  - **attributes**:

    \[`header`, `power-mode-policy`, `power-mode`\]

<a id="rst-module-set"></a>
<a id="rst-ethtool-operation-module-set"></a>



### module-set



Set module params.

- **attribute-set**:

  [module](#rst-ethtool-attribute-set-module)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `power-mode-policy`, `power-mode`\]

<a id="rst-module-ntf"></a>
<a id="rst-ethtool-operation-module-ntf"></a>



### module-ntf



Notification for change in module params.

- **notify**:

  module-get

<a id="rst-pse-get"></a>
<a id="rst-ethtool-operation-pse-get"></a>



### pse-get



Get Power Sourcing Equipment params.

- **attribute-set**:

  [pse](#rst-ethtool-attribute-set-pse)

- **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`\]

<a id="rst-pse-set"></a>
<a id="rst-ethtool-operation-pse-set"></a>



### pse-set



Set Power Sourcing Equipment params.

- **attribute-set**:

  [pse](#rst-ethtool-attribute-set-pse)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `podl-pse-admin-control`, `c33-pse-admin-control`, `c33-pse-avail-pw-limit`, `pse-prio`\]

<a id="rst-rss-get"></a>
<a id="rst-ethtool-operation-rss-get"></a>



### rss-get



Get RSS params.

- **attribute-set**:

  [rss](#rst-ethtool-attribute-set-rss)

- **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`\]

<a id="rst-plca-get-cfg"></a>
<a id="rst-ethtool-operation-plca-get-cfg"></a>



### plca-get-cfg



Get PLCA params.

- **attribute-set**:

  [plca](#rst-ethtool-attribute-set-plca)

- **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`\]

<a id="rst-plca-set-cfg"></a>
<a id="rst-ethtool-operation-plca-set-cfg"></a>



### plca-set-cfg



Set PLCA params.

- **attribute-set**:

  [plca](#rst-ethtool-attribute-set-plca)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `version`, `enabled`, `status`, `node-cnt`, `node-id`, `to-tmr`, `burst-cnt`, `burst-tmr`\]

<a id="rst-plca-get-status"></a>
<a id="rst-ethtool-operation-plca-get-status"></a>



### plca-get-status



Get PLCA status params.

- **attribute-set**:

  [plca](#rst-ethtool-attribute-set-plca)

- **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`\]

<a id="rst-plca-ntf"></a>
<a id="rst-ethtool-operation-plca-ntf"></a>



### plca-ntf



Notification for change in PLCA params.

- **notify**:

  plca-get-cfg

<a id="rst-mm-get"></a>
<a id="rst-ethtool-operation-mm-get"></a>



### mm-get



Get MAC Merge configuration and state

- **attribute-set**:

  [mm](#rst-ethtool-attribute-set-mm)

- **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`\]

<a id="rst-mm-set"></a>
<a id="rst-ethtool-operation-mm-set"></a>



### mm-set



Set MAC Merge configuration

- **attribute-set**:

  [mm](#rst-ethtool-attribute-set-mm)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `verify-enabled`, `verify-time`, `tx-enabled`, `pmac-enabled`, `tx-min-frag-size`\]

<a id="rst-mm-ntf"></a>
<a id="rst-ethtool-operation-mm-ntf"></a>



### mm-ntf



Notification for change in MAC Merge configuration.

- **notify**:

  mm-get

<a id="rst-module-fw-flash-act"></a>
<a id="rst-ethtool-operation-module-fw-flash-act"></a>



### module-fw-flash-act



Flash transceiver module firmware.

- **attribute-set**:

  [module-fw-flash](#rst-ethtool-attribute-set-module-fw-flash)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `file-name`, `password`\]

<a id="rst-module-fw-flash-ntf"></a>
<a id="rst-ethtool-operation-module-fw-flash-ntf"></a>



### module-fw-flash-ntf



Notification for firmware flashing progress and status.

- **attribute-set**:

  [module-fw-flash](#rst-ethtool-attribute-set-module-fw-flash)

- **event**:

  - **attributes**:

    \[`header`, `status`, `status-msg`, `done`, `total`\]

<a id="rst-phy-get"></a>
<a id="rst-ethtool-operation-phy-get"></a>



### phy-get



Get PHY devices attached to an interface

- **attribute-set**:

  [phy](#rst-ethtool-attribute-set-phy)

- **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`\]

<a id="rst-phy-ntf"></a>
<a id="rst-ethtool-operation-phy-ntf"></a>



### phy-ntf



Notification for change in PHY devices.

- **notify**:

  phy-get

<a id="rst-tsconfig-get"></a>
<a id="rst-ethtool-operation-tsconfig-get"></a>



### tsconfig-get



Get hwtstamp config.

- **attribute-set**:

  [tsconfig](#rst-ethtool-attribute-set-tsconfig)

- **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`\]

<a id="rst-tsconfig-set"></a>
<a id="rst-ethtool-operation-tsconfig-set"></a>



### tsconfig-set



Set hwtstamp config.

- **attribute-set**:

  [tsconfig](#rst-ethtool-attribute-set-tsconfig)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `hwtstamp-provider`, `tx-types`, `rx-filters`, `hwtstamp-flags`\]

  **reply**

  - **attributes**:

    \[`header`, `hwtstamp-provider`, `tx-types`, `rx-filters`, `hwtstamp-flags`\]

<a id="rst-pse-ntf"></a>
<a id="rst-ethtool-operation-pse-ntf"></a>



### pse-ntf



Notification for PSE events.

- **attribute-set**:

  [pse-ntf](#rst-ethtool-attribute-set-pse-ntf)

- **event**:

  - **attributes**:

    \[`header`, `events`\]

<a id="rst-rss-set"></a>
<a id="rst-ethtool-operation-rss-set"></a>



### rss-set



Set RSS params.

- **attribute-set**:

  [rss](#rst-ethtool-attribute-set-rss)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `context`, `hfunc`, `indir`, `hkey`, `input-xfrm`, `flow-hash`\]

<a id="rst-rss-ntf"></a>
<a id="rst-ethtool-operation-rss-ntf"></a>



### 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

<a id="rst-rss-create-act"></a>
<a id="rst-ethtool-operation-rss-create-act"></a>



### rss-create-act



Create an RSS context.

- **attribute-set**:

  [rss](#rst-ethtool-attribute-set-rss)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `context`, `hfunc`, `indir`, `hkey`, `input-xfrm`\]

  **reply**

  - **attributes**:

    \[`header`, `context`, `hfunc`, `indir`, `hkey`, `input-xfrm`\]

<a id="rst-rss-create-ntf"></a>
<a id="rst-ethtool-operation-rss-create-ntf"></a>



### rss-create-ntf



Notification for creation of an additional RSS context.

- **notify**:

  rss-create-act

<a id="rst-rss-delete-act"></a>
<a id="rst-ethtool-operation-rss-delete-act"></a>



### rss-delete-act



Delete an RSS context.

- **attribute-set**:

  [rss](#rst-ethtool-attribute-set-rss)

- **do**:

  **request**

  - **attributes**:

    \[`header`, `context`\]

<a id="rst-rss-delete-ntf"></a>
<a id="rst-ethtool-operation-rss-delete-ntf"></a>



### rss-delete-ntf



Notification for deletion of an additional RSS context.

- **attribute-set**:

  [rss](#rst-ethtool-attribute-set-rss)

- **event**:

  - **attributes**:

    \[`header`, `context`\]

<a id="rst-mse-get"></a>
<a id="rst-ethtool-operation-mse-get"></a>



### mse-get



Get PHY MSE measurement data and capabilities.

- **attribute-set**:

  [mse](#rst-ethtool-attribute-set-mse)

- **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`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- monitor


<a id="rst-definitions"></a>



## Definitions

<a id="rst-udp-tunnel-type"></a>
<a id="rst-ethtool-definition-udp-tunnel-type"></a>



### udp-tunnel-type

- **enum-name**:

  None

- **type**:

  enum

- **enum-cnt-name**:

  \_\_ethtool-udp-tunnel-type-cnt

- **entries**:

  - `vxlan`


  - `geneve`


  - `vxlan-gpe`

<a id="rst-stringset"></a>
<a id="rst-ethtool-definition-stringset"></a>



### stringset

- **type**:

  enum

- **header**:

  linux/ethtool.h

- **entries**

<a id="rst-header-flags"></a>
<a id="rst-ethtool-definition-header-flags"></a>



### 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

<a id="rst-module-fw-flash-status"></a>
<a id="rst-ethtool-definition-module-fw-flash-status"></a>



### 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.

<a id="rst-c33-pse-ext-state"></a>
<a id="rst-ethtool-definition-c33-pse-ext-state"></a>



### 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

<a id="rst-phy-upstream-type"></a>
<a id="rst-ethtool-definition-phy-upstream-type"></a>



### phy-upstream-type

- **enum-name**:

  phy-upstream

- **header**:

  linux/ethtool.h

- **type**:

  enum

- **name-prefix**:

  phy-upstream

- **entries**:

  - `mac`


  - `phy`

<a id="rst-tcp-data-split"></a>
<a id="rst-ethtool-definition-tcp-data-split"></a>



### tcp-data-split

- **type**:

  enum

- **entries**:

  - `unknown`


  - `disabled`


  - `enabled`

<a id="rst-hwtstamp-source"></a>
<a id="rst-ethtool-definition-hwtstamp-source"></a>



### 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

<a id="rst-pse-event"></a>
<a id="rst-ethtool-definition-pse-event"></a>



### 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

<a id="rst-input-xfrm"></a>
<a id="rst-ethtool-definition-input-xfrm"></a>



### 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.

<a id="rst-rxfh-fields"></a>
<a id="rst-ethtool-definition-rxfh-fields"></a>



### 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**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-header"></a>
<a id="rst-ethtool-attribute-set-header"></a>



### header

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-dev-index-u32"></a>



#### dev-index (`u32`)

<a id="rst-dev-name-string"></a>



#### dev-name (`string`)

<a id="rst-flags-u32"></a>



#### flags (`u32`)

- **enum**:

  [header-flags](#rst-ethtool-definition-header-flags)

<a id="rst-phy-index-u32"></a>



#### phy-index (`u32`)

<a id="rst-bitset-bit"></a>
<a id="rst-ethtool-attribute-set-bitset-bit"></a>



### bitset-bit

<a id="rst-unspec-unused-1"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-index-u32"></a>



#### index (`u32`)

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-value-flag"></a>



#### value (`flag`)

<a id="rst-bitset-bits"></a>
<a id="rst-ethtool-attribute-set-bitset-bits"></a>



### bitset-bits

<a id="rst-unspec-unused-2"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-bit-nest"></a>



#### bit (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [bitset-bit](#rst-ethtool-attribute-set-bitset-bit)

<a id="rst-bitset"></a>
<a id="rst-ethtool-attribute-set-bitset"></a>



### bitset

<a id="rst-unspec-unused-3"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-nomask-flag"></a>



#### nomask (`flag`)

<a id="rst-size-u32"></a>



#### size (`u32`)

<a id="rst-bits-nest"></a>



#### bits (`nest`)

- **nested-attributes**:

  [bitset-bits](#rst-ethtool-attribute-set-bitset-bits)

<a id="rst-value-binary"></a>



#### value (`binary`)

<a id="rst-mask-binary"></a>



#### mask (`binary`)

<a id="rst-string"></a>
<a id="rst-ethtool-attribute-set-string"></a>



### string

<a id="rst-unspec-unused-4"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-index-u32-1"></a>



#### index (`u32`)

<a id="rst-value-string"></a>



#### value (`string`)

<a id="rst-strings"></a>
<a id="rst-ethtool-attribute-set-strings"></a>



### strings

<a id="rst-unspec-unused-5"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-unspec-unused-6"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-string-nest"></a>



#### string (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [string](#rst-ethtool-attribute-set-string)

<a id="rst-stringset-1"></a>
<a id="rst-ethtool-attribute-set-stringset"></a>



### stringset

<a id="rst-unspec-unused-7"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-id-u32"></a>



#### id (`u32`)

<a id="rst-count-u32"></a>



#### count (`u32`)

<a id="rst-strings-nest"></a>



#### strings (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [strings](#rst-ethtool-attribute-set-strings)

<a id="rst-stringsets"></a>
<a id="rst-ethtool-attribute-set-stringsets"></a>



### stringsets

<a id="rst-unspec-unused-8"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-stringset-nest"></a>



#### stringset (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [stringset](#rst-ethtool-attribute-set-stringset)

<a id="rst-strset"></a>
<a id="rst-ethtool-attribute-set-strset"></a>



### strset

<a id="rst-unspec-unused-9"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-stringsets-nest"></a>



#### stringsets (`nest`)

- **nested-attributes**:

  [stringsets](#rst-ethtool-attribute-set-stringsets)

<a id="rst-counts-only-flag"></a>



#### counts-only (`flag`)

<a id="rst-privflags"></a>
<a id="rst-ethtool-attribute-set-privflags"></a>



### privflags

<a id="rst-unspec-unused-10"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-1"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-flags-nest"></a>



#### flags (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-rings"></a>
<a id="rst-ethtool-attribute-set-rings"></a>



### rings

<a id="rst-unspec-unused-11"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-2"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-rx-max-u32"></a>



#### rx-max (`u32`)

<a id="rst-rx-mini-max-u32"></a>



#### rx-mini-max (`u32`)

<a id="rst-rx-jumbo-max-u32"></a>



#### rx-jumbo-max (`u32`)

<a id="rst-tx-max-u32"></a>



#### tx-max (`u32`)

<a id="rst-rx-u32"></a>



#### rx (`u32`)

<a id="rst-rx-mini-u32"></a>



#### rx-mini (`u32`)

<a id="rst-rx-jumbo-u32"></a>



#### rx-jumbo (`u32`)

<a id="rst-tx-u32"></a>



#### tx (`u32`)

<a id="rst-rx-buf-len-u32"></a>



#### rx-buf-len (`u32`)

<a id="rst-tcp-data-split-u8"></a>



#### tcp-data-split (`u8`)

- **enum**:

  [tcp-data-split](#rst-ethtool-definition-tcp-data-split)

<a id="rst-cqe-size-u32"></a>



#### cqe-size (`u32`)

<a id="rst-tx-push-u8"></a>



#### tx-push (`u8`)

<a id="rst-rx-push-u8"></a>



#### rx-push (`u8`)

<a id="rst-tx-push-buf-len-u32"></a>



#### tx-push-buf-len (`u32`)

<a id="rst-tx-push-buf-len-max-u32"></a>



#### tx-push-buf-len-max (`u32`)

<a id="rst-hds-thresh-u32"></a>



#### hds-thresh (`u32`)

<a id="rst-hds-thresh-max-u32"></a>



#### hds-thresh-max (`u32`)

<a id="rst-mm-stat"></a>
<a id="rst-ethtool-attribute-set-mm-stat"></a>



### mm-stat



MAC Merge (802.3)

<a id="rst-unspec-unused-12"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-reassembly-errors-u64"></a>



#### reassembly-errors (`u64`)

- **doc**:

  aMACMergeFrameAssErrorCount

<a id="rst-smd-errors-u64"></a>



#### smd-errors (`u64`)

- **doc**:

  aMACMergeFrameSmdErrorCount

<a id="rst-reassembly-ok-u64"></a>



#### reassembly-ok (`u64`)

- **doc**:

  aMACMergeFrameAssOkCount

<a id="rst-rx-frag-count-u64"></a>



#### rx-frag-count (`u64`)

- **doc**:

  aMACMergeFragCountRx

<a id="rst-tx-frag-count-u64"></a>



#### tx-frag-count (`u64`)

- **doc**:

  aMACMergeFragCountTx

<a id="rst-hold-count-u64"></a>



#### hold-count (`u64`)

- **doc**:

  aMACMergeHoldCount

<a id="rst-mm"></a>
<a id="rst-ethtool-attribute-set-mm"></a>



### mm

<a id="rst-unspec-unused-13"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-3"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-pmac-enabled-u8"></a>



#### pmac-enabled (`u8`)

<a id="rst-tx-enabled-u8"></a>



#### tx-enabled (`u8`)

<a id="rst-tx-active-u8"></a>



#### tx-active (`u8`)

<a id="rst-tx-min-frag-size-u32"></a>



#### tx-min-frag-size (`u32`)

<a id="rst-rx-min-frag-size-u32"></a>



#### rx-min-frag-size (`u32`)

<a id="rst-verify-enabled-u8"></a>



#### verify-enabled (`u8`)

<a id="rst-verify-status-u8"></a>



#### verify-status (`u8`)

<a id="rst-verify-time-u32"></a>



#### verify-time (`u32`)

<a id="rst-max-verify-time-u32"></a>



#### max-verify-time (`u32`)

<a id="rst-stats-nest"></a>



#### stats (`nest`)

- **nested-attributes**:

  [mm-stat](#rst-ethtool-attribute-set-mm-stat)

<a id="rst-linkinfo"></a>
<a id="rst-ethtool-attribute-set-linkinfo"></a>



### linkinfo

<a id="rst-unspec-unused-14"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-4"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-port-u8"></a>



#### port (`u8`)

<a id="rst-phyaddr-u8"></a>



#### phyaddr (`u8`)

<a id="rst-tp-mdix-u8"></a>



#### tp-mdix (`u8`)

<a id="rst-tp-mdix-ctrl-u8"></a>



#### tp-mdix-ctrl (`u8`)

<a id="rst-transceiver-u8"></a>



#### transceiver (`u8`)

<a id="rst-linkmodes"></a>
<a id="rst-ethtool-attribute-set-linkmodes"></a>



### linkmodes

<a id="rst-unspec-unused-15"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-5"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-autoneg-u8"></a>



#### autoneg (`u8`)

<a id="rst-ours-nest"></a>



#### ours (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-peer-nest"></a>



#### peer (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-speed-u32"></a>



#### speed (`u32`)

<a id="rst-duplex-u8"></a>



#### duplex (`u8`)

<a id="rst-master-slave-cfg-u8"></a>



#### master-slave-cfg (`u8`)

<a id="rst-master-slave-state-u8"></a>



#### master-slave-state (`u8`)

<a id="rst-lanes-u32"></a>



#### lanes (`u32`)

<a id="rst-rate-matching-u8"></a>



#### rate-matching (`u8`)

<a id="rst-linkstate"></a>
<a id="rst-ethtool-attribute-set-linkstate"></a>



### linkstate

<a id="rst-unspec-unused-16"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-6"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-link-u8"></a>



#### link (`u8`)

<a id="rst-sqi-u32"></a>



#### sqi (`u32`)

<a id="rst-sqi-max-u32"></a>



#### sqi-max (`u32`)

<a id="rst-ext-state-u8"></a>



#### ext-state (`u8`)

<a id="rst-ext-substate-u8"></a>



#### ext-substate (`u8`)

<a id="rst-ext-down-cnt-u32"></a>



#### ext-down-cnt (`u32`)

<a id="rst-debug"></a>
<a id="rst-ethtool-attribute-set-debug"></a>



### debug

<a id="rst-unspec-unused-17"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-7"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-msgmask-nest"></a>



#### msgmask (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-wol"></a>
<a id="rst-ethtool-attribute-set-wol"></a>



### wol

<a id="rst-unspec-unused-18"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-8"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-modes-nest"></a>



#### modes (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-sopass-binary"></a>



#### sopass (`binary`)

<a id="rst-features"></a>
<a id="rst-ethtool-attribute-set-features"></a>



### features

<a id="rst-unspec-unused-19"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-9"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-hw-nest"></a>



#### hw (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-wanted-nest"></a>



#### wanted (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-active-nest"></a>



#### active (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-nochange-nest"></a>



#### nochange (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-channels"></a>
<a id="rst-ethtool-attribute-set-channels"></a>



### channels

<a id="rst-unspec-unused-20"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-10"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-rx-max-u32-1"></a>



#### rx-max (`u32`)

<a id="rst-tx-max-u32-1"></a>



#### tx-max (`u32`)

<a id="rst-other-max-u32"></a>



#### other-max (`u32`)

<a id="rst-combined-max-u32"></a>



#### combined-max (`u32`)

<a id="rst-rx-count-u32"></a>



#### rx-count (`u32`)

<a id="rst-tx-count-u32"></a>



#### tx-count (`u32`)

<a id="rst-other-count-u32"></a>



#### other-count (`u32`)

<a id="rst-combined-count-u32"></a>



#### combined-count (`u32`)

<a id="rst-irq-moderation"></a>
<a id="rst-ethtool-attribute-set-irq-moderation"></a>



### irq-moderation

<a id="rst-unspec-unused-21"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-usec-u32"></a>



#### usec (`u32`)

<a id="rst-pkts-u32"></a>



#### pkts (`u32`)

<a id="rst-comps-u32"></a>



#### comps (`u32`)

<a id="rst-profile"></a>
<a id="rst-ethtool-attribute-set-profile"></a>



### profile

<a id="rst-unspec-unused-22"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-irq-moderation-nest"></a>



#### irq-moderation (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [irq-moderation](#rst-ethtool-attribute-set-irq-moderation)

<a id="rst-coalesce"></a>
<a id="rst-ethtool-attribute-set-coalesce"></a>



### coalesce

<a id="rst-unspec-unused-23"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-11"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-rx-usecs-u32"></a>



#### rx-usecs (`u32`)

<a id="rst-rx-max-frames-u32"></a>



#### rx-max-frames (`u32`)

<a id="rst-rx-usecs-irq-u32"></a>



#### rx-usecs-irq (`u32`)

<a id="rst-rx-max-frames-irq-u32"></a>



#### rx-max-frames-irq (`u32`)

<a id="rst-tx-usecs-u32"></a>



#### tx-usecs (`u32`)

<a id="rst-tx-max-frames-u32"></a>



#### tx-max-frames (`u32`)

<a id="rst-tx-usecs-irq-u32"></a>



#### tx-usecs-irq (`u32`)

<a id="rst-tx-max-frames-irq-u32"></a>



#### tx-max-frames-irq (`u32`)

<a id="rst-stats-block-usecs-u32"></a>



#### stats-block-usecs (`u32`)

<a id="rst-use-adaptive-rx-u8"></a>



#### use-adaptive-rx (`u8`)

<a id="rst-use-adaptive-tx-u8"></a>



#### use-adaptive-tx (`u8`)

<a id="rst-pkt-rate-low-u32"></a>



#### pkt-rate-low (`u32`)

<a id="rst-rx-usecs-low-u32"></a>



#### rx-usecs-low (`u32`)

<a id="rst-rx-max-frames-low-u32"></a>



#### rx-max-frames-low (`u32`)

<a id="rst-tx-usecs-low-u32"></a>



#### tx-usecs-low (`u32`)

<a id="rst-tx-max-frames-low-u32"></a>



#### tx-max-frames-low (`u32`)

<a id="rst-pkt-rate-high-u32"></a>



#### pkt-rate-high (`u32`)

<a id="rst-rx-usecs-high-u32"></a>



#### rx-usecs-high (`u32`)

<a id="rst-rx-max-frames-high-u32"></a>



#### rx-max-frames-high (`u32`)

<a id="rst-tx-usecs-high-u32"></a>



#### tx-usecs-high (`u32`)

<a id="rst-tx-max-frames-high-u32"></a>



#### tx-max-frames-high (`u32`)

<a id="rst-rate-sample-interval-u32"></a>



#### rate-sample-interval (`u32`)

<a id="rst-use-cqe-mode-tx-u8"></a>



#### use-cqe-mode-tx (`u8`)

<a id="rst-use-cqe-mode-rx-u8"></a>



#### use-cqe-mode-rx (`u8`)

<a id="rst-tx-aggr-max-bytes-u32"></a>



#### tx-aggr-max-bytes (`u32`)

<a id="rst-tx-aggr-max-frames-u32"></a>



#### tx-aggr-max-frames (`u32`)

<a id="rst-tx-aggr-time-usecs-u32"></a>



#### tx-aggr-time-usecs (`u32`)

<a id="rst-rx-profile-nest"></a>



#### rx-profile (`nest`)

- **nested-attributes**:

  [profile](#rst-ethtool-attribute-set-profile)

<a id="rst-tx-profile-nest"></a>



#### tx-profile (`nest`)

- **nested-attributes**:

  [profile](#rst-ethtool-attribute-set-profile)

<a id="rst-pause-stat"></a>
<a id="rst-ethtool-attribute-set-pause-stat"></a>



### pause-stat

<a id="rst-unspec-unused-24"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-tx-frames-u64"></a>



#### tx-frames (`u64`)

<a id="rst-rx-frames-u64"></a>



#### rx-frames (`u64`)

<a id="rst-pause"></a>
<a id="rst-ethtool-attribute-set-pause"></a>



### pause

<a id="rst-unspec-unused-25"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-12"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-autoneg-u8-1"></a>



#### autoneg (`u8`)

<a id="rst-rx-u8"></a>



#### rx (`u8`)

<a id="rst-tx-u8"></a>



#### tx (`u8`)

<a id="rst-stats-nest-1"></a>



#### stats (`nest`)

- **nested-attributes**:

  [pause-stat](#rst-ethtool-attribute-set-pause-stat)

<a id="rst-stats-src-u32"></a>



#### stats-src (`u32`)

<a id="rst-eee"></a>
<a id="rst-ethtool-attribute-set-eee"></a>



### eee

<a id="rst-unspec-unused-26"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-13"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-modes-ours-nest"></a>



#### modes-ours (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-modes-peer-nest"></a>



#### modes-peer (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-active-u8"></a>



#### active (`u8`)

<a id="rst-enabled-u8"></a>



#### enabled (`u8`)

<a id="rst-tx-lpi-enabled-u8"></a>



#### tx-lpi-enabled (`u8`)

<a id="rst-tx-lpi-timer-u32"></a>



#### tx-lpi-timer (`u32`)

<a id="rst-ts-stat"></a>
<a id="rst-ethtool-attribute-set-ts-stat"></a>



### ts-stat

<a id="rst-unspec-unused-27"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-tx-pkts-uint"></a>



#### tx-pkts (`uint`)

<a id="rst-tx-lost-uint"></a>



#### tx-lost (`uint`)

<a id="rst-tx-err-uint"></a>



#### tx-err (`uint`)

<a id="rst-tx-onestep-pkts-unconfirmed-uint"></a>



#### tx-onestep-pkts-unconfirmed (`uint`)

<a id="rst-ts-hwtstamp-provider"></a>
<a id="rst-ethtool-attribute-set-ts-hwtstamp-provider"></a>



### ts-hwtstamp-provider

<a id="rst-unspec-unused-28"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-index-u32-2"></a>



#### index (`u32`)

<a id="rst-qualifier-u32"></a>



#### qualifier (`u32`)

<a id="rst-tsinfo"></a>
<a id="rst-ethtool-attribute-set-tsinfo"></a>



### tsinfo

<a id="rst-unspec-unused-29"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-14"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-timestamping-nest"></a>



#### timestamping (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-tx-types-nest"></a>



#### tx-types (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-rx-filters-nest"></a>



#### rx-filters (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-phc-index-u32"></a>



#### phc-index (`u32`)

<a id="rst-stats-nest-2"></a>



#### stats (`nest`)

- **nested-attributes**:

  [ts-stat](#rst-ethtool-attribute-set-ts-stat)

<a id="rst-hwtstamp-provider-nest"></a>



#### hwtstamp-provider (`nest`)

- **nested-attributes**:

  [ts-hwtstamp-provider](#rst-ethtool-attribute-set-ts-hwtstamp-provider)

<a id="rst-hwtstamp-source-u32"></a>



#### hwtstamp-source (`u32`)

- **enum**:

  [hwtstamp-source](#rst-ethtool-definition-hwtstamp-source)

<a id="rst-hwtstamp-phyindex-u32"></a>



#### hwtstamp-phyindex (`u32`)

<a id="rst-cable-result"></a>
<a id="rst-ethtool-attribute-set-cable-result"></a>



### cable-result

<a id="rst-unspec-unused-30"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pair-u8"></a>



#### pair (`u8`)

- **doc**:

  ETHTOOL\_A\_CABLE\_PAIR

<a id="rst-code-u8"></a>



#### code (`u8`)

- **doc**:

  ETHTOOL\_A\_CABLE\_RESULT\_CODE

<a id="rst-src-u32"></a>



#### src (`u32`)

- **doc**:

  ETHTOOL\_A\_CABLE\_INF\_SRC

<a id="rst-cable-fault-length"></a>
<a id="rst-ethtool-attribute-set-cable-fault-length"></a>



### cable-fault-length

<a id="rst-unspec-unused-31"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pair-u8-1"></a>



#### pair (`u8`)

<a id="rst-cm-u32"></a>



#### cm (`u32`)

<a id="rst-src-u32-1"></a>



#### src (`u32`)

<a id="rst-cable-nest"></a>
<a id="rst-ethtool-attribute-set-cable-nest"></a>



### cable-nest

<a id="rst-unspec-unused-32"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-result-nest"></a>



#### result (`nest`)

- **nested-attributes**:

  [cable-result](#rst-ethtool-attribute-set-cable-result)

<a id="rst-fault-length-nest"></a>



#### fault-length (`nest`)

- **nested-attributes**:

  [cable-fault-length](#rst-ethtool-attribute-set-cable-fault-length)

<a id="rst-cable-test"></a>
<a id="rst-ethtool-attribute-set-cable-test"></a>



### cable-test

<a id="rst-unspec-unused-33"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-15"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-cable-test-ntf-1"></a>
<a id="rst-ethtool-attribute-set-cable-test-ntf"></a>



### cable-test-ntf

<a id="rst-unspec-unused-34"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-16"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-status-u8"></a>



#### status (`u8`)

- **doc**:

  \_STARTED/\_COMPLETE

<a id="rst-nest-nest"></a>



#### nest (`nest`)

- **nested-attributes**:

  [cable-nest](#rst-ethtool-attribute-set-cable-nest)

<a id="rst-cable-test-tdr-cfg"></a>
<a id="rst-ethtool-attribute-set-cable-test-tdr-cfg"></a>



### cable-test-tdr-cfg

<a id="rst-unspec-unused-35"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-first-u32"></a>



#### first (`u32`)

<a id="rst-last-u32"></a>



#### last (`u32`)

<a id="rst-step-u32"></a>



#### step (`u32`)

<a id="rst-pair-u8-2"></a>



#### pair (`u8`)

<a id="rst-cable-test-tdr-ntf-1"></a>
<a id="rst-ethtool-attribute-set-cable-test-tdr-ntf"></a>



### cable-test-tdr-ntf

<a id="rst-unspec-unused-36"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-17"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-status-u8-1"></a>



#### status (`u8`)

<a id="rst-nest-nest-1"></a>



#### nest (`nest`)

- **nested-attributes**:

  [cable-nest](#rst-ethtool-attribute-set-cable-nest)

<a id="rst-cable-test-tdr"></a>
<a id="rst-ethtool-attribute-set-cable-test-tdr"></a>



### cable-test-tdr

<a id="rst-unspec-unused-37"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-18"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-cfg-nest"></a>



#### cfg (`nest`)

- **nested-attributes**:

  [cable-test-tdr-cfg](#rst-ethtool-attribute-set-cable-test-tdr-cfg)

<a id="rst-tunnel-udp-entry"></a>
<a id="rst-ethtool-attribute-set-tunnel-udp-entry"></a>



### tunnel-udp-entry

<a id="rst-unspec-unused-38"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-port-u16"></a>



#### port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-type-u32"></a>



#### type (`u32`)

- **enum**:

  [udp-tunnel-type](#rst-ethtool-definition-udp-tunnel-type)

<a id="rst-tunnel-udp-table"></a>
<a id="rst-ethtool-attribute-set-tunnel-udp-table"></a>



### tunnel-udp-table

<a id="rst-unspec-unused-39"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-size-u32-1"></a>



#### size (`u32`)

<a id="rst-types-nest"></a>



#### types (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-entry-nest"></a>



#### entry (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [tunnel-udp-entry](#rst-ethtool-attribute-set-tunnel-udp-entry)

<a id="rst-tunnel-udp"></a>
<a id="rst-ethtool-attribute-set-tunnel-udp"></a>



### tunnel-udp

<a id="rst-unspec-unused-40"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-table-nest"></a>



#### table (`nest`)

- **nested-attributes**:

  [tunnel-udp-table](#rst-ethtool-attribute-set-tunnel-udp-table)

<a id="rst-tunnel-info"></a>
<a id="rst-ethtool-attribute-set-tunnel-info"></a>



### tunnel-info

<a id="rst-unspec-unused-41"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-19"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-udp-ports-nest"></a>



#### udp-ports (`nest`)

- **nested-attributes**:

  [tunnel-udp](#rst-ethtool-attribute-set-tunnel-udp)

<a id="rst-fec-hist"></a>
<a id="rst-ethtool-attribute-set-fec-hist"></a>



### fec-hist

<a id="rst-pad-pad-2"></a>



#### pad (`pad`)

<a id="rst-bin-low-u32"></a>



#### bin-low (`u32`)

- **doc**:

  Low bound of FEC bin (inclusive)

<a id="rst-bin-high-u32"></a>



#### bin-high (`u32`)

- **doc**:

  High bound of FEC bin (inclusive)

<a id="rst-bin-val-uint"></a>



#### bin-val (`uint`)

- **doc**:

  Error count in the bin (optional if per-lane values exist)

<a id="rst-bin-val-per-lane-binary"></a>



#### bin-val-per-lane (`binary`)

- **sub-type**:

  u64

- **doc**:

  An array of per-lane error counters in the bin (optional)

<a id="rst-fec-stat"></a>
<a id="rst-ethtool-attribute-set-fec-stat"></a>



### fec-stat

<a id="rst-unspec-unused-42"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pad-pad-3"></a>



#### pad (`pad`)

<a id="rst-corrected-binary"></a>



#### corrected (`binary`)

- **sub-type**:

  u64

<a id="rst-uncorr-binary"></a>



#### uncorr (`binary`)

- **sub-type**:

  u64

<a id="rst-corr-bits-binary"></a>



#### corr-bits (`binary`)

- **sub-type**:

  u64

<a id="rst-hist-nest"></a>



#### hist (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [fec-hist](#rst-ethtool-attribute-set-fec-hist)

<a id="rst-fec"></a>
<a id="rst-ethtool-attribute-set-fec"></a>



### fec

<a id="rst-unspec-unused-43"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-20"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-modes-nest-1"></a>



#### modes (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-auto-u8"></a>



#### auto (`u8`)

<a id="rst-active-u32"></a>



#### active (`u32`)

<a id="rst-stats-nest-3"></a>



#### stats (`nest`)

- **nested-attributes**:

  [fec-stat](#rst-ethtool-attribute-set-fec-stat)

<a id="rst-module-eeprom"></a>
<a id="rst-ethtool-attribute-set-module-eeprom"></a>



### module-eeprom

<a id="rst-unspec-unused-44"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-21"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-offset-u32"></a>



#### offset (`u32`)

<a id="rst-length-u32"></a>



#### length (`u32`)

<a id="rst-page-u8"></a>



#### page (`u8`)

<a id="rst-bank-u8"></a>



#### bank (`u8`)

<a id="rst-i2c-address-u8"></a>



#### i2c-address (`u8`)

<a id="rst-data-binary"></a>



#### data (`binary`)

<a id="rst-stats-grp"></a>
<a id="rst-ethtool-attribute-set-stats-grp"></a>



### stats-grp

<a id="rst-unspec-unused-45"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pad-pad-4"></a>



#### pad (`pad`)

<a id="rst-id-u32-1"></a>



#### id (`u32`)

<a id="rst-ss-id-u32"></a>



#### ss-id (`u32`)

<a id="rst-stat-u64"></a>



#### stat (`u64`)

- **type-value**:

  \['id'\]

<a id="rst-hist-rx-nest"></a>



#### hist-rx (`nest`)

- **nested-attributes**:

  [stats-grp-hist](#rst-ethtool-attribute-set-stats-grp-hist)

<a id="rst-hist-tx-nest"></a>



#### hist-tx (`nest`)

- **nested-attributes**:

  [stats-grp-hist](#rst-ethtool-attribute-set-stats-grp-hist)

<a id="rst-hist-bkt-low-u32"></a>



#### hist-bkt-low (`u32`)

<a id="rst-hist-bkt-hi-u32"></a>



#### hist-bkt-hi (`u32`)

<a id="rst-hist-val-u64"></a>



#### hist-val (`u64`)

<a id="rst-stats-grp-hist"></a>
<a id="rst-ethtool-attribute-set-stats-grp-hist"></a>



### stats-grp-hist

<a id="rst-hist-bkt-low"></a>



#### hist-bkt-low

<a id="rst-hist-bkt-hi"></a>



#### hist-bkt-hi

<a id="rst-hist-val"></a>



#### hist-val

<a id="rst-stats"></a>
<a id="rst-ethtool-attribute-set-stats"></a>



### stats

<a id="rst-unspec-unused-46"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-pad-pad-5"></a>



#### pad (`pad`)

<a id="rst-header-nest-22"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-groups-nest"></a>



#### groups (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-grp-nest"></a>



#### grp (`nest`)

- **nested-attributes**:

  [stats-grp](#rst-ethtool-attribute-set-stats-grp)

<a id="rst-src-u32-2"></a>



#### src (`u32`)

<a id="rst-phc-vclocks"></a>
<a id="rst-ethtool-attribute-set-phc-vclocks"></a>



### phc-vclocks

<a id="rst-unspec-unused-47"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-23"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-num-u32"></a>



#### num (`u32`)

<a id="rst-index-binary"></a>



#### index (`binary`)

- **sub-type**:

  s32

<a id="rst-module"></a>
<a id="rst-ethtool-attribute-set-module"></a>



### module

<a id="rst-unspec-unused-48"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-24"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-power-mode-policy-u8"></a>



#### power-mode-policy (`u8`)

<a id="rst-power-mode-u8"></a>



#### power-mode (`u8`)

<a id="rst-c33-pse-pw-limit"></a>
<a id="rst-ethtool-attribute-set-c33-pse-pw-limit"></a>



### c33-pse-pw-limit

<a id="rst-unspec-unused-49"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-min-u32"></a>



#### min (`u32`)

<a id="rst-max-u32"></a>



#### max (`u32`)

<a id="rst-pse"></a>
<a id="rst-ethtool-attribute-set-pse"></a>



### pse

<a id="rst-unspec-unused-50"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-25"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-podl-pse-admin-state-u32"></a>



#### podl-pse-admin-state (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-podl-pse-admin-control-u32"></a>



#### podl-pse-admin-control (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-podl-pse-pw-d-status-u32"></a>



#### podl-pse-pw-d-status (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-admin-state-u32"></a>



#### c33-pse-admin-state (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-admin-control-u32"></a>



#### c33-pse-admin-control (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-pw-d-status-u32"></a>



#### c33-pse-pw-d-status (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-pw-class-u32"></a>



#### c33-pse-pw-class (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-actual-pw-u32"></a>



#### c33-pse-actual-pw (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-ext-state-u32"></a>



#### c33-pse-ext-state (`u32`)

- **name-prefix**:

  ethtool-a-

- **enum**:

  [c33-pse-ext-state](#rst-ethtool-definition-c33-pse-ext-state)

<a id="rst-c33-pse-ext-substate-u32"></a>



#### c33-pse-ext-substate (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-avail-pw-limit-u32"></a>



#### c33-pse-avail-pw-limit (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-c33-pse-pw-limit-ranges-nest"></a>



#### c33-pse-pw-limit-ranges (`nest`)

- **name-prefix**:

  ethtool-a-

- **multi-attr**:

  True

- **nested-attributes**:

  [c33-pse-pw-limit](#rst-ethtool-attribute-set-c33-pse-pw-limit)

<a id="rst-pse-pw-d-id-u32"></a>



#### pse-pw-d-id (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-pse-prio-max-u32"></a>



#### pse-prio-max (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-pse-prio-u32"></a>



#### pse-prio (`u32`)

- **name-prefix**:

  ethtool-a-

<a id="rst-flow"></a>
<a id="rst-ethtool-attribute-set-flow"></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.

<a id="rst-ether-uint"></a>



#### ether (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-ip4-uint"></a>



#### ip4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-ip6-uint"></a>



#### ip6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-tcp4-uint"></a>



#### tcp4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-tcp6-uint"></a>



#### tcp6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-udp4-uint"></a>



#### udp4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-udp6-uint"></a>



#### udp6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-sctp4-uint"></a>



#### sctp4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-sctp6-uint"></a>



#### sctp6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-ah4-uint"></a>



#### ah4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-ah6-uint"></a>



#### ah6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-esp4-uint"></a>



#### esp4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-esp6-uint"></a>



#### esp6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-ah-esp4-uint"></a>



#### ah-esp4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-ah-esp6-uint"></a>



#### ah-esp6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu4-uint"></a>



#### gtpu4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu6-uint"></a>



#### gtpu6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpc4-uint"></a>



#### gtpc4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpc6-uint"></a>



#### gtpc6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpc-teid4-uint"></a>



#### gtpc-teid4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpc-teid6-uint"></a>



#### gtpc-teid6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu-eh4-uint"></a>



#### gtpu-eh4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu-eh6-uint"></a>



#### gtpu-eh6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu-ul4-uint"></a>



#### gtpu-ul4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu-ul6-uint"></a>



#### gtpu-ul6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu-dl4-uint"></a>



#### gtpu-dl4 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-gtpu-dl6-uint"></a>



#### gtpu-dl6 (`uint`)

- **enum**:

  [rxfh-fields](#rst-ethtool-definition-rxfh-fields)

<a id="rst-rss"></a>
<a id="rst-ethtool-attribute-set-rss"></a>



### rss

<a id="rst-unspec-unused-51"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-26"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-context-u32"></a>



#### context (`u32`)

<a id="rst-hfunc-u32"></a>



#### hfunc (`u32`)

<a id="rst-indir-binary"></a>



#### indir (`binary`)

- **sub-type**:

  u32

<a id="rst-hkey-binary"></a>



#### hkey (`binary`)

<a id="rst-input-xfrm-u32"></a>



#### input-xfrm (`u32`)

- **enum**:

  [input-xfrm](#rst-ethtool-definition-input-xfrm)

<a id="rst-start-context-u32"></a>



#### start-context (`u32`)

<a id="rst-flow-hash-nest"></a>



#### flow-hash (`nest`)

- **nested-attributes**:

  [flow](#rst-ethtool-attribute-set-flow)

<a id="rst-plca"></a>
<a id="rst-ethtool-attribute-set-plca"></a>



### plca

<a id="rst-unspec-unused-52"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-27"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-version-u16"></a>



#### version (`u16`)

<a id="rst-enabled-u8-1"></a>



#### enabled (`u8`)

<a id="rst-status-u8-2"></a>



#### status (`u8`)

<a id="rst-node-cnt-u32"></a>



#### node-cnt (`u32`)

<a id="rst-node-id-u32"></a>



#### node-id (`u32`)

<a id="rst-to-tmr-u32"></a>



#### to-tmr (`u32`)

<a id="rst-burst-cnt-u32"></a>



#### burst-cnt (`u32`)

<a id="rst-burst-tmr-u32"></a>



#### burst-tmr (`u32`)

<a id="rst-module-fw-flash"></a>
<a id="rst-ethtool-attribute-set-module-fw-flash"></a>



### module-fw-flash

<a id="rst-unspec-unused-53"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-28"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-file-name-string"></a>



#### file-name (`string`)

<a id="rst-password-u32"></a>



#### password (`u32`)

<a id="rst-status-u32"></a>



#### status (`u32`)

- **enum**:

  [module-fw-flash-status](#rst-ethtool-definition-module-fw-flash-status)

<a id="rst-status-msg-string"></a>



#### status-msg (`string`)

<a id="rst-done-uint"></a>



#### done (`uint`)

<a id="rst-total-uint"></a>



#### total (`uint`)

<a id="rst-phy"></a>
<a id="rst-ethtool-attribute-set-phy"></a>



### phy

<a id="rst-unspec-unused-54"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-29"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-index-u32-3"></a>



#### index (`u32`)

<a id="rst-drvname-string"></a>



#### drvname (`string`)

<a id="rst-name-string-1"></a>



#### name (`string`)

<a id="rst-upstream-type-u32"></a>



#### upstream-type (`u32`)

- **enum**:

  [phy-upstream-type](#rst-ethtool-definition-phy-upstream-type)

<a id="rst-upstream-index-u32"></a>



#### upstream-index (`u32`)

<a id="rst-upstream-sfp-name-string"></a>



#### upstream-sfp-name (`string`)

<a id="rst-downstream-sfp-name-string"></a>



#### downstream-sfp-name (`string`)

<a id="rst-tsconfig"></a>
<a id="rst-ethtool-attribute-set-tsconfig"></a>



### tsconfig

<a id="rst-unspec-unused-55"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-header-nest-30"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-hwtstamp-provider-nest-1"></a>



#### hwtstamp-provider (`nest`)

- **nested-attributes**:

  [ts-hwtstamp-provider](#rst-ethtool-attribute-set-ts-hwtstamp-provider)

<a id="rst-tx-types-nest-1"></a>



#### tx-types (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-rx-filters-nest-1"></a>



#### rx-filters (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-hwtstamp-flags-nest"></a>



#### hwtstamp-flags (`nest`)

- **nested-attributes**:

  [bitset](#rst-ethtool-attribute-set-bitset)

<a id="rst-pse-ntf-1"></a>
<a id="rst-ethtool-attribute-set-pse-ntf"></a>



### pse-ntf

<a id="rst-header-nest-31"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-events-uint"></a>



#### events (`uint`)

- **enum**:

  [pse-event](#rst-ethtool-definition-pse-event)

- **doc**:

  List of events reported by the PSE controller

<a id="rst-mse-capabilities"></a>
<a id="rst-ethtool-attribute-set-mse-capabilities"></a>



### mse-capabilities



MSE capabilities attribute set

<a id="rst-max-average-mse-uint"></a>



#### max-average-mse (`uint`)

<a id="rst-max-peak-mse-uint"></a>



#### max-peak-mse (`uint`)

<a id="rst-refresh-rate-ps-uint"></a>



#### refresh-rate-ps (`uint`)

<a id="rst-num-symbols-uint"></a>



#### num-symbols (`uint`)

<a id="rst-mse-snapshot"></a>
<a id="rst-ethtool-attribute-set-mse-snapshot"></a>



### mse-snapshot



MSE snapshot attribute set

<a id="rst-average-mse-uint"></a>



#### average-mse (`uint`)

<a id="rst-peak-mse-uint"></a>



#### peak-mse (`uint`)

<a id="rst-worst-peak-mse-uint"></a>



#### worst-peak-mse (`uint`)

<a id="rst-mse"></a>
<a id="rst-ethtool-attribute-set-mse"></a>



### mse

<a id="rst-header-nest-32"></a>



#### header (`nest`)

- **nested-attributes**:

  [header](#rst-ethtool-attribute-set-header)

<a id="rst-capabilities-nest"></a>



#### capabilities (`nest`)

- **nested-attributes**:

  [mse-capabilities](#rst-ethtool-attribute-set-mse-capabilities)

<a id="rst-channel-a-nest"></a>



#### channel-a (`nest`)

- **nested-attributes**:

  [mse-snapshot](#rst-ethtool-attribute-set-mse-snapshot)

<a id="rst-channel-b-nest"></a>



#### channel-b (`nest`)

- **nested-attributes**:

  [mse-snapshot](#rst-ethtool-attribute-set-mse-snapshot)

<a id="rst-channel-c-nest"></a>



#### channel-c (`nest`)

- **nested-attributes**:

  [mse-snapshot](#rst-ethtool-attribute-set-mse-snapshot)

<a id="rst-channel-d-nest"></a>



#### channel-d (`nest`)

- **nested-attributes**:

  [mse-snapshot](#rst-ethtool-attribute-set-mse-snapshot)

<a id="rst-worst-channel-nest"></a>



#### worst-channel (`nest`)

- **nested-attributes**:

  [mse-snapshot](#rst-ethtool-attribute-set-mse-snapshot)

<a id="rst-link-nest"></a>



#### link (`nest`)

- **nested-attributes**:

  [mse-snapshot](#rst-ethtool-attribute-set-mse-snapshot)

---

# Family fou netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the fou Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-fou-netlink-specification"></a>
<a id="rst-netlink-fou"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Foo-over-UDP.

<a id="rst-operations"></a>



## Operations

<a id="rst-unspec"></a>
<a id="rst-fou-operation-unspec"></a>



### unspec



unused

- **value**:

  0

<a id="rst-add"></a>
<a id="rst-fou-operation-add"></a>



### add



Add port.

- **attribute-set**:

  [fou](#rst-fou-attribute-set-fou)

- **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`\]

<a id="rst-del"></a>
<a id="rst-fou-operation-del"></a>



### del



Delete port.

- **attribute-set**:

  [fou](#rst-fou-attribute-set-fou)

- **dont-validate**:

  \['strict', 'dump'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`af`, `ifindex`, `port`, `peer-port`, `local-v4`, `peer-v4`, `local-v6`, `peer-v6`\]

<a id="rst-get"></a>
<a id="rst-fou-operation-get"></a>



### get



Get tunnel info.

- **attribute-set**:

  [fou](#rst-fou-attribute-set-fou)

- **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`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-encap-type"></a>
<a id="rst-fou-definition-encap-type"></a>



### encap-type

- **type**:

  enum

- **name-prefix**:

  fou-encap-

- **enum-name**:

  None

- **entries**:

  - `unspec`


  - `direct`


  - `gue`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-fou"></a>
<a id="rst-fou-attribute-set-fou"></a>



### fou

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-port-u16"></a>



#### port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-af-u8"></a>



#### af (`u8`)

<a id="rst-ipproto-u8"></a>



#### ipproto (`u8`)

<a id="rst-type-u8"></a>



#### type (`u8`)

<a id="rst-remcsum-nopartial-flag"></a>



#### remcsum-nopartial (`flag`)

<a id="rst-local-v4-u32"></a>



#### local-v4 (`u32`)

<a id="rst-local-v6-binary"></a>



#### local-v6 (`binary`)

<a id="rst-peer-v4-u32"></a>



#### peer-v4 (`u32`)

<a id="rst-peer-v6-binary"></a>



#### peer-v6 (`binary`)

<a id="rst-peer-port-u16"></a>



#### peer-port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-ifindex-s32"></a>



#### ifindex (`s32`)

---

# Family handshake netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the handshake Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-handshake-netlink-specification"></a>
<a id="rst-netlink-handshake"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netlink protocol to request a transport layer security handshake.

<a id="rst-operations"></a>



## Operations

<a id="rst-ready"></a>
<a id="rst-handshake-operation-ready"></a>



### ready



Notify handlers that a new handshake request is waiting

- **notify**:

  accept

<a id="rst-accept"></a>
<a id="rst-handshake-operation-accept"></a>



### accept



Handler retrieves next queued handshake request

- **attribute-set**:

  [accept](#rst-handshake-attribute-set-accept)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`handler-class`\]

  **reply**

  - **attributes**:

    \[`sockfd`, `message-type`, `timeout`, `auth-mode`, `peer-identity`, `certificate`, `peername`, `keyring`\]

<a id="rst-done"></a>
<a id="rst-handshake-operation-done"></a>



### done



Handler reports handshake completion

- **attribute-set**:

  [done](#rst-handshake-attribute-set-done)

- **do**:

  **request**

  - **attributes**:

    \[`status`, `sockfd`, `remote-auth`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- none


- tlshd


<a id="rst-definitions"></a>



## Definitions

<a id="rst-handler-class"></a>
<a id="rst-handshake-definition-handler-class"></a>



### handler-class

- **type**:

  enum

- **value-start**:

  0

- **entries**:

  - `none`


  - `tlshd`


  - `max`

<a id="rst-msg-type"></a>
<a id="rst-handshake-definition-msg-type"></a>



### msg-type

- **type**:

  enum

- **value-start**:

  0

- **entries**:

  - `unspec`


  - `clienthello`


  - `serverhello`

<a id="rst-auth"></a>
<a id="rst-handshake-definition-auth"></a>



### auth

- **type**:

  enum

- **value-start**:

  0

- **entries**:

  - `unspec`


  - `unauth`


  - `psk`


  - `x509`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-x509"></a>
<a id="rst-handshake-attribute-set-x509"></a>



### x509

<a id="rst-cert-s32"></a>



#### cert (`s32`)

<a id="rst-privkey-s32"></a>



#### privkey (`s32`)

<a id="rst-accept-1"></a>
<a id="rst-handshake-attribute-set-accept"></a>



### accept

<a id="rst-sockfd-s32"></a>



#### sockfd (`s32`)

<a id="rst-handler-class-u32"></a>



#### handler-class (`u32`)

- **enum**:

  [handler-class](#rst-handshake-definition-handler-class)

<a id="rst-message-type-u32"></a>



#### message-type (`u32`)

- **enum**:

  [msg-type](#rst-handshake-definition-msg-type)

<a id="rst-timeout-u32"></a>



#### timeout (`u32`)

<a id="rst-auth-mode-u32"></a>



#### auth-mode (`u32`)

- **enum**:

  [auth](#rst-handshake-definition-auth)

<a id="rst-peer-identity-u32"></a>



#### peer-identity (`u32`)

- **multi-attr**:

  True

<a id="rst-certificate-nest"></a>



#### certificate (`nest`)

- **nested-attributes**:

  [x509](#rst-handshake-attribute-set-x509)

- **multi-attr**:

  True

<a id="rst-peername-string"></a>



#### peername (`string`)

<a id="rst-keyring-u32"></a>



#### keyring (`u32`)

<a id="rst-done-1"></a>
<a id="rst-handshake-attribute-set-done"></a>



### done

<a id="rst-status-u32"></a>



#### status (`u32`)

<a id="rst-sockfd-s32-1"></a>



#### sockfd (`s32`)

<a id="rst-remote-auth-u32"></a>



#### remote-auth (`u32`)

- **multi-attr**:

  True

---

# Family lockd netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the lockd Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-lockd-netlink-specification"></a>
<a id="rst-netlink-lockd"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



lockd configuration over generic netlink

<a id="rst-operations"></a>



## Operations

<a id="rst-server-set"></a>
<a id="rst-lockd-operation-server-set"></a>



### server-set



set the lockd server parameters

- **attribute-set**:

  [server](#rst-lockd-attribute-set-server)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`gracetime`, `tcp-port`, `udp-port`\]

<a id="rst-server-get"></a>
<a id="rst-lockd-operation-server-get"></a>



### server-get



get the lockd server parameters

- **attribute-set**:

  [server](#rst-lockd-attribute-set-server)

- **do**:

  **reply**

  - **attributes**:

    \[`gracetime`, `tcp-port`, `udp-port`\]

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-server"></a>
<a id="rst-lockd-attribute-set-server"></a>



### server

<a id="rst-gracetime-u32"></a>



#### gracetime (`u32`)

<a id="rst-tcp-port-u16"></a>



#### tcp-port (`u16`)

<a id="rst-udp-port-u16"></a>



#### udp-port (`u16`)

---

# Family mptcp_pm netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the mptcp_pm Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-mptcp-pm-netlink-specification"></a>
<a id="rst-netlink-mptcp-pm"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Multipath TCP.

<a id="rst-operations"></a>



## Operations

<a id="rst-unspec"></a>
<a id="rst-mptcp-pm-operation-unspec"></a>



### unspec



unused

- **value**:

  0

<a id="rst-add-addr"></a>
<a id="rst-mptcp-pm-operation-add-addr"></a>



### add-addr



Add endpoint

- **attribute-set**:

  [endpoint](#rst-mptcp-pm-attribute-set-endpoint)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`\]

<a id="rst-del-addr"></a>
<a id="rst-mptcp-pm-operation-del-addr"></a>



### del-addr



Delete endpoint

- **attribute-set**:

  [endpoint](#rst-mptcp-pm-attribute-set-endpoint)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`\]

<a id="rst-get-addr"></a>
<a id="rst-mptcp-pm-operation-get-addr"></a>



### get-addr



Get endpoint information

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`, `token`\]

  **reply**

  - **attributes**:

    \[`addr`\]

- **dump**:

  **reply**

  - **attributes**:

    \[`addr`\]

<a id="rst-flush-addrs"></a>
<a id="rst-mptcp-pm-operation-flush-addrs"></a>



### flush-addrs



Flush addresses

- **attribute-set**:

  [endpoint](#rst-mptcp-pm-attribute-set-endpoint)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`\]

<a id="rst-set-limits"></a>
<a id="rst-mptcp-pm-operation-set-limits"></a>



### set-limits



Set protocol limits

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`rcv-add-addrs`, `subflows`\]

<a id="rst-get-limits"></a>
<a id="rst-mptcp-pm-operation-get-limits"></a>



### get-limits



Get protocol limits

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **do**:

  **request**

  - **attributes**:

    \[`rcv-add-addrs`, `subflows`\]

  **reply**

  - **attributes**:

    \[`rcv-add-addrs`, `subflows`\]

<a id="rst-set-flags"></a>
<a id="rst-mptcp-pm-operation-set-flags"></a>



### set-flags



Change endpoint flags

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`, `token`, `addr-remote`\]

<a id="rst-announce"></a>
<a id="rst-mptcp-pm-operation-announce"></a>



### announce



Announce new address

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`, `token`\]

<a id="rst-remove"></a>
<a id="rst-mptcp-pm-operation-remove"></a>



### remove



Announce removal

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`token`, `loc-id`\]

<a id="rst-subflow-create"></a>
<a id="rst-mptcp-pm-operation-subflow-create"></a>



### subflow-create



Create subflow

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`, `token`, `addr-remote`\]

<a id="rst-subflow-destroy"></a>
<a id="rst-mptcp-pm-operation-subflow-destroy"></a>



### subflow-destroy



Destroy subflow

- **attribute-set**:

  [attr](#rst-mptcp-pm-attribute-set-attr)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`, `token`, `addr-remote`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-event-type"></a>
<a id="rst-mptcp-pm-definition-event-type"></a>



### 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.

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-address"></a>
<a id="rst-mptcp-pm-attribute-set-address"></a>



### address

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-family-u16"></a>



#### family (`u16`)

<a id="rst-id-u8"></a>



#### id (`u8`)

<a id="rst-addr4-u32"></a>



#### addr4 (`u32`)

- **byte-order**:

  big-endian

<a id="rst-addr6-binary"></a>



#### addr6 (`binary`)

<a id="rst-port-u16"></a>



#### port (`u16`)

<a id="rst-flags-u32"></a>



#### flags (`u32`)

<a id="rst-if-idx-s32"></a>



#### if-idx (`s32`)

<a id="rst-subflow-attribute"></a>
<a id="rst-mptcp-pm-attribute-set-subflow-attribute"></a>



### subflow-attribute

<a id="rst-unspec-unused-1"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-token-rem-u32"></a>



#### token-rem (`u32`)

<a id="rst-token-loc-u32"></a>



#### token-loc (`u32`)

<a id="rst-relwrite-seq-u32"></a>



#### relwrite-seq (`u32`)

<a id="rst-map-seq-u64"></a>



#### map-seq (`u64`)

<a id="rst-map-sfseq-u32"></a>



#### map-sfseq (`u32`)

<a id="rst-ssn-offset-u32"></a>



#### ssn-offset (`u32`)

<a id="rst-map-datalen-u16"></a>



#### map-datalen (`u16`)

<a id="rst-flags-u32-1"></a>



#### flags (`u32`)

<a id="rst-id-rem-u8"></a>



#### id-rem (`u8`)

<a id="rst-id-loc-u8"></a>



#### id-loc (`u8`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-endpoint"></a>
<a id="rst-mptcp-pm-attribute-set-endpoint"></a>



### endpoint

<a id="rst-addr-nest"></a>



#### addr (`nest`)

- **nested-attributes**:

  [address](#rst-mptcp-pm-attribute-set-address)

<a id="rst-attr"></a>
<a id="rst-mptcp-pm-attribute-set-attr"></a>



### attr

<a id="rst-unspec-unused-2"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-addr-nest-1"></a>



#### addr (`nest`)

- **nested-attributes**:

  [address](#rst-mptcp-pm-attribute-set-address)

<a id="rst-rcv-add-addrs-u32"></a>



#### rcv-add-addrs (`u32`)

<a id="rst-subflows-u32"></a>



#### subflows (`u32`)

<a id="rst-token-u32"></a>



#### token (`u32`)

<a id="rst-loc-id-u8"></a>



#### loc-id (`u8`)

<a id="rst-addr-remote-nest"></a>



#### addr-remote (`nest`)

- **nested-attributes**:

  [address](#rst-mptcp-pm-attribute-set-address)

<a id="rst-event-attr"></a>
<a id="rst-mptcp-pm-attribute-set-event-attr"></a>



### event-attr

<a id="rst-unspec-unused-3"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-token-u32-1"></a>



#### token (`u32`)

<a id="rst-family-u16-1"></a>



#### family (`u16`)

<a id="rst-loc-id-u8-1"></a>



#### loc-id (`u8`)

<a id="rst-rem-id-u8"></a>



#### rem-id (`u8`)

<a id="rst-saddr4-u32"></a>



#### saddr4 (`u32`)

- **byte-order**:

  big-endian

<a id="rst-saddr6-binary"></a>



#### saddr6 (`binary`)

<a id="rst-daddr4-u32"></a>



#### daddr4 (`u32`)

- **byte-order**:

  big-endian

<a id="rst-daddr6-binary"></a>



#### daddr6 (`binary`)

<a id="rst-sport-u16"></a>



#### sport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-dport-u16"></a>



#### dport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-backup-u8"></a>



#### backup (`u8`)

<a id="rst-error-u8"></a>



#### error (`u8`)

<a id="rst-flags-u16"></a>



#### flags (`u16`)

<a id="rst-timeout-u32"></a>



#### timeout (`u32`)

<a id="rst-if-idx-s32-1"></a>



#### if-idx (`s32`)

<a id="rst-reset-reason-u32"></a>



#### reset-reason (`u32`)

<a id="rst-reset-flags-u32"></a>



#### reset-flags (`u32`)

<a id="rst-server-side-u8"></a>



#### server-side (`u8`)

- **doc**:

  Deprecated: use 'flags'

---

# Family net-shaper netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the net_shaper Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-net-shaper-netlink-specification"></a>
<a id="rst-netlink-net-shaper"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## 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.

<a id="rst-operations"></a>



## Operations

<a id="rst-get"></a>
<a id="rst-net-shaper-operation-get"></a>



### get



Get information about a shaper for a given device.

- **attribute-set**:

  [net-shaper](#rst-net-shaper-attribute-set-net-shaper)

- **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`\]

<a id="rst-set"></a>
<a id="rst-net-shaper-operation-set"></a>



### 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**:

  [net-shaper](#rst-net-shaper-attribute-set-net-shaper)

- **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`\]

<a id="rst-delete"></a>
<a id="rst-net-shaper-operation-delete"></a>



### 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**:

  [net-shaper](#rst-net-shaper-attribute-set-net-shaper)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  net-shaper-nl-pre-doit-write

  **post**



  net-shaper-nl-post-doit-write

  **request**

  - **attributes**:

    \[`ifindex`, `handle`\]

<a id="rst-group"></a>
<a id="rst-net-shaper-operation-group"></a>



### 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**:

  [net-shaper](#rst-net-shaper-attribute-set-net-shaper)

- **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`\]

<a id="rst-cap-get"></a>
<a id="rst-net-shaper-operation-cap-get"></a>



### cap-get



Get the shaper capabilities supported by the given device
for the specified scope.

- **attribute-set**:

  [caps](#rst-net-shaper-attribute-set-caps)

- **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`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-scope"></a>
<a id="rst-net-shaper-definition-scope"></a>



### 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.

<a id="rst-metric"></a>
<a id="rst-net-shaper-definition-metric"></a>



### 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.

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-net-shaper"></a>
<a id="rst-net-shaper-attribute-set-net-shaper"></a>



### net-shaper

<a id="rst-handle-nest"></a>



#### handle (`nest`)

- **nested-attributes**:

  [handle](#rst-net-shaper-attribute-set-handle)

- **doc**:

  Unique identifier for the given shaper inside the owning device.

<a id="rst-metric-u32"></a>



#### metric (`u32`)

- **enum**:

  [metric](#rst-net-shaper-definition-metric)

- **doc**:

  Metric used by the given shaper for bw-min, bw-max and burst.

<a id="rst-bw-min-uint"></a>



#### bw-min (`uint`)

- **doc**:

  Guaranteed bandwidth for the given shaper.

<a id="rst-bw-max-uint"></a>



#### bw-max (`uint`)

- **doc**:

  Maximum bandwidth for the given shaper or 0 when unlimited.

<a id="rst-burst-uint"></a>



#### burst (`uint`)

- **doc**:

  Maximum burst-size for shaping. Should not be interpreted as a quantum.

<a id="rst-priority-u32"></a>



#### priority (`u32`)

- **doc**:

  Scheduling priority for the given shaper. The priority scheduling is applied to sibling shapers.

<a id="rst-weight-u32"></a>



#### 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.

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

- **doc**:

  Interface index owning the specified shaper.

<a id="rst-parent-nest"></a>



#### parent (`nest`)

- **nested-attributes**:

  [handle](#rst-net-shaper-attribute-set-handle)

- **doc**:

  Identifier for the parent of the affected shaper. Only needed for @group operation.

<a id="rst-leaves-nest"></a>



#### leaves (`nest`)

- **multi-attr**:

  True

- **nested-attributes**:

  [leaf-info](#rst-net-shaper-attribute-set-leaf-info)

- **doc**:

  Describes a set of leaves shapers for a @group operation.

<a id="rst-handle"></a>
<a id="rst-net-shaper-attribute-set-handle"></a>



### handle

<a id="rst-scope-u32"></a>



#### scope (`u32`)

- **enum**:

  [scope](#rst-net-shaper-definition-scope)

- **doc**:

  Defines the shaper @id interpretation.

<a id="rst-id-u32"></a>



#### 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.

<a id="rst-leaf-info"></a>
<a id="rst-net-shaper-attribute-set-leaf-info"></a>



### leaf-info

<a id="rst-handle-1"></a>



#### handle

<a id="rst-priority"></a>



#### priority

<a id="rst-weight"></a>



#### weight

<a id="rst-caps"></a>
<a id="rst-net-shaper-attribute-set-caps"></a>



### caps

<a id="rst-ifindex-u32-1"></a>



#### ifindex (`u32`)

- **doc**:

  Interface index queried for shapers capabilities.

<a id="rst-scope-u32-1"></a>



#### scope (`u32`)

- **enum**:

  [scope](#rst-net-shaper-definition-scope)

- **doc**:

  The scope to which the queried capabilities apply.

<a id="rst-support-metric-bps-flag"></a>



#### support-metric-bps (`flag`)

- **doc**:

  The device accepts 'bps' metric for bw-min, bw-max and burst.

<a id="rst-support-metric-pps-flag"></a>



#### support-metric-pps (`flag`)

- **doc**:

  The device accepts 'pps' metric for bw-min, bw-max and burst.

<a id="rst-support-nesting-flag"></a>



#### 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'.

<a id="rst-support-bw-min-flag"></a>



#### support-bw-min (`flag`)

- **doc**:

  The device supports a minimum guaranteed B/W.

<a id="rst-support-bw-max-flag"></a>



#### support-bw-max (`flag`)

- **doc**:

  The device supports maximum B/W shaping.

<a id="rst-support-burst-flag"></a>



#### support-burst (`flag`)

- **doc**:

  The device supports a maximum burst size.

<a id="rst-support-priority-flag"></a>



#### support-priority (`flag`)

- **doc**:

  The device supports priority scheduling.

<a id="rst-support-weight-flag"></a>



#### support-weight (`flag`)

- **doc**:

  The device supports weighted round robin scheduling.

---

# Family netdev netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the netdev Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-netdev-netlink-specification"></a>
<a id="rst-netlink-netdev"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



netdev configuration over generic netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-dev-get"></a>
<a id="rst-netdev-operation-dev-get"></a>



### dev-get



Get / dump information about a netdev.

- **attribute-set**:

  [dev](#rst-netdev-attribute-set-dev)

- **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`\]

<a id="rst-dev-add-ntf"></a>
<a id="rst-netdev-operation-dev-add-ntf"></a>



### dev-add-ntf



Notification about device appearing.

- **notify**:

  dev-get

- **mcgrp**:

  mgmt

<a id="rst-dev-del-ntf"></a>
<a id="rst-netdev-operation-dev-del-ntf"></a>



### dev-del-ntf



Notification about device disappearing.

- **notify**:

  dev-get

- **mcgrp**:

  mgmt

<a id="rst-dev-change-ntf"></a>
<a id="rst-netdev-operation-dev-change-ntf"></a>



### dev-change-ntf



Notification about device configuration being changed.

- **notify**:

  dev-get

- **mcgrp**:

  mgmt

<a id="rst-page-pool-get"></a>
<a id="rst-netdev-operation-page-pool-get"></a>



### 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**:

  [page-pool](#rst-netdev-attribute-set-page-pool)

- **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`\]

<a id="rst-page-pool-add-ntf"></a>
<a id="rst-netdev-operation-page-pool-add-ntf"></a>



### page-pool-add-ntf



Notification about page pool appearing.

- **notify**:

  page-pool-get

- **mcgrp**:

  page-pool

- **config-cond**:

  page-pool

<a id="rst-page-pool-del-ntf"></a>
<a id="rst-netdev-operation-page-pool-del-ntf"></a>



### page-pool-del-ntf



Notification about page pool disappearing.

- **notify**:

  page-pool-get

- **mcgrp**:

  page-pool

- **config-cond**:

  page-pool

<a id="rst-page-pool-change-ntf"></a>
<a id="rst-netdev-operation-page-pool-change-ntf"></a>



### page-pool-change-ntf



Notification about page pool configuration being changed.

- **notify**:

  page-pool-get

- **mcgrp**:

  page-pool

- **config-cond**:

  page-pool

<a id="rst-page-pool-stats-get"></a>
<a id="rst-netdev-operation-page-pool-stats-get"></a>



### page-pool-stats-get



Get page pool statistics.

- **attribute-set**:

  [page-pool-stats](#rst-netdev-attribute-set-page-pool-stats)

- **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`\]

<a id="rst-queue-get"></a>
<a id="rst-netdev-operation-queue-get"></a>



### queue-get



Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).

- **attribute-set**:

  [queue](#rst-netdev-attribute-set-queue)

- **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`\]

<a id="rst-napi-get"></a>
<a id="rst-netdev-operation-napi-get"></a>



### napi-get



Get information about NAPI instances configured on the system.

- **attribute-set**:

  [napi](#rst-netdev-attribute-set-napi)

- **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`\]

<a id="rst-qstats-get"></a>
<a id="rst-netdev-operation-qstats-get"></a>



### 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**:

  [qstats](#rst-netdev-attribute-set-qstats)

- **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`\]

<a id="rst-bind-rx"></a>
<a id="rst-netdev-operation-bind-rx"></a>



### bind-rx



Bind dmabuf to netdev

- **attribute-set**:

  [dmabuf](#rst-netdev-attribute-set-dmabuf)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`ifindex`, `fd`, `queues`\]

  **reply**

  - **attributes**:

    \[`id`\]

<a id="rst-napi-set"></a>
<a id="rst-netdev-operation-napi-set"></a>



### napi-set



Set configurable NAPI instance settings.

- **attribute-set**:

  [napi](#rst-netdev-attribute-set-napi)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`id`, `defer-hard-irqs`, `gro-flush-timeout`, `irq-suspend-timeout`, `threaded`\]

<a id="rst-bind-tx"></a>
<a id="rst-netdev-operation-bind-tx"></a>



### bind-tx



Bind dmabuf to netdev for TX

- **attribute-set**:

  [dmabuf](#rst-netdev-attribute-set-dmabuf)

- **do**:

  **request**

  - **attributes**:

    \[`ifindex`, `fd`\]

  **reply**

  - **attributes**:

    \[`id`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- mgmt


- page-pool


<a id="rst-definitions"></a>



## Definitions

<a id="rst-xdp-act"></a>
<a id="rst-netdev-definition-xdp-act"></a>



### 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.

<a id="rst-xdp-rx-metadata"></a>
<a id="rst-netdev-definition-xdp-rx-metadata"></a>



### 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().

<a id="rst-xsk-flags"></a>
<a id="rst-netdev-definition-xsk-flags"></a>



### 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.

<a id="rst-queue-type"></a>
<a id="rst-netdev-definition-queue-type"></a>



### queue-type

- **type**:

  enum

- **entries**:

  - `rx`


  - `tx`

<a id="rst-qstats-scope"></a>
<a id="rst-netdev-definition-qstats-scope"></a>



### qstats-scope

- **type**:

  flags

- **entries**:

  - `queue`

<a id="rst-napi-threaded"></a>
<a id="rst-netdev-definition-napi-threaded"></a>



### napi-threaded

- **type**:

  enum

- **entries**:

  - `disabled`


  - `enabled`


  - `busy-poll`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-dev"></a>
<a id="rst-netdev-attribute-set-dev"></a>



### dev

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

- **doc**:

  netdev ifindex

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-xdp-features-u64"></a>



#### xdp-features (`u64`)

- **doc**:

  Bitmask of enabled xdp-features.

- **enum**:

  [xdp-act](#rst-netdev-definition-xdp-act)

<a id="rst-xdp-zc-max-segs-u32"></a>



#### xdp-zc-max-segs (`u32`)

- **doc**:

  max fragment count supported by ZC driver

<a id="rst-xdp-rx-metadata-features-u64"></a>



#### xdp-rx-metadata-features (`u64`)

- **doc**:

  Bitmask of supported XDP receive metadata features. See Documentation/networking/xdp-rx-metadata.rst for more details.

- **enum**:

  [xdp-rx-metadata](#rst-netdev-definition-xdp-rx-metadata)

<a id="rst-xsk-features-u64"></a>



#### xsk-features (`u64`)

- **doc**:

  Bitmask of enabled AF\_XDP features.

- **enum**:

  [xsk-flags](#rst-netdev-definition-xsk-flags)

<a id="rst-io-uring-provider-info"></a>
<a id="rst-netdev-attribute-set-io-uring-provider-info"></a>



### io-uring-provider-info

<a id="rst-page-pool"></a>
<a id="rst-netdev-attribute-set-page-pool"></a>



### page-pool

<a id="rst-id-uint"></a>



#### id (`uint`)

- **doc**:

  Unique ID of a Page Pool instance.

<a id="rst-ifindex-u32-1"></a>



#### 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).

<a id="rst-napi-id-uint"></a>



#### napi-id (`uint`)

- **doc**:

  Id of NAPI using this Page Pool instance.

<a id="rst-inflight-uint"></a>



#### 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.

<a id="rst-inflight-mem-uint"></a>



#### inflight-mem (`uint`)

- **doc**:

  Amount of memory held by inflight pages.

<a id="rst-detach-time-uint"></a>



#### 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.

<a id="rst-dmabuf-u32"></a>



#### dmabuf (`u32`)

- **doc**:

  ID of the dmabuf this page-pool is attached to.

<a id="rst-io-uring-nest"></a>



#### io-uring (`nest`)

- **doc**:

  io-uring memory provider information.

- **nested-attributes**:

  [io-uring-provider-info](#rst-netdev-attribute-set-io-uring-provider-info)

<a id="rst-page-pool-info"></a>
<a id="rst-netdev-attribute-set-page-pool-info"></a>



### page-pool-info

<a id="rst-id"></a>



#### id

<a id="rst-ifindex"></a>



#### ifindex

<a id="rst-page-pool-stats"></a>
<a id="rst-netdev-attribute-set-page-pool-stats"></a>



### page-pool-stats



Page pool statistics, see docs for struct page\_pool\_stats
for information about individual statistics.

<a id="rst-info-nest"></a>



#### info (`nest`)

- **doc**:

  Page pool identifying information.

- **nested-attributes**:

  [page-pool-info](#rst-netdev-attribute-set-page-pool-info)

<a id="rst-alloc-fast-uint"></a>



#### alloc-fast (`uint`)

- **value**:

  8

<a id="rst-alloc-slow-uint"></a>



#### alloc-slow (`uint`)

<a id="rst-alloc-slow-high-order-uint"></a>



#### alloc-slow-high-order (`uint`)

<a id="rst-alloc-empty-uint"></a>



#### alloc-empty (`uint`)

<a id="rst-alloc-refill-uint"></a>



#### alloc-refill (`uint`)

<a id="rst-alloc-waive-uint"></a>



#### alloc-waive (`uint`)

<a id="rst-recycle-cached-uint"></a>



#### recycle-cached (`uint`)

<a id="rst-recycle-cache-full-uint"></a>



#### recycle-cache-full (`uint`)

<a id="rst-recycle-ring-uint"></a>



#### recycle-ring (`uint`)

<a id="rst-recycle-ring-full-uint"></a>



#### recycle-ring-full (`uint`)

<a id="rst-recycle-released-refcnt-uint"></a>



#### recycle-released-refcnt (`uint`)

<a id="rst-napi"></a>
<a id="rst-netdev-attribute-set-napi"></a>



### napi

<a id="rst-ifindex-u32-2"></a>



#### ifindex (`u32`)

- **doc**:

  ifindex of the netdevice to which NAPI instance belongs.

<a id="rst-id-u32"></a>



#### id (`u32`)

- **doc**:

  ID of the NAPI instance.

<a id="rst-irq-u32"></a>



#### irq (`u32`)

- **doc**:

  The associated interrupt vector number for the napi

<a id="rst-pid-u32"></a>



#### 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.

<a id="rst-defer-hard-irqs-u32"></a>



#### defer-hard-irqs (`u32`)

- **doc**:

  The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.

<a id="rst-gro-flush-timeout-uint"></a>



#### 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.

<a id="rst-irq-suspend-timeout-uint"></a>



#### irq-suspend-timeout (`uint`)

- **doc**:

  The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events

<a id="rst-threaded-u32"></a>



#### 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**:

  [napi-threaded](#rst-netdev-definition-napi-threaded)

<a id="rst-xsk-info"></a>
<a id="rst-netdev-attribute-set-xsk-info"></a>



### xsk-info

<a id="rst-queue"></a>
<a id="rst-netdev-attribute-set-queue"></a>



### queue

<a id="rst-id-u32-1"></a>



#### 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.

<a id="rst-ifindex-u32-3"></a>



#### ifindex (`u32`)

- **doc**:

  ifindex of the netdevice to which the queue belongs.

<a id="rst-type-u32"></a>



#### 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**:

  [queue-type](#rst-netdev-definition-queue-type)

<a id="rst-napi-id-u32"></a>



#### napi-id (`u32`)

- **doc**:

  ID of the NAPI instance which services this queue.

<a id="rst-dmabuf-u32-1"></a>



#### dmabuf (`u32`)

- **doc**:

  ID of the dmabuf attached to this queue, if any.

<a id="rst-io-uring-nest-1"></a>



#### io-uring (`nest`)

- **doc**:

  io\_uring memory provider information.

- **nested-attributes**:

  [io-uring-provider-info](#rst-netdev-attribute-set-io-uring-provider-info)

<a id="rst-xsk-nest"></a>



#### xsk (`nest`)

- **doc**:

  XSK information for this queue, if any.

- **nested-attributes**:

  [xsk-info](#rst-netdev-attribute-set-xsk-info)

<a id="rst-qstats"></a>
<a id="rst-netdev-attribute-set-qstats"></a>



### 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.

<a id="rst-ifindex-u32-4"></a>



#### ifindex (`u32`)

- **doc**:

  ifindex of the netdevice to which stats belong.

<a id="rst-queue-type-u32"></a>



#### queue-type (`u32`)

- **doc**:

  Queue type as rx, tx, for queue-id.

- **enum**:

  [queue-type](#rst-netdev-definition-queue-type)

<a id="rst-queue-id-u32"></a>



#### queue-id (`u32`)

- **doc**:

  Queue ID, if stats are scoped to a single queue instance.

<a id="rst-scope-uint"></a>



#### scope (`uint`)

- **doc**:

  What object type should be used to iterate over the stats.

- **enum**:

  [qstats-scope](#rst-netdev-definition-qstats-scope)

<a id="rst-rx-packets-uint"></a>



#### 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

<a id="rst-rx-bytes-uint"></a>



#### rx-bytes (`uint`)

- **doc**:

  Successfully received bytes, see *rx-packets*.

<a id="rst-tx-packets-uint"></a>



#### 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).

<a id="rst-tx-bytes-uint"></a>



#### tx-bytes (`uint`)

- **doc**:

  Successfully sent bytes, see *tx-packets*.

<a id="rst-rx-alloc-fail-uint"></a>



#### 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.

<a id="rst-rx-hw-drops-uint"></a>



#### 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.

<a id="rst-rx-hw-drop-overruns-uint"></a>



#### rx-hw-drop-overruns (`uint`)

- **doc**:

  Number of packets dropped due to transient lack of resources, such as buffer space, host descriptors etc.

<a id="rst-rx-csum-complete-uint"></a>



#### rx-csum-complete (`uint`)

- **doc**:

  Number of packets that were marked as CHECKSUM\_COMPLETE.

<a id="rst-rx-csum-unnecessary-uint"></a>



#### rx-csum-unnecessary (`uint`)

- **doc**:

  Number of packets that were marked as CHECKSUM\_UNNECESSARY.

<a id="rst-rx-csum-none-uint"></a>



#### rx-csum-none (`uint`)

- **doc**:

  Number of packets that were not checksummed by device.

<a id="rst-rx-csum-bad-uint"></a>



#### rx-csum-bad (`uint`)

- **doc**:

  Number of packets with bad checksum. The packets are not discarded, but still delivered to the stack.

<a id="rst-rx-hw-gro-packets-uint"></a>



#### 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.

<a id="rst-rx-hw-gro-bytes-uint"></a>



#### rx-hw-gro-bytes (`uint`)

- **doc**:

  See *rx-hw-gro-packets*.

<a id="rst-rx-hw-gro-wire-packets-uint"></a>



#### 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.

<a id="rst-rx-hw-gro-wire-bytes-uint"></a>



#### rx-hw-gro-wire-bytes (`uint`)

- **doc**:

  See *rx-hw-gro-wire-packets*.

<a id="rst-rx-hw-drop-ratelimits-uint"></a>



#### 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.

<a id="rst-tx-hw-drops-uint"></a>



#### 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.

<a id="rst-tx-hw-drop-errors-uint"></a>



#### tx-hw-drop-errors (`uint`)

- **doc**:

  Number of packets dropped because they were invalid or malformed.

<a id="rst-tx-csum-none-uint"></a>



#### tx-csum-none (`uint`)

- **doc**:

  Number of packets that did not require the device to calculate the checksum.

<a id="rst-tx-needs-csum-uint"></a>



#### 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.

<a id="rst-tx-hw-gso-packets-uint"></a>



#### tx-hw-gso-packets (`uint`)

- **doc**:

  Number of packets that necessitated segmentation into smaller packets by the device.

<a id="rst-tx-hw-gso-bytes-uint"></a>



#### tx-hw-gso-bytes (`uint`)

- **doc**:

  See *tx-hw-gso-packets*.

<a id="rst-tx-hw-gso-wire-packets-uint"></a>



#### tx-hw-gso-wire-packets (`uint`)

- **doc**:

  Number of wire-sized packets generated by processing *tx-hw-gso-packets*

<a id="rst-tx-hw-gso-wire-bytes-uint"></a>



#### tx-hw-gso-wire-bytes (`uint`)

- **doc**:

  See *tx-hw-gso-wire-packets*.

<a id="rst-tx-hw-drop-ratelimits-uint"></a>



#### 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.

<a id="rst-tx-stop-uint"></a>



#### 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.

<a id="rst-tx-wake-uint"></a>



#### tx-wake (`uint`)

- **doc**:

  Number of times driver re-started accepting send requests to this queue from the stack.

<a id="rst-queue-id"></a>
<a id="rst-netdev-attribute-set-queue-id"></a>



### queue-id

<a id="rst-id-1"></a>



#### id

<a id="rst-type"></a>



#### type

<a id="rst-dmabuf"></a>
<a id="rst-netdev-attribute-set-dmabuf"></a>



### dmabuf

<a id="rst-ifindex-u32-5"></a>



#### ifindex (`u32`)

- **doc**:

  netdev ifindex to bind the dmabuf to.

<a id="rst-queues-nest"></a>



#### queues (`nest`)

- **doc**:

  receive queues to bind the dmabuf to.

- **nested-attributes**:

  [queue-id](#rst-netdev-attribute-set-queue-id)

- **multi-attr**:

  True

<a id="rst-fd-u32"></a>



#### fd (`u32`)

- **doc**:

  dmabuf file descriptor to bind.

<a id="rst-id-u32-2"></a>



#### id (`u32`)

- **doc**:

  id of the dmabuf binding

---

# Family nfsd netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the nfsd Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-nfsd-netlink-specification"></a>
<a id="rst-netlink-nfsd"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



NFSD configuration over generic netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-rpc-status-get"></a>
<a id="rst-nfsd-operation-rpc-status-get"></a>



### rpc-status-get



dump pending nfsd rpc

- **attribute-set**:

  [rpc-status](#rst-nfsd-attribute-set-rpc-status)

- **dump**:

  **reply**

  - **attributes**:

    \[`xid`, `flags`, `prog`, `version`, `proc`, `service-time`, `saddr4`, `daddr4`, `saddr6`, `daddr6`, `sport`, `dport`, `compound-ops`\]

<a id="rst-threads-set"></a>
<a id="rst-nfsd-operation-threads-set"></a>



### threads-set



set the maximum number of running threads

- **attribute-set**:

  [server](#rst-nfsd-attribute-set-server)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`threads`, `gracetime`, `leasetime`, `scope`, `min-threads`\]

<a id="rst-threads-get"></a>
<a id="rst-nfsd-operation-threads-get"></a>



### threads-get



get the maximum number of running threads

- **attribute-set**:

  [server](#rst-nfsd-attribute-set-server)

- **do**:

  **reply**

  - **attributes**:

    \[`threads`, `gracetime`, `leasetime`, `scope`, `min-threads`\]

<a id="rst-version-set"></a>
<a id="rst-nfsd-operation-version-set"></a>



### version-set



set nfs enabled versions

- **attribute-set**:

  [server-proto](#rst-nfsd-attribute-set-server-proto)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`version`\]

<a id="rst-version-get"></a>
<a id="rst-nfsd-operation-version-get"></a>



### version-get



get nfs enabled versions

- **attribute-set**:

  [server-proto](#rst-nfsd-attribute-set-server-proto)

- **do**:

  **reply**

  - **attributes**:

    \[`version`\]

<a id="rst-listener-set"></a>
<a id="rst-nfsd-operation-listener-set"></a>



### listener-set



set nfs running sockets

- **attribute-set**:

  [server-sock](#rst-nfsd-attribute-set-server-sock)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr`\]

<a id="rst-listener-get"></a>
<a id="rst-nfsd-operation-listener-get"></a>



### listener-get



get nfs running listeners

- **attribute-set**:

  [server-sock](#rst-nfsd-attribute-set-server-sock)

- **do**:

  **reply**

  - **attributes**:

    \[`addr`\]

<a id="rst-pool-mode-set"></a>
<a id="rst-nfsd-operation-pool-mode-set"></a>



### pool-mode-set



set the current server pool-mode

- **attribute-set**:

  [pool-mode](#rst-nfsd-attribute-set-pool-mode)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`mode`\]

<a id="rst-pool-mode-get"></a>
<a id="rst-nfsd-operation-pool-mode-get"></a>



### pool-mode-get



get info about server pool-mode

- **attribute-set**:

  [pool-mode](#rst-nfsd-attribute-set-pool-mode)

- **do**:

  **reply**

  - **attributes**:

    \[`mode`, `npools`\]

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-rpc-status"></a>
<a id="rst-nfsd-attribute-set-rpc-status"></a>



### rpc-status

<a id="rst-xid-u32"></a>



#### xid (`u32`)

- **byte-order**:

  big-endian

<a id="rst-flags-u32"></a>



#### flags (`u32`)

<a id="rst-prog-u32"></a>



#### prog (`u32`)

<a id="rst-version-u8"></a>



#### version (`u8`)

<a id="rst-proc-u32"></a>



#### proc (`u32`)

<a id="rst-service-time-s64"></a>



#### service-time (`s64`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-saddr4-u32"></a>



#### saddr4 (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-daddr4-u32"></a>



#### daddr4 (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-saddr6-binary"></a>



#### saddr6 (`binary`)

- **display-hint**:

  ipv6

<a id="rst-daddr6-binary"></a>



#### daddr6 (`binary`)

- **display-hint**:

  ipv6

<a id="rst-sport-u16"></a>



#### sport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-dport-u16"></a>



#### dport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-compound-ops-u32"></a>



#### compound-ops (`u32`)

- **multi-attr**:

  True

<a id="rst-server"></a>
<a id="rst-nfsd-attribute-set-server"></a>



### server

<a id="rst-threads-u32"></a>



#### threads (`u32`)

- **multi-attr**:

  True

<a id="rst-gracetime-u32"></a>



#### gracetime (`u32`)

<a id="rst-leasetime-u32"></a>



#### leasetime (`u32`)

<a id="rst-scope-string"></a>



#### scope (`string`)

<a id="rst-min-threads-u32"></a>



#### min-threads (`u32`)

<a id="rst-version"></a>
<a id="rst-nfsd-attribute-set-version"></a>



### version

<a id="rst-major-u32"></a>



#### major (`u32`)

<a id="rst-minor-u32"></a>



#### minor (`u32`)

<a id="rst-enabled-flag"></a>



#### enabled (`flag`)

<a id="rst-server-proto"></a>
<a id="rst-nfsd-attribute-set-server-proto"></a>



### server-proto

<a id="rst-version-nest"></a>



#### version (`nest`)

- **nested-attributes**:

  [version](#rst-nfsd-attribute-set-version)

- **multi-attr**:

  True

<a id="rst-sock"></a>
<a id="rst-nfsd-attribute-set-sock"></a>



### sock

<a id="rst-addr-binary"></a>



#### addr (`binary`)

<a id="rst-transport-name-string"></a>



#### transport-name (`string`)

<a id="rst-server-sock"></a>
<a id="rst-nfsd-attribute-set-server-sock"></a>



### server-sock

<a id="rst-addr-nest"></a>



#### addr (`nest`)

- **nested-attributes**:

  [sock](#rst-nfsd-attribute-set-sock)

- **multi-attr**:

  True

<a id="rst-pool-mode"></a>
<a id="rst-nfsd-attribute-set-pool-mode"></a>



### pool-mode

<a id="rst-mode-string"></a>



#### mode (`string`)

<a id="rst-npools-u32"></a>



#### npools (`u32`)

---

# Family nftables netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the nftables Netlink family, generated from the Peios kernel specification.

> **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](</kernel/introduction/peios-behaviour.md>); NTFE is permissive before its first policy generation is ingested.


<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-nftables-netlink-specification"></a>
<a id="rst-netlink-nftables"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netfilter nftables configuration over netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-batch-begin"></a>
<a id="rst-nftables-operation-batch-begin"></a>



### batch-begin



Start a batch of operations

- **attribute-set**:

  [batch-attrs](#rst-nftables-attribute-set-batch-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`genid`\]

  **reply**

  - **attributes**:

    \[`genid`\]

<a id="rst-batch-end"></a>
<a id="rst-nftables-operation-batch-end"></a>



### batch-end



Finish a batch of operations

- **attribute-set**:

  [batch-attrs](#rst-nftables-attribute-set-batch-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`genid`\]

<a id="rst-newtable"></a>
<a id="rst-nftables-operation-newtable"></a>



### newtable



Create a new table.

- **attribute-set**:

  [table-attrs](#rst-nftables-attribute-set-table-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-gettable"></a>
<a id="rst-nftables-operation-gettable"></a>



### gettable



Get / dump tables.

- **attribute-set**:

  [table-attrs](#rst-nftables-attribute-set-table-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-deltable"></a>
<a id="rst-nftables-operation-deltable"></a>



### deltable



Delete an existing table.

- **attribute-set**:

  [table-attrs](#rst-nftables-attribute-set-table-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroytable"></a>
<a id="rst-nftables-operation-destroytable"></a>



### destroytable



Delete an existing table with destroy semantics (ignoring ENOENT
errors).

- **attribute-set**:

  [table-attrs](#rst-nftables-attribute-set-table-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-newchain"></a>
<a id="rst-nftables-operation-newchain"></a>



### newchain



Create a new chain.

- **attribute-set**:

  [chain-attrs](#rst-nftables-attribute-set-chain-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getchain"></a>
<a id="rst-nftables-operation-getchain"></a>



### getchain



Get / dump chains.

- **attribute-set**:

  [chain-attrs](#rst-nftables-attribute-set-chain-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-delchain"></a>
<a id="rst-nftables-operation-delchain"></a>



### delchain



Delete an existing chain.

- **attribute-set**:

  [chain-attrs](#rst-nftables-attribute-set-chain-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroychain"></a>
<a id="rst-nftables-operation-destroychain"></a>



### destroychain



Delete an existing chain with destroy semantics (ignoring ENOENT
errors).

- **attribute-set**:

  [chain-attrs](#rst-nftables-attribute-set-chain-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-newrule"></a>
<a id="rst-nftables-operation-newrule"></a>



### newrule



Create a new rule.

- **attribute-set**:

  [rule-attrs](#rst-nftables-attribute-set-rule-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getrule"></a>
<a id="rst-nftables-operation-getrule"></a>



### getrule



Get / dump rules.

- **attribute-set**:

  [rule-attrs](#rst-nftables-attribute-set-rule-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-getrule-reset"></a>
<a id="rst-nftables-operation-getrule-reset"></a>



### getrule-reset



Get / dump rules and reset stateful expressions.

- **attribute-set**:

  [rule-attrs](#rst-nftables-attribute-set-rule-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-delrule"></a>
<a id="rst-nftables-operation-delrule"></a>



### delrule



Delete an existing rule.

- **attribute-set**:

  [rule-attrs](#rst-nftables-attribute-set-rule-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroyrule"></a>
<a id="rst-nftables-operation-destroyrule"></a>



### destroyrule



Delete an existing rule with destroy semantics (ignoring ENOENT errors).

- **attribute-set**:

  [rule-attrs](#rst-nftables-attribute-set-rule-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-newset"></a>
<a id="rst-nftables-operation-newset"></a>



### newset



Create a new set.

- **attribute-set**:

  [set-attrs](#rst-nftables-attribute-set-set-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getset"></a>
<a id="rst-nftables-operation-getset"></a>



### getset



Get / dump sets.

- **attribute-set**:

  [set-attrs](#rst-nftables-attribute-set-set-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-delset"></a>
<a id="rst-nftables-operation-delset"></a>



### delset



Delete an existing set.

- **attribute-set**:

  [set-attrs](#rst-nftables-attribute-set-set-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroyset"></a>
<a id="rst-nftables-operation-destroyset"></a>



### destroyset



Delete an existing set with destroy semantics (ignoring ENOENT errors).

- **attribute-set**:

  [set-attrs](#rst-nftables-attribute-set-set-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-newsetelem"></a>
<a id="rst-nftables-operation-newsetelem"></a>



### newsetelem



Create a new set element.

- **attribute-set**:

  [setelem-list-attrs](#rst-nftables-attribute-set-setelem-list-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getsetelem"></a>
<a id="rst-nftables-operation-getsetelem"></a>



### getsetelem



Get / dump set elements.

- **attribute-set**:

  [setelem-list-attrs](#rst-nftables-attribute-set-setelem-list-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-getsetelem-reset"></a>
<a id="rst-nftables-operation-getsetelem-reset"></a>



### getsetelem-reset



Get / dump set elements and reset stateful expressions.

- **attribute-set**:

  [setelem-list-attrs](#rst-nftables-attribute-set-setelem-list-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-delsetelem"></a>
<a id="rst-nftables-operation-delsetelem"></a>



### delsetelem



Delete an existing set element.

- **attribute-set**:

  [setelem-list-attrs](#rst-nftables-attribute-set-setelem-list-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroysetelem"></a>
<a id="rst-nftables-operation-destroysetelem"></a>



### destroysetelem



Delete an existing set element with destroy semantics.

- **attribute-set**:

  [setelem-list-attrs](#rst-nftables-attribute-set-setelem-list-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getgen"></a>
<a id="rst-nftables-operation-getgen"></a>



### getgen



Get / dump rule-set generation.

- **attribute-set**:

  [gen-attrs](#rst-nftables-attribute-set-gen-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-newobj"></a>
<a id="rst-nftables-operation-newobj"></a>



### newobj



Create a new stateful object.

- **attribute-set**:

  [obj-attrs](#rst-nftables-attribute-set-obj-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getobj"></a>
<a id="rst-nftables-operation-getobj"></a>



### getobj



Get / dump stateful objects.

- **attribute-set**:

  [obj-attrs](#rst-nftables-attribute-set-obj-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-delobj"></a>
<a id="rst-nftables-operation-delobj"></a>



### delobj



Delete an existing stateful object.

- **attribute-set**:

  [obj-attrs](#rst-nftables-attribute-set-obj-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroyobj"></a>
<a id="rst-nftables-operation-destroyobj"></a>



### destroyobj



Delete an existing stateful object with destroy semantics.

- **attribute-set**:

  [obj-attrs](#rst-nftables-attribute-set-obj-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-newflowtable"></a>
<a id="rst-nftables-operation-newflowtable"></a>



### newflowtable



Create a new flow table.

- **attribute-set**:

  [flowtable-attrs](#rst-nftables-attribute-set-flowtable-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-getflowtable"></a>
<a id="rst-nftables-operation-getflowtable"></a>



### getflowtable



Get / dump flow tables.

- **attribute-set**:

  [flowtable-attrs](#rst-nftables-attribute-set-flowtable-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

  **reply**

  - **attributes**:

    \[`name`\]

<a id="rst-delflowtable"></a>
<a id="rst-nftables-operation-delflowtable"></a>



### delflowtable



Delete an existing flow table.

- **attribute-set**:

  [flowtable-attrs](#rst-nftables-attribute-set-flowtable-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-destroyflowtable"></a>
<a id="rst-nftables-operation-destroyflowtable"></a>



### destroyflowtable



Delete an existing flow table with destroy semantics.

- **attribute-set**:

  [flowtable-attrs](#rst-nftables-attribute-set-flowtable-attrs)

- **fixed-header**:

  [nfgenmsg](#rst-nftables-definition-nfgenmsg)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- mgmt


<a id="rst-definitions"></a>



## Definitions

<a id="rst-nfgenmsg"></a>
<a id="rst-nftables-definition-nfgenmsg"></a>



### nfgenmsg

- **type**:

  struct

- **members**:

  - **nfgen-family (`u8`)**

  - **version (`u8`)**

  - **res-id (`u16`)**

<a id="rst-meta-keys"></a>
<a id="rst-nftables-definition-meta-keys"></a>



### 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`

<a id="rst-bitwise-ops"></a>
<a id="rst-nftables-definition-bitwise-ops"></a>



### bitwise-ops

- **type**:

  enum

- **entries**:

  - `bool`


  - `lshift`


  - `rshift`

<a id="rst-cmp-ops"></a>
<a id="rst-nftables-definition-cmp-ops"></a>



### cmp-ops

- **type**:

  enum

- **entries**:

  - `eq`


  - `neq`


  - `lt`


  - `lte`


  - `gt`


  - `gte`

<a id="rst-object-type"></a>
<a id="rst-nftables-definition-object-type"></a>



### object-type

- **type**:

  enum

- **entries**:

  - `unspec`


  - `counter`


  - `quota`


  - `ct-helper`


  - `limit`


  - `connlimit`


  - `tunnel`


  - `ct-timeout`


  - `secmark`


  - `ct-expect`


  - `synproxy`

<a id="rst-nat-range-flags"></a>
<a id="rst-nftables-definition-nat-range-flags"></a>



### nat-range-flags

- **type**:

  flags

- **entries**:

  - `map-ips`


  - `proto-specified`


  - `proto-random`


  - `persistent`


  - `proto-random-fully`


  - `proto-offset`


  - `netmap`

<a id="rst-table-flags"></a>
<a id="rst-nftables-definition-table-flags"></a>



### table-flags

- **type**:

  flags

- **entries**:

  - `dormant`


  - `owner`


  - `persist`

<a id="rst-chain-flags"></a>
<a id="rst-nftables-definition-chain-flags"></a>



### chain-flags

- **type**:

  flags

- **entries**:

  - `base`


  - `hw-offload`


  - `binding`

<a id="rst-set-flags"></a>
<a id="rst-nftables-definition-set-flags"></a>



### set-flags

- **type**:

  flags

- **entries**:

  - `anonymous`


  - `constant`


  - `interval`


  - `map`


  - `timeout`


  - `eval`


  - `object`


  - `concat`


  - `expr`

<a id="rst-lookup-flags"></a>
<a id="rst-nftables-definition-lookup-flags"></a>



### lookup-flags

- **type**:

  flags

- **entries**:

  - `invert`

<a id="rst-ct-keys"></a>
<a id="rst-nftables-definition-ct-keys"></a>



### 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`

<a id="rst-ct-direction"></a>
<a id="rst-nftables-definition-ct-direction"></a>



### ct-direction

- **type**:

  enum

- **entries**:

  - `original`


  - `reply`

<a id="rst-quota-flags"></a>
<a id="rst-nftables-definition-quota-flags"></a>



### quota-flags

- **type**:

  flags

- **entries**:

  - `invert`


  - `depleted`

<a id="rst-verdict-code"></a>
<a id="rst-nftables-definition-verdict-code"></a>



### verdict-code

- **type**:

  enum

- **entries**:

  - **continue**

  - **break**

  - **jump**

  - **goto**

  - **return**

  - **drop**

  - **accept**

  - **stolen**

  - **queue**

  - **repeat**

<a id="rst-fib-result"></a>
<a id="rst-nftables-definition-fib-result"></a>



### fib-result

- **type**:

  enum

- **entries**:

  - `oif`


  - `oifname`


  - `addrtype`

<a id="rst-fib-flags"></a>
<a id="rst-nftables-definition-fib-flags"></a>



### fib-flags

- **type**:

  flags

- **entries**:

  - `saddr`


  - `daddr`


  - `mark`


  - `iif`


  - `oif`


  - `present`

<a id="rst-reject-types"></a>
<a id="rst-nftables-definition-reject-types"></a>



### reject-types

- **type**:

  enum

- **entries**:

  - `icmp-unreach`


  - `tcp-rst`


  - `icmpx-unreach`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-empty-attrs"></a>
<a id="rst-nftables-attribute-set-empty-attrs"></a>



### empty-attrs

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-batch-attrs"></a>
<a id="rst-nftables-attribute-set-batch-attrs"></a>



### batch-attrs

<a id="rst-genid-u32"></a>



#### genid (`u32`)

- **byte-order**:

  big-endian

<a id="rst-table-attrs"></a>
<a id="rst-nftables-attribute-set-table-attrs"></a>



### table-attrs

<a id="rst-name-string-1"></a>



#### name (`string`)

- **doc**:

  name of the table

<a id="rst-flags-u32"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  bitmask of flags

- **enum**:

  [table-flags](#rst-nftables-definition-table-flags)

- **enum-as-flags**:

  True

<a id="rst-use-u32"></a>



#### use (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  number of chains in this table

<a id="rst-handle-u64"></a>



#### handle (`u64`)

- **byte-order**:

  big-endian

- **doc**:

  numeric handle of the table

<a id="rst-userdata-binary"></a>



#### userdata (`binary`)

- **doc**:

  user data

<a id="rst-chain-attrs"></a>
<a id="rst-nftables-attribute-set-chain-attrs"></a>



### chain-attrs

<a id="rst-table-string"></a>



#### table (`string`)

- **doc**:

  name of the table containing the chain

<a id="rst-handle-u64-1"></a>



#### handle (`u64`)

- **byte-order**:

  big-endian

- **doc**:

  numeric handle of the chain

<a id="rst-name-string-2"></a>



#### name (`string`)

- **doc**:

  name of the chain

<a id="rst-hook-nest"></a>



#### hook (`nest`)

- **nested-attributes**:

  [nft-hook-attrs](#rst-nftables-attribute-set-nft-hook-attrs)

- **doc**:

  hook specification for basechains

<a id="rst-policy-u32"></a>



#### policy (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  numeric policy of the chain

<a id="rst-use-u32-1"></a>



#### use (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  number of references to this chain

<a id="rst-type-string"></a>



#### type (`string`)

- **doc**:

  type name of the chain

<a id="rst-counters-nest"></a>



#### counters (`nest`)

- **nested-attributes**:

  [nft-counter-attrs](#rst-nftables-attribute-set-nft-counter-attrs)

- **doc**:

  counter specification of the chain

<a id="rst-flags-u32-1"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  chain flags

- **enum**:

  [chain-flags](#rst-nftables-definition-chain-flags)

- **enum-as-flags**:

  True

<a id="rst-id-u32"></a>



#### id (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  uniquely identifies a chain in a transaction

<a id="rst-userdata-binary-1"></a>



#### userdata (`binary`)

- **doc**:

  user data

<a id="rst-counter-attrs"></a>
<a id="rst-nftables-attribute-set-counter-attrs"></a>



### counter-attrs

<a id="rst-bytes-u64"></a>



#### bytes (`u64`)

- **byte-order**:

  big-endian

<a id="rst-packets-u64"></a>



#### packets (`u64`)

- **byte-order**:

  big-endian

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-nft-hook-attrs"></a>
<a id="rst-nftables-attribute-set-nft-hook-attrs"></a>



### nft-hook-attrs

<a id="rst-num-u32"></a>



#### num (`u32`)

- **byte-order**:

  big-endian

<a id="rst-priority-s32"></a>



#### priority (`s32`)

- **byte-order**:

  big-endian

<a id="rst-dev-string"></a>



#### dev (`string`)

- **doc**:

  net device name

<a id="rst-devs-nest"></a>



#### devs (`nest`)

- **nested-attributes**:

  [hook-dev-attrs](#rst-nftables-attribute-set-hook-dev-attrs)

- **doc**:

  list of net devices

<a id="rst-hook-dev-attrs"></a>
<a id="rst-nftables-attribute-set-hook-dev-attrs"></a>



### hook-dev-attrs

<a id="rst-name-string-3"></a>



#### name (`string`)

- **multi-attr**:

  True

<a id="rst-nft-counter-attrs"></a>
<a id="rst-nftables-attribute-set-nft-counter-attrs"></a>



### nft-counter-attrs

<a id="rst-bytes-u64-1"></a>



#### bytes (`u64`)

<a id="rst-packets-u64-1"></a>



#### packets (`u64`)

<a id="rst-rule-attrs"></a>
<a id="rst-nftables-attribute-set-rule-attrs"></a>



### rule-attrs

<a id="rst-table-string-1"></a>



#### table (`string`)

- **doc**:

  name of the table containing the rule

<a id="rst-chain-string"></a>



#### chain (`string`)

- **doc**:

  name of the chain containing the rule

<a id="rst-handle-u64-2"></a>



#### handle (`u64`)

- **byte-order**:

  big-endian

- **doc**:

  numeric handle of the rule

<a id="rst-expressions-nest"></a>



#### expressions (`nest`)

- **nested-attributes**:

  [expr-list-attrs](#rst-nftables-attribute-set-expr-list-attrs)

- **doc**:

  list of expressions

<a id="rst-compat-nest"></a>



#### compat (`nest`)

- **nested-attributes**:

  [rule-compat-attrs](#rst-nftables-attribute-set-rule-compat-attrs)

- **doc**:

  compatibility specifications of the rule

<a id="rst-position-u64"></a>



#### position (`u64`)

- **byte-order**:

  big-endian

- **doc**:

  numeric handle of the previous rule

<a id="rst-userdata-binary-2"></a>



#### userdata (`binary`)

- **doc**:

  user data

<a id="rst-id-u32-1"></a>



#### id (`u32`)

- **doc**:

  uniquely identifies a rule in a transaction

<a id="rst-position-id-u32"></a>



#### position-id (`u32`)

- **doc**:

  transaction unique identifier of the previous rule

<a id="rst-chain-id-u32"></a>



#### chain-id (`u32`)

- **doc**:

  add the rule to chain by ID, alternative to chain name

<a id="rst-expr-list-attrs"></a>
<a id="rst-nftables-attribute-set-expr-list-attrs"></a>



### expr-list-attrs

<a id="rst-elem-nest"></a>



#### elem (`nest`)

- **nested-attributes**:

  [expr-attrs](#rst-nftables-attribute-set-expr-attrs)

- **multi-attr**:

  True

<a id="rst-expr-attrs"></a>
<a id="rst-nftables-attribute-set-expr-attrs"></a>



### expr-attrs

<a id="rst-name-string-4"></a>



#### name (`string`)

- **doc**:

  name of the expression type

<a id="rst-data-sub-message"></a>



#### data (`sub-message`)

- **sub-message**:

  [expr-ops](#rst-nftables-sub-message-expr-ops)

- **selector**:

  name

- **doc**:

  type specific data

<a id="rst-rule-compat-attrs"></a>
<a id="rst-nftables-attribute-set-rule-compat-attrs"></a>



### rule-compat-attrs

<a id="rst-proto-binary"></a>



#### proto (`binary`)

- **doc**:

  numeric value of the handled protocol

<a id="rst-flags-binary"></a>



#### flags (`binary`)

- **doc**:

  bitmask of flags

<a id="rst-set-attrs"></a>
<a id="rst-nftables-attribute-set-set-attrs"></a>



### set-attrs

<a id="rst-table-string-2"></a>



#### table (`string`)

- **doc**:

  table name

<a id="rst-name-string-5"></a>



#### name (`string`)

- **doc**:

  set name

<a id="rst-flags-u32-2"></a>



#### flags (`u32`)

- **enum**:

  [set-flags](#rst-nftables-definition-set-flags)

- **byte-order**:

  big-endian

- **doc**:

  bitmask of enum nft\_set\_flags

<a id="rst-key-type-u32"></a>



#### key-type (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  key data type, informational purpose only

<a id="rst-key-len-u32"></a>



#### key-len (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  key data length

<a id="rst-data-type-u32"></a>



#### data-type (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  mapping data type

<a id="rst-data-len-u32"></a>



#### data-len (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  mapping data length

<a id="rst-policy-u32-1"></a>



#### policy (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  selection policy

<a id="rst-desc-nest"></a>



#### desc (`nest`)

- **nested-attributes**:

  [set-desc-attrs](#rst-nftables-attribute-set-set-desc-attrs)

- **doc**:

  set description

<a id="rst-id-u32-2"></a>



#### id (`u32`)

- **doc**:

  uniquely identifies a set in a transaction

<a id="rst-timeout-u64"></a>



#### timeout (`u64`)

- **doc**:

  default timeout value

<a id="rst-gc-interval-u32"></a>



#### gc-interval (`u32`)

- **doc**:

  garbage collection interval

<a id="rst-userdata-binary-3"></a>



#### userdata (`binary`)

- **doc**:

  user data

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-obj-type-u32"></a>



#### obj-type (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  stateful object type

<a id="rst-handle-u64-3"></a>



#### handle (`u64`)

- **byte-order**:

  big-endian

- **doc**:

  set handle

<a id="rst-expr-nest"></a>



#### expr (`nest`)

- **nested-attributes**:

  [expr-attrs](#rst-nftables-attribute-set-expr-attrs)

- **doc**:

  set expression

- **multi-attr**:

  True

<a id="rst-expressions-nest-1"></a>



#### expressions (`nest`)

- **nested-attributes**:

  [set-list-attrs](#rst-nftables-attribute-set-set-list-attrs)

- **doc**:

  list of expressions

<a id="rst-set-desc-attrs"></a>
<a id="rst-nftables-attribute-set-set-desc-attrs"></a>



### set-desc-attrs

<a id="rst-size-u32"></a>



#### size (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  number of elements in set

<a id="rst-concat-nest"></a>



#### concat (`nest`)

- **nested-attributes**:

  [set-desc-concat-attrs](#rst-nftables-attribute-set-set-desc-concat-attrs)

- **doc**:

  description of field concatenation

- **multi-attr**:

  True

<a id="rst-set-desc-concat-attrs"></a>
<a id="rst-nftables-attribute-set-set-desc-concat-attrs"></a>



### set-desc-concat-attrs

<a id="rst-elem-nest-1"></a>



#### elem (`nest`)

- **nested-attributes**:

  [set-field-attrs](#rst-nftables-attribute-set-set-field-attrs)

<a id="rst-set-field-attrs"></a>
<a id="rst-nftables-attribute-set-set-field-attrs"></a>



### set-field-attrs

<a id="rst-len-u32"></a>



#### len (`u32`)

- **byte-order**:

  big-endian

<a id="rst-set-list-attrs"></a>
<a id="rst-nftables-attribute-set-set-list-attrs"></a>



### set-list-attrs

<a id="rst-elem-nest-2"></a>



#### elem (`nest`)

- **nested-attributes**:

  [expr-attrs](#rst-nftables-attribute-set-expr-attrs)

- **multi-attr**:

  True

<a id="rst-setelem-attrs"></a>
<a id="rst-nftables-attribute-set-setelem-attrs"></a>



### setelem-attrs

<a id="rst-key-nest"></a>



#### key (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

- **doc**:

  key value

<a id="rst-data-nest"></a>



#### data (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

- **doc**:

  data value of mapping

<a id="rst-flags-binary-1"></a>



#### flags (`binary`)

- **doc**:

  bitmask of nft\_set\_elem\_flags

<a id="rst-timeout-u64-1"></a>



#### timeout (`u64`)

- **doc**:

  timeout value

<a id="rst-expiration-u64"></a>



#### expiration (`u64`)

- **doc**:

  expiration time

<a id="rst-userdata-binary-4"></a>



#### userdata (`binary`)

- **doc**:

  user data

<a id="rst-expr-nest-1"></a>



#### expr (`nest`)

- **nested-attributes**:

  [expr-attrs](#rst-nftables-attribute-set-expr-attrs)

- **doc**:

  expression

<a id="rst-objref-string"></a>



#### objref (`string`)

- **doc**:

  stateful object reference

<a id="rst-key-end-nest"></a>



#### key-end (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

- **doc**:

  closing key value

<a id="rst-expressions-nest-2"></a>



#### expressions (`nest`)

- **nested-attributes**:

  [expr-list-attrs](#rst-nftables-attribute-set-expr-list-attrs)

- **doc**:

  list of expressions

<a id="rst-setelem-list-elem-attrs"></a>
<a id="rst-nftables-attribute-set-setelem-list-elem-attrs"></a>



### setelem-list-elem-attrs

<a id="rst-elem-nest-3"></a>



#### elem (`nest`)

- **nested-attributes**:

  [setelem-attrs](#rst-nftables-attribute-set-setelem-attrs)

- **multi-attr**:

  True

<a id="rst-setelem-list-attrs"></a>
<a id="rst-nftables-attribute-set-setelem-list-attrs"></a>



### setelem-list-attrs

<a id="rst-table-string-3"></a>



#### table (`string`)

<a id="rst-set-string"></a>



#### set (`string`)

<a id="rst-elements-nest"></a>



#### elements (`nest`)

- **nested-attributes**:

  [setelem-list-elem-attrs](#rst-nftables-attribute-set-setelem-list-elem-attrs)

<a id="rst-set-id-u32"></a>



#### set-id (`u32`)

<a id="rst-gen-attrs"></a>
<a id="rst-nftables-attribute-set-gen-attrs"></a>



### gen-attrs

<a id="rst-id-u32-3"></a>



#### id (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  ruleset generation id

<a id="rst-proc-pid-u32"></a>



#### proc-pid (`u32`)

- **byte-order**:

  big-endian

<a id="rst-proc-name-string"></a>



#### proc-name (`string`)

<a id="rst-obj-attrs"></a>
<a id="rst-nftables-attribute-set-obj-attrs"></a>



### obj-attrs

<a id="rst-table-string-4"></a>



#### table (`string`)

- **doc**:

  name of the table containing the expression

<a id="rst-name-string-6"></a>



#### name (`string`)

- **doc**:

  name of this expression type

<a id="rst-type-u32"></a>



#### type (`u32`)

- **enum**:

  [object-type](#rst-nftables-definition-object-type)

- **byte-order**:

  big-endian

- **doc**:

  stateful object type

<a id="rst-data-sub-message-1"></a>



#### data (`sub-message`)

- **sub-message**:

  [obj-data](#rst-nftables-sub-message-obj-data)

- **selector**:

  type

- **doc**:

  stateful object data

<a id="rst-use-u32-2"></a>



#### use (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  number of references to this expression

<a id="rst-handle-u64-4"></a>



#### handle (`u64`)

- **byte-order**:

  big-endian

- **doc**:

  object handle

<a id="rst-pad-pad-2"></a>



#### pad (`pad`)

<a id="rst-userdata-binary-5"></a>



#### userdata (`binary`)

- **doc**:

  user data

<a id="rst-quota-attrs"></a>
<a id="rst-nftables-attribute-set-quota-attrs"></a>



### quota-attrs

<a id="rst-bytes-u64-2"></a>



#### bytes (`u64`)

- **byte-order**:

  big-endian

<a id="rst-flags-u32-3"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [quota-flags](#rst-nftables-definition-quota-flags)

<a id="rst-pad-pad-3"></a>



#### pad (`pad`)

<a id="rst-consumed-u64"></a>



#### consumed (`u64`)

- **byte-order**:

  big-endian

<a id="rst-flowtable-attrs"></a>
<a id="rst-nftables-attribute-set-flowtable-attrs"></a>



### flowtable-attrs

<a id="rst-table-string-5"></a>



#### table (`string`)

<a id="rst-name-string-7"></a>



#### name (`string`)

<a id="rst-hook-nest-1"></a>



#### hook (`nest`)

- **nested-attributes**:

  [flowtable-hook-attrs](#rst-nftables-attribute-set-flowtable-hook-attrs)

<a id="rst-use-u32-3"></a>



#### use (`u32`)

- **byte-order**:

  big-endian

<a id="rst-handle-u64-5"></a>



#### handle (`u64`)

- **byte-order**:

  big-endian

<a id="rst-pad-pad-4"></a>



#### pad (`pad`)

<a id="rst-flags-u32-4"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

<a id="rst-flowtable-hook-attrs"></a>
<a id="rst-nftables-attribute-set-flowtable-hook-attrs"></a>



### flowtable-hook-attrs

<a id="rst-num-u32-1"></a>



#### num (`u32`)

- **byte-order**:

  big-endian

<a id="rst-priority-u32"></a>



#### priority (`u32`)

- **byte-order**:

  big-endian

<a id="rst-devs-nest-1"></a>



#### devs (`nest`)

- **nested-attributes**:

  [hook-dev-attrs](#rst-nftables-attribute-set-hook-dev-attrs)

<a id="rst-expr-bitwise-attrs"></a>
<a id="rst-nftables-attribute-set-expr-bitwise-attrs"></a>



### expr-bitwise-attrs

<a id="rst-sreg-u32"></a>



#### sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-dreg-u32"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-len-u32-1"></a>



#### len (`u32`)

- **byte-order**:

  big-endian

<a id="rst-mask-nest"></a>



#### mask (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

<a id="rst-xor-nest"></a>



#### xor (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

<a id="rst-op-u32"></a>



#### op (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [bitwise-ops](#rst-nftables-definition-bitwise-ops)

<a id="rst-data-nest-1"></a>



#### data (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

<a id="rst-expr-cmp-attrs"></a>
<a id="rst-nftables-attribute-set-expr-cmp-attrs"></a>



### expr-cmp-attrs

<a id="rst-sreg-u32-1"></a>



#### sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-op-u32-1"></a>



#### op (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [cmp-ops](#rst-nftables-definition-cmp-ops)

<a id="rst-data-nest-2"></a>



#### data (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

<a id="rst-data-attrs"></a>
<a id="rst-nftables-attribute-set-data-attrs"></a>



### data-attrs

<a id="rst-value-binary"></a>



#### value (`binary`)

<a id="rst-verdict-nest"></a>



#### verdict (`nest`)

- **nested-attributes**:

  [verdict-attrs](#rst-nftables-attribute-set-verdict-attrs)

<a id="rst-verdict-attrs"></a>
<a id="rst-nftables-attribute-set-verdict-attrs"></a>



### verdict-attrs

<a id="rst-code-u32"></a>



#### code (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [verdict-code](#rst-nftables-definition-verdict-code)

<a id="rst-chain-string-1"></a>



#### chain (`string`)

<a id="rst-chain-id-u32-1"></a>



#### chain-id (`u32`)

<a id="rst-expr-counter-attrs"></a>
<a id="rst-nftables-attribute-set-expr-counter-attrs"></a>



### expr-counter-attrs

<a id="rst-bytes-u64-3"></a>



#### bytes (`u64`)

- **doc**:

  Number of bytes

<a id="rst-packets-u64-2"></a>



#### packets (`u64`)

- **doc**:

  Number of packets

<a id="rst-pad-pad-5"></a>



#### pad (`pad`)

<a id="rst-expr-fib-attrs"></a>
<a id="rst-nftables-attribute-set-expr-fib-attrs"></a>



### expr-fib-attrs

<a id="rst-dreg-u32-1"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-result-u32"></a>



#### result (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [fib-result](#rst-nftables-definition-fib-result)

<a id="rst-flags-u32-5"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [fib-flags](#rst-nftables-definition-fib-flags)

<a id="rst-expr-ct-attrs"></a>
<a id="rst-nftables-attribute-set-expr-ct-attrs"></a>



### expr-ct-attrs

<a id="rst-dreg-u32-2"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-u32"></a>



#### key (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [ct-keys](#rst-nftables-definition-ct-keys)

<a id="rst-direction-u8"></a>



#### direction (`u8`)

- **enum**:

  [ct-direction](#rst-nftables-definition-ct-direction)

<a id="rst-sreg-u32-2"></a>



#### sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-expr-flow-offload-attrs"></a>
<a id="rst-nftables-attribute-set-expr-flow-offload-attrs"></a>



### expr-flow-offload-attrs

<a id="rst-name-string-8"></a>



#### name (`string`)

- **doc**:

  Flow offload table name

<a id="rst-expr-immediate-attrs"></a>
<a id="rst-nftables-attribute-set-expr-immediate-attrs"></a>



### expr-immediate-attrs

<a id="rst-dreg-u32-3"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-data-nest-3"></a>



#### data (`nest`)

- **nested-attributes**:

  [data-attrs](#rst-nftables-attribute-set-data-attrs)

<a id="rst-expr-lookup-attrs"></a>
<a id="rst-nftables-attribute-set-expr-lookup-attrs"></a>



### expr-lookup-attrs

<a id="rst-set-string-1"></a>



#### set (`string`)

- **doc**:

  Name of set to use

<a id="rst-set-id-u32-1"></a>



#### set-id (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  ID of set to use

<a id="rst-sreg-u32-3"></a>



#### sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-dreg-u32-4"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-flags-u32-6"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [lookup-flags](#rst-nftables-definition-lookup-flags)

<a id="rst-expr-meta-attrs"></a>
<a id="rst-nftables-attribute-set-expr-meta-attrs"></a>



### expr-meta-attrs

<a id="rst-dreg-u32-5"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-u32-1"></a>



#### key (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [meta-keys](#rst-nftables-definition-meta-keys)

<a id="rst-sreg-u32-4"></a>



#### sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-expr-nat-attrs"></a>
<a id="rst-nftables-attribute-set-expr-nat-attrs"></a>



### expr-nat-attrs

<a id="rst-type-u32-1"></a>



#### type (`u32`)

- **byte-order**:

  big-endian

<a id="rst-family-u32"></a>



#### family (`u32`)

- **byte-order**:

  big-endian

<a id="rst-reg-addr-min-u32"></a>



#### reg-addr-min (`u32`)

- **byte-order**:

  big-endian

<a id="rst-reg-addr-max-u32"></a>



#### reg-addr-max (`u32`)

- **byte-order**:

  big-endian

<a id="rst-reg-proto-min-u32"></a>



#### reg-proto-min (`u32`)

- **byte-order**:

  big-endian

<a id="rst-reg-proto-max-u32"></a>



#### reg-proto-max (`u32`)

- **byte-order**:

  big-endian

<a id="rst-flags-u32-7"></a>



#### flags (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [nat-range-flags](#rst-nftables-definition-nat-range-flags)

- **enum-as-flags**:

  True

<a id="rst-expr-payload-attrs"></a>
<a id="rst-nftables-attribute-set-expr-payload-attrs"></a>



### expr-payload-attrs

<a id="rst-dreg-u32-6"></a>



#### dreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-base-u32"></a>



#### base (`u32`)

- **byte-order**:

  big-endian

<a id="rst-offset-u32"></a>



#### offset (`u32`)

- **byte-order**:

  big-endian

<a id="rst-len-u32-2"></a>



#### len (`u32`)

- **byte-order**:

  big-endian

<a id="rst-sreg-u32-5"></a>



#### sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-csum-type-u32"></a>



#### csum-type (`u32`)

- **byte-order**:

  big-endian

<a id="rst-csum-offset-u32"></a>



#### csum-offset (`u32`)

- **byte-order**:

  big-endian

<a id="rst-csum-flags-u32"></a>



#### csum-flags (`u32`)

- **byte-order**:

  big-endian

<a id="rst-expr-reject-attrs"></a>
<a id="rst-nftables-attribute-set-expr-reject-attrs"></a>



### expr-reject-attrs

<a id="rst-type-u32-2"></a>



#### type (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [reject-types](#rst-nftables-definition-reject-types)

<a id="rst-icmp-code-u8"></a>



#### icmp-code (`u8`)

<a id="rst-expr-target-attrs"></a>
<a id="rst-nftables-attribute-set-expr-target-attrs"></a>



### expr-target-attrs

<a id="rst-name-string-9"></a>



#### name (`string`)

<a id="rst-rev-u32"></a>



#### rev (`u32`)

- **byte-order**:

  big-endian

<a id="rst-info-binary"></a>



#### info (`binary`)

<a id="rst-expr-tproxy-attrs"></a>
<a id="rst-nftables-attribute-set-expr-tproxy-attrs"></a>



### expr-tproxy-attrs

<a id="rst-family-u32-1"></a>



#### family (`u32`)

- **byte-order**:

  big-endian

<a id="rst-reg-addr-u32"></a>



#### reg-addr (`u32`)

- **byte-order**:

  big-endian

<a id="rst-reg-port-u32"></a>



#### reg-port (`u32`)

- **byte-order**:

  big-endian

<a id="rst-expr-objref-attrs"></a>
<a id="rst-nftables-attribute-set-expr-objref-attrs"></a>



### expr-objref-attrs

<a id="rst-imm-type-u32"></a>



#### imm-type (`u32`)

- **byte-order**:

  big-endian

<a id="rst-imm-name-string"></a>



#### imm-name (`string`)

- **doc**:

  object name

<a id="rst-set-sreg-u32"></a>



#### set-sreg (`u32`)

- **byte-order**:

  big-endian

<a id="rst-set-name-string"></a>



#### set-name (`string`)

- **doc**:

  name of object map

<a id="rst-set-id-u32-2"></a>



#### set-id (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  id of object map

<a id="rst-sub-messages"></a>



## Sub-messages

<a id="rst-expr-ops"></a>
<a id="rst-nftables-sub-message-expr-ops"></a>



### expr-ops

- **bitwise**

  - **attribute-set**:

    [expr-bitwise-attrs](#rst-nftables-attribute-set-expr-bitwise-attrs)

- **cmp**

  - **attribute-set**:

    [expr-cmp-attrs](#rst-nftables-attribute-set-expr-cmp-attrs)

- **counter**

  - **attribute-set**:

    [expr-counter-attrs](#rst-nftables-attribute-set-expr-counter-attrs)

- **ct**

  - **attribute-set**:

    [expr-ct-attrs](#rst-nftables-attribute-set-expr-ct-attrs)

- **fib**

  - **attribute-set**:

    [expr-fib-attrs](#rst-nftables-attribute-set-expr-fib-attrs)

- **flow\_offload**

  - **attribute-set**:

    [expr-flow-offload-attrs](#rst-nftables-attribute-set-expr-flow-offload-attrs)

- **immediate**

  - **attribute-set**:

    [expr-immediate-attrs](#rst-nftables-attribute-set-expr-immediate-attrs)

- **lookup**

  - **attribute-set**:

    [expr-lookup-attrs](#rst-nftables-attribute-set-expr-lookup-attrs)

- **meta**

  - **attribute-set**:

    [expr-meta-attrs](#rst-nftables-attribute-set-expr-meta-attrs)

- **nat**

  - **attribute-set**:

    [expr-nat-attrs](#rst-nftables-attribute-set-expr-nat-attrs)

- **objref**

  - **attribute-set**:

    [expr-objref-attrs](#rst-nftables-attribute-set-expr-objref-attrs)

- **payload**

  - **attribute-set**:

    [expr-payload-attrs](#rst-nftables-attribute-set-expr-payload-attrs)

- **quota**

  - **attribute-set**:

    [quota-attrs](#rst-nftables-attribute-set-quota-attrs)

- **reject**

  - **attribute-set**:

    [expr-reject-attrs](#rst-nftables-attribute-set-expr-reject-attrs)

- **target**

  - **attribute-set**:

    [expr-target-attrs](#rst-nftables-attribute-set-expr-target-attrs)

- **tproxy**

  - **attribute-set**:

    [expr-tproxy-attrs](#rst-nftables-attribute-set-expr-tproxy-attrs)

<a id="rst-obj-data"></a>
<a id="rst-nftables-sub-message-obj-data"></a>



### obj-data

- **counter**

  - **attribute-set**:

    [counter-attrs](#rst-nftables-attribute-set-counter-attrs)

- **quota**

  - **attribute-set**:

    [quota-attrs](#rst-nftables-attribute-set-quota-attrs)

---

# Family nl80211 netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the nl80211 Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-nl80211-netlink-specification"></a>
<a id="rst-netlink-nl80211"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netlink API for 802.11 wireless devices

<a id="rst-operations"></a>



## Operations

<a id="rst-get-wiphy"></a>
<a id="rst-nl80211-operation-get-wiphy"></a>



### 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**:

  [nl80211-attrs](#rst-nl80211-attribute-set-nl80211-attrs)

- **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`\]

<a id="rst-get-interface"></a>
<a id="rst-nl80211-operation-get-interface"></a>



### get-interface



Get information about an interface or dump a list of all interfaces

- **attribute-set**:

  [nl80211-attrs](#rst-nl80211-attribute-set-nl80211-attrs)

- **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`\]

<a id="rst-get-protocol-features"></a>
<a id="rst-nl80211-operation-get-protocol-features"></a>



### get-protocol-features



Get information about supported protocol features

- **attribute-set**:

  [nl80211-attrs](#rst-nl80211-attribute-set-nl80211-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`protocol-features`\]

  **reply**

  - **attributes**:

    \[`protocol-features`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- config


- scan


- regulatory


- mlme


- vendor


- nan


- testmode


<a id="rst-definitions"></a>



## Definitions

<a id="rst-commands"></a>
<a id="rst-nl80211-definition-commands"></a>



### 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`

<a id="rst-feature-flags"></a>
<a id="rst-nl80211-definition-feature-flags"></a>



### 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`

<a id="rst-channel-type"></a>
<a id="rst-nl80211-definition-channel-type"></a>



### channel-type

- **type**:

  enum

- **entries**:

  - `no-ht`


  - `ht20`


  - `ht40minus`


  - `ht40plus`

<a id="rst-sta-flag-update"></a>
<a id="rst-nl80211-definition-sta-flag-update"></a>



### sta-flag-update

- **type**:

  struct

- **members**:

  - **mask (`u32`)**

  - **set (`u32`)**

<a id="rst-protocol-features"></a>
<a id="rst-nl80211-definition-protocol-features"></a>



### protocol-features

- **type**:

  flags

- **entries**:

  - `split-wiphy-dump`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-nl80211-attrs"></a>
<a id="rst-nl80211-attribute-set-nl80211-attrs"></a>



### nl80211-attrs

<a id="rst-wiphy-u32"></a>



#### wiphy (`u32`)

<a id="rst-wiphy-name-string"></a>



#### wiphy-name (`string`)

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

<a id="rst-ifname-string"></a>



#### ifname (`string`)

<a id="rst-iftype-u32"></a>



#### iftype (`u32`)

<a id="rst-mac-binary"></a>



#### mac (`binary`)

- **display-hint**:

  mac

<a id="rst-key-data-binary"></a>



#### key-data (`binary`)

<a id="rst-key-idx-u8"></a>



#### key-idx (`u8`)

<a id="rst-key-cipher-u32"></a>



#### key-cipher (`u32`)

<a id="rst-key-seq-binary"></a>



#### key-seq (`binary`)

<a id="rst-key-default-flag"></a>



#### key-default (`flag`)

<a id="rst-beacon-interval-u32"></a>



#### beacon-interval (`u32`)

<a id="rst-dtim-period-u32"></a>



#### dtim-period (`u32`)

<a id="rst-beacon-head-binary"></a>



#### beacon-head (`binary`)

<a id="rst-beacon-tail-binary"></a>



#### beacon-tail (`binary`)

<a id="rst-sta-aid-u16"></a>



#### sta-aid (`u16`)

<a id="rst-sta-flags-binary"></a>



#### sta-flags (`binary`)

<a id="rst-sta-listen-interval-u16"></a>



#### sta-listen-interval (`u16`)

<a id="rst-sta-supported-rates-binary"></a>



#### sta-supported-rates (`binary`)

<a id="rst-sta-vlan-u32"></a>



#### sta-vlan (`u32`)

<a id="rst-sta-info-binary"></a>



#### sta-info (`binary`)

<a id="rst-wiphy-bands-nest"></a>



#### wiphy-bands (`nest`)

- **nested-attributes**:

  [wiphy-bands](#rst-nl80211-attribute-set-wiphy-bands)

<a id="rst-mntr-flags-binary"></a>



#### mntr-flags (`binary`)

<a id="rst-mesh-id-binary"></a>



#### mesh-id (`binary`)

<a id="rst-sta-plink-action-u8"></a>



#### sta-plink-action (`u8`)

<a id="rst-mpath-next-hop-binary"></a>



#### mpath-next-hop (`binary`)

- **display-hint**:

  mac

<a id="rst-mpath-info-binary"></a>



#### mpath-info (`binary`)

<a id="rst-bss-cts-prot-u8"></a>



#### bss-cts-prot (`u8`)

<a id="rst-bss-short-preamble-u8"></a>



#### bss-short-preamble (`u8`)

<a id="rst-bss-short-slot-time-u8"></a>



#### bss-short-slot-time (`u8`)

<a id="rst-ht-capability-binary"></a>



#### ht-capability (`binary`)

<a id="rst-supported-iftypes-nest"></a>



#### supported-iftypes (`nest`)

- **nested-attributes**:

  [supported-iftypes](#rst-nl80211-attribute-set-supported-iftypes)

<a id="rst-reg-alpha2-binary"></a>



#### reg-alpha2 (`binary`)

<a id="rst-reg-rules-binary"></a>



#### reg-rules (`binary`)

<a id="rst-mesh-config-binary"></a>



#### mesh-config (`binary`)

<a id="rst-bss-basic-rates-binary"></a>



#### bss-basic-rates (`binary`)

<a id="rst-wiphy-txq-params-binary"></a>



#### wiphy-txq-params (`binary`)

<a id="rst-wiphy-freq-u32"></a>



#### wiphy-freq (`u32`)

<a id="rst-wiphy-channel-type-u32"></a>



#### wiphy-channel-type (`u32`)

- **enum**:

  [channel-type](#rst-nl80211-definition-channel-type)

<a id="rst-key-default-mgmt-flag"></a>



#### key-default-mgmt (`flag`)

<a id="rst-mgmt-subtype-u8"></a>



#### mgmt-subtype (`u8`)

<a id="rst-ie-binary"></a>



#### ie (`binary`)

<a id="rst-max-num-scan-ssids-u8"></a>



#### max-num-scan-ssids (`u8`)

<a id="rst-scan-frequencies-binary"></a>



#### scan-frequencies (`binary`)

<a id="rst-scan-ssids-binary"></a>



#### scan-ssids (`binary`)

<a id="rst-generation-u32"></a>



#### generation (`u32`)

<a id="rst-bss-binary"></a>



#### bss (`binary`)

<a id="rst-reg-initiator-u8"></a>



#### reg-initiator (`u8`)

<a id="rst-reg-type-u8"></a>



#### reg-type (`u8`)

<a id="rst-supported-commands-indexed-array"></a>



#### supported-commands (`indexed-array`)

- **sub-type**:

  u32

- **enum**:

  [commands](#rst-nl80211-definition-commands)

<a id="rst-frame-binary"></a>



#### frame (`binary`)

<a id="rst-ssid-binary"></a>



#### ssid (`binary`)

<a id="rst-auth-type-u32"></a>



#### auth-type (`u32`)

<a id="rst-reason-code-u16"></a>



#### reason-code (`u16`)

<a id="rst-key-type-u32"></a>



#### key-type (`u32`)

<a id="rst-max-scan-ie-len-u16"></a>



#### max-scan-ie-len (`u16`)

<a id="rst-cipher-suites-binary"></a>



#### cipher-suites (`binary`)

- **sub-type**:

  u32

- **display-hint**:

  hex

<a id="rst-freq-before-binary"></a>



#### freq-before (`binary`)

<a id="rst-freq-after-binary"></a>



#### freq-after (`binary`)

<a id="rst-freq-fixed-flag"></a>



#### freq-fixed (`flag`)

<a id="rst-wiphy-retry-short-u8"></a>



#### wiphy-retry-short (`u8`)

<a id="rst-wiphy-retry-long-u8"></a>



#### wiphy-retry-long (`u8`)

<a id="rst-wiphy-frag-threshold-u32"></a>



#### wiphy-frag-threshold (`u32`)

<a id="rst-wiphy-rts-threshold-u32"></a>



#### wiphy-rts-threshold (`u32`)

<a id="rst-timed-out-flag"></a>



#### timed-out (`flag`)

<a id="rst-use-mfp-u32"></a>



#### use-mfp (`u32`)

<a id="rst-sta-flags2-binary"></a>



#### sta-flags2 (`binary`)

- **struct**:

  [sta-flag-update](#rst-nl80211-definition-sta-flag-update)

<a id="rst-control-port-flag"></a>



#### control-port (`flag`)

<a id="rst-testdata-binary"></a>



#### testdata (`binary`)

<a id="rst-privacy-flag"></a>



#### privacy (`flag`)

<a id="rst-disconnected-by-ap-flag"></a>



#### disconnected-by-ap (`flag`)

<a id="rst-status-code-u16"></a>



#### status-code (`u16`)

<a id="rst-cipher-suites-pairwise-binary"></a>



#### cipher-suites-pairwise (`binary`)

<a id="rst-cipher-suite-group-u32"></a>



#### cipher-suite-group (`u32`)

<a id="rst-wpa-versions-u32"></a>



#### wpa-versions (`u32`)

<a id="rst-akm-suites-binary"></a>



#### akm-suites (`binary`)

<a id="rst-req-ie-binary"></a>



#### req-ie (`binary`)

<a id="rst-resp-ie-binary"></a>



#### resp-ie (`binary`)

<a id="rst-prev-bssid-binary"></a>



#### prev-bssid (`binary`)

<a id="rst-key-binary"></a>



#### key (`binary`)

<a id="rst-keys-binary"></a>



#### keys (`binary`)

<a id="rst-pid-u32"></a>



#### pid (`u32`)

<a id="rst-addr-u8"></a>



#### 4addr (`u8`)

<a id="rst-survey-info-binary"></a>



#### survey-info (`binary`)

<a id="rst-pmkid-binary"></a>



#### pmkid (`binary`)

<a id="rst-max-num-pmkids-u8"></a>



#### max-num-pmkids (`u8`)

<a id="rst-duration-u32"></a>



#### duration (`u32`)

<a id="rst-cookie-u64"></a>



#### cookie (`u64`)

<a id="rst-wiphy-coverage-class-u8"></a>



#### wiphy-coverage-class (`u8`)

<a id="rst-tx-rates-binary"></a>



#### tx-rates (`binary`)

<a id="rst-frame-match-binary"></a>



#### frame-match (`binary`)

<a id="rst-ack-flag"></a>



#### ack (`flag`)

<a id="rst-ps-state-u32"></a>



#### ps-state (`u32`)

<a id="rst-cqm-binary"></a>



#### cqm (`binary`)

<a id="rst-local-state-change-flag"></a>



#### local-state-change (`flag`)

<a id="rst-ap-isolate-u8"></a>



#### ap-isolate (`u8`)

<a id="rst-wiphy-tx-power-setting-u32"></a>



#### wiphy-tx-power-setting (`u32`)

<a id="rst-wiphy-tx-power-level-u32"></a>



#### wiphy-tx-power-level (`u32`)

<a id="rst-tx-frame-types-nest"></a>



#### tx-frame-types (`nest`)

- **nested-attributes**:

  [iftype-attrs](#rst-nl80211-attribute-set-iftype-attrs)

<a id="rst-rx-frame-types-nest"></a>



#### rx-frame-types (`nest`)

- **nested-attributes**:

  [iftype-attrs](#rst-nl80211-attribute-set-iftype-attrs)

<a id="rst-frame-type-u16"></a>



#### frame-type (`u16`)

<a id="rst-control-port-ethertype-flag"></a>



#### control-port-ethertype (`flag`)

<a id="rst-control-port-no-encrypt-flag"></a>



#### control-port-no-encrypt (`flag`)

<a id="rst-support-ibss-rsn-flag"></a>



#### support-ibss-rsn (`flag`)

<a id="rst-wiphy-antenna-tx-u32"></a>



#### wiphy-antenna-tx (`u32`)

<a id="rst-wiphy-antenna-rx-u32"></a>



#### wiphy-antenna-rx (`u32`)

<a id="rst-mcast-rate-u32"></a>



#### mcast-rate (`u32`)

<a id="rst-offchannel-tx-ok-flag"></a>



#### offchannel-tx-ok (`flag`)

<a id="rst-bss-ht-opmode-u16"></a>



#### bss-ht-opmode (`u16`)

<a id="rst-key-default-types-binary"></a>



#### key-default-types (`binary`)

<a id="rst-max-remain-on-channel-duration-u32"></a>



#### max-remain-on-channel-duration (`u32`)

<a id="rst-mesh-setup-binary"></a>



#### mesh-setup (`binary`)

<a id="rst-wiphy-antenna-avail-tx-u32"></a>



#### wiphy-antenna-avail-tx (`u32`)

<a id="rst-wiphy-antenna-avail-rx-u32"></a>



#### wiphy-antenna-avail-rx (`u32`)

<a id="rst-support-mesh-auth-flag"></a>



#### support-mesh-auth (`flag`)

<a id="rst-sta-plink-state-u8"></a>



#### sta-plink-state (`u8`)

<a id="rst-wowlan-triggers-binary"></a>



#### wowlan-triggers (`binary`)

<a id="rst-wowlan-triggers-supported-nest"></a>



#### wowlan-triggers-supported (`nest`)

- **nested-attributes**:

  [wowlan-triggers-attrs](#rst-nl80211-attribute-set-wowlan-triggers-attrs)

<a id="rst-sched-scan-interval-u32"></a>



#### sched-scan-interval (`u32`)

<a id="rst-interface-combinations-indexed-array"></a>



#### interface-combinations (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [if-combination-attributes](#rst-nl80211-attribute-set-if-combination-attributes)

<a id="rst-software-iftypes-nest"></a>



#### software-iftypes (`nest`)

- **nested-attributes**:

  [supported-iftypes](#rst-nl80211-attribute-set-supported-iftypes)

<a id="rst-rekey-data-binary"></a>



#### rekey-data (`binary`)

<a id="rst-max-num-sched-scan-ssids-u8"></a>



#### max-num-sched-scan-ssids (`u8`)

<a id="rst-max-sched-scan-ie-len-u16"></a>



#### max-sched-scan-ie-len (`u16`)

<a id="rst-scan-supp-rates-binary"></a>



#### scan-supp-rates (`binary`)

<a id="rst-hidden-ssid-u32"></a>



#### hidden-ssid (`u32`)

<a id="rst-ie-probe-resp-binary"></a>



#### ie-probe-resp (`binary`)

<a id="rst-ie-assoc-resp-binary"></a>



#### ie-assoc-resp (`binary`)

<a id="rst-sta-wme-binary"></a>



#### sta-wme (`binary`)

<a id="rst-support-ap-uapsd-flag"></a>



#### support-ap-uapsd (`flag`)

<a id="rst-roam-support-flag"></a>



#### roam-support (`flag`)

<a id="rst-sched-scan-match-binary"></a>



#### sched-scan-match (`binary`)

<a id="rst-max-match-sets-u8"></a>



#### max-match-sets (`u8`)

<a id="rst-pmksa-candidate-binary"></a>



#### pmksa-candidate (`binary`)

<a id="rst-tx-no-cck-rate-flag"></a>



#### tx-no-cck-rate (`flag`)

<a id="rst-tdls-action-u8"></a>



#### tdls-action (`u8`)

<a id="rst-tdls-dialog-token-u8"></a>



#### tdls-dialog-token (`u8`)

<a id="rst-tdls-operation-u8"></a>



#### tdls-operation (`u8`)

<a id="rst-tdls-support-flag"></a>



#### tdls-support (`flag`)

<a id="rst-tdls-external-setup-flag"></a>



#### tdls-external-setup (`flag`)

<a id="rst-device-ap-sme-u32"></a>



#### device-ap-sme (`u32`)

<a id="rst-dont-wait-for-ack-flag"></a>



#### dont-wait-for-ack (`flag`)

<a id="rst-feature-flags-u32"></a>



#### feature-flags (`u32`)

- **enum**:

  [feature-flags](#rst-nl80211-definition-feature-flags)

- **enum-as-flags**:

  True

<a id="rst-probe-resp-offload-u32"></a>



#### probe-resp-offload (`u32`)

<a id="rst-probe-resp-binary"></a>



#### probe-resp (`binary`)

<a id="rst-dfs-region-u8"></a>



#### dfs-region (`u8`)

<a id="rst-disable-ht-flag"></a>



#### disable-ht (`flag`)

<a id="rst-ht-capability-mask-binary"></a>



#### ht-capability-mask (`binary`)

<a id="rst-noack-map-u16"></a>



#### noack-map (`u16`)

<a id="rst-inactivity-timeout-u16"></a>



#### inactivity-timeout (`u16`)

<a id="rst-rx-signal-dbm-u32"></a>



#### rx-signal-dbm (`u32`)

<a id="rst-bg-scan-period-u16"></a>



#### bg-scan-period (`u16`)

<a id="rst-wdev-u64"></a>



#### wdev (`u64`)

<a id="rst-user-reg-hint-type-u32"></a>



#### user-reg-hint-type (`u32`)

<a id="rst-conn-failed-reason-u32"></a>



#### conn-failed-reason (`u32`)

<a id="rst-auth-data-binary"></a>



#### auth-data (`binary`)

<a id="rst-vht-capability-binary"></a>



#### vht-capability (`binary`)

<a id="rst-scan-flags-u32"></a>



#### scan-flags (`u32`)

<a id="rst-channel-width-u32"></a>



#### channel-width (`u32`)

<a id="rst-center-freq1-u32"></a>



#### center-freq1 (`u32`)

<a id="rst-center-freq2-u32"></a>



#### center-freq2 (`u32`)

<a id="rst-p2p-ctwindow-u8"></a>



#### p2p-ctwindow (`u8`)

<a id="rst-p2p-oppps-u8"></a>



#### p2p-oppps (`u8`)

<a id="rst-local-mesh-power-mode-u32"></a>



#### local-mesh-power-mode (`u32`)

<a id="rst-acl-policy-u32"></a>



#### acl-policy (`u32`)

<a id="rst-mac-addrs-binary"></a>



#### mac-addrs (`binary`)

<a id="rst-mac-acl-max-u32"></a>



#### mac-acl-max (`u32`)

<a id="rst-radar-event-u32"></a>



#### radar-event (`u32`)

<a id="rst-ext-capa-binary"></a>



#### ext-capa (`binary`)

<a id="rst-ext-capa-mask-binary"></a>



#### ext-capa-mask (`binary`)

<a id="rst-sta-capability-u16"></a>



#### sta-capability (`u16`)

<a id="rst-sta-ext-capability-binary"></a>



#### sta-ext-capability (`binary`)

<a id="rst-protocol-features-u32"></a>



#### protocol-features (`u32`)

- **enum**:

  [protocol-features](#rst-nl80211-definition-protocol-features)

<a id="rst-split-wiphy-dump-flag"></a>



#### split-wiphy-dump (`flag`)

<a id="rst-disable-vht-flag"></a>



#### disable-vht (`flag`)

<a id="rst-vht-capability-mask-binary"></a>



#### vht-capability-mask (`binary`)

<a id="rst-mdid-u16"></a>



#### mdid (`u16`)

<a id="rst-ie-ric-binary"></a>



#### ie-ric (`binary`)

<a id="rst-crit-prot-id-u16"></a>



#### crit-prot-id (`u16`)

<a id="rst-max-crit-prot-duration-u16"></a>



#### max-crit-prot-duration (`u16`)

<a id="rst-peer-aid-u16"></a>



#### peer-aid (`u16`)

<a id="rst-coalesce-rule-binary"></a>



#### coalesce-rule (`binary`)

<a id="rst-ch-switch-count-u32"></a>



#### ch-switch-count (`u32`)

<a id="rst-ch-switch-block-tx-flag"></a>



#### ch-switch-block-tx (`flag`)

<a id="rst-csa-ies-binary"></a>



#### csa-ies (`binary`)

<a id="rst-cntdwn-offs-beacon-binary"></a>



#### cntdwn-offs-beacon (`binary`)

<a id="rst-cntdwn-offs-presp-binary"></a>



#### cntdwn-offs-presp (`binary`)

<a id="rst-rxmgmt-flags-binary"></a>



#### rxmgmt-flags (`binary`)

<a id="rst-sta-supported-channels-binary"></a>



#### sta-supported-channels (`binary`)

<a id="rst-sta-supported-oper-classes-binary"></a>



#### sta-supported-oper-classes (`binary`)

<a id="rst-handle-dfs-flag"></a>



#### handle-dfs (`flag`)

<a id="rst-support-5-mhz-flag"></a>



#### support-5-mhz (`flag`)

<a id="rst-support-10-mhz-flag"></a>



#### support-10-mhz (`flag`)

<a id="rst-opmode-notif-u8"></a>



#### opmode-notif (`u8`)

<a id="rst-vendor-id-u32"></a>



#### vendor-id (`u32`)

<a id="rst-vendor-subcmd-u32"></a>



#### vendor-subcmd (`u32`)

<a id="rst-vendor-data-binary"></a>



#### vendor-data (`binary`)

<a id="rst-vendor-events-binary"></a>



#### vendor-events (`binary`)

<a id="rst-qos-map-binary"></a>



#### qos-map (`binary`)

<a id="rst-mac-hint-binary"></a>



#### mac-hint (`binary`)

- **display-hint**:

  mac

<a id="rst-wiphy-freq-hint-u32"></a>



#### wiphy-freq-hint (`u32`)

<a id="rst-max-ap-assoc-sta-u32"></a>



#### max-ap-assoc-sta (`u32`)

<a id="rst-tdls-peer-capability-u32"></a>



#### tdls-peer-capability (`u32`)

<a id="rst-socket-owner-flag"></a>



#### socket-owner (`flag`)

<a id="rst-csa-c-offsets-tx-binary"></a>



#### csa-c-offsets-tx (`binary`)

<a id="rst-max-csa-counters-u8"></a>



#### max-csa-counters (`u8`)

<a id="rst-tdls-initiator-flag"></a>



#### tdls-initiator (`flag`)

<a id="rst-use-rrm-flag"></a>



#### use-rrm (`flag`)

<a id="rst-wiphy-dyn-ack-flag"></a>



#### wiphy-dyn-ack (`flag`)

<a id="rst-tsid-u8"></a>



#### tsid (`u8`)

<a id="rst-user-prio-u8"></a>



#### user-prio (`u8`)

<a id="rst-admitted-time-u16"></a>



#### admitted-time (`u16`)

<a id="rst-smps-mode-u8"></a>



#### smps-mode (`u8`)

<a id="rst-oper-class-u8"></a>



#### oper-class (`u8`)

<a id="rst-mac-mask-binary"></a>



#### mac-mask (`binary`)

- **display-hint**:

  mac

<a id="rst-wiphy-self-managed-reg-flag"></a>



#### wiphy-self-managed-reg (`flag`)

<a id="rst-ext-features-binary"></a>



#### ext-features (`binary`)

<a id="rst-survey-radio-stats-binary"></a>



#### survey-radio-stats (`binary`)

<a id="rst-netns-fd-u32"></a>



#### netns-fd (`u32`)

<a id="rst-sched-scan-delay-u32"></a>



#### sched-scan-delay (`u32`)

<a id="rst-reg-indoor-flag"></a>



#### reg-indoor (`flag`)

<a id="rst-max-num-sched-scan-plans-u32"></a>



#### max-num-sched-scan-plans (`u32`)

<a id="rst-max-scan-plan-interval-u32"></a>



#### max-scan-plan-interval (`u32`)

<a id="rst-max-scan-plan-iterations-u32"></a>



#### max-scan-plan-iterations (`u32`)

<a id="rst-sched-scan-plans-binary"></a>



#### sched-scan-plans (`binary`)

<a id="rst-pbss-flag"></a>



#### pbss (`flag`)

<a id="rst-bss-select-binary"></a>



#### bss-select (`binary`)

<a id="rst-sta-support-p2p-ps-u8"></a>



#### sta-support-p2p-ps (`u8`)

<a id="rst-pad-binary"></a>



#### pad (`binary`)

<a id="rst-iftype-ext-capa-binary"></a>



#### iftype-ext-capa (`binary`)

<a id="rst-mu-mimo-group-data-binary"></a>



#### mu-mimo-group-data (`binary`)

<a id="rst-mu-mimo-follow-mac-addr-binary"></a>



#### mu-mimo-follow-mac-addr (`binary`)

- **display-hint**:

  mac

<a id="rst-scan-start-time-tsf-u64"></a>



#### scan-start-time-tsf (`u64`)

<a id="rst-scan-start-time-tsf-bssid-binary"></a>



#### scan-start-time-tsf-bssid (`binary`)

<a id="rst-measurement-duration-u16"></a>



#### measurement-duration (`u16`)

<a id="rst-measurement-duration-mandatory-flag"></a>



#### measurement-duration-mandatory (`flag`)

<a id="rst-mesh-peer-aid-u16"></a>



#### mesh-peer-aid (`u16`)

<a id="rst-nan-master-pref-u8"></a>



#### nan-master-pref (`u8`)

<a id="rst-bands-u32"></a>



#### bands (`u32`)

<a id="rst-nan-func-binary"></a>



#### nan-func (`binary`)

<a id="rst-nan-match-binary"></a>



#### nan-match (`binary`)

<a id="rst-fils-kek-binary"></a>



#### fils-kek (`binary`)

<a id="rst-fils-nonces-binary"></a>



#### fils-nonces (`binary`)

<a id="rst-multicast-to-unicast-enabled-flag"></a>



#### multicast-to-unicast-enabled (`flag`)

<a id="rst-bssid-binary"></a>



#### bssid (`binary`)

- **display-hint**:

  mac

<a id="rst-sched-scan-relative-rssi-s8"></a>



#### sched-scan-relative-rssi (`s8`)

<a id="rst-sched-scan-rssi-adjust-binary"></a>



#### sched-scan-rssi-adjust (`binary`)

<a id="rst-timeout-reason-u32"></a>



#### timeout-reason (`u32`)

<a id="rst-fils-erp-username-binary"></a>



#### fils-erp-username (`binary`)

<a id="rst-fils-erp-realm-binary"></a>



#### fils-erp-realm (`binary`)

<a id="rst-fils-erp-next-seq-num-u16"></a>



#### fils-erp-next-seq-num (`u16`)

<a id="rst-fils-erp-rrk-binary"></a>



#### fils-erp-rrk (`binary`)

<a id="rst-fils-cache-id-binary"></a>



#### fils-cache-id (`binary`)

<a id="rst-pmk-binary"></a>



#### pmk (`binary`)

<a id="rst-sched-scan-multi-flag"></a>



#### sched-scan-multi (`flag`)

<a id="rst-sched-scan-max-reqs-u32"></a>



#### sched-scan-max-reqs (`u32`)

<a id="rst-want-1x-4way-hs-flag"></a>



#### want-1x-4way-hs (`flag`)

<a id="rst-pmkr0-name-binary"></a>



#### pmkr0-name (`binary`)

<a id="rst-port-authorized-binary"></a>



#### port-authorized (`binary`)

<a id="rst-external-auth-action-u32"></a>



#### external-auth-action (`u32`)

<a id="rst-external-auth-support-flag"></a>



#### external-auth-support (`flag`)

<a id="rst-nss-u8"></a>



#### nss (`u8`)

<a id="rst-ack-signal-s32"></a>



#### ack-signal (`s32`)

<a id="rst-control-port-over-nl80211-flag"></a>



#### control-port-over-nl80211 (`flag`)

<a id="rst-txq-stats-nest"></a>



#### txq-stats (`nest`)

- **nested-attributes**:

  [txq-stats-attrs](#rst-nl80211-attribute-set-txq-stats-attrs)

<a id="rst-txq-limit-u32"></a>



#### txq-limit (`u32`)

<a id="rst-txq-memory-limit-u32"></a>



#### txq-memory-limit (`u32`)

<a id="rst-txq-quantum-u32"></a>



#### txq-quantum (`u32`)

<a id="rst-he-capability-binary"></a>



#### he-capability (`binary`)

<a id="rst-ftm-responder-binary"></a>



#### ftm-responder (`binary`)

<a id="rst-ftm-responder-stats-binary"></a>



#### ftm-responder-stats (`binary`)

<a id="rst-timeout-u32"></a>



#### timeout (`u32`)

<a id="rst-peer-measurements-binary"></a>



#### peer-measurements (`binary`)

<a id="rst-airtime-weight-u16"></a>



#### airtime-weight (`u16`)

<a id="rst-sta-tx-power-setting-u8"></a>



#### sta-tx-power-setting (`u8`)

<a id="rst-sta-tx-power-s16"></a>



#### sta-tx-power (`s16`)

<a id="rst-sae-password-binary"></a>



#### sae-password (`binary`)

<a id="rst-twt-responder-flag"></a>



#### twt-responder (`flag`)

<a id="rst-he-obss-pd-binary"></a>



#### he-obss-pd (`binary`)

<a id="rst-wiphy-edmg-channels-u8"></a>



#### wiphy-edmg-channels (`u8`)

<a id="rst-wiphy-edmg-bw-config-u8"></a>



#### wiphy-edmg-bw-config (`u8`)

<a id="rst-vlan-id-u16"></a>



#### vlan-id (`u16`)

<a id="rst-he-bss-color-binary"></a>



#### he-bss-color (`binary`)

<a id="rst-iftype-akm-suites-binary"></a>



#### iftype-akm-suites (`binary`)

<a id="rst-tid-config-binary"></a>



#### tid-config (`binary`)

<a id="rst-control-port-no-preauth-flag"></a>



#### control-port-no-preauth (`flag`)

<a id="rst-pmk-lifetime-u32"></a>



#### pmk-lifetime (`u32`)

<a id="rst-pmk-reauth-threshold-u8"></a>



#### pmk-reauth-threshold (`u8`)

<a id="rst-receive-multicast-flag"></a>



#### receive-multicast (`flag`)

<a id="rst-wiphy-freq-offset-u32"></a>



#### wiphy-freq-offset (`u32`)

<a id="rst-center-freq1-offset-u32"></a>



#### center-freq1-offset (`u32`)

<a id="rst-scan-freq-khz-binary"></a>



#### scan-freq-khz (`binary`)

<a id="rst-he-6ghz-capability-binary"></a>



#### he-6ghz-capability (`binary`)

<a id="rst-fils-discovery-binary"></a>



#### fils-discovery (`binary`)

<a id="rst-unsol-bcast-probe-resp-binary"></a>



#### unsol-bcast-probe-resp (`binary`)

<a id="rst-s1g-capability-binary"></a>



#### s1g-capability (`binary`)

<a id="rst-s1g-capability-mask-binary"></a>



#### s1g-capability-mask (`binary`)

<a id="rst-sae-pwe-u8"></a>



#### sae-pwe (`u8`)

<a id="rst-reconnect-requested-binary"></a>



#### reconnect-requested (`binary`)

<a id="rst-sar-spec-nest"></a>



#### sar-spec (`nest`)

- **nested-attributes**:

  [sar-attributes](#rst-nl80211-attribute-set-sar-attributes)

<a id="rst-disable-he-flag"></a>



#### disable-he (`flag`)

<a id="rst-obss-color-bitmap-u64"></a>



#### obss-color-bitmap (`u64`)

<a id="rst-color-change-count-u8"></a>



#### color-change-count (`u8`)

<a id="rst-color-change-color-u8"></a>



#### color-change-color (`u8`)

<a id="rst-color-change-elems-binary"></a>



#### color-change-elems (`binary`)

<a id="rst-mbssid-config-binary"></a>



#### mbssid-config (`binary`)

<a id="rst-mbssid-elems-binary"></a>



#### mbssid-elems (`binary`)

<a id="rst-radar-background-flag"></a>



#### radar-background (`flag`)

<a id="rst-ap-settings-flags-u32"></a>



#### ap-settings-flags (`u32`)

<a id="rst-eht-capability-binary"></a>



#### eht-capability (`binary`)

<a id="rst-disable-eht-flag"></a>



#### disable-eht (`flag`)

<a id="rst-mlo-links-binary"></a>



#### mlo-links (`binary`)

<a id="rst-mlo-link-id-u8"></a>



#### mlo-link-id (`u8`)

<a id="rst-mld-addr-binary"></a>



#### mld-addr (`binary`)

- **display-hint**:

  mac

<a id="rst-mlo-support-flag"></a>



#### mlo-support (`flag`)

<a id="rst-max-num-akm-suites-binary"></a>



#### max-num-akm-suites (`binary`)

<a id="rst-eml-capability-u16"></a>



#### eml-capability (`u16`)

<a id="rst-mld-capa-and-ops-u16"></a>



#### mld-capa-and-ops (`u16`)

<a id="rst-tx-hw-timestamp-u64"></a>



#### tx-hw-timestamp (`u64`)

<a id="rst-rx-hw-timestamp-u64"></a>



#### rx-hw-timestamp (`u64`)

<a id="rst-td-bitmap-binary"></a>



#### td-bitmap (`binary`)

<a id="rst-punct-bitmap-u32"></a>



#### punct-bitmap (`u32`)

<a id="rst-max-hw-timestamp-peers-u16"></a>



#### max-hw-timestamp-peers (`u16`)

<a id="rst-hw-timestamp-enabled-flag"></a>



#### hw-timestamp-enabled (`flag`)

<a id="rst-ema-rnr-elems-binary"></a>



#### ema-rnr-elems (`binary`)

<a id="rst-mlo-link-disabled-flag"></a>



#### mlo-link-disabled (`flag`)

<a id="rst-bss-dump-include-use-data-flag"></a>



#### bss-dump-include-use-data (`flag`)

<a id="rst-mlo-ttlm-dlink-u16"></a>



#### mlo-ttlm-dlink (`u16`)

<a id="rst-mlo-ttlm-ulink-u16"></a>



#### mlo-ttlm-ulink (`u16`)

<a id="rst-assoc-spp-amsdu-flag"></a>



#### assoc-spp-amsdu (`flag`)

<a id="rst-wiphy-radios-binary"></a>



#### wiphy-radios (`binary`)

<a id="rst-wiphy-interface-combinations-binary"></a>



#### wiphy-interface-combinations (`binary`)

<a id="rst-vif-radio-mask-u32"></a>



#### vif-radio-mask (`u32`)

<a id="rst-frame-type-attrs"></a>
<a id="rst-nl80211-attribute-set-frame-type-attrs"></a>



### frame-type-attrs

<a id="rst-frame-type"></a>



#### frame-type

<a id="rst-wiphy-bands"></a>
<a id="rst-nl80211-attribute-set-wiphy-bands"></a>



### wiphy-bands

<a id="rst-ghz-nest"></a>



#### 2ghz (`nest`)

- **doc**:

  2.4 GHz ISM band

- **value**:

  0

- **nested-attributes**:

  [band-attrs](#rst-nl80211-attribute-set-band-attrs)

<a id="rst-ghz-nest-1"></a>



#### 5ghz (`nest`)

- **doc**:

  around 5 GHz band (4.9 - 5.7 GHz)

- **nested-attributes**:

  [band-attrs](#rst-nl80211-attribute-set-band-attrs)

<a id="rst-ghz-nest-2"></a>



#### 60ghz (`nest`)

- **doc**:

  around 60 GHz band (58.32 - 69.12 GHz)

- **nested-attributes**:

  [band-attrs](#rst-nl80211-attribute-set-band-attrs)

<a id="rst-ghz-nest-3"></a>



#### 6ghz (`nest`)

- **nested-attributes**:

  [band-attrs](#rst-nl80211-attribute-set-band-attrs)

<a id="rst-s1ghz-nest"></a>



#### s1ghz (`nest`)

- **nested-attributes**:

  [band-attrs](#rst-nl80211-attribute-set-band-attrs)

<a id="rst-lc-nest"></a>



#### lc (`nest`)

- **nested-attributes**:

  [band-attrs](#rst-nl80211-attribute-set-band-attrs)

<a id="rst-band-attrs"></a>
<a id="rst-nl80211-attribute-set-band-attrs"></a>



### band-attrs

<a id="rst-freqs-indexed-array"></a>



#### freqs (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [frequency-attrs](#rst-nl80211-attribute-set-frequency-attrs)

<a id="rst-rates-indexed-array"></a>



#### rates (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [bitrate-attrs](#rst-nl80211-attribute-set-bitrate-attrs)

<a id="rst-ht-mcs-set-binary"></a>



#### ht-mcs-set (`binary`)

<a id="rst-ht-capa-u16"></a>



#### ht-capa (`u16`)

<a id="rst-ht-ampdu-factor-u8"></a>



#### ht-ampdu-factor (`u8`)

<a id="rst-ht-ampdu-density-u8"></a>



#### ht-ampdu-density (`u8`)

<a id="rst-vht-mcs-set-binary"></a>



#### vht-mcs-set (`binary`)

<a id="rst-vht-capa-u32"></a>



#### vht-capa (`u32`)

<a id="rst-iftype-data-indexed-array"></a>



#### iftype-data (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [iftype-data-attrs](#rst-nl80211-attribute-set-iftype-data-attrs)

<a id="rst-edmg-channels-binary"></a>



#### edmg-channels (`binary`)

<a id="rst-edmg-bw-config-binary"></a>



#### edmg-bw-config (`binary`)

<a id="rst-s1g-mcs-nss-set-binary"></a>



#### s1g-mcs-nss-set (`binary`)

<a id="rst-s1g-capa-binary"></a>



#### s1g-capa (`binary`)

<a id="rst-bitrate-attrs"></a>
<a id="rst-nl80211-attribute-set-bitrate-attrs"></a>



### bitrate-attrs

<a id="rst-rate-u32"></a>



#### rate (`u32`)

<a id="rst-ghz-shortpreamble-flag"></a>



#### 2ghz-shortpreamble (`flag`)

<a id="rst-frequency-attrs"></a>
<a id="rst-nl80211-attribute-set-frequency-attrs"></a>



### frequency-attrs

<a id="rst-freq-u32"></a>



#### freq (`u32`)

<a id="rst-disabled-flag"></a>



#### disabled (`flag`)

<a id="rst-no-ir-flag"></a>



#### no-ir (`flag`)

<a id="rst-no-ibss-flag"></a>



#### no-ibss (`flag`)

- **name-prefix**:

  \_\_nl80211-frequency-attr-

<a id="rst-radar-flag"></a>



#### radar (`flag`)

<a id="rst-max-tx-power-u32"></a>



#### max-tx-power (`u32`)

<a id="rst-dfs-state-u32"></a>



#### dfs-state (`u32`)

<a id="rst-dfs-time-binary"></a>



#### dfs-time (`binary`)

<a id="rst-no-ht40-minus-binary"></a>



#### no-ht40-minus (`binary`)

<a id="rst-no-ht40-plus-binary"></a>



#### no-ht40-plus (`binary`)

<a id="rst-no-80mhz-binary"></a>



#### no-80mhz (`binary`)

<a id="rst-no-160mhz-binary"></a>



#### no-160mhz (`binary`)

<a id="rst-dfs-cac-time-binary"></a>



#### dfs-cac-time (`binary`)

<a id="rst-indoor-only-binary"></a>



#### indoor-only (`binary`)

<a id="rst-ir-concurrent-binary"></a>



#### ir-concurrent (`binary`)

<a id="rst-no-20mhz-binary"></a>



#### no-20mhz (`binary`)

<a id="rst-no-10mhz-binary"></a>



#### no-10mhz (`binary`)

<a id="rst-wmm-indexed-array"></a>



#### wmm (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [wmm-attrs](#rst-nl80211-attribute-set-wmm-attrs)

<a id="rst-no-he-binary"></a>



#### no-he (`binary`)

<a id="rst-offset-u32"></a>



#### offset (`u32`)

<a id="rst-mhz-binary"></a>



#### 1mhz (`binary`)

<a id="rst-mhz-binary-1"></a>



#### 2mhz (`binary`)

<a id="rst-mhz-binary-2"></a>



#### 4mhz (`binary`)

<a id="rst-mhz-binary-3"></a>



#### 8mhz (`binary`)

<a id="rst-mhz-binary-4"></a>



#### 16mhz (`binary`)

<a id="rst-no-320mhz-binary"></a>



#### no-320mhz (`binary`)

<a id="rst-no-eht-binary"></a>



#### no-eht (`binary`)

<a id="rst-psd-binary"></a>



#### psd (`binary`)

<a id="rst-dfs-concurrent-binary"></a>



#### dfs-concurrent (`binary`)

<a id="rst-no-6ghz-vlp-client-binary"></a>



#### no-6ghz-vlp-client (`binary`)

<a id="rst-no-6ghz-afc-client-binary"></a>



#### no-6ghz-afc-client (`binary`)

<a id="rst-can-monitor-binary"></a>



#### can-monitor (`binary`)

<a id="rst-allow-6ghz-vlp-ap-binary"></a>



#### allow-6ghz-vlp-ap (`binary`)

<a id="rst-if-combination-attributes"></a>
<a id="rst-nl80211-attribute-set-if-combination-attributes"></a>



### if-combination-attributes

<a id="rst-limits-indexed-array"></a>



#### limits (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [iface-limit-attributes](#rst-nl80211-attribute-set-iface-limit-attributes)

<a id="rst-maxnum-u32"></a>



#### maxnum (`u32`)

<a id="rst-sta-ap-bi-match-flag"></a>



#### sta-ap-bi-match (`flag`)

<a id="rst-num-channels-u32"></a>



#### num-channels (`u32`)

<a id="rst-radar-detect-widths-u32"></a>



#### radar-detect-widths (`u32`)

<a id="rst-radar-detect-regions-u32"></a>



#### radar-detect-regions (`u32`)

<a id="rst-bi-min-gcd-u32"></a>



#### bi-min-gcd (`u32`)

<a id="rst-iface-limit-attributes"></a>
<a id="rst-nl80211-attribute-set-iface-limit-attributes"></a>



### iface-limit-attributes

<a id="rst-max-u32"></a>



#### max (`u32`)

<a id="rst-types-nest"></a>



#### types (`nest`)

- **nested-attributes**:

  [supported-iftypes](#rst-nl80211-attribute-set-supported-iftypes)

<a id="rst-iftype-data-attrs"></a>
<a id="rst-nl80211-attribute-set-iftype-data-attrs"></a>



### iftype-data-attrs

<a id="rst-iftypes-binary"></a>



#### iftypes (`binary`)

<a id="rst-he-cap-mac-binary"></a>



#### he-cap-mac (`binary`)

<a id="rst-he-cap-phy-binary"></a>



#### he-cap-phy (`binary`)

<a id="rst-he-cap-mcs-set-binary"></a>



#### he-cap-mcs-set (`binary`)

<a id="rst-he-cap-ppe-binary"></a>



#### he-cap-ppe (`binary`)

<a id="rst-he-6ghz-capa-binary"></a>



#### he-6ghz-capa (`binary`)

<a id="rst-vendor-elems-binary"></a>



#### vendor-elems (`binary`)

<a id="rst-eht-cap-mac-binary"></a>



#### eht-cap-mac (`binary`)

<a id="rst-eht-cap-phy-binary"></a>



#### eht-cap-phy (`binary`)

<a id="rst-eht-cap-mcs-set-binary"></a>



#### eht-cap-mcs-set (`binary`)

<a id="rst-eht-cap-ppe-binary"></a>



#### eht-cap-ppe (`binary`)

<a id="rst-iftype-attrs"></a>
<a id="rst-nl80211-attribute-set-iftype-attrs"></a>



### iftype-attrs

<a id="rst-unspecified-nest"></a>



#### unspecified (`nest`)

- **value**:

  0

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-adhoc-nest"></a>



#### adhoc (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-station-nest"></a>



#### station (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-ap-nest"></a>



#### ap (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-ap-vlan-nest"></a>



#### ap-vlan (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-wds-nest"></a>



#### wds (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-monitor-nest"></a>



#### monitor (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-mesh-point-nest"></a>



#### mesh-point (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-p2p-client-nest"></a>



#### p2p-client (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-p2p-go-nest"></a>



#### p2p-go (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-p2p-device-nest"></a>



#### p2p-device (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-ocb-nest"></a>



#### ocb (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-nan-nest"></a>



#### nan (`nest`)

- **nested-attributes**:

  [frame-type-attrs](#rst-nl80211-attribute-set-frame-type-attrs)

<a id="rst-sar-attributes"></a>
<a id="rst-nl80211-attribute-set-sar-attributes"></a>



### sar-attributes

<a id="rst-type-u32"></a>



#### type (`u32`)

<a id="rst-specs-indexed-array"></a>



#### specs (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [sar-specs](#rst-nl80211-attribute-set-sar-specs)

<a id="rst-sar-specs"></a>
<a id="rst-nl80211-attribute-set-sar-specs"></a>



### sar-specs

<a id="rst-power-s32"></a>



#### power (`s32`)

<a id="rst-range-index-u32"></a>



#### range-index (`u32`)

<a id="rst-start-freq-u32"></a>



#### start-freq (`u32`)

<a id="rst-end-freq-u32"></a>



#### end-freq (`u32`)

<a id="rst-supported-iftypes"></a>
<a id="rst-nl80211-attribute-set-supported-iftypes"></a>



### supported-iftypes

<a id="rst-adhoc-flag"></a>



#### adhoc (`flag`)

<a id="rst-station-flag"></a>



#### station (`flag`)

<a id="rst-ap-flag"></a>



#### ap (`flag`)

<a id="rst-ap-vlan-flag"></a>



#### ap-vlan (`flag`)

<a id="rst-wds-flag"></a>



#### wds (`flag`)

<a id="rst-monitor-flag"></a>



#### monitor (`flag`)

<a id="rst-mesh-point-flag"></a>



#### mesh-point (`flag`)

<a id="rst-p2p-client-flag"></a>



#### p2p-client (`flag`)

<a id="rst-p2p-go-flag"></a>



#### p2p-go (`flag`)

<a id="rst-p2p-device-flag"></a>



#### p2p-device (`flag`)

<a id="rst-ocb-flag"></a>



#### ocb (`flag`)

<a id="rst-nan-flag"></a>



#### nan (`flag`)

<a id="rst-txq-stats-attrs"></a>
<a id="rst-nl80211-attribute-set-txq-stats-attrs"></a>



### txq-stats-attrs

<a id="rst-backlog-bytes-u32"></a>



#### backlog-bytes (`u32`)

<a id="rst-backlog-packets-u32"></a>



#### backlog-packets (`u32`)

<a id="rst-flows-u32"></a>



#### flows (`u32`)

<a id="rst-drops-u32"></a>



#### drops (`u32`)

<a id="rst-ecn-marks-u32"></a>



#### ecn-marks (`u32`)

<a id="rst-overlimit-u32"></a>



#### overlimit (`u32`)

<a id="rst-overmemory-u32"></a>



#### overmemory (`u32`)

<a id="rst-collisions-u32"></a>



#### collisions (`u32`)

<a id="rst-tx-bytes-u32"></a>



#### tx-bytes (`u32`)

<a id="rst-tx-packets-u32"></a>



#### tx-packets (`u32`)

<a id="rst-max-flows-u32"></a>



#### max-flows (`u32`)

<a id="rst-wmm-attrs"></a>
<a id="rst-nl80211-attribute-set-wmm-attrs"></a>



### wmm-attrs

<a id="rst-cw-min-u16"></a>



#### cw-min (`u16`)

<a id="rst-cw-max-u16"></a>



#### cw-max (`u16`)

<a id="rst-aifsn-u8"></a>



#### aifsn (`u8`)

<a id="rst-txop-u16"></a>



#### txop (`u16`)

<a id="rst-wowlan-triggers-attrs"></a>
<a id="rst-nl80211-attribute-set-wowlan-triggers-attrs"></a>



### wowlan-triggers-attrs

<a id="rst-any-flag"></a>



#### any (`flag`)

<a id="rst-disconnect-flag"></a>



#### disconnect (`flag`)

<a id="rst-magic-pkt-flag"></a>



#### magic-pkt (`flag`)

<a id="rst-pkt-pattern-flag"></a>



#### pkt-pattern (`flag`)

<a id="rst-gtk-rekey-supported-flag"></a>



#### gtk-rekey-supported (`flag`)

<a id="rst-gtk-rekey-failure-flag"></a>



#### gtk-rekey-failure (`flag`)

<a id="rst-eap-ident-request-flag"></a>



#### eap-ident-request (`flag`)

<a id="rst-way-handshake-flag"></a>



#### 4way-handshake (`flag`)

<a id="rst-rfkill-release-flag"></a>



#### rfkill-release (`flag`)

<a id="rst-wakeup-pkt-80211-flag"></a>



#### wakeup-pkt-80211 (`flag`)

<a id="rst-wakeup-pkt-80211-len-flag"></a>



#### wakeup-pkt-80211-len (`flag`)

<a id="rst-wakeup-pkt-8023-flag"></a>



#### wakeup-pkt-8023 (`flag`)

<a id="rst-wakeup-pkt-8023-len-flag"></a>



#### wakeup-pkt-8023-len (`flag`)

<a id="rst-tcp-connection-flag"></a>



#### tcp-connection (`flag`)

<a id="rst-wakeup-tcp-match-flag"></a>



#### wakeup-tcp-match (`flag`)

<a id="rst-wakeup-tcp-connlost-flag"></a>



#### wakeup-tcp-connlost (`flag`)

<a id="rst-wakeup-tcp-nomoretokens-flag"></a>



#### wakeup-tcp-nomoretokens (`flag`)

<a id="rst-net-detect-flag"></a>



#### net-detect (`flag`)

<a id="rst-net-detect-results-flag"></a>



#### net-detect-results (`flag`)

<a id="rst-unprotected-deauth-disassoc-flag"></a>



#### unprotected-deauth-disassoc (`flag`)

---

# Family nlctrl netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the nlctrl Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-nlctrl-netlink-specification"></a>
<a id="rst-netlink-nlctrl"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



genetlink meta-family that exposes information about all genetlink
families registered in the kernel (including itself).

<a id="rst-operations"></a>



## Operations

<a id="rst-getfamily"></a>
<a id="rst-nlctrl-operation-getfamily"></a>



### getfamily



Get / dump genetlink families

- **attribute-set**:

  [ctrl-attrs](#rst-nlctrl-attribute-set-ctrl-attrs)

- **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`\]

<a id="rst-getpolicy"></a>
<a id="rst-nlctrl-operation-getpolicy"></a>



### getpolicy



Get / dump genetlink policies

- **attribute-set**:

  [ctrl-attrs](#rst-nlctrl-attribute-set-ctrl-attrs)

- **dump**:

  **request**

  - **attributes**:

    \[`family-name`, `family-id`, `op`\]

  **reply**

  - **attributes**:

    \[`family-id`, `op-policy`, `policy`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-op-flags"></a>
<a id="rst-nlctrl-definition-op-flags"></a>



### op-flags

- **type**:

  flags

- **enum-name**:

  None

- **entries**:

  - `admin-perm`


  - `cmd-cap-do`


  - `cmd-cap-dump`


  - `cmd-cap-haspol`


  - `uns-admin-perm`

<a id="rst-attr-type"></a>
<a id="rst-nlctrl-definition-attr-type"></a>



### 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`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-ctrl-attrs"></a>
<a id="rst-nlctrl-attribute-set-ctrl-attrs"></a>



### ctrl-attrs

<a id="rst-family-id-u16"></a>



#### family-id (`u16`)

<a id="rst-family-name-string"></a>



#### family-name (`string`)

<a id="rst-version-u32"></a>



#### version (`u32`)

<a id="rst-hdrsize-u32"></a>



#### hdrsize (`u32`)

<a id="rst-maxattr-u32"></a>



#### maxattr (`u32`)

<a id="rst-ops-indexed-array"></a>



#### ops (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [op-attrs](#rst-nlctrl-attribute-set-op-attrs)

<a id="rst-mcast-groups-indexed-array"></a>



#### mcast-groups (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [mcast-group-attrs](#rst-nlctrl-attribute-set-mcast-group-attrs)

<a id="rst-policy-nest-type-value"></a>



#### policy (`nest-type-value`)

- **type-value**:

  \['policy-id', 'attr-id'\]

- **nested-attributes**:

  [policy-attrs](#rst-nlctrl-attribute-set-policy-attrs)

<a id="rst-op-policy-nest-type-value"></a>



#### op-policy (`nest-type-value`)

- **type-value**:

  \['op-id'\]

- **nested-attributes**:

  [op-policy-attrs](#rst-nlctrl-attribute-set-op-policy-attrs)

<a id="rst-op-u32"></a>



#### op (`u32`)

<a id="rst-mcast-group-attrs"></a>
<a id="rst-nlctrl-attribute-set-mcast-group-attrs"></a>



### mcast-group-attrs

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-id-u32"></a>



#### id (`u32`)

<a id="rst-op-attrs"></a>
<a id="rst-nlctrl-attribute-set-op-attrs"></a>



### op-attrs

<a id="rst-id-u32-1"></a>



#### id (`u32`)

<a id="rst-flags-u32"></a>



#### flags (`u32`)

- **enum**:

  [op-flags](#rst-nlctrl-definition-op-flags)

- **enum-as-flags**:

  True

<a id="rst-policy-attrs"></a>
<a id="rst-nlctrl-attribute-set-policy-attrs"></a>



### policy-attrs

<a id="rst-type-u32"></a>



#### type (`u32`)

- **enum**:

  [attr-type](#rst-nlctrl-definition-attr-type)

<a id="rst-min-value-s-s64"></a>



#### min-value-s (`s64`)

<a id="rst-max-value-s-s64"></a>



#### max-value-s (`s64`)

<a id="rst-min-value-u-u64"></a>



#### min-value-u (`u64`)

<a id="rst-max-value-u-u64"></a>



#### max-value-u (`u64`)

<a id="rst-min-length-u32"></a>



#### min-length (`u32`)

<a id="rst-max-length-u32"></a>



#### max-length (`u32`)

<a id="rst-policy-idx-u32"></a>



#### policy-idx (`u32`)

<a id="rst-policy-maxtype-u32"></a>



#### policy-maxtype (`u32`)

<a id="rst-bitfield32-mask-u32"></a>



#### bitfield32-mask (`u32`)

<a id="rst-mask-u64"></a>



#### mask (`u64`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-op-policy-attrs"></a>
<a id="rst-nlctrl-attribute-set-op-policy-attrs"></a>



### op-policy-attrs

<a id="rst-do-u32"></a>



#### do (`u32`)

<a id="rst-dump-u32"></a>



#### dump (`u32`)

---

# Family ovpn netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ovpn Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-ovpn-netlink-specification"></a>
<a id="rst-netlink-ovpn"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netlink protocol to control OpenVPN network devices

<a id="rst-operations"></a>



## Operations

<a id="rst-peer-new"></a>
<a id="rst-ovpn-operation-peer-new"></a>



### peer-new



Add a remote peer

- **attribute-set**:

  [ovpn-peer-new-input](#rst-ovpn-attribute-set-ovpn-peer-new-input)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `peer`\]

<a id="rst-peer-set"></a>
<a id="rst-ovpn-operation-peer-set"></a>



### peer-set



modify a remote peer

- **attribute-set**:

  [ovpn-peer-set-input](#rst-ovpn-attribute-set-ovpn-peer-set-input)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `peer`\]

<a id="rst-peer-get"></a>
<a id="rst-ovpn-operation-peer-get"></a>



### peer-get



Retrieve data about existing remote peers (or a specific one)

- **attribute-set**:

  [ovpn](#rst-ovpn-attribute-set-ovpn)

- **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`\]

<a id="rst-peer-del"></a>
<a id="rst-ovpn-operation-peer-del"></a>



### peer-del



Delete existing remote peer

- **attribute-set**:

  [ovpn-peer-del-input](#rst-ovpn-attribute-set-ovpn-peer-del-input)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `peer`\]

<a id="rst-peer-del-ntf"></a>
<a id="rst-ovpn-operation-peer-del-ntf"></a>



### peer-del-ntf



Notification about a peer being deleted

- **notify**:

  peer-get

- **mcgrp**:

  peers

<a id="rst-key-new"></a>
<a id="rst-ovpn-operation-key-new"></a>



### key-new



Add a cipher key for a specific peer

- **attribute-set**:

  [ovpn](#rst-ovpn-attribute-set-ovpn)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `keyconf`\]

<a id="rst-key-get"></a>
<a id="rst-ovpn-operation-key-get"></a>



### key-get



Retrieve non-sensitive data about peer key and cipher

- **attribute-set**:

  [ovpn-keyconf-get](#rst-ovpn-attribute-set-ovpn-keyconf-get)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `keyconf`\]

  **reply**

  - **attributes**:

    \[`keyconf`\]

<a id="rst-key-swap"></a>
<a id="rst-ovpn-operation-key-swap"></a>



### key-swap



Swap primary and secondary session keys for a specific peer

- **attribute-set**:

  [ovpn-keyconf-swap-input](#rst-ovpn-attribute-set-ovpn-keyconf-swap-input)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `keyconf`\]

<a id="rst-key-swap-ntf"></a>
<a id="rst-ovpn-operation-key-swap-ntf"></a>



### key-swap-ntf



Notification about key having exhausted its IV space and requiring renegotiation

- **notify**:

  key-get

- **mcgrp**:

  peers

<a id="rst-key-del"></a>
<a id="rst-ovpn-operation-key-del"></a>



### key-del



Delete cipher key for a specific peer

- **attribute-set**:

  [ovpn-keyconf-del-input](#rst-ovpn-attribute-set-ovpn-keyconf-del-input)

- **flags**:

  \[`admin-perm`\]

- **do**:

  **pre**



  ovpn-nl-pre-doit

  **post**



  ovpn-nl-post-doit

  **request**

  - **attributes**:

    \[`ifindex`, `keyconf`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- peers


<a id="rst-definitions"></a>



## Definitions

<a id="rst-nonce-tail-size"></a>
<a id="rst-ovpn-definition-nonce-tail-size"></a>



### nonce-tail-size

- **type**:

  const

- **value**:

  8

<a id="rst-cipher-alg"></a>
<a id="rst-ovpn-definition-cipher-alg"></a>



### cipher-alg

- **type**:

  enum

- **entries**:

  - `none`


  - `aes-gcm`


  - `chacha20-poly1305`

<a id="rst-del-peer-reason"></a>
<a id="rst-ovpn-definition-del-peer-reason"></a>



### del-peer-reason

- **type**:

  enum

- **entries**:

  - `teardown`


  - `userspace`


  - `expired`


  - `transport-error`


  - `transport-disconnect`

<a id="rst-key-slot"></a>
<a id="rst-ovpn-definition-key-slot"></a>



### key-slot

- **type**:

  enum

- **entries**:

  - `primary`


  - `secondary`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-peer"></a>
<a id="rst-ovpn-attribute-set-peer"></a>



### peer

<a id="rst-id-u32"></a>



#### 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

<a id="rst-remote-ipv4-u32"></a>



#### remote-ipv4 (`u32`)

- **doc**:

  The remote IPv4 address of the peer

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-remote-ipv6-binary"></a>



#### remote-ipv6 (`binary`)

- **doc**:

  The remote IPv6 address of the peer

- **display-hint**:

  ipv6

<a id="rst-remote-ipv6-scope-id-u32"></a>



#### remote-ipv6-scope-id (`u32`)

- **doc**:

  The scope id of the remote IPv6 address of the peer (RFC2553)

<a id="rst-remote-port-u16"></a>



#### remote-port (`u16`)

- **doc**:

  The remote port of the peer

- **byte-order**:

  big-endian

<a id="rst-socket-u32"></a>



#### socket (`u32`)

- **doc**:

  The socket to be used to communicate with the peer

<a id="rst-socket-netnsid-s32"></a>



#### socket-netnsid (`s32`)

- **doc**:

  The ID of the netns the socket assigned to this peer lives in

<a id="rst-vpn-ipv4-u32"></a>



#### vpn-ipv4 (`u32`)

- **doc**:

  The IPv4 address assigned to the peer by the server

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-vpn-ipv6-binary"></a>



#### vpn-ipv6 (`binary`)

- **doc**:

  The IPv6 address assigned to the peer by the server

- **display-hint**:

  ipv6

<a id="rst-local-ipv4-u32"></a>



#### 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

<a id="rst-local-ipv6-binary"></a>



#### local-ipv6 (`binary`)

- **doc**:

  The local IPv6 to be used to send packets to the peer (UDP only)

- **display-hint**:

  ipv6

<a id="rst-local-port-u16"></a>



#### local-port (`u16`)

- **doc**:

  The local port to be used to send packets to the peer (UDP only)

- **byte-order**:

  big-endian

<a id="rst-keepalive-interval-u32"></a>



#### keepalive-interval (`u32`)

- **doc**:

  The number of seconds after which a keep alive message is sent to the peer

<a id="rst-keepalive-timeout-u32"></a>



#### keepalive-timeout (`u32`)

- **doc**:

  The number of seconds from the last activity after which the peer is assumed dead

<a id="rst-del-reason-u32"></a>



#### del-reason (`u32`)

- **doc**:

  The reason why a peer was deleted

- **enum**:

  [del-peer-reason](#rst-ovpn-definition-del-peer-reason)

<a id="rst-vpn-rx-bytes-uint"></a>



#### vpn-rx-bytes (`uint`)

- **doc**:

  Number of bytes received over the tunnel

<a id="rst-vpn-tx-bytes-uint"></a>



#### vpn-tx-bytes (`uint`)

- **doc**:

  Number of bytes transmitted over the tunnel

<a id="rst-vpn-rx-packets-uint"></a>



#### vpn-rx-packets (`uint`)

- **doc**:

  Number of packets received over the tunnel

<a id="rst-vpn-tx-packets-uint"></a>



#### vpn-tx-packets (`uint`)

- **doc**:

  Number of packets transmitted over the tunnel

<a id="rst-link-rx-bytes-uint"></a>



#### link-rx-bytes (`uint`)

- **doc**:

  Number of bytes received at the transport level

<a id="rst-link-tx-bytes-uint"></a>



#### link-tx-bytes (`uint`)

- **doc**:

  Number of bytes transmitted at the transport level

<a id="rst-link-rx-packets-uint"></a>



#### link-rx-packets (`uint`)

- **doc**:

  Number of packets received at the transport level

<a id="rst-link-tx-packets-uint"></a>



#### link-tx-packets (`uint`)

- **doc**:

  Number of packets transmitted at the transport level

<a id="rst-peer-new-input"></a>
<a id="rst-ovpn-attribute-set-peer-new-input"></a>



### peer-new-input

<a id="rst-id"></a>



#### id

<a id="rst-remote-ipv4"></a>



#### remote-ipv4

<a id="rst-remote-ipv6"></a>



#### remote-ipv6

<a id="rst-remote-ipv6-scope-id"></a>



#### remote-ipv6-scope-id

<a id="rst-remote-port"></a>



#### remote-port

<a id="rst-socket"></a>



#### socket

<a id="rst-vpn-ipv4"></a>



#### vpn-ipv4

<a id="rst-vpn-ipv6"></a>



#### vpn-ipv6

<a id="rst-local-ipv4"></a>



#### local-ipv4

<a id="rst-local-ipv6"></a>



#### local-ipv6

<a id="rst-keepalive-interval"></a>



#### keepalive-interval

<a id="rst-keepalive-timeout"></a>



#### keepalive-timeout

<a id="rst-peer-set-input"></a>
<a id="rst-ovpn-attribute-set-peer-set-input"></a>



### peer-set-input

<a id="rst-id-1"></a>



#### id

<a id="rst-remote-ipv4-1"></a>



#### remote-ipv4

<a id="rst-remote-ipv6-1"></a>



#### remote-ipv6

<a id="rst-remote-ipv6-scope-id-1"></a>



#### remote-ipv6-scope-id

<a id="rst-remote-port-1"></a>



#### remote-port

<a id="rst-vpn-ipv4-1"></a>



#### vpn-ipv4

<a id="rst-vpn-ipv6-1"></a>



#### vpn-ipv6

<a id="rst-local-ipv4-1"></a>



#### local-ipv4

<a id="rst-local-ipv6-1"></a>



#### local-ipv6

<a id="rst-keepalive-interval-1"></a>



#### keepalive-interval

<a id="rst-keepalive-timeout-1"></a>



#### keepalive-timeout

<a id="rst-peer-del-input"></a>
<a id="rst-ovpn-attribute-set-peer-del-input"></a>



### peer-del-input

<a id="rst-id-2"></a>



#### id

<a id="rst-keyconf"></a>
<a id="rst-ovpn-attribute-set-keyconf"></a>



### keyconf

<a id="rst-peer-id-u32"></a>



#### peer-id (`u32`)

- **doc**:

  The unique ID of the peer in the device context. To be used to identify peers during key operations

<a id="rst-slot-u32"></a>



#### slot (`u32`)

- **doc**:

  The slot where the key should be stored

- **enum**:

  [key-slot](#rst-ovpn-definition-key-slot)

<a id="rst-key-id-u32"></a>



#### key-id (`u32`)

- **doc**:

  The unique ID of the key in the peer context. Used to fetch the correct key upon decryption

<a id="rst-cipher-alg-u32"></a>



#### cipher-alg (`u32`)

- **doc**:

  The cipher to be used when communicating with the peer

- **enum**:

  [cipher-alg](#rst-ovpn-definition-cipher-alg)

<a id="rst-encrypt-dir-nest"></a>



#### encrypt-dir (`nest`)

- **doc**:

  Key material for encrypt direction

- **nested-attributes**:

  [keydir](#rst-ovpn-attribute-set-keydir)

<a id="rst-decrypt-dir-nest"></a>



#### decrypt-dir (`nest`)

- **doc**:

  Key material for decrypt direction

- **nested-attributes**:

  [keydir](#rst-ovpn-attribute-set-keydir)

<a id="rst-keydir"></a>
<a id="rst-ovpn-attribute-set-keydir"></a>



### keydir

<a id="rst-cipher-key-binary"></a>



#### cipher-key (`binary`)

- **doc**:

  The actual key to be used by the cipher

<a id="rst-nonce-tail-binary"></a>



#### nonce-tail (`binary`)

- **doc**:

  Random nonce to be concatenated to the packet ID, in order to obtain the actual cipher IV

<a id="rst-keyconf-get"></a>
<a id="rst-ovpn-attribute-set-keyconf-get"></a>



### keyconf-get

<a id="rst-peer-id"></a>



#### peer-id

<a id="rst-slot"></a>



#### slot

<a id="rst-key-id"></a>



#### key-id

<a id="rst-cipher-alg-1"></a>



#### cipher-alg

<a id="rst-keyconf-swap-input"></a>
<a id="rst-ovpn-attribute-set-keyconf-swap-input"></a>



### keyconf-swap-input

<a id="rst-peer-id-1"></a>



#### peer-id

<a id="rst-keyconf-del-input"></a>
<a id="rst-ovpn-attribute-set-keyconf-del-input"></a>



### keyconf-del-input

<a id="rst-peer-id-2"></a>



#### peer-id

<a id="rst-slot-1"></a>



#### slot

<a id="rst-ovpn"></a>
<a id="rst-ovpn-attribute-set-ovpn"></a>



### ovpn

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

- **doc**:

  Index of the ovpn interface to operate on

<a id="rst-peer-nest"></a>



#### peer (`nest`)

- **doc**:

  The peer object containing the attributed of interest for the specific operation

- **nested-attributes**:

  [peer](#rst-ovpn-attribute-set-peer)

<a id="rst-keyconf-nest"></a>



#### keyconf (`nest`)

- **doc**:

  Peer specific cipher configuration

- **nested-attributes**:

  [keyconf](#rst-ovpn-attribute-set-keyconf)

<a id="rst-ovpn-peer-new-input"></a>
<a id="rst-ovpn-attribute-set-ovpn-peer-new-input"></a>



### ovpn-peer-new-input

<a id="rst-ifindex"></a>



#### ifindex

<a id="rst-peer-1"></a>



#### peer

- **nested-attributes**:

  [peer-new-input](#rst-ovpn-attribute-set-peer-new-input)

<a id="rst-ovpn-peer-set-input"></a>
<a id="rst-ovpn-attribute-set-ovpn-peer-set-input"></a>



### ovpn-peer-set-input

<a id="rst-ifindex-1"></a>



#### ifindex

<a id="rst-peer-2"></a>



#### peer

- **nested-attributes**:

  [peer-set-input](#rst-ovpn-attribute-set-peer-set-input)

<a id="rst-ovpn-peer-del-input"></a>
<a id="rst-ovpn-attribute-set-ovpn-peer-del-input"></a>



### ovpn-peer-del-input

<a id="rst-ifindex-2"></a>



#### ifindex

<a id="rst-peer-3"></a>



#### peer

- **nested-attributes**:

  [peer-del-input](#rst-ovpn-attribute-set-peer-del-input)

<a id="rst-ovpn-keyconf-get"></a>
<a id="rst-ovpn-attribute-set-ovpn-keyconf-get"></a>



### ovpn-keyconf-get

<a id="rst-ifindex-3"></a>



#### ifindex

<a id="rst-keyconf-1"></a>



#### keyconf

- **nested-attributes**:

  [keyconf-get](#rst-ovpn-attribute-set-keyconf-get)

<a id="rst-ovpn-keyconf-swap-input"></a>
<a id="rst-ovpn-attribute-set-ovpn-keyconf-swap-input"></a>



### ovpn-keyconf-swap-input

<a id="rst-ifindex-4"></a>



#### ifindex

<a id="rst-keyconf-2"></a>



#### keyconf

- **nested-attributes**:

  [keyconf-swap-input](#rst-ovpn-attribute-set-keyconf-swap-input)

<a id="rst-ovpn-keyconf-del-input"></a>
<a id="rst-ovpn-attribute-set-ovpn-keyconf-del-input"></a>



### ovpn-keyconf-del-input

<a id="rst-ifindex-5"></a>



#### ifindex

<a id="rst-keyconf-3"></a>



#### keyconf

- **nested-attributes**:

  [keyconf-del-input](#rst-ovpn-attribute-set-keyconf-del-input)

---

# Family ovs_datapath netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ovs_datapath Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-ovs-datapath-netlink-specification"></a>
<a id="rst-netlink-ovs-datapath"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



OVS datapath configuration over generic netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-get"></a>
<a id="rst-ovs-datapath-operation-get"></a>



### get



Get / dump OVS data path configuration and state

- **value**:

  3

- **attribute-set**:

  [datapath](#rst-ovs-datapath-attribute-set-datapath)

- **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`\]

<a id="rst-new"></a>
<a id="rst-ovs-datapath-operation-new"></a>



### new



Create new OVS data path

- **value**:

  1

- **attribute-set**:

  [datapath](#rst-ovs-datapath-attribute-set-datapath)

- **do**:

  **request**

  - **attributes**:

    \[`name`, `upcall-pid`, `user-features`\]

<a id="rst-del"></a>
<a id="rst-ovs-datapath-operation-del"></a>



### del



Delete existing OVS data path

- **value**:

  2

- **attribute-set**:

  [datapath](#rst-ovs-datapath-attribute-set-datapath)

- **do**:

  **request**

  - **attributes**:

    \[`name`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- ovs\_datapath


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ovs-header"></a>
<a id="rst-ovs-datapath-definition-ovs-header"></a>



### ovs-header

- **type**:

  struct

- **members**:

  - **dp-ifindex (`u32`)**

<a id="rst-user-features"></a>
<a id="rst-ovs-datapath-definition-user-features"></a>



### 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

<a id="rst-ovs-dp-stats"></a>
<a id="rst-ovs-datapath-definition-ovs-dp-stats"></a>



### ovs-dp-stats

- **type**:

  struct

- **members**:

  - **n-hit (`u64`)**

  - **n-missed (`u64`)**

  - **n-lost (`u64`)**

  - **n-flows (`u64`)**

<a id="rst-ovs-dp-megaflow-stats"></a>
<a id="rst-ovs-datapath-definition-ovs-dp-megaflow-stats"></a>



### ovs-dp-megaflow-stats

- **type**:

  struct

- **members**:

  - **n-mask-hit (`u64`)**

  - **n-masks (`u32`)**

  - **padding (`u32`)**

  - **n-cache-hit (`u64`)**

  - **pad1 (`u64`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-datapath"></a>
<a id="rst-ovs-datapath-attribute-set-datapath"></a>



### datapath

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-upcall-pid-u32"></a>



#### upcall-pid (`u32`)

- **doc**:

  upcall pid

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [ovs-dp-stats](#rst-ovs-datapath-definition-ovs-dp-stats)

<a id="rst-megaflow-stats-binary"></a>



#### megaflow-stats (`binary`)

- **struct**:

  [ovs-dp-megaflow-stats](#rst-ovs-datapath-definition-ovs-dp-megaflow-stats)

<a id="rst-user-features-u32"></a>



#### user-features (`u32`)

- **enum**:

  [user-features](#rst-ovs-datapath-definition-user-features)

- **enum-as-flags**:

  True

<a id="rst-pad-unused"></a>



#### pad (`unused`)

<a id="rst-masks-cache-size-u32"></a>



#### masks-cache-size (`u32`)

<a id="rst-per-cpu-pids-binary"></a>



#### per-cpu-pids (`binary`)

- **sub-type**:

  u32

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

---

# Family ovs_flow netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ovs_flow Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-ovs-flow-netlink-specification"></a>
<a id="rst-netlink-ovs-flow"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



OVS flow configuration over generic netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-get"></a>
<a id="rst-ovs-flow-operation-get"></a>



### get



Get / dump OVS flow configuration and state

- **value**:

  3

- **attribute-set**:

  [flow-attrs](#rst-ovs-flow-attribute-set-flow-attrs)

- **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`\]

<a id="rst-new"></a>
<a id="rst-ovs-flow-operation-new"></a>



### new



Create OVS flow configuration in a data path

- **value**:

  1

- **attribute-set**:

  [flow-attrs](#rst-ovs-flow-attribute-set-flow-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`key`, `ufid`, `mask`, `actions`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- ovs\_flow


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ovs-header"></a>
<a id="rst-ovs-flow-definition-ovs-header"></a>



### 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).

<a id="rst-ovs-flow-stats"></a>
<a id="rst-ovs-flow-definition-ovs-flow-stats"></a>



### ovs-flow-stats

- **type**:

  struct

- **members**:

  - **n-packets (`u64`)**:

    Number of matched packets.

  - **n-bytes (`u64`)**:

    Number of matched bytes.

<a id="rst-ovs-key-ethernet"></a>
<a id="rst-ovs-flow-definition-ovs-key-ethernet"></a>



### ovs-key-ethernet

- **type**:

  struct

- **members**:

  - **eth-src (`binary`)**

  - **eth-dst (`binary`)**

<a id="rst-ovs-key-mpls"></a>
<a id="rst-ovs-flow-definition-ovs-key-mpls"></a>



### ovs-key-mpls

- **type**:

  struct

- **members**:

  - **mpls-lse (`u32`)**

<a id="rst-ovs-key-ipv4"></a>
<a id="rst-ovs-flow-definition-ovs-key-ipv4"></a>



### ovs-key-ipv4

- **type**:

  struct

- **members**:

  - **ipv4-src (`u32`)**

  - **ipv4-dst (`u32`)**

  - **ipv4-proto (`u8`)**

  - **ipv4-tos (`u8`)**

  - **ipv4-ttl (`u8`)**

  - **ipv4-frag (`u8`)**

<a id="rst-ovs-key-ipv6"></a>
<a id="rst-ovs-flow-definition-ovs-key-ipv6"></a>



### 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`)**

<a id="rst-ovs-key-ipv6-exthdrs"></a>
<a id="rst-ovs-flow-definition-ovs-key-ipv6-exthdrs"></a>



### ovs-key-ipv6-exthdrs

- **type**:

  struct

- **members**:

  - **hdrs (`u16`)**

<a id="rst-ovs-frag-type"></a>
<a id="rst-ovs-flow-definition-ovs-frag-type"></a>



### 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**

<a id="rst-ovs-key-tcp"></a>
<a id="rst-ovs-flow-definition-ovs-key-tcp"></a>



### ovs-key-tcp

- **type**:

  struct

- **members**:

  - **tcp-src (`u16`)**

  - **tcp-dst (`u16`)**

<a id="rst-ovs-key-udp"></a>
<a id="rst-ovs-flow-definition-ovs-key-udp"></a>



### ovs-key-udp

- **type**:

  struct

- **members**:

  - **udp-src (`u16`)**

  - **udp-dst (`u16`)**

<a id="rst-ovs-key-sctp"></a>
<a id="rst-ovs-flow-definition-ovs-key-sctp"></a>



### ovs-key-sctp

- **type**:

  struct

- **members**:

  - **sctp-src (`u16`)**

  - **sctp-dst (`u16`)**

<a id="rst-ovs-key-icmp"></a>
<a id="rst-ovs-flow-definition-ovs-key-icmp"></a>



### ovs-key-icmp

- **type**:

  struct

- **members**:

  - **icmp-type (`u8`)**

  - **icmp-code (`u8`)**

<a id="rst-ovs-key-arp"></a>
<a id="rst-ovs-flow-definition-ovs-key-arp"></a>



### ovs-key-arp

- **type**:

  struct

- **members**:

  - **arp-sip (`u32`)**

  - **arp-tip (`u32`)**

  - **arp-op (`u16`)**

  - **arp-sha (`binary`)**

  - **arp-tha (`binary`)**

<a id="rst-ovs-key-nd"></a>
<a id="rst-ovs-flow-definition-ovs-key-nd"></a>



### ovs-key-nd

- **type**:

  struct

- **members**:

  - **nd-target (`binary`)**

  - **nd-sll (`binary`)**

  - **nd-tll (`binary`)**

<a id="rst-ovs-key-ct-tuple-ipv4"></a>
<a id="rst-ovs-flow-definition-ovs-key-ct-tuple-ipv4"></a>



### ovs-key-ct-tuple-ipv4

- **type**:

  struct

- **members**:

  - **ipv4-src (`u32`)**

  - **ipv4-dst (`u32`)**

  - **src-port (`u16`)**

  - **dst-port (`u16`)**

  - **ipv4-proto (`u8`)**

<a id="rst-ovs-action-push-vlan"></a>
<a id="rst-ovs-flow-definition-ovs-action-push-vlan"></a>



### 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.

<a id="rst-ovs-ufid-flags"></a>
<a id="rst-ovs-flow-definition-ovs-ufid-flags"></a>



### ovs-ufid-flags

- **name-prefix**:

  ovs-ufid-f-

- **enum-name**:

  None

- **type**:

  flags

- **entries**:

  - `omit-key`


  - `omit-mask`


  - `omit-actions`

<a id="rst-ovs-action-hash"></a>
<a id="rst-ovs-flow-definition-ovs-action-hash"></a>



### 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.

<a id="rst-ovs-hash-alg"></a>
<a id="rst-ovs-flow-definition-ovs-hash-alg"></a>



### 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`

<a id="rst-ovs-action-push-mpls"></a>
<a id="rst-ovs-flow-definition-ovs-action-push-mpls"></a>



### 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.

<a id="rst-ovs-action-add-mpls"></a>
<a id="rst-ovs-flow-definition-ovs-action-add-mpls"></a>



### 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.

<a id="rst-ct-state-flags"></a>
<a id="rst-ovs-flow-definition-ct-state-flags"></a>



### 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.

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-flow-attrs"></a>
<a id="rst-ovs-flow-attribute-set-flow-attrs"></a>



### flow-attrs

<a id="rst-key-nest"></a>



#### key (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **doc**:

  Nested attributes specifying the flow key. Always present in notifications. Required for all requests (except dumps).

<a id="rst-actions-nest"></a>



#### actions (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

- **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.

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [ovs-flow-stats](#rst-ovs-flow-definition-ovs-flow-stats)

- **doc**:

  Statistics for this flow. Present in notifications if the stats would be nonzero. Ignored in requests.

<a id="rst-tcp-flags-u8"></a>



#### 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.

<a id="rst-used-u64"></a>



#### 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.

<a id="rst-clear-flag"></a>



#### 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.

<a id="rst-mask-nest"></a>



#### mask (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **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.

<a id="rst-probe-binary"></a>



#### probe (`binary`)

- **doc**:

  Flow operation is a feature probe, error logging should be suppressed.

<a id="rst-ufid-binary"></a>



#### 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

<a id="rst-ufid-flags-u32"></a>



#### ufid-flags (`u32`)

- **enum**:

  [ovs-ufid-flags](#rst-ovs-flow-definition-ovs-ufid-flags)

- **doc**:

  A 32-bit value of ORed flags that provide alternative semantics for flow installation and retrieval. Optional for all requests.

<a id="rst-pad-binary"></a>



#### pad (`binary`)

<a id="rst-key-attrs"></a>
<a id="rst-ovs-flow-attribute-set-key-attrs"></a>



### key-attrs

<a id="rst-encap-nest"></a>



#### encap (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

<a id="rst-priority-u32"></a>



#### priority (`u32`)

<a id="rst-in-port-u32"></a>



#### in-port (`u32`)

<a id="rst-ethernet-binary"></a>



#### ethernet (`binary`)

- **struct**:

  [ovs-key-ethernet](#rst-ovs-flow-definition-ovs-key-ethernet)

- **doc**:

  struct ovs\_key\_ethernet

<a id="rst-vlan-u16"></a>



#### vlan (`u16`)

- **byte-order**:

  big-endian

<a id="rst-ethertype-u16"></a>



#### ethertype (`u16`)

- **byte-order**:

  big-endian

<a id="rst-ipv4-binary"></a>



#### ipv4 (`binary`)

- **struct**:

  [ovs-key-ipv4](#rst-ovs-flow-definition-ovs-key-ipv4)

<a id="rst-ipv6-binary"></a>



#### ipv6 (`binary`)

- **struct**:

  [ovs-key-ipv6](#rst-ovs-flow-definition-ovs-key-ipv6)

- **doc**:

  struct ovs\_key\_ipv6

<a id="rst-tcp-binary"></a>



#### tcp (`binary`)

- **struct**:

  [ovs-key-tcp](#rst-ovs-flow-definition-ovs-key-tcp)

<a id="rst-udp-binary"></a>



#### udp (`binary`)

- **struct**:

  [ovs-key-udp](#rst-ovs-flow-definition-ovs-key-udp)

<a id="rst-icmp-binary"></a>



#### icmp (`binary`)

- **struct**:

  [ovs-key-icmp](#rst-ovs-flow-definition-ovs-key-icmp)

<a id="rst-icmpv6-binary"></a>



#### icmpv6 (`binary`)

- **struct**:

  [ovs-key-icmp](#rst-ovs-flow-definition-ovs-key-icmp)

<a id="rst-arp-binary"></a>



#### arp (`binary`)

- **struct**:

  [ovs-key-arp](#rst-ovs-flow-definition-ovs-key-arp)

- **doc**:

  struct ovs\_key\_arp

<a id="rst-nd-binary"></a>



#### nd (`binary`)

- **struct**:

  [ovs-key-nd](#rst-ovs-flow-definition-ovs-key-nd)

- **doc**:

  struct ovs\_key\_nd

<a id="rst-skb-mark-u32"></a>



#### skb-mark (`u32`)

<a id="rst-tunnel-nest"></a>



#### tunnel (`nest`)

- **nested-attributes**:

  [tunnel-key-attrs](#rst-ovs-flow-attribute-set-tunnel-key-attrs)

<a id="rst-sctp-binary"></a>



#### sctp (`binary`)

- **struct**:

  [ovs-key-sctp](#rst-ovs-flow-definition-ovs-key-sctp)

<a id="rst-tcp-flags-u16"></a>



#### tcp-flags (`u16`)

- **byte-order**:

  big-endian

<a id="rst-dp-hash-u32"></a>



#### dp-hash (`u32`)

- **doc**:

  Value 0 indicates the hash is not computed by the datapath.

<a id="rst-recirc-id-u32"></a>



#### recirc-id (`u32`)

<a id="rst-mpls-binary"></a>



#### mpls (`binary`)

- **struct**:

  [ovs-key-mpls](#rst-ovs-flow-definition-ovs-key-mpls)

<a id="rst-ct-state-u32"></a>



#### ct-state (`u32`)

- **enum**:

  [ct-state-flags](#rst-ovs-flow-definition-ct-state-flags)

- **enum-as-flags**:

  True

<a id="rst-ct-zone-u16"></a>



#### ct-zone (`u16`)

- **doc**:

  connection tracking zone

<a id="rst-ct-mark-u32"></a>



#### ct-mark (`u32`)

- **doc**:

  connection tracking mark

<a id="rst-ct-labels-binary"></a>



#### ct-labels (`binary`)

- **display-hint**:

  hex

- **doc**:

  16-octet connection tracking label

<a id="rst-ct-orig-tuple-ipv4-binary"></a>



#### ct-orig-tuple-ipv4 (`binary`)

- **struct**:

  [ovs-key-ct-tuple-ipv4](#rst-ovs-flow-definition-ovs-key-ct-tuple-ipv4)

<a id="rst-ct-orig-tuple-ipv6-binary"></a>



#### ct-orig-tuple-ipv6 (`binary`)

- **doc**:

  struct ovs\_key\_ct\_tuple\_ipv6

<a id="rst-nsh-nest"></a>



#### nsh (`nest`)

- **nested-attributes**:

  [ovs-nsh-key-attrs](#rst-ovs-flow-attribute-set-ovs-nsh-key-attrs)

<a id="rst-packet-type-u32"></a>



#### packet-type (`u32`)

- **byte-order**:

  big-endian

- **doc**:

  Should not be sent to the kernel

<a id="rst-nd-extensions-binary"></a>



#### nd-extensions (`binary`)

- **doc**:

  Should not be sent to the kernel

<a id="rst-tunnel-info-binary"></a>



#### tunnel-info (`binary`)

- **doc**:

  struct ip\_tunnel\_info

<a id="rst-ipv6-exthdrs-binary"></a>



#### ipv6-exthdrs (`binary`)

- **struct**:

  [ovs-key-ipv6-exthdrs](#rst-ovs-flow-definition-ovs-key-ipv6-exthdrs)

- **doc**:

  struct ovs\_key\_ipv6\_exthdr

<a id="rst-action-attrs"></a>
<a id="rst-ovs-flow-attribute-set-action-attrs"></a>



### action-attrs

<a id="rst-output-u32"></a>



#### output (`u32`)

- **doc**:

  ovs port number in datapath

<a id="rst-userspace-nest"></a>



#### userspace (`nest`)

- **nested-attributes**:

  [userspace-attrs](#rst-ovs-flow-attribute-set-userspace-attrs)

<a id="rst-set-nest"></a>



#### set (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **doc**:

  Replaces the contents of an existing header. The single nested attribute specifies a header to modify and its value.

<a id="rst-push-vlan-binary"></a>



#### push-vlan (`binary`)

- **struct**:

  [ovs-action-push-vlan](#rst-ovs-flow-definition-ovs-action-push-vlan)

- **doc**:

  Push a new outermost 802.1Q or 802.1ad header onto the packet.

<a id="rst-pop-vlan-flag"></a>



#### pop-vlan (`flag`)

- **doc**:

  Pop the outermost 802.1Q or 802.1ad header from the packet.

<a id="rst-sample-nest"></a>



#### sample (`nest`)

- **nested-attributes**:

  [sample-attrs](#rst-ovs-flow-attribute-set-sample-attrs)

- **doc**:

  Probabilistically executes actions, as specified in the nested attributes.

<a id="rst-recirc-u32"></a>



#### recirc (`u32`)

- **doc**:

  recirc id

<a id="rst-hash-binary"></a>



#### hash (`binary`)

- **struct**:

  [ovs-action-hash](#rst-ovs-flow-definition-ovs-action-hash)

<a id="rst-push-mpls-binary"></a>



#### push-mpls (`binary`)

- **struct**:

  [ovs-action-push-mpls](#rst-ovs-flow-definition-ovs-action-push-mpls)

- **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.

<a id="rst-pop-mpls-u16"></a>



#### pop-mpls (`u16`)

- **byte-order**:

  big-endian

- **doc**:

  ethertype

<a id="rst-set-masked-nest"></a>



#### set-masked (`nest`)

- **nested-attributes**:

  [key-attrs](#rst-ovs-flow-attribute-set-key-attrs)

- **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.

<a id="rst-ct-nest"></a>



#### ct (`nest`)

- **nested-attributes**:

  [ct-attrs](#rst-ovs-flow-attribute-set-ct-attrs)

- **doc**:

  Track the connection. Populate the conntrack-related entries in the flow key.

<a id="rst-trunc-u32"></a>



#### trunc (`u32`)

- **doc**:

  struct ovs\_action\_trunc is a u32 max length

<a id="rst-push-eth-binary"></a>



#### push-eth (`binary`)

- **doc**:

  struct ovs\_action\_push\_eth

<a id="rst-pop-eth-flag"></a>



#### pop-eth (`flag`)

<a id="rst-ct-clear-flag"></a>



#### ct-clear (`flag`)

<a id="rst-push-nsh-nest"></a>



#### push-nsh (`nest`)

- **nested-attributes**:

  [ovs-nsh-key-attrs](#rst-ovs-flow-attribute-set-ovs-nsh-key-attrs)

- **doc**:

  Push NSH header to the packet.

<a id="rst-pop-nsh-flag"></a>



#### pop-nsh (`flag`)

- **doc**:

  Pop the outermost NSH header off the packet.

<a id="rst-meter-u32"></a>



#### meter (`u32`)

- **doc**:

  Run packet through a meter, which may drop the packet, or modify the packet (e.g., change the DSCP field)

<a id="rst-clone-nest"></a>



#### clone (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

- **doc**:

  Make a copy of the packet and execute a list of actions without affecting the original packet and key.

<a id="rst-check-pkt-len-nest"></a>



#### check-pkt-len (`nest`)

- **nested-attributes**:

  [check-pkt-len-attrs](#rst-ovs-flow-attribute-set-check-pkt-len-attrs)

- **doc**:

  Check the packet length and execute a set of actions if greater than the specified packet length, else execute another set of actions.

<a id="rst-add-mpls-binary"></a>



#### add-mpls (`binary`)

- **struct**:

  [ovs-action-add-mpls](#rst-ovs-flow-definition-ovs-action-add-mpls)

- **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.

<a id="rst-dec-ttl-nest"></a>



#### dec-ttl (`nest`)

- **nested-attributes**:

  [dec-ttl-attrs](#rst-ovs-flow-attribute-set-dec-ttl-attrs)

<a id="rst-psample-nest"></a>



#### psample (`nest`)

- **nested-attributes**:

  [psample-attrs](#rst-ovs-flow-attribute-set-psample-attrs)

- **doc**:

  Sends a packet sample to psample for external observation.

<a id="rst-tunnel-key-attrs"></a>
<a id="rst-ovs-flow-attribute-set-tunnel-key-attrs"></a>



### tunnel-key-attrs

<a id="rst-id-u64"></a>



#### id (`u64`)

- **byte-order**:

  big-endian

- **value**:

  0

<a id="rst-ipv4-src-u32"></a>



#### ipv4-src (`u32`)

- **byte-order**:

  big-endian

<a id="rst-ipv4-dst-u32"></a>



#### ipv4-dst (`u32`)

- **byte-order**:

  big-endian

<a id="rst-tos-u8"></a>



#### tos (`u8`)

<a id="rst-ttl-u8"></a>



#### ttl (`u8`)

<a id="rst-dont-fragment-flag"></a>



#### dont-fragment (`flag`)

<a id="rst-csum-flag"></a>



#### csum (`flag`)

<a id="rst-oam-flag"></a>



#### oam (`flag`)

<a id="rst-geneve-opts-binary"></a>



#### geneve-opts (`binary`)

- **sub-type**:

  u32

<a id="rst-tp-src-u16"></a>



#### tp-src (`u16`)

- **byte-order**:

  big-endian

<a id="rst-tp-dst-u16"></a>



#### tp-dst (`u16`)

- **byte-order**:

  big-endian

<a id="rst-vxlan-opts-nest"></a>



#### vxlan-opts (`nest`)

- **nested-attributes**:

  [vxlan-ext-attrs](#rst-ovs-flow-attribute-set-vxlan-ext-attrs)

<a id="rst-ipv6-src-binary"></a>



#### ipv6-src (`binary`)

- **doc**:

  struct in6\_addr source IPv6 address

<a id="rst-ipv6-dst-binary"></a>



#### ipv6-dst (`binary`)

- **doc**:

  struct in6\_addr destination IPv6 address

<a id="rst-pad-binary-1"></a>



#### pad (`binary`)

<a id="rst-erspan-opts-binary"></a>



#### erspan-opts (`binary`)

- **doc**:

  struct erspan\_metadata

<a id="rst-ipv4-info-bridge-flag"></a>



#### ipv4-info-bridge (`flag`)

<a id="rst-check-pkt-len-attrs"></a>
<a id="rst-ovs-flow-attribute-set-check-pkt-len-attrs"></a>



### check-pkt-len-attrs

<a id="rst-pkt-len-u16"></a>



#### pkt-len (`u16`)

<a id="rst-actions-if-greater-nest"></a>



#### actions-if-greater (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-actions-if-less-equal-nest"></a>



#### actions-if-less-equal (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-sample-attrs"></a>
<a id="rst-ovs-flow-attribute-set-sample-attrs"></a>



### sample-attrs

<a id="rst-probability-u32"></a>



#### probability (`u32`)

<a id="rst-actions-nest-1"></a>



#### actions (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-userspace-attrs"></a>
<a id="rst-ovs-flow-attribute-set-userspace-attrs"></a>



### userspace-attrs

<a id="rst-pid-u32"></a>



#### pid (`u32`)

<a id="rst-userdata-binary"></a>



#### userdata (`binary`)

<a id="rst-egress-tun-port-u32"></a>



#### egress-tun-port (`u32`)

<a id="rst-actions-flag"></a>



#### actions (`flag`)

<a id="rst-ovs-nsh-key-attrs"></a>
<a id="rst-ovs-flow-attribute-set-ovs-nsh-key-attrs"></a>



### ovs-nsh-key-attrs

<a id="rst-base-binary"></a>



#### base (`binary`)

<a id="rst-md1-binary"></a>



#### md1 (`binary`)

<a id="rst-md2-binary"></a>



#### md2 (`binary`)

<a id="rst-ct-attrs"></a>
<a id="rst-ovs-flow-attribute-set-ct-attrs"></a>



### ct-attrs

<a id="rst-commit-flag"></a>



#### commit (`flag`)

<a id="rst-zone-u16"></a>



#### zone (`u16`)

<a id="rst-mark-binary"></a>



#### mark (`binary`)

<a id="rst-labels-binary"></a>



#### labels (`binary`)

<a id="rst-helper-string"></a>



#### helper (`string`)

<a id="rst-nat-nest"></a>



#### nat (`nest`)

- **nested-attributes**:

  [nat-attrs](#rst-ovs-flow-attribute-set-nat-attrs)

<a id="rst-force-commit-flag"></a>



#### force-commit (`flag`)

<a id="rst-eventmask-u32"></a>



#### eventmask (`u32`)

<a id="rst-timeout-string"></a>



#### timeout (`string`)

<a id="rst-nat-attrs"></a>
<a id="rst-ovs-flow-attribute-set-nat-attrs"></a>



### nat-attrs

<a id="rst-src-flag"></a>



#### src (`flag`)

<a id="rst-dst-flag"></a>



#### dst (`flag`)

<a id="rst-ip-min-binary"></a>



#### ip-min (`binary`)

<a id="rst-ip-max-binary"></a>



#### ip-max (`binary`)

<a id="rst-proto-min-u16"></a>



#### proto-min (`u16`)

<a id="rst-proto-max-u16"></a>



#### proto-max (`u16`)

<a id="rst-persistent-flag"></a>



#### persistent (`flag`)

<a id="rst-proto-hash-flag"></a>



#### proto-hash (`flag`)

<a id="rst-proto-random-flag"></a>



#### proto-random (`flag`)

<a id="rst-dec-ttl-attrs"></a>
<a id="rst-ovs-flow-attribute-set-dec-ttl-attrs"></a>



### dec-ttl-attrs

<a id="rst-action-nest"></a>



#### action (`nest`)

- **nested-attributes**:

  [action-attrs](#rst-ovs-flow-attribute-set-action-attrs)

<a id="rst-vxlan-ext-attrs"></a>
<a id="rst-ovs-flow-attribute-set-vxlan-ext-attrs"></a>



### vxlan-ext-attrs

<a id="rst-gbp-u32"></a>



#### gbp (`u32`)

<a id="rst-psample-attrs"></a>
<a id="rst-ovs-flow-attribute-set-psample-attrs"></a>



### psample-attrs

<a id="rst-group-u32"></a>



#### group (`u32`)

<a id="rst-cookie-binary"></a>



#### cookie (`binary`)

---

# Family ovs_vport netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the ovs_vport Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-ovs-vport-netlink-specification"></a>
<a id="rst-netlink-ovs-vport"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



OVS vport configuration over generic netlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-new"></a>
<a id="rst-ovs-vport-operation-new"></a>



### new



Create a new OVS vport

- **attribute-set**:

  [vport](#rst-ovs-vport-attribute-set-vport)

- **do**:

  **request**

  - **attributes**:

    \[`name`, `type`, `upcall-pid`, `ifindex`, `options`\]

<a id="rst-del"></a>
<a id="rst-ovs-vport-operation-del"></a>



### del



Delete existing OVS vport from a data path

- **attribute-set**:

  [vport](#rst-ovs-vport-attribute-set-vport)

- **do**:

  **request**

  - **attributes**:

    \[`port-no`, `type`, `name`\]

<a id="rst-get"></a>
<a id="rst-ovs-vport-operation-get"></a>



### get



Get / dump OVS vport configuration and state

- **attribute-set**:

  [vport](#rst-ovs-vport-attribute-set-vport)

- **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`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- ovs\_vport


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ovs-header"></a>
<a id="rst-ovs-vport-definition-ovs-header"></a>



### ovs-header

- **type**:

  struct

- **members**:

  - **dp-ifindex (`u32`)**

<a id="rst-vport-type"></a>
<a id="rst-ovs-vport-definition-vport-type"></a>



### vport-type

- **type**:

  enum

- **enum-name**:

  ovs-vport-type

- **name-prefix**:

  ovs-vport-type-

- **entries**:

  - `unspec`


  - `netdev`


  - `internal`


  - `gre`


  - `vxlan`


  - `geneve`

<a id="rst-ovs-vport-stats"></a>
<a id="rst-ovs-vport-definition-ovs-vport-stats"></a>



### 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`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-vport-options"></a>
<a id="rst-ovs-vport-attribute-set-vport-options"></a>



### vport-options

<a id="rst-dst-port-u32"></a>



#### dst-port (`u32`)

<a id="rst-extension-u32"></a>



#### extension (`u32`)

<a id="rst-upcall-stats"></a>
<a id="rst-ovs-vport-attribute-set-upcall-stats"></a>



### upcall-stats

<a id="rst-success-u64"></a>



#### success (`u64`)

- **value**:

  0

<a id="rst-fail-u64"></a>



#### fail (`u64`)

<a id="rst-vport"></a>
<a id="rst-ovs-vport-attribute-set-vport"></a>



### vport

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-port-no-u32"></a>



#### port-no (`u32`)

<a id="rst-type-u32"></a>



#### type (`u32`)

- **enum**:

  [vport-type](#rst-ovs-vport-definition-vport-type)

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-options-nest"></a>



#### options (`nest`)

- **nested-attributes**:

  [vport-options](#rst-ovs-vport-attribute-set-vport-options)

<a id="rst-upcall-pid-binary"></a>



#### upcall-pid (`binary`)

- **sub-type**:

  u32

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [ovs-vport-stats](#rst-ovs-vport-definition-ovs-vport-stats)

<a id="rst-pad-unused"></a>



#### pad (`unused`)

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

<a id="rst-netnsid-u32"></a>



#### netnsid (`u32`)

<a id="rst-upcall-stats-nest"></a>



#### upcall-stats (`nest`)

- **nested-attributes**:

  [upcall-stats](#rst-ovs-vport-attribute-set-upcall-stats)

---

# Family psp netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the psp Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-psp-netlink-specification"></a>
<a id="rst-netlink-psp"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



PSP Security Protocol Generic Netlink family.

<a id="rst-operations"></a>



## Operations

<a id="rst-dev-get"></a>
<a id="rst-psp-operation-dev-get"></a>



### dev-get



Get / dump information about PSP capable devices on the system.

- **attribute-set**:

  [dev](#rst-psp-attribute-set-dev)

- **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`\]

<a id="rst-dev-add-ntf"></a>
<a id="rst-psp-operation-dev-add-ntf"></a>



### dev-add-ntf



Notification about device appearing.

- **notify**:

  dev-get

- **mcgrp**:

  mgmt

<a id="rst-dev-del-ntf"></a>
<a id="rst-psp-operation-dev-del-ntf"></a>



### dev-del-ntf



Notification about device disappearing.

- **notify**:

  dev-get

- **mcgrp**:

  mgmt

<a id="rst-dev-set"></a>
<a id="rst-psp-operation-dev-set"></a>



### dev-set



Set the configuration of a PSP device.

- **attribute-set**:

  [dev](#rst-psp-attribute-set-dev)

- **do**:

  **request**

  - **attributes**:

    \[`id`, `psp-versions-ena`\]

  **reply**

  - **attributes**:

    \[\]

  **pre**



  psp-device-get-locked

  **post**



  psp-device-unlock

<a id="rst-dev-change-ntf"></a>
<a id="rst-psp-operation-dev-change-ntf"></a>



### dev-change-ntf



Notification about device configuration being changed.

- **notify**:

  dev-get

- **mcgrp**:

  mgmt

<a id="rst-key-rotate"></a>
<a id="rst-psp-operation-key-rotate"></a>



### key-rotate



Rotate the device key.

- **attribute-set**:

  [dev](#rst-psp-attribute-set-dev)

- **do**:

  **request**

  - **attributes**:

    \[`id`\]

  **reply**

  - **attributes**:

    \[`id`\]

  **pre**



  psp-device-get-locked

  **post**



  psp-device-unlock

<a id="rst-key-rotate-ntf"></a>
<a id="rst-psp-operation-key-rotate-ntf"></a>



### key-rotate-ntf



Notification about device key getting rotated.

- **notify**:

  key-rotate

- **mcgrp**:

  use

<a id="rst-rx-assoc"></a>
<a id="rst-psp-operation-rx-assoc"></a>



### rx-assoc



Allocate a new Rx key + SPI pair, associate it with a socket.

- **attribute-set**:

  [assoc](#rst-psp-attribute-set-assoc)

- **do**:

  **request**

  - **attributes**:

    \[`dev-id`, `version`, `sock-fd`\]

  **reply**

  - **attributes**:

    \[`dev-id`, `rx-key`\]

  **pre**



  psp-assoc-device-get-locked

  **post**



  psp-device-unlock

<a id="rst-tx-assoc"></a>
<a id="rst-psp-operation-tx-assoc"></a>



### tx-assoc



Add a PSP Tx association.

- **attribute-set**:

  [assoc](#rst-psp-attribute-set-assoc)

- **do**:

  **request**

  - **attributes**:

    \[`dev-id`, `version`, `tx-key`, `sock-fd`\]

  **reply**

  - **attributes**:

    \[\]

  **pre**



  psp-assoc-device-get-locked

  **post**



  psp-device-unlock

<a id="rst-get-stats"></a>
<a id="rst-psp-operation-get-stats"></a>



### get-stats



Get device statistics.

- **attribute-set**:

  [stats](#rst-psp-attribute-set-stats)

- **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`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- mgmt


- use


<a id="rst-definitions"></a>



## Definitions

<a id="rst-version"></a>
<a id="rst-psp-definition-version"></a>



### version

- **type**:

  enum

- **entries**:

  - `hdr0-aes-gcm-128`


  - `hdr0-aes-gcm-256`


  - `hdr0-aes-gmac-128`


  - `hdr0-aes-gmac-256`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-dev"></a>
<a id="rst-psp-attribute-set-dev"></a>



### dev

<a id="rst-id-u32"></a>



#### id (`u32`)

- **doc**:

  PSP device ID.

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

- **doc**:

  ifindex of the main netdevice linked to the PSP device.

<a id="rst-psp-versions-cap-u32"></a>



#### psp-versions-cap (`u32`)

- **doc**:

  Bitmask of PSP versions supported by the device.

- **enum**:

  [version](#rst-psp-definition-version)

- **enum-as-flags**:

  True

<a id="rst-psp-versions-ena-u32"></a>



#### psp-versions-ena (`u32`)

- **doc**:

  Bitmask of currently enabled (accepted on Rx) PSP versions.

- **enum**:

  [version](#rst-psp-definition-version)

- **enum-as-flags**:

  True

<a id="rst-assoc"></a>
<a id="rst-psp-attribute-set-assoc"></a>



### assoc

<a id="rst-dev-id-u32"></a>



#### dev-id (`u32`)

- **doc**:

  PSP device ID.

<a id="rst-version-u32"></a>



#### version (`u32`)

- **doc**:

  PSP versions (AEAD and protocol version) used by this association, dictates the size of the key.

- **enum**:

  [version](#rst-psp-definition-version)

<a id="rst-rx-key-nest"></a>



#### rx-key (`nest`)

- **nested-attributes**:

  [keys](#rst-psp-attribute-set-keys)

<a id="rst-tx-key-nest"></a>



#### tx-key (`nest`)

- **nested-attributes**:

  [keys](#rst-psp-attribute-set-keys)

<a id="rst-sock-fd-u32"></a>



#### sock-fd (`u32`)

- **doc**:

  Sockets which should be bound to the association immediately.

<a id="rst-keys"></a>
<a id="rst-psp-attribute-set-keys"></a>



### keys

<a id="rst-key-binary"></a>



#### key (`binary`)

<a id="rst-spi-u32"></a>



#### spi (`u32`)

- **doc**:

  Security Parameters Index (SPI) of the association.

<a id="rst-stats"></a>
<a id="rst-psp-attribute-set-stats"></a>



### stats

<a id="rst-dev-id-u32-1"></a>



#### dev-id (`u32`)

- **doc**:

  PSP device ID.

<a id="rst-key-rotations-uint"></a>



#### key-rotations (`uint`)

- **doc**:

  Number of key rotations during the lifetime of the device. Kernel statistic.

<a id="rst-stale-events-uint"></a>



#### 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.

<a id="rst-rx-packets-uint"></a>



#### rx-packets (`uint`)

- **doc**:

  Number of successfully processed and authenticated PSP packets. Device statistic (from the PSP spec).

<a id="rst-rx-bytes-uint"></a>



#### 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).

<a id="rst-rx-auth-fail-uint"></a>



#### rx-auth-fail (`uint`)

- **doc**:

  Number of received PSP packets with unsuccessful authentication. Device statistic (from the PSP spec).

<a id="rst-rx-error-uint"></a>



#### rx-error (`uint`)

- **doc**:

  Number of received PSP packets with length/framing errors. Device statistic (from the PSP spec).

<a id="rst-rx-bad-uint"></a>



#### 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).

<a id="rst-tx-packets-uint"></a>



#### tx-packets (`uint`)

- **doc**:

  Number of successfully processed PSP packets for transmission. Device statistic (from the PSP spec).

<a id="rst-tx-bytes-uint"></a>



#### 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).

<a id="rst-tx-error-uint"></a>



#### 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_

> Protocol reference for the rt-addr Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-rt-addr-netlink-specification"></a>
<a id="rst-netlink-rt-addr"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Address configuration over rtnetlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-newaddr"></a>
<a id="rst-rt-addr-operation-newaddr"></a>



### newaddr



Add new address

- **attribute-set**:

  [addr-attrs](#rst-rt-addr-attribute-set-addr-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`address`, `label`, `local`, `cacheinfo`\]

<a id="rst-deladdr"></a>
<a id="rst-rt-addr-operation-deladdr"></a>



### deladdr



Remove address

- **attribute-set**:

  [addr-attrs](#rst-rt-addr-attribute-set-addr-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`address`, `local`\]

<a id="rst-getaddr"></a>
<a id="rst-rt-addr-operation-getaddr"></a>



### getaddr



Dump address information.

- **attribute-set**:

  [addr-attrs](#rst-rt-addr-attribute-set-addr-attrs)

- **dump**:

  **request**

  - **attributes**:

    \[\]

  **reply**

  - **attributes**:

    \[`address`, `label`, `local`, `cacheinfo`\]

<a id="rst-getmulticast"></a>
<a id="rst-rt-addr-operation-getmulticast"></a>



### getmulticast



Get / dump IPv4/IPv6 multicast addresses.

- **attribute-set**:

  [addr-attrs](#rst-rt-addr-attribute-set-addr-attrs)

- **fixed-header**:

  [ifaddrmsg](#rst-rt-addr-definition-ifaddrmsg)

- **do**:

  **request**

  - **attributes**:

    \[\]

  **reply**

  - **attributes**:

    \[`multicast`, `cacheinfo`\]

- **dump**:

  **request**

  - **attributes**:

    \[\]

  **reply**

  - **attributes**:

    \[`multicast`, `cacheinfo`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- rtnlgrp-ipv4-ifaddr


- rtnlgrp-ipv6-ifaddr


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ifaddrmsg"></a>
<a id="rst-rt-addr-definition-ifaddrmsg"></a>



### ifaddrmsg

- **type**:

  struct

- **members**:

  - **ifa-family (`u8`)**

  - **ifa-prefixlen (`u8`)**

  - **ifa-flags (`u8`)**

  - **ifa-scope (`u8`)**

  - **ifa-index (`u32`)**

<a id="rst-ifa-cacheinfo"></a>
<a id="rst-rt-addr-definition-ifa-cacheinfo"></a>



### ifa-cacheinfo

- **type**:

  struct

- **members**:

  - **ifa-prefered (`u32`)**

  - **ifa-valid (`u32`)**

  - **cstamp (`u32`)**

  - **tstamp (`u32`)**

<a id="rst-ifa-flags"></a>
<a id="rst-rt-addr-definition-ifa-flags"></a>



### 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**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-addr-attrs"></a>
<a id="rst-rt-addr-attribute-set-addr-attrs"></a>



### addr-attrs

<a id="rst-address-binary"></a>



#### address (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-local-binary"></a>



#### local (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-label-string"></a>



#### label (`string`)

<a id="rst-broadcast-u32"></a>



#### broadcast (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-anycast-binary"></a>



#### anycast (`binary`)

<a id="rst-cacheinfo-binary"></a>



#### cacheinfo (`binary`)

- **struct**:

  [ifa-cacheinfo](#rst-rt-addr-definition-ifa-cacheinfo)

<a id="rst-multicast-binary"></a>



#### multicast (`binary`)

<a id="rst-flags-u32"></a>



#### flags (`u32`)

- **enum**:

  [ifa-flags](#rst-rt-addr-definition-ifa-flags)

- **enum-as-flags**:

  True

<a id="rst-rt-priority-u32"></a>



#### rt-priority (`u32`)

<a id="rst-target-netnsid-binary"></a>



#### target-netnsid (`binary`)

<a id="rst-proto-u8"></a>



#### proto (`u8`)

---

# Family rt-link netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the rt-link Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-rt-link-netlink-specification"></a>
<a id="rst-netlink-rt-link"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Link configuration over rtnetlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-newlink"></a>
<a id="rst-rt-link-operation-newlink"></a>



### newlink



Create a new link.

- **attribute-set**:

  [link-attrs](#rst-rt-link-attribute-set-link-attrs)

- **fixed-header**:

  [ifinfomsg](#rst-rt-link-definition-ifinfomsg)

- **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`\]

<a id="rst-newlink-ntf"></a>
<a id="rst-rt-link-operation-newlink-ntf"></a>



### newlink-ntf



Notify that a link has been created

- **value**:

  16

- **notify**:

  getlink

- **fixed-header**:

  [ifinfomsg](#rst-rt-link-definition-ifinfomsg)

<a id="rst-dellink"></a>
<a id="rst-rt-link-operation-dellink"></a>



### dellink



Delete an existing link.

- **attribute-set**:

  [link-attrs](#rst-rt-link-attribute-set-link-attrs)

- **fixed-header**:

  [ifinfomsg](#rst-rt-link-definition-ifinfomsg)

- **do**:

  **request**

  - **attributes**:

    \[`ifname`\]

<a id="rst-getlink"></a>
<a id="rst-rt-link-operation-getlink"></a>



### getlink



Get / dump information about a link.

- **attribute-set**:

  [link-attrs](#rst-rt-link-attribute-set-link-attrs)

- **fixed-header**:

  [ifinfomsg](#rst-rt-link-definition-ifinfomsg)

- **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`\]

<a id="rst-setlink"></a>
<a id="rst-rt-link-operation-setlink"></a>



### setlink



Set information about a link.

- **attribute-set**:

  [link-attrs](#rst-rt-link-attribute-set-link-attrs)

- **fixed-header**:

  [ifinfomsg](#rst-rt-link-definition-ifinfomsg)

- **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`\]

<a id="rst-getstats"></a>
<a id="rst-rt-link-operation-getstats"></a>



### getstats



Get / dump link stats.

- **attribute-set**:

  [stats-attrs](#rst-rt-link-attribute-set-stats-attrs)

- **fixed-header**:

  [if-stats-msg](#rst-rt-link-definition-if-stats-msg)

- **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`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- rtnlgrp-link


- rtnlgrp-stats


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ifinfo-flags"></a>
<a id="rst-rt-link-definition-ifinfo-flags"></a>



### 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**

<a id="rst-vlan-protocols"></a>
<a id="rst-rt-link-definition-vlan-protocols"></a>



### vlan-protocols

- **type**:

  enum

- **enum-name**:

  None

- **entries**:

  - **8021q**

  - **8021ad**

<a id="rst-rtgenmsg"></a>
<a id="rst-rt-link-definition-rtgenmsg"></a>



### rtgenmsg

- **type**:

  struct

- **members**:

  - **family (`u8`)**

<a id="rst-ifinfomsg"></a>
<a id="rst-rt-link-definition-ifinfomsg"></a>



### ifinfomsg

- **type**:

  struct

- **members**:

  - **ifi-family (`u8`)**

  - **ifi-type (`u16`)**

  - **ifi-index (`s32`)**

  - **ifi-flags (`u32`)**

  - **ifi-change (`u32`)**

<a id="rst-ifla-bridge-id"></a>
<a id="rst-rt-link-definition-ifla-bridge-id"></a>



### ifla-bridge-id

- **type**:

  struct

- **members**:

  - **prio (`u16`)**

  - **addr (`binary`)**

<a id="rst-ifla-cacheinfo"></a>
<a id="rst-rt-link-definition-ifla-cacheinfo"></a>



### ifla-cacheinfo

- **type**:

  struct

- **members**:

  - **max-reasm-len (`u32`)**

  - **tstamp (`u32`)**

  - **reachable-time (`s32`)**

  - **retrans-time (`u32`)**

<a id="rst-rtnl-link-stats"></a>
<a id="rst-rt-link-definition-rtnl-link-stats"></a>



### 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`)**

<a id="rst-rtnl-link-stats64"></a>
<a id="rst-rt-link-definition-rtnl-link-stats64"></a>



### 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`)**

<a id="rst-rtnl-link-ifmap"></a>
<a id="rst-rt-link-definition-rtnl-link-ifmap"></a>



### rtnl-link-ifmap

- **type**:

  struct

- **members**:

  - **mem-start (`u64`)**

  - **mem-end (`u64`)**

  - **base-addr (`u64`)**

  - **irq (`u16`)**

  - **dma (`u8`)**

  - **port (`u8`)**

<a id="rst-ipv4-devconf"></a>
<a id="rst-rt-link-definition-ipv4-devconf"></a>



### 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**

<a id="rst-ipv6-devconf"></a>
<a id="rst-rt-link-definition-ipv6-devconf"></a>



### 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**

<a id="rst-ifla-icmp6-stats"></a>
<a id="rst-rt-link-definition-ifla-icmp6-stats"></a>



### ifla-icmp6-stats

- **enum-name**:

  None

- **type**:

  enum

- **entries**:

  - **num**

  - **inmsgs**

  - **inerrors**

  - **outmsgs**

  - **outerrors**

  - **csumerrors**

  - **ratelimithost**

<a id="rst-ifla-inet6-stats"></a>
<a id="rst-rt-link-definition-ifla-inet6-stats"></a>



### 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**

<a id="rst-br-boolopt-multi"></a>
<a id="rst-rt-link-definition-br-boolopt-multi"></a>



### br-boolopt-multi

- **type**:

  struct

- **header**:

  linux/if\_bridge.h

- **members**:

  - **optval (`u32`)**

  - **optmask (`u32`)**

<a id="rst-if-stats-msg"></a>
<a id="rst-rt-link-definition-if-stats-msg"></a>



### if-stats-msg

- **type**:

  struct

- **members**:

  - **family (`u8`)**

  - **ifindex (`u32`)**

  - **filter-mask (`u32`)**

<a id="rst-ifla-vlan-flags"></a>
<a id="rst-rt-link-definition-ifla-vlan-flags"></a>



### ifla-vlan-flags

- **type**:

  struct

- **members**:

  - **flags (`u32`)**

  - **mask (`u32`)**

<a id="rst-vlan-flags"></a>
<a id="rst-rt-link-definition-vlan-flags"></a>



### vlan-flags

- **type**:

  flags

- **enum-name**:

  None

- **entries**:

  - `reorder-hdr`


  - `gvrp`


  - `loose-binding`


  - `mvrp`


  - `bridge-binding`

<a id="rst-ifla-vlan-qos-mapping"></a>
<a id="rst-rt-link-definition-ifla-vlan-qos-mapping"></a>



### ifla-vlan-qos-mapping

- **type**:

  struct

- **members**:

  - **from (`u32`)**

  - **to (`u32`)**

<a id="rst-ifla-geneve-port-range"></a>
<a id="rst-rt-link-definition-ifla-geneve-port-range"></a>



### ifla-geneve-port-range

- **type**:

  struct

- **members**:

  - **low (`u16`)**

  - **high (`u16`)**

<a id="rst-ifla-vf-mac"></a>
<a id="rst-rt-link-definition-ifla-vf-mac"></a>



### ifla-vf-mac

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **mac (`binary`)**

<a id="rst-ifla-vf-vlan"></a>
<a id="rst-rt-link-definition-ifla-vf-vlan"></a>



### ifla-vf-vlan

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **vlan (`u32`)**

  - **qos (`u32`)**

<a id="rst-ifla-vf-tx-rate"></a>
<a id="rst-rt-link-definition-ifla-vf-tx-rate"></a>



### ifla-vf-tx-rate

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **rate (`u32`)**

<a id="rst-ifla-vf-spoofchk"></a>
<a id="rst-rt-link-definition-ifla-vf-spoofchk"></a>



### ifla-vf-spoofchk

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **setting (`u32`)**

<a id="rst-ifla-vf-link-state"></a>
<a id="rst-rt-link-definition-ifla-vf-link-state"></a>



### ifla-vf-link-state

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **link-state (`u32`)**

<a id="rst-ifla-vf-link-state-enum"></a>
<a id="rst-rt-link-definition-ifla-vf-link-state-enum"></a>



### ifla-vf-link-state-enum

- **type**:

  enum

- **enum-name**:

  None

- **entries**:

  - `auto`


  - `enable`


  - `disable`

<a id="rst-ifla-vf-rate"></a>
<a id="rst-rt-link-definition-ifla-vf-rate"></a>



### ifla-vf-rate

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **min-tx-rate (`u32`)**

  - **max-tx-rate (`u32`)**

<a id="rst-ifla-vf-rss-query-en"></a>
<a id="rst-rt-link-definition-ifla-vf-rss-query-en"></a>



### ifla-vf-rss-query-en

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **setting (`u32`)**

<a id="rst-ifla-vf-trust"></a>
<a id="rst-rt-link-definition-ifla-vf-trust"></a>



### ifla-vf-trust

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **setting (`u32`)**

<a id="rst-ifla-vf-guid"></a>
<a id="rst-rt-link-definition-ifla-vf-guid"></a>



### ifla-vf-guid

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **guid (`u64`)**

<a id="rst-ifla-vf-vlan-info"></a>
<a id="rst-rt-link-definition-ifla-vf-vlan-info"></a>



### ifla-vf-vlan-info

- **type**:

  struct

- **members**:

  - **vf (`u32`)**

  - **vlan (`u32`)**

  - **qos (`u32`)**

  - **vlan-proto (`u32`)**

<a id="rst-rtext-filter"></a>
<a id="rst-rt-link-definition-rtext-filter"></a>



### rtext-filter

- **type**:

  flags

- **enum-name**:

  None

- **entries**:

  - `vf`


  - `brvlan`


  - `brvlan-compressed`


  - `skip-stats`


  - `mrp`


  - `cfm-config`


  - `cfm-status`


  - `mst`

<a id="rst-netkit-policy"></a>
<a id="rst-rt-link-definition-netkit-policy"></a>



### netkit-policy

- **type**:

  enum

- **enum-name**:

  None

- **entries**:

  - **forward**

  - **blackhole**

<a id="rst-netkit-mode"></a>
<a id="rst-rt-link-definition-netkit-mode"></a>



### netkit-mode

- **type**:

  enum

- **enum-name**:

  netkit-mode

- **entries**:

  - **l2**

  - **l3**

<a id="rst-netkit-scrub"></a>
<a id="rst-rt-link-definition-netkit-scrub"></a>



### netkit-scrub

- **type**:

  enum

- **enum-name**:

  None

- **entries**:

  - **none**

  - **default**

<a id="rst-ovpn-mode"></a>
<a id="rst-rt-link-definition-ovpn-mode"></a>



### ovpn-mode

- **enum-name**:

  ovpn-mode

- **name-prefix**:

  ovpn-mode

- **type**:

  enum

- **entries**:

  - `p2p`


  - `mp`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-link-attrs"></a>
<a id="rst-rt-link-attribute-set-link-attrs"></a>



### link-attrs

<a id="rst-address-binary"></a>



#### address (`binary`)

- **display-hint**:

  mac

<a id="rst-broadcast-binary"></a>



#### broadcast (`binary`)

- **display-hint**:

  mac

<a id="rst-ifname-string"></a>



#### ifname (`string`)

<a id="rst-mtu-u32"></a>



#### mtu (`u32`)

<a id="rst-link-u32"></a>



#### link (`u32`)

<a id="rst-qdisc-string"></a>



#### qdisc (`string`)

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [rtnl-link-stats](#rst-rt-link-definition-rtnl-link-stats)

<a id="rst-cost-string"></a>



#### cost (`string`)

<a id="rst-priority-string"></a>



#### priority (`string`)

<a id="rst-master-u32"></a>



#### master (`u32`)

<a id="rst-wireless-string"></a>



#### wireless (`string`)

<a id="rst-protinfo-string"></a>



#### protinfo (`string`)

<a id="rst-txqlen-u32"></a>



#### txqlen (`u32`)

<a id="rst-map-binary"></a>



#### map (`binary`)

- **struct**:

  [rtnl-link-ifmap](#rst-rt-link-definition-rtnl-link-ifmap)

<a id="rst-weight-u32"></a>



#### weight (`u32`)

<a id="rst-operstate-u8"></a>



#### operstate (`u8`)

<a id="rst-linkmode-u8"></a>



#### linkmode (`u8`)

<a id="rst-linkinfo-nest"></a>



#### linkinfo (`nest`)

- **nested-attributes**:

  [linkinfo-attrs](#rst-rt-link-attribute-set-linkinfo-attrs)

<a id="rst-net-ns-pid-u32"></a>



#### net-ns-pid (`u32`)

<a id="rst-ifalias-string"></a>



#### ifalias (`string`)

<a id="rst-num-vf-u32"></a>



#### num-vf (`u32`)

<a id="rst-vfinfo-list-nest"></a>



#### vfinfo-list (`nest`)

- **nested-attributes**:

  [vfinfo-list-attrs](#rst-rt-link-attribute-set-vfinfo-list-attrs)

<a id="rst-stats64-binary"></a>



#### stats64 (`binary`)

- **struct**:

  [rtnl-link-stats64](#rst-rt-link-definition-rtnl-link-stats64)

<a id="rst-vf-ports-nest"></a>



#### vf-ports (`nest`)

- **nested-attributes**:

  [vf-ports-attrs](#rst-rt-link-attribute-set-vf-ports-attrs)

<a id="rst-port-self-nest"></a>



#### port-self (`nest`)

- **nested-attributes**:

  [port-self-attrs](#rst-rt-link-attribute-set-port-self-attrs)

<a id="rst-af-spec-nest"></a>



#### af-spec (`nest`)

- **nested-attributes**:

  [af-spec-attrs](#rst-rt-link-attribute-set-af-spec-attrs)

<a id="rst-group-u32"></a>



#### group (`u32`)

<a id="rst-net-ns-fd-u32"></a>



#### net-ns-fd (`u32`)

<a id="rst-ext-mask-u32"></a>



#### ext-mask (`u32`)

- **enum**:

  [rtext-filter](#rst-rt-link-definition-rtext-filter)

- **enum-as-flags**:

  True

<a id="rst-promiscuity-u32"></a>



#### promiscuity (`u32`)

<a id="rst-num-tx-queues-u32"></a>



#### num-tx-queues (`u32`)

<a id="rst-num-rx-queues-u32"></a>



#### num-rx-queues (`u32`)

<a id="rst-carrier-u8"></a>



#### carrier (`u8`)

<a id="rst-phys-port-id-binary"></a>



#### phys-port-id (`binary`)

<a id="rst-carrier-changes-u32"></a>



#### carrier-changes (`u32`)

<a id="rst-phys-switch-id-binary"></a>



#### phys-switch-id (`binary`)

<a id="rst-link-netnsid-s32"></a>



#### link-netnsid (`s32`)

<a id="rst-phys-port-name-string"></a>



#### phys-port-name (`string`)

<a id="rst-proto-down-u8"></a>



#### proto-down (`u8`)

<a id="rst-gso-max-segs-u32"></a>



#### gso-max-segs (`u32`)

<a id="rst-gso-max-size-u32"></a>



#### gso-max-size (`u32`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-xdp-nest"></a>



#### xdp (`nest`)

- **nested-attributes**:

  [xdp-attrs](#rst-rt-link-attribute-set-xdp-attrs)

<a id="rst-event-u32"></a>



#### event (`u32`)

<a id="rst-new-netnsid-s32"></a>



#### new-netnsid (`s32`)

<a id="rst-target-netnsid-s32"></a>



#### target-netnsid (`s32`)

<a id="rst-carrier-up-count-u32"></a>



#### carrier-up-count (`u32`)

<a id="rst-carrier-down-count-u32"></a>



#### carrier-down-count (`u32`)

<a id="rst-new-ifindex-s32"></a>



#### new-ifindex (`s32`)

<a id="rst-min-mtu-u32"></a>



#### min-mtu (`u32`)

<a id="rst-max-mtu-u32"></a>



#### max-mtu (`u32`)

<a id="rst-prop-list-nest"></a>



#### prop-list (`nest`)

- **nested-attributes**:

  [prop-list-link-attrs](#rst-rt-link-attribute-set-prop-list-link-attrs)

<a id="rst-alt-ifname-string"></a>



#### alt-ifname (`string`)

<a id="rst-perm-address-binary"></a>



#### perm-address (`binary`)

- **display-hint**:

  mac

<a id="rst-proto-down-reason-string"></a>



#### proto-down-reason (`string`)

<a id="rst-parent-dev-name-string"></a>



#### parent-dev-name (`string`)

<a id="rst-parent-dev-bus-name-string"></a>



#### parent-dev-bus-name (`string`)

<a id="rst-gro-max-size-u32"></a>



#### gro-max-size (`u32`)

<a id="rst-tso-max-size-u32"></a>



#### tso-max-size (`u32`)

<a id="rst-tso-max-segs-u32"></a>



#### tso-max-segs (`u32`)

<a id="rst-allmulti-u32"></a>



#### allmulti (`u32`)

<a id="rst-devlink-port-binary"></a>



#### devlink-port (`binary`)

<a id="rst-gso-ipv4-max-size-u32"></a>



#### gso-ipv4-max-size (`u32`)

<a id="rst-gro-ipv4-max-size-u32"></a>



#### gro-ipv4-max-size (`u32`)

<a id="rst-dpll-pin-nest"></a>



#### dpll-pin (`nest`)

- **nested-attributes**:

  [link-dpll-pin-attrs](#rst-rt-link-attribute-set-link-dpll-pin-attrs)

<a id="rst-max-pacing-offload-horizon-uint"></a>



#### max-pacing-offload-horizon (`uint`)

- **doc**:

  EDT offload horizon supported by the device (in nsec).

<a id="rst-netns-immutable-u8"></a>



#### netns-immutable (`u8`)

<a id="rst-headroom-u16"></a>



#### headroom (`u16`)

<a id="rst-tailroom-u16"></a>



#### tailroom (`u16`)

<a id="rst-prop-list-link-attrs"></a>
<a id="rst-rt-link-attribute-set-prop-list-link-attrs"></a>



### prop-list-link-attrs

<a id="rst-alt-ifname"></a>



#### alt-ifname

- **multi-attr**:

  True

<a id="rst-af-spec-attrs"></a>
<a id="rst-rt-link-attribute-set-af-spec-attrs"></a>



### af-spec-attrs

<a id="rst-inet-nest"></a>



#### inet (`nest`)

- **value**:

  2

- **nested-attributes**:

  [ifla-attrs](#rst-rt-link-attribute-set-ifla-attrs)

<a id="rst-inet6-nest"></a>



#### inet6 (`nest`)

- **value**:

  10

- **nested-attributes**:

  [ifla6-attrs](#rst-rt-link-attribute-set-ifla6-attrs)

<a id="rst-mctp-nest"></a>



#### mctp (`nest`)

- **value**:

  45

- **nested-attributes**:

  [mctp-attrs](#rst-rt-link-attribute-set-mctp-attrs)

<a id="rst-vfinfo-list-attrs"></a>
<a id="rst-rt-link-attribute-set-vfinfo-list-attrs"></a>



### vfinfo-list-attrs

<a id="rst-info-nest"></a>



#### info (`nest`)

- **nested-attributes**:

  [vfinfo-attrs](#rst-rt-link-attribute-set-vfinfo-attrs)

- **multi-attr**:

  True

<a id="rst-vfinfo-attrs"></a>
<a id="rst-rt-link-attribute-set-vfinfo-attrs"></a>



### vfinfo-attrs

<a id="rst-mac-binary"></a>



#### mac (`binary`)

- **struct**:

  [ifla-vf-mac](#rst-rt-link-definition-ifla-vf-mac)

<a id="rst-vlan-binary"></a>



#### vlan (`binary`)

- **struct**:

  [ifla-vf-vlan](#rst-rt-link-definition-ifla-vf-vlan)

<a id="rst-tx-rate-binary"></a>



#### tx-rate (`binary`)

- **struct**:

  [ifla-vf-tx-rate](#rst-rt-link-definition-ifla-vf-tx-rate)

<a id="rst-spoofchk-binary"></a>



#### spoofchk (`binary`)

- **struct**:

  [ifla-vf-spoofchk](#rst-rt-link-definition-ifla-vf-spoofchk)

<a id="rst-link-state-binary"></a>



#### link-state (`binary`)

- **struct**:

  [ifla-vf-link-state](#rst-rt-link-definition-ifla-vf-link-state)

<a id="rst-rate-binary"></a>



#### rate (`binary`)

- **struct**:

  [ifla-vf-rate](#rst-rt-link-definition-ifla-vf-rate)

<a id="rst-rss-query-en-binary"></a>



#### rss-query-en (`binary`)

- **struct**:

  [ifla-vf-rss-query-en](#rst-rt-link-definition-ifla-vf-rss-query-en)

<a id="rst-stats-nest"></a>



#### stats (`nest`)

- **nested-attributes**:

  [vf-stats-attrs](#rst-rt-link-attribute-set-vf-stats-attrs)

<a id="rst-trust-binary"></a>



#### trust (`binary`)

- **struct**:

  [ifla-vf-trust](#rst-rt-link-definition-ifla-vf-trust)

<a id="rst-ib-node-guid-binary"></a>



#### ib-node-guid (`binary`)

- **struct**:

  [ifla-vf-guid](#rst-rt-link-definition-ifla-vf-guid)

<a id="rst-ib-port-guid-binary"></a>



#### ib-port-guid (`binary`)

- **struct**:

  [ifla-vf-guid](#rst-rt-link-definition-ifla-vf-guid)

<a id="rst-vlan-list-nest"></a>



#### vlan-list (`nest`)

- **nested-attributes**:

  [vf-vlan-attrs](#rst-rt-link-attribute-set-vf-vlan-attrs)

<a id="rst-broadcast-binary-1"></a>



#### broadcast (`binary`)

<a id="rst-vf-stats-attrs"></a>
<a id="rst-rt-link-attribute-set-vf-stats-attrs"></a>



### vf-stats-attrs

<a id="rst-rx-packets-u64"></a>



#### rx-packets (`u64`)

- **value**:

  0

<a id="rst-tx-packets-u64"></a>



#### tx-packets (`u64`)

<a id="rst-rx-bytes-u64"></a>



#### rx-bytes (`u64`)

<a id="rst-tx-bytes-u64"></a>



#### tx-bytes (`u64`)

<a id="rst-broadcast-u64"></a>



#### broadcast (`u64`)

<a id="rst-multicast-u64"></a>



#### multicast (`u64`)

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-rx-dropped-u64"></a>



#### rx-dropped (`u64`)

<a id="rst-tx-dropped-u64"></a>



#### tx-dropped (`u64`)

<a id="rst-vf-vlan-attrs"></a>
<a id="rst-rt-link-attribute-set-vf-vlan-attrs"></a>



### vf-vlan-attrs

<a id="rst-info-binary"></a>



#### info (`binary`)

- **struct**:

  [ifla-vf-vlan-info](#rst-rt-link-definition-ifla-vf-vlan-info)

- **multi-attr**:

  True

<a id="rst-vf-ports-attrs"></a>
<a id="rst-rt-link-attribute-set-vf-ports-attrs"></a>



### vf-ports-attrs

<a id="rst-port-self-attrs"></a>
<a id="rst-rt-link-attribute-set-port-self-attrs"></a>



### port-self-attrs

<a id="rst-linkinfo-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-attrs"></a>



### linkinfo-attrs

<a id="rst-kind-string"></a>



#### kind (`string`)

<a id="rst-data-sub-message"></a>



#### data (`sub-message`)

- **sub-message**:

  [linkinfo-data-msg](#rst-rt-link-sub-message-linkinfo-data-msg)

- **selector**:

  kind

<a id="rst-xstats-binary"></a>



#### xstats (`binary`)

<a id="rst-slave-kind-string"></a>



#### slave-kind (`string`)

<a id="rst-slave-data-sub-message"></a>



#### slave-data (`sub-message`)

- **sub-message**:

  [linkinfo-member-data-msg](#rst-rt-link-sub-message-linkinfo-member-data-msg)

- **selector**:

  slave-kind

<a id="rst-linkinfo-bond-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-bond-attrs"></a>



### linkinfo-bond-attrs

<a id="rst-mode-u8"></a>



#### mode (`u8`)

<a id="rst-active-slave-u32"></a>



#### active-slave (`u32`)

<a id="rst-miimon-u32"></a>



#### miimon (`u32`)

<a id="rst-updelay-u32"></a>



#### updelay (`u32`)

<a id="rst-downdelay-u32"></a>



#### downdelay (`u32`)

<a id="rst-use-carrier-u8"></a>



#### use-carrier (`u8`)

<a id="rst-arp-interval-u32"></a>



#### arp-interval (`u32`)

<a id="rst-arp-ip-target-indexed-array"></a>



#### arp-ip-target (`indexed-array`)

- **sub-type**:

  u32

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-arp-validate-u32"></a>



#### arp-validate (`u32`)

<a id="rst-arp-all-targets-u32"></a>



#### arp-all-targets (`u32`)

<a id="rst-primary-u32"></a>



#### primary (`u32`)

<a id="rst-primary-reselect-u8"></a>



#### primary-reselect (`u8`)

<a id="rst-fail-over-mac-u8"></a>



#### fail-over-mac (`u8`)

<a id="rst-xmit-hash-policy-u8"></a>



#### xmit-hash-policy (`u8`)

<a id="rst-resend-igmp-u32"></a>



#### resend-igmp (`u32`)

<a id="rst-num-peer-notif-u8"></a>



#### num-peer-notif (`u8`)

<a id="rst-all-slaves-active-u8"></a>



#### all-slaves-active (`u8`)

<a id="rst-min-links-u32"></a>



#### min-links (`u32`)

<a id="rst-lp-interval-u32"></a>



#### lp-interval (`u32`)

<a id="rst-packets-per-slave-u32"></a>



#### packets-per-slave (`u32`)

<a id="rst-ad-lacp-rate-u8"></a>



#### ad-lacp-rate (`u8`)

<a id="rst-ad-select-u8"></a>



#### ad-select (`u8`)

<a id="rst-ad-info-nest"></a>



#### ad-info (`nest`)

- **nested-attributes**:

  [bond-ad-info-attrs](#rst-rt-link-attribute-set-bond-ad-info-attrs)

<a id="rst-ad-actor-sys-prio-u16"></a>



#### ad-actor-sys-prio (`u16`)

<a id="rst-ad-user-port-key-u16"></a>



#### ad-user-port-key (`u16`)

<a id="rst-ad-actor-system-binary"></a>



#### ad-actor-system (`binary`)

- **display-hint**:

  mac

<a id="rst-tlb-dynamic-lb-u8"></a>



#### tlb-dynamic-lb (`u8`)

<a id="rst-peer-notif-delay-u32"></a>



#### peer-notif-delay (`u32`)

<a id="rst-ad-lacp-active-u8"></a>



#### ad-lacp-active (`u8`)

<a id="rst-missed-max-u8"></a>



#### missed-max (`u8`)

<a id="rst-ns-ip6-target-indexed-array"></a>



#### ns-ip6-target (`indexed-array`)

- **sub-type**:

  binary

- **display-hint**:

  ipv6

<a id="rst-coupled-control-u8"></a>



#### coupled-control (`u8`)

<a id="rst-bond-ad-info-attrs"></a>
<a id="rst-rt-link-attribute-set-bond-ad-info-attrs"></a>



### bond-ad-info-attrs

<a id="rst-aggregator-u16"></a>



#### aggregator (`u16`)

<a id="rst-num-ports-u16"></a>



#### num-ports (`u16`)

<a id="rst-actor-key-u16"></a>



#### actor-key (`u16`)

<a id="rst-partner-key-u16"></a>



#### partner-key (`u16`)

<a id="rst-partner-mac-binary"></a>



#### partner-mac (`binary`)

- **display-hint**:

  mac

<a id="rst-bond-slave-attrs"></a>
<a id="rst-rt-link-attribute-set-bond-slave-attrs"></a>



### bond-slave-attrs

<a id="rst-state-u8"></a>



#### state (`u8`)

<a id="rst-mii-status-u8"></a>



#### mii-status (`u8`)

<a id="rst-link-failure-count-u32"></a>



#### link-failure-count (`u32`)

<a id="rst-perm-hwaddr-binary"></a>



#### perm-hwaddr (`binary`)

- **display-hint**:

  mac

<a id="rst-queue-id-u16"></a>



#### queue-id (`u16`)

<a id="rst-ad-aggregator-id-u16"></a>



#### ad-aggregator-id (`u16`)

<a id="rst-ad-actor-oper-port-state-u8"></a>



#### ad-actor-oper-port-state (`u8`)

<a id="rst-ad-partner-oper-port-state-u16"></a>



#### ad-partner-oper-port-state (`u16`)

<a id="rst-prio-u32"></a>



#### prio (`u32`)

<a id="rst-linkinfo-bridge-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-bridge-attrs"></a>



### linkinfo-bridge-attrs

<a id="rst-forward-delay-u32"></a>



#### forward-delay (`u32`)

<a id="rst-hello-time-u32"></a>



#### hello-time (`u32`)

<a id="rst-max-age-u32"></a>



#### max-age (`u32`)

<a id="rst-ageing-time-u32"></a>



#### ageing-time (`u32`)

<a id="rst-stp-state-u32"></a>



#### stp-state (`u32`)

<a id="rst-priority-u16"></a>



#### priority (`u16`)

<a id="rst-vlan-filtering-u8"></a>



#### vlan-filtering (`u8`)

<a id="rst-vlan-protocol-u16"></a>



#### vlan-protocol (`u16`)

<a id="rst-group-fwd-mask-u16"></a>



#### group-fwd-mask (`u16`)

<a id="rst-root-id-binary"></a>



#### root-id (`binary`)

- **struct**:

  [ifla-bridge-id](#rst-rt-link-definition-ifla-bridge-id)

<a id="rst-bridge-id-binary"></a>



#### bridge-id (`binary`)

- **struct**:

  [ifla-bridge-id](#rst-rt-link-definition-ifla-bridge-id)

<a id="rst-root-port-u16"></a>



#### root-port (`u16`)

<a id="rst-root-path-cost-u32"></a>



#### root-path-cost (`u32`)

<a id="rst-topology-change-u8"></a>



#### topology-change (`u8`)

<a id="rst-topology-change-detected-u8"></a>



#### topology-change-detected (`u8`)

<a id="rst-hello-timer-u64"></a>



#### hello-timer (`u64`)

<a id="rst-tcn-timer-u64"></a>



#### tcn-timer (`u64`)

<a id="rst-topology-change-timer-u64"></a>



#### topology-change-timer (`u64`)

<a id="rst-gc-timer-u64"></a>



#### gc-timer (`u64`)

<a id="rst-group-addr-binary"></a>



#### group-addr (`binary`)

- **display-hint**:

  mac

<a id="rst-fdb-flush-binary"></a>



#### fdb-flush (`binary`)

<a id="rst-mcast-router-u8"></a>



#### mcast-router (`u8`)

<a id="rst-mcast-snooping-u8"></a>



#### mcast-snooping (`u8`)

<a id="rst-mcast-query-use-ifaddr-u8"></a>



#### mcast-query-use-ifaddr (`u8`)

<a id="rst-mcast-querier-u8"></a>



#### mcast-querier (`u8`)

<a id="rst-mcast-hash-elasticity-u32"></a>



#### mcast-hash-elasticity (`u32`)

<a id="rst-mcast-hash-max-u32"></a>



#### mcast-hash-max (`u32`)

<a id="rst-mcast-last-member-cnt-u32"></a>



#### mcast-last-member-cnt (`u32`)

<a id="rst-mcast-startup-query-cnt-u32"></a>



#### mcast-startup-query-cnt (`u32`)

<a id="rst-mcast-last-member-intvl-u64"></a>



#### mcast-last-member-intvl (`u64`)

<a id="rst-mcast-membership-intvl-u64"></a>



#### mcast-membership-intvl (`u64`)

<a id="rst-mcast-querier-intvl-u64"></a>



#### mcast-querier-intvl (`u64`)

<a id="rst-mcast-query-intvl-u64"></a>



#### mcast-query-intvl (`u64`)

<a id="rst-mcast-query-response-intvl-u64"></a>



#### mcast-query-response-intvl (`u64`)

<a id="rst-mcast-startup-query-intvl-u64"></a>



#### mcast-startup-query-intvl (`u64`)

<a id="rst-nf-call-iptables-u8"></a>



#### nf-call-iptables (`u8`)

<a id="rst-nf-call-ip6tables-u8"></a>



#### nf-call-ip6tables (`u8`)

<a id="rst-nf-call-arptables-u8"></a>



#### nf-call-arptables (`u8`)

<a id="rst-vlan-default-pvid-u16"></a>



#### vlan-default-pvid (`u16`)

<a id="rst-pad-pad-2"></a>



#### pad (`pad`)

<a id="rst-vlan-stats-enabled-u8"></a>



#### vlan-stats-enabled (`u8`)

<a id="rst-mcast-stats-enabled-u8"></a>



#### mcast-stats-enabled (`u8`)

<a id="rst-mcast-igmp-version-u8"></a>



#### mcast-igmp-version (`u8`)

<a id="rst-mcast-mld-version-u8"></a>



#### mcast-mld-version (`u8`)

<a id="rst-vlan-stats-per-port-u8"></a>



#### vlan-stats-per-port (`u8`)

<a id="rst-multi-boolopt-binary"></a>



#### multi-boolopt (`binary`)

- **struct**:

  [br-boolopt-multi](#rst-rt-link-definition-br-boolopt-multi)

<a id="rst-mcast-querier-state-binary"></a>



#### mcast-querier-state (`binary`)

<a id="rst-fdb-n-learned-u32"></a>



#### fdb-n-learned (`u32`)

<a id="rst-fdb-max-learned-u32"></a>



#### fdb-max-learned (`u32`)

<a id="rst-linkinfo-brport-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-brport-attrs"></a>



### linkinfo-brport-attrs

<a id="rst-state-u8-1"></a>



#### state (`u8`)

<a id="rst-priority-u16-1"></a>



#### priority (`u16`)

<a id="rst-cost-u32"></a>



#### cost (`u32`)

<a id="rst-mode-flag"></a>



#### mode (`flag`)

<a id="rst-guard-flag"></a>



#### guard (`flag`)

<a id="rst-protect-flag"></a>



#### protect (`flag`)

<a id="rst-fast-leave-flag"></a>



#### fast-leave (`flag`)

<a id="rst-learning-flag"></a>



#### learning (`flag`)

<a id="rst-unicast-flood-flag"></a>



#### unicast-flood (`flag`)

<a id="rst-proxyarp-flag"></a>



#### proxyarp (`flag`)

<a id="rst-learning-sync-flag"></a>



#### learning-sync (`flag`)

<a id="rst-proxyarp-wifi-flag"></a>



#### proxyarp-wifi (`flag`)

<a id="rst-root-id-binary-1"></a>



#### root-id (`binary`)

- **struct**:

  [ifla-bridge-id](#rst-rt-link-definition-ifla-bridge-id)

<a id="rst-bridge-id-binary-1"></a>



#### bridge-id (`binary`)

- **struct**:

  [ifla-bridge-id](#rst-rt-link-definition-ifla-bridge-id)

<a id="rst-designated-port-u16"></a>



#### designated-port (`u16`)

<a id="rst-designated-cost-u16"></a>



#### designated-cost (`u16`)

<a id="rst-id-u16"></a>



#### id (`u16`)

<a id="rst-no-u16"></a>



#### no (`u16`)

<a id="rst-topology-change-ack-u8"></a>



#### topology-change-ack (`u8`)

<a id="rst-config-pending-u8"></a>



#### config-pending (`u8`)

<a id="rst-message-age-timer-u64"></a>



#### message-age-timer (`u64`)

<a id="rst-forward-delay-timer-u64"></a>



#### forward-delay-timer (`u64`)

<a id="rst-hold-timer-u64"></a>



#### hold-timer (`u64`)

<a id="rst-flush-flag"></a>



#### flush (`flag`)

<a id="rst-multicast-router-u8"></a>



#### multicast-router (`u8`)

<a id="rst-pad-pad-3"></a>



#### pad (`pad`)

<a id="rst-mcast-flood-flag"></a>



#### mcast-flood (`flag`)

<a id="rst-mcast-to-ucast-flag"></a>



#### mcast-to-ucast (`flag`)

<a id="rst-vlan-tunnel-flag"></a>



#### vlan-tunnel (`flag`)

<a id="rst-bcast-flood-flag"></a>



#### bcast-flood (`flag`)

<a id="rst-group-fwd-mask-u16-1"></a>



#### group-fwd-mask (`u16`)

<a id="rst-neigh-suppress-flag"></a>



#### neigh-suppress (`flag`)

<a id="rst-isolated-flag"></a>



#### isolated (`flag`)

<a id="rst-backup-port-u32"></a>



#### backup-port (`u32`)

<a id="rst-mrp-ring-open-flag"></a>



#### mrp-ring-open (`flag`)

<a id="rst-mrp-in-open-flag"></a>



#### mrp-in-open (`flag`)

<a id="rst-mcast-eht-hosts-limit-u32"></a>



#### mcast-eht-hosts-limit (`u32`)

<a id="rst-mcast-eht-hosts-cnt-u32"></a>



#### mcast-eht-hosts-cnt (`u32`)

<a id="rst-locked-flag"></a>



#### locked (`flag`)

<a id="rst-mab-flag"></a>



#### mab (`flag`)

<a id="rst-mcast-n-groups-u32"></a>



#### mcast-n-groups (`u32`)

<a id="rst-mcast-max-groups-u32"></a>



#### mcast-max-groups (`u32`)

<a id="rst-neigh-vlan-suppress-flag"></a>



#### neigh-vlan-suppress (`flag`)

<a id="rst-backup-nhid-u32"></a>



#### backup-nhid (`u32`)

<a id="rst-linkinfo-gre-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-gre-attrs"></a>



### linkinfo-gre-attrs

<a id="rst-link-u32-1"></a>



#### link (`u32`)

<a id="rst-iflags-u16"></a>



#### iflags (`u16`)

- **byte-order**:

  big-endian

<a id="rst-oflags-u16"></a>



#### oflags (`u16`)

- **byte-order**:

  big-endian

<a id="rst-ikey-u32"></a>



#### ikey (`u32`)

- **byte-order**:

  big-endian

<a id="rst-okey-u32"></a>



#### okey (`u32`)

- **byte-order**:

  big-endian

<a id="rst-local-binary"></a>



#### local (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-remote-binary"></a>



#### remote (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-ttl-u8"></a>



#### ttl (`u8`)

<a id="rst-tos-u8"></a>



#### tos (`u8`)

<a id="rst-pmtudisc-u8"></a>



#### pmtudisc (`u8`)

<a id="rst-encap-limit-u8"></a>



#### encap-limit (`u8`)

<a id="rst-flowinfo-u32"></a>



#### flowinfo (`u32`)

- **byte-order**:

  big-endian

<a id="rst-flags-u32"></a>



#### flags (`u32`)

<a id="rst-encap-type-u16"></a>



#### encap-type (`u16`)

<a id="rst-encap-flags-u16"></a>



#### encap-flags (`u16`)

<a id="rst-encap-sport-u16"></a>



#### encap-sport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-encap-dport-u16"></a>



#### encap-dport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-collect-metadata-flag"></a>



#### collect-metadata (`flag`)

<a id="rst-ignore-df-u8"></a>



#### ignore-df (`u8`)

<a id="rst-fwmark-u32"></a>



#### fwmark (`u32`)

<a id="rst-erspan-index-u32"></a>



#### erspan-index (`u32`)

<a id="rst-erspan-ver-u8"></a>



#### erspan-ver (`u8`)

<a id="rst-erspan-dir-u8"></a>



#### erspan-dir (`u8`)

<a id="rst-erspan-hwid-u16"></a>



#### erspan-hwid (`u16`)

<a id="rst-linkinfo-gre6-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-gre6-attrs"></a>



### linkinfo-gre6-attrs

<a id="rst-link"></a>



#### link

<a id="rst-iflags"></a>



#### iflags

<a id="rst-oflags"></a>



#### oflags

<a id="rst-ikey"></a>



#### ikey

<a id="rst-okey"></a>



#### okey

<a id="rst-local"></a>



#### local

- **display-hint**:

  ipv6

<a id="rst-remote"></a>



#### remote

- **display-hint**:

  ipv6

<a id="rst-ttl"></a>



#### ttl

<a id="rst-encap-limit"></a>



#### encap-limit

<a id="rst-flowinfo"></a>



#### flowinfo

<a id="rst-flags"></a>



#### flags

<a id="rst-encap-type"></a>



#### encap-type

<a id="rst-encap-flags"></a>



#### encap-flags

<a id="rst-encap-sport"></a>



#### encap-sport

<a id="rst-encap-dport"></a>



#### encap-dport

<a id="rst-collect-metadata"></a>



#### collect-metadata

<a id="rst-fwmark"></a>



#### fwmark

<a id="rst-erspan-index"></a>



#### erspan-index

<a id="rst-erspan-ver"></a>



#### erspan-ver

<a id="rst-erspan-dir"></a>



#### erspan-dir

<a id="rst-erspan-hwid"></a>



#### erspan-hwid

<a id="rst-linkinfo-vti-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-vti-attrs"></a>



### linkinfo-vti-attrs

<a id="rst-link-u32-2"></a>



#### link (`u32`)

<a id="rst-ikey-u32-1"></a>



#### ikey (`u32`)

- **byte-order**:

  big-endian

<a id="rst-okey-u32-1"></a>



#### okey (`u32`)

- **byte-order**:

  big-endian

<a id="rst-local-binary-1"></a>



#### local (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-remote-binary-1"></a>



#### remote (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-fwmark-u32-1"></a>



#### fwmark (`u32`)

<a id="rst-linkinfo-vti6-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-vti6-attrs"></a>



### linkinfo-vti6-attrs

<a id="rst-link-1"></a>



#### link

<a id="rst-ikey-1"></a>



#### ikey

<a id="rst-okey-1"></a>



#### okey

<a id="rst-local-1"></a>



#### local

- **display-hint**:

  ipv6

<a id="rst-remote-1"></a>



#### remote

- **display-hint**:

  ipv6

<a id="rst-fwmark-1"></a>



#### fwmark

<a id="rst-linkinfo-geneve-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-geneve-attrs"></a>



### linkinfo-geneve-attrs

<a id="rst-id-u32"></a>



#### id (`u32`)

<a id="rst-remote-u32"></a>



#### remote (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-ttl-u8-1"></a>



#### ttl (`u8`)

<a id="rst-tos-u8-1"></a>



#### tos (`u8`)

<a id="rst-port-u16"></a>



#### port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-collect-metadata-flag-1"></a>



#### collect-metadata (`flag`)

<a id="rst-remote6-binary"></a>



#### remote6 (`binary`)

- **display-hint**:

  ipv6

<a id="rst-udp-csum-u8"></a>



#### udp-csum (`u8`)

<a id="rst-udp-zero-csum6-tx-u8"></a>



#### udp-zero-csum6-tx (`u8`)

<a id="rst-udp-zero-csum6-rx-u8"></a>



#### udp-zero-csum6-rx (`u8`)

<a id="rst-label-u32"></a>



#### label (`u32`)

- **byte-order**:

  big-endian

<a id="rst-ttl-inherit-u8"></a>



#### ttl-inherit (`u8`)

<a id="rst-df-u8"></a>



#### df (`u8`)

<a id="rst-inner-proto-inherit-flag"></a>



#### inner-proto-inherit (`flag`)

<a id="rst-port-range-binary"></a>



#### port-range (`binary`)

- **struct**:

  [ifla-geneve-port-range](#rst-rt-link-definition-ifla-geneve-port-range)

<a id="rst-gro-hint-flag"></a>



#### gro-hint (`flag`)

<a id="rst-linkinfo-hsr-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-hsr-attrs"></a>



### linkinfo-hsr-attrs

<a id="rst-slave1-u32"></a>



#### slave1 (`u32`)

<a id="rst-slave2-u32"></a>



#### slave2 (`u32`)

<a id="rst-multicast-spec-u8"></a>



#### multicast-spec (`u8`)

<a id="rst-supervision-addr-binary"></a>



#### supervision-addr (`binary`)

- **display-hint**:

  mac

<a id="rst-seq-nr-u16"></a>



#### seq-nr (`u16`)

<a id="rst-version-u8"></a>



#### version (`u8`)

<a id="rst-protocol-u8"></a>



#### protocol (`u8`)

<a id="rst-interlink-u32"></a>



#### interlink (`u32`)

<a id="rst-linkinfo-iptun-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-iptun-attrs"></a>



### linkinfo-iptun-attrs

<a id="rst-link-u32-3"></a>



#### link (`u32`)

<a id="rst-local-binary-2"></a>



#### local (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-remote-binary-2"></a>



#### remote (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-ttl-u8-2"></a>



#### ttl (`u8`)

<a id="rst-tos-u8-2"></a>



#### tos (`u8`)

<a id="rst-encap-limit-u8-1"></a>



#### encap-limit (`u8`)

<a id="rst-flowinfo-u32-1"></a>



#### flowinfo (`u32`)

- **byte-order**:

  big-endian

<a id="rst-flags-u16"></a>



#### flags (`u16`)

- **byte-order**:

  big-endian

<a id="rst-proto-u8"></a>



#### proto (`u8`)

<a id="rst-pmtudisc-u8-1"></a>



#### pmtudisc (`u8`)

<a id="rst-rd-prefix-binary"></a>



#### 6rd-prefix (`binary`)

- **display-hint**:

  ipv6

<a id="rst-rd-relay-prefix-u32"></a>



#### 6rd-relay-prefix (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-rd-prefixlen-u16"></a>



#### 6rd-prefixlen (`u16`)

<a id="rst-rd-relay-prefixlen-u16"></a>



#### 6rd-relay-prefixlen (`u16`)

<a id="rst-encap-type-u16-1"></a>



#### encap-type (`u16`)

<a id="rst-encap-flags-u16-1"></a>



#### encap-flags (`u16`)

<a id="rst-encap-sport-u16-1"></a>



#### encap-sport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-encap-dport-u16-1"></a>



#### encap-dport (`u16`)

- **byte-order**:

  big-endian

<a id="rst-collect-metadata-flag-2"></a>



#### collect-metadata (`flag`)

<a id="rst-fwmark-u32-2"></a>



#### fwmark (`u32`)

<a id="rst-linkinfo-ip6tnl-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-ip6tnl-attrs"></a>



### linkinfo-ip6tnl-attrs

<a id="rst-link-2"></a>



#### link

<a id="rst-local-2"></a>



#### local

- **display-hint**:

  ipv6

<a id="rst-remote-2"></a>



#### remote

- **display-hint**:

  ipv6

<a id="rst-ttl-1"></a>



#### ttl

<a id="rst-encap-limit-1"></a>



#### encap-limit

<a id="rst-flowinfo-1"></a>



#### flowinfo

<a id="rst-flags-u32-1"></a>



#### flags (`u32`)

<a id="rst-proto"></a>



#### proto

<a id="rst-encap-type-1"></a>



#### encap-type

<a id="rst-encap-flags-1"></a>



#### encap-flags

<a id="rst-encap-sport-1"></a>



#### encap-sport

<a id="rst-encap-dport-1"></a>



#### encap-dport

<a id="rst-collect-metadata-1"></a>



#### collect-metadata

<a id="rst-fwmark-2"></a>



#### fwmark

<a id="rst-linkinfo-tun-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-tun-attrs"></a>



### linkinfo-tun-attrs

<a id="rst-owner-u32"></a>



#### owner (`u32`)

<a id="rst-group-u32-1"></a>



#### group (`u32`)

<a id="rst-type-u8"></a>



#### type (`u8`)

<a id="rst-pi-u8"></a>



#### pi (`u8`)

<a id="rst-vnet-hdr-u8"></a>



#### vnet-hdr (`u8`)

<a id="rst-persist-u8"></a>



#### persist (`u8`)

<a id="rst-multi-queue-u8"></a>



#### multi-queue (`u8`)

<a id="rst-num-queues-u32"></a>



#### num-queues (`u32`)

<a id="rst-num-disabled-queues-u32"></a>



#### num-disabled-queues (`u32`)

<a id="rst-linkinfo-vlan-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-vlan-attrs"></a>



### linkinfo-vlan-attrs

<a id="rst-id-u16-1"></a>



#### id (`u16`)

<a id="rst-flags-binary"></a>



#### flags (`binary`)

- **struct**:

  [ifla-vlan-flags](#rst-rt-link-definition-ifla-vlan-flags)

<a id="rst-egress-qos-nest"></a>



#### egress-qos (`nest`)

- **nested-attributes**:

  [ifla-vlan-qos](#rst-rt-link-attribute-set-ifla-vlan-qos)

<a id="rst-ingress-qos-nest"></a>



#### ingress-qos (`nest`)

- **nested-attributes**:

  [ifla-vlan-qos](#rst-rt-link-attribute-set-ifla-vlan-qos)

<a id="rst-protocol-u16"></a>



#### protocol (`u16`)

- **enum**:

  [vlan-protocols](#rst-rt-link-definition-vlan-protocols)

- **byte-order**:

  big-endian

<a id="rst-ifla-vlan-qos"></a>
<a id="rst-rt-link-attribute-set-ifla-vlan-qos"></a>



### ifla-vlan-qos

<a id="rst-mapping-binary"></a>



#### mapping (`binary`)

- **multi-attr**:

  True

- **struct**:

  [ifla-vlan-qos-mapping](#rst-rt-link-definition-ifla-vlan-qos-mapping)

<a id="rst-linkinfo-vrf-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-vrf-attrs"></a>



### linkinfo-vrf-attrs

<a id="rst-table-u32"></a>



#### table (`u32`)

<a id="rst-xdp-attrs"></a>
<a id="rst-rt-link-attribute-set-xdp-attrs"></a>



### xdp-attrs

<a id="rst-fd-s32"></a>



#### fd (`s32`)

<a id="rst-attached-u8"></a>



#### attached (`u8`)

<a id="rst-flags-u32-2"></a>



#### flags (`u32`)

<a id="rst-prog-id-u32"></a>



#### prog-id (`u32`)

<a id="rst-drv-prog-id-u32"></a>



#### drv-prog-id (`u32`)

<a id="rst-skb-prog-id-u32"></a>



#### skb-prog-id (`u32`)

<a id="rst-hw-prog-id-u32"></a>



#### hw-prog-id (`u32`)

<a id="rst-expected-fd-s32"></a>



#### expected-fd (`s32`)

<a id="rst-ifla-attrs"></a>
<a id="rst-rt-link-attribute-set-ifla-attrs"></a>



### ifla-attrs

<a id="rst-conf-binary"></a>



#### conf (`binary`)

- **sub-type**:

  u32

- **doc**:

  u32 indexed by ipv4-devconf - 1 on output, on input it's a nest

<a id="rst-ifla6-attrs"></a>
<a id="rst-rt-link-attribute-set-ifla6-attrs"></a>



### ifla6-attrs

<a id="rst-flags-u32-3"></a>



#### flags (`u32`)

<a id="rst-conf-binary-1"></a>



#### conf (`binary`)

- **sub-type**:

  u32

- **doc**:

  u32 indexed by ipv6-devconf - 1 on output, on input it's a nest

<a id="rst-stats-binary-1"></a>



#### stats (`binary`)

- **sub-type**:

  u64

<a id="rst-mcast-binary"></a>



#### mcast (`binary`)

<a id="rst-cacheinfo-binary"></a>



#### cacheinfo (`binary`)

- **struct**:

  [ifla-cacheinfo](#rst-rt-link-definition-ifla-cacheinfo)

<a id="rst-icmp6stats-binary"></a>



#### icmp6stats (`binary`)

- **sub-type**:

  u64

<a id="rst-token-binary"></a>



#### token (`binary`)

<a id="rst-addr-gen-mode-u8"></a>



#### addr-gen-mode (`u8`)

<a id="rst-ra-mtu-u32"></a>



#### ra-mtu (`u32`)

<a id="rst-mctp-attrs"></a>
<a id="rst-rt-link-attribute-set-mctp-attrs"></a>



### mctp-attrs

<a id="rst-net-u32"></a>



#### net (`u32`)

<a id="rst-phys-binding-u8"></a>



#### phys-binding (`u8`)

<a id="rst-stats-attrs"></a>
<a id="rst-rt-link-attribute-set-stats-attrs"></a>



### stats-attrs

<a id="rst-link-64-binary"></a>



#### link-64 (`binary`)

- **struct**:

  [rtnl-link-stats64](#rst-rt-link-definition-rtnl-link-stats64)

<a id="rst-link-xstats-binary"></a>



#### link-xstats (`binary`)

<a id="rst-link-xstats-slave-binary"></a>



#### link-xstats-slave (`binary`)

<a id="rst-link-offload-xstats-nest"></a>



#### link-offload-xstats (`nest`)

- **nested-attributes**:

  [link-offload-xstats](#rst-rt-link-attribute-set-link-offload-xstats)

<a id="rst-af-spec-binary"></a>



#### af-spec (`binary`)

<a id="rst-link-offload-xstats"></a>
<a id="rst-rt-link-attribute-set-link-offload-xstats"></a>



### link-offload-xstats

<a id="rst-cpu-hit-binary"></a>



#### cpu-hit (`binary`)

<a id="rst-hw-s-info-indexed-array"></a>



#### hw-s-info (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [hw-s-info-one](#rst-rt-link-attribute-set-hw-s-info-one)

<a id="rst-l3-stats-binary"></a>



#### l3-stats (`binary`)

<a id="rst-hw-s-info-one"></a>
<a id="rst-rt-link-attribute-set-hw-s-info-one"></a>



### hw-s-info-one

<a id="rst-request-u8"></a>



#### request (`u8`)

<a id="rst-used-u8"></a>



#### used (`u8`)

<a id="rst-link-dpll-pin-attrs"></a>
<a id="rst-rt-link-attribute-set-link-dpll-pin-attrs"></a>



### link-dpll-pin-attrs

<a id="rst-id-u32-1"></a>



#### id (`u32`)

<a id="rst-linkinfo-netkit-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-netkit-attrs"></a>



### linkinfo-netkit-attrs

<a id="rst-peer-info-binary"></a>



#### peer-info (`binary`)

<a id="rst-primary-u8"></a>



#### primary (`u8`)

<a id="rst-policy-u32"></a>



#### policy (`u32`)

- **enum**:

  [netkit-policy](#rst-rt-link-definition-netkit-policy)

<a id="rst-peer-policy-u32"></a>



#### peer-policy (`u32`)

- **enum**:

  [netkit-policy](#rst-rt-link-definition-netkit-policy)

<a id="rst-mode-u32"></a>



#### mode (`u32`)

- **enum**:

  [netkit-mode](#rst-rt-link-definition-netkit-mode)

<a id="rst-scrub-u32"></a>



#### scrub (`u32`)

- **enum**:

  [netkit-scrub](#rst-rt-link-definition-netkit-scrub)

<a id="rst-peer-scrub-u32"></a>



#### peer-scrub (`u32`)

- **enum**:

  [netkit-scrub](#rst-rt-link-definition-netkit-scrub)

<a id="rst-headroom-u16-1"></a>



#### headroom (`u16`)

<a id="rst-tailroom-u16-1"></a>



#### tailroom (`u16`)

<a id="rst-linkinfo-ovpn-attrs"></a>
<a id="rst-rt-link-attribute-set-linkinfo-ovpn-attrs"></a>



### linkinfo-ovpn-attrs

<a id="rst-mode-u8-1"></a>



#### mode (`u8`)

- **enum**:

  [ovpn-mode](#rst-rt-link-definition-ovpn-mode)

<a id="rst-sub-messages"></a>



## Sub-messages

<a id="rst-linkinfo-data-msg"></a>
<a id="rst-rt-link-sub-message-linkinfo-data-msg"></a>



### linkinfo-data-msg

- **bond**

  - **attribute-set**:

    [linkinfo-bond-attrs](#rst-rt-link-attribute-set-linkinfo-bond-attrs)

- **bridge**

  - **attribute-set**:

    [linkinfo-bridge-attrs](#rst-rt-link-attribute-set-linkinfo-bridge-attrs)

- **erspan**

  - **attribute-set**:

    [linkinfo-gre-attrs](#rst-rt-link-attribute-set-linkinfo-gre-attrs)

- **gre**

  - **attribute-set**:

    [linkinfo-gre-attrs](#rst-rt-link-attribute-set-linkinfo-gre-attrs)

- **gretap**

  - **attribute-set**:

    [linkinfo-gre-attrs](#rst-rt-link-attribute-set-linkinfo-gre-attrs)

- **ip6gre**

  - **attribute-set**:

    [linkinfo-gre6-attrs](#rst-rt-link-attribute-set-linkinfo-gre6-attrs)

- **geneve**

  - **attribute-set**:

    [linkinfo-geneve-attrs](#rst-rt-link-attribute-set-linkinfo-geneve-attrs)

- **hsr**

  - **attribute-set**:

    [linkinfo-hsr-attrs](#rst-rt-link-attribute-set-linkinfo-hsr-attrs)

- **ipip**

  - **attribute-set**:

    [linkinfo-iptun-attrs](#rst-rt-link-attribute-set-linkinfo-iptun-attrs)

- **ip6tnl**

  - **attribute-set**:

    [linkinfo-ip6tnl-attrs](#rst-rt-link-attribute-set-linkinfo-ip6tnl-attrs)

- **sit**

  - **attribute-set**:

    [linkinfo-iptun-attrs](#rst-rt-link-attribute-set-linkinfo-iptun-attrs)

- **tun**

  - **attribute-set**:

    [linkinfo-tun-attrs](#rst-rt-link-attribute-set-linkinfo-tun-attrs)

- **vlan**

  - **attribute-set**:

    [linkinfo-vlan-attrs](#rst-rt-link-attribute-set-linkinfo-vlan-attrs)

- **vrf**

  - **attribute-set**:

    [linkinfo-vrf-attrs](#rst-rt-link-attribute-set-linkinfo-vrf-attrs)

- **vti**

  - **attribute-set**:

    [linkinfo-vti-attrs](#rst-rt-link-attribute-set-linkinfo-vti-attrs)

- **vti6**

  - **attribute-set**:

    [linkinfo-vti6-attrs](#rst-rt-link-attribute-set-linkinfo-vti6-attrs)

- **netkit**

  - **attribute-set**:

    [linkinfo-netkit-attrs](#rst-rt-link-attribute-set-linkinfo-netkit-attrs)

- **ovpn**

  - **attribute-set**:

    [linkinfo-ovpn-attrs](#rst-rt-link-attribute-set-linkinfo-ovpn-attrs)

<a id="rst-linkinfo-member-data-msg"></a>
<a id="rst-rt-link-sub-message-linkinfo-member-data-msg"></a>



### linkinfo-member-data-msg

- **bridge**

  - **attribute-set**:

    [linkinfo-brport-attrs](#rst-rt-link-attribute-set-linkinfo-brport-attrs)

- **bond**

  - **attribute-set**:

    [bond-slave-attrs](#rst-rt-link-attribute-set-bond-slave-attrs)

---

# Family rt-neigh netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the rt-neigh Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-rt-neigh-netlink-specification"></a>
<a id="rst-netlink-rt-neigh"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



IP neighbour management over rtnetlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-newneigh"></a>
<a id="rst-rt-neigh-operation-newneigh"></a>



### newneigh



Add new neighbour entry

- **fixed-header**:

  [ndmsg](#rst-rt-neigh-definition-ndmsg)

- **attribute-set**:

  [neighbour-attrs](#rst-rt-neigh-attribute-set-neighbour-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`dst`, `lladdr`, `probes`, `vlan`, `port`, `vni`, `ifindex`, `master`, `protocol`, `nh-id`, `flags-ext`, `fdb-ext-attrs`\]

<a id="rst-delneigh"></a>
<a id="rst-rt-neigh-operation-delneigh"></a>



### delneigh



Remove an existing neighbour entry

- **fixed-header**:

  [ndmsg](#rst-rt-neigh-definition-ndmsg)

- **attribute-set**:

  [neighbour-attrs](#rst-rt-neigh-attribute-set-neighbour-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`dst`, `ifindex`\]

<a id="rst-delneigh-ntf"></a>
<a id="rst-rt-neigh-operation-delneigh-ntf"></a>



### delneigh-ntf



Notify a neighbour deletion

- **value**:

  29

- **notify**:

  getneigh

- **fixed-header**:

  [ndmsg](#rst-rt-neigh-definition-ndmsg)

<a id="rst-getneigh"></a>
<a id="rst-rt-neigh-operation-getneigh"></a>



### getneigh



Get or dump neighbour entries

- **fixed-header**:

  [ndmsg](#rst-rt-neigh-definition-ndmsg)

- **attribute-set**:

  [neighbour-attrs](#rst-rt-neigh-attribute-set-neighbour-attrs)

- **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`\]

<a id="rst-newneigh-ntf"></a>
<a id="rst-rt-neigh-operation-newneigh-ntf"></a>



### newneigh-ntf



Notify a neighbour creation

- **value**:

  28

- **notify**:

  getneigh

- **fixed-header**:

  [ndmsg](#rst-rt-neigh-definition-ndmsg)

<a id="rst-getneightbl"></a>
<a id="rst-rt-neigh-operation-getneightbl"></a>



### getneightbl



Get or dump neighbour tables

- **fixed-header**:

  [ndtmsg](#rst-rt-neigh-definition-ndtmsg)

- **attribute-set**:

  [ndt-attrs](#rst-rt-neigh-attribute-set-ndt-attrs)

- **dump**:

  **request**

  **reply**

  - **attributes**:

    \[`name`, `thresh1`, `thresh2`, `thresh3`, `config`, `parms`, `stats`, `gc-interval`\]

<a id="rst-setneightbl"></a>
<a id="rst-rt-neigh-operation-setneightbl"></a>



### setneightbl



Set neighbour tables

- **fixed-header**:

  [ndtmsg](#rst-rt-neigh-definition-ndtmsg)

- **attribute-set**:

  [ndt-attrs](#rst-rt-neigh-attribute-set-ndt-attrs)

- **do**:

  **request**

  - **attributes**:

    \[`name`, `thresh1`, `thresh2`, `thresh3`, `parms`, `gc-interval`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- rtnlgrp-neigh


<a id="rst-definitions"></a>



## Definitions

<a id="rst-ndmsg"></a>
<a id="rst-rt-neigh-definition-ndmsg"></a>



### ndmsg

- **type**:

  struct

- **members**:

  - **ndm-family (`u8`)**

  - **ndm-pad (`pad`)**

  - **ndm-ifindex (`s32`)**

  - **ndm-state (`u16`)**

  - **ndm-flags (`u8`)**

  - **ndm-type (`u8`)**

<a id="rst-ndtmsg"></a>
<a id="rst-rt-neigh-definition-ndtmsg"></a>



### ndtmsg

- **type**:

  struct

- **members**:

  - **family (`u8`)**

<a id="rst-nud-state"></a>
<a id="rst-rt-neigh-definition-nud-state"></a>



### nud-state

- **type**:

  flags

- **enum-name**:

  None

- **entries**:

  - `incomplete`


  - `reachable`


  - `stale`


  - `delay`


  - `probe`


  - `failed`


  - `noarp`


  - `permanent`

<a id="rst-ntf-flags"></a>
<a id="rst-rt-neigh-definition-ntf-flags"></a>



### ntf-flags

- **type**:

  flags

- **enum-name**:

  None

- **entries**:

  - `use`


  - `self`


  - `master`


  - `proxy`


  - `ext-learned`


  - `offloaded`


  - `sticky`


  - `router`

<a id="rst-ntf-ext-flags"></a>
<a id="rst-rt-neigh-definition-ntf-ext-flags"></a>



### ntf-ext-flags

- **type**:

  flags

- **enum-name**:

  None

- **entries**:

  - `managed`


  - `locked`


  - `ext-validated`

<a id="rst-rtm-type"></a>
<a id="rst-rt-neigh-definition-rtm-type"></a>



### rtm-type

- **type**:

  enum

- **enum-name**:

  None

- **entries**:

  - `unspec`


  - `unicast`


  - `local`


  - `broadcast`


  - `anycast`


  - `multicast`


  - `blackhole`


  - `unreachable`


  - `prohibit`


  - `throw`


  - `nat`


  - `xresolve`

<a id="rst-nda-cacheinfo"></a>
<a id="rst-rt-neigh-definition-nda-cacheinfo"></a>



### nda-cacheinfo

- **type**:

  struct

- **members**:

  - **confirmed (`u32`)**

  - **used (`u32`)**

  - **updated (`u32`)**

  - **refcnt (`u32`)**

<a id="rst-ndt-config"></a>
<a id="rst-rt-neigh-definition-ndt-config"></a>



### 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`)**

<a id="rst-ndt-stats"></a>
<a id="rst-rt-neigh-definition-ndt-stats"></a>



### 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`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-neighbour-attrs"></a>
<a id="rst-rt-neigh-attribute-set-neighbour-attrs"></a>



### neighbour-attrs

<a id="rst-unspec-binary"></a>



#### unspec (`binary`)

- **value**:

  0

<a id="rst-dst-binary"></a>



#### dst (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-lladdr-binary"></a>



#### lladdr (`binary`)

- **display-hint**:

  mac

<a id="rst-cacheinfo-binary"></a>



#### cacheinfo (`binary`)

- **struct**:

  [nda-cacheinfo](#rst-rt-neigh-definition-nda-cacheinfo)

<a id="rst-probes-u32"></a>



#### probes (`u32`)

<a id="rst-vlan-u16"></a>



#### vlan (`u16`)

<a id="rst-port-u16"></a>



#### port (`u16`)

<a id="rst-vni-u32"></a>



#### vni (`u32`)

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

<a id="rst-master-u32"></a>



#### master (`u32`)

<a id="rst-link-netnsid-s32"></a>



#### link-netnsid (`s32`)

<a id="rst-src-vni-u32"></a>



#### src-vni (`u32`)

<a id="rst-protocol-u8"></a>



#### protocol (`u8`)

<a id="rst-nh-id-u32"></a>



#### nh-id (`u32`)

<a id="rst-fdb-ext-attrs-binary"></a>



#### fdb-ext-attrs (`binary`)

<a id="rst-flags-ext-u32"></a>



#### flags-ext (`u32`)

- **enum**:

  [ntf-ext-flags](#rst-rt-neigh-definition-ntf-ext-flags)

<a id="rst-ndm-state-mask-u16"></a>



#### ndm-state-mask (`u16`)

<a id="rst-ndm-flags-mask-u8"></a>



#### ndm-flags-mask (`u8`)

<a id="rst-ndt-attrs"></a>
<a id="rst-rt-neigh-attribute-set-ndt-attrs"></a>



### ndt-attrs

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-thresh1-u32"></a>



#### thresh1 (`u32`)

<a id="rst-thresh2-u32"></a>



#### thresh2 (`u32`)

<a id="rst-thresh3-u32"></a>



#### thresh3 (`u32`)

<a id="rst-config-binary"></a>



#### config (`binary`)

- **struct**:

  [ndt-config](#rst-rt-neigh-definition-ndt-config)

<a id="rst-parms-nest"></a>



#### parms (`nest`)

- **nested-attributes**:

  [ndtpa-attrs](#rst-rt-neigh-attribute-set-ndtpa-attrs)

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [ndt-stats](#rst-rt-neigh-definition-ndt-stats)

<a id="rst-gc-interval-u64"></a>



#### gc-interval (`u64`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-ndtpa-attrs"></a>
<a id="rst-rt-neigh-attribute-set-ndtpa-attrs"></a>



### ndtpa-attrs

<a id="rst-ifindex-u32-1"></a>



#### ifindex (`u32`)

<a id="rst-refcnt-u32"></a>



#### refcnt (`u32`)

<a id="rst-reachable-time-u64"></a>



#### reachable-time (`u64`)

<a id="rst-base-reachable-time-u64"></a>



#### base-reachable-time (`u64`)

<a id="rst-retrans-time-u64"></a>



#### retrans-time (`u64`)

<a id="rst-gc-staletime-u64"></a>



#### gc-staletime (`u64`)

<a id="rst-delay-probe-time-u64"></a>



#### delay-probe-time (`u64`)

<a id="rst-queue-len-u32"></a>



#### queue-len (`u32`)

<a id="rst-app-probes-u32"></a>



#### app-probes (`u32`)

<a id="rst-ucast-probes-u32"></a>



#### ucast-probes (`u32`)

<a id="rst-mcast-probes-u32"></a>



#### mcast-probes (`u32`)

<a id="rst-anycast-delay-u64"></a>



#### anycast-delay (`u64`)

<a id="rst-proxy-delay-u64"></a>



#### proxy-delay (`u64`)

<a id="rst-proxy-qlen-u32"></a>



#### proxy-qlen (`u32`)

<a id="rst-locktime-u64"></a>



#### locktime (`u64`)

<a id="rst-queue-lenbytes-u32"></a>



#### queue-lenbytes (`u32`)

<a id="rst-mcast-reprobes-u32"></a>



#### mcast-reprobes (`u32`)

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-interval-probe-time-ms-u64"></a>



#### interval-probe-time-ms (`u64`)

---

# Family rt-route netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the rt-route Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-rt-route-netlink-specification"></a>
<a id="rst-netlink-rt-route"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Route configuration over rtnetlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-getroute"></a>
<a id="rst-rt-route-operation-getroute"></a>



### getroute



Dump route information.

- **attribute-set**:

  [route-attrs](#rst-rt-route-attribute-set-route-attrs)

- **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`\]

<a id="rst-newroute"></a>
<a id="rst-rt-route-operation-newroute"></a>



### newroute



Create a new route

- **attribute-set**:

  [route-attrs](#rst-rt-route-attribute-set-route-attrs)

- **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`\]

<a id="rst-delroute"></a>
<a id="rst-rt-route-operation-delroute"></a>



### delroute



Delete an existing route

- **attribute-set**:

  [route-attrs](#rst-rt-route-attribute-set-route-attrs)

- **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`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-rtm-type"></a>
<a id="rst-rt-route-definition-rtm-type"></a>



### rtm-type

- **name-prefix**:

  rtn-

- **enum-name**:

  None

- **type**:

  enum

- **entries**:

  - `unspec`


  - `unicast`


  - `local`


  - `broadcast`


  - `anycast`


  - `multicast`


  - `blackhole`


  - `unreachable`


  - `prohibit`


  - `throw`


  - `nat`


  - `xresolve`

<a id="rst-rtmsg"></a>
<a id="rst-rt-route-definition-rtmsg"></a>



### 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`)**

<a id="rst-rta-cacheinfo"></a>
<a id="rst-rt-route-definition-rta-cacheinfo"></a>



### rta-cacheinfo

- **type**:

  struct

- **members**:

  - **rta-clntref (`u32`)**

  - **rta-lastuse (`u32`)**

  - **rta-expires (`u32`)**

  - **rta-error (`u32`)**

  - **rta-used (`u32`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-route-attrs"></a>
<a id="rst-rt-route-attribute-set-route-attrs"></a>



### route-attrs

<a id="rst-dst-binary"></a>



#### dst (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-src-binary"></a>



#### src (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-iif-u32"></a>



#### iif (`u32`)

<a id="rst-oif-u32"></a>



#### oif (`u32`)

<a id="rst-gateway-binary"></a>



#### gateway (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-priority-u32"></a>



#### priority (`u32`)

<a id="rst-prefsrc-binary"></a>



#### prefsrc (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-metrics-nest"></a>



#### metrics (`nest`)

- **nested-attributes**:

  [metrics](#rst-rt-route-attribute-set-metrics)

<a id="rst-multipath-binary"></a>



#### multipath (`binary`)

<a id="rst-protoinfo-binary"></a>



#### protoinfo (`binary`)

<a id="rst-flow-u32"></a>



#### flow (`u32`)

<a id="rst-cacheinfo-binary"></a>



#### cacheinfo (`binary`)

- **struct**:

  [rta-cacheinfo](#rst-rt-route-definition-rta-cacheinfo)

<a id="rst-session-binary"></a>



#### session (`binary`)

<a id="rst-mp-algo-binary"></a>



#### mp-algo (`binary`)

<a id="rst-table-u32"></a>



#### table (`u32`)

<a id="rst-mark-u32"></a>



#### mark (`u32`)

<a id="rst-mfc-stats-binary"></a>



#### mfc-stats (`binary`)

<a id="rst-via-binary"></a>



#### via (`binary`)

<a id="rst-newdst-binary"></a>



#### newdst (`binary`)

<a id="rst-pref-u8"></a>



#### pref (`u8`)

<a id="rst-encap-type-u16"></a>



#### encap-type (`u16`)

<a id="rst-encap-binary"></a>



#### encap (`binary`)

<a id="rst-expires-u32"></a>



#### expires (`u32`)

<a id="rst-pad-binary"></a>



#### pad (`binary`)

<a id="rst-uid-u32"></a>



#### uid (`u32`)

<a id="rst-ttl-propagate-u8"></a>



#### ttl-propagate (`u8`)

<a id="rst-ip-proto-u8"></a>



#### ip-proto (`u8`)

<a id="rst-sport-u16"></a>



#### sport (`u16`)

<a id="rst-dport-u16"></a>



#### dport (`u16`)

<a id="rst-nh-id-u32"></a>



#### nh-id (`u32`)

<a id="rst-flowlabel-u32"></a>



#### flowlabel (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  hex

<a id="rst-metrics"></a>
<a id="rst-rt-route-attribute-set-metrics"></a>



### metrics

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-lock-u32"></a>



#### lock (`u32`)

<a id="rst-mtu-u32"></a>



#### mtu (`u32`)

<a id="rst-window-u32"></a>



#### window (`u32`)

<a id="rst-rtt-u32"></a>



#### rtt (`u32`)

<a id="rst-rttvar-u32"></a>



#### rttvar (`u32`)

<a id="rst-ssthresh-u32"></a>



#### ssthresh (`u32`)

<a id="rst-cwnd-u32"></a>



#### cwnd (`u32`)

<a id="rst-advmss-u32"></a>



#### advmss (`u32`)

<a id="rst-reordering-u32"></a>



#### reordering (`u32`)

<a id="rst-hoplimit-u32"></a>



#### hoplimit (`u32`)

<a id="rst-initcwnd-u32"></a>



#### initcwnd (`u32`)

<a id="rst-features-u32"></a>



#### features (`u32`)

<a id="rst-rto-min-u32"></a>



#### rto-min (`u32`)

<a id="rst-initrwnd-u32"></a>



#### initrwnd (`u32`)

<a id="rst-quickack-u32"></a>



#### quickack (`u32`)

<a id="rst-cc-algo-string"></a>



#### cc-algo (`string`)

<a id="rst-fastopen-no-cookie-u32"></a>



#### fastopen-no-cookie (`u32`)

---

# Family rt-rule netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the rt-rule Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-rt-rule-netlink-specification"></a>
<a id="rst-netlink-rt-rule"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



FIB rule management over rtnetlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-newrule"></a>
<a id="rst-rt-rule-operation-newrule"></a>



### newrule



Add new FIB rule

- **attribute-set**:

  [fib-rule-attrs](#rst-rt-rule-attribute-set-fib-rule-attrs)

- **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`\]

<a id="rst-newrule-ntf"></a>
<a id="rst-rt-rule-operation-newrule-ntf"></a>



### newrule-ntf



Notify a rule creation

- **value**:

  32

- **notify**:

  getrule

<a id="rst-delrule"></a>
<a id="rst-rt-rule-operation-delrule"></a>



### delrule



Remove an existing FIB rule

- **attribute-set**:

  [fib-rule-attrs](#rst-rt-rule-attribute-set-fib-rule-attrs)

- **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`\]

<a id="rst-delrule-ntf"></a>
<a id="rst-rt-rule-operation-delrule-ntf"></a>



### delrule-ntf



Notify a rule deletion

- **value**:

  33

- **notify**:

  getrule

<a id="rst-getrule"></a>
<a id="rst-rt-rule-operation-getrule"></a>



### getrule



Dump all FIB rules

- **attribute-set**:

  [fib-rule-attrs](#rst-rt-rule-attribute-set-fib-rule-attrs)

- **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`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- rtnlgrp-ipv4-rule


- rtnlgrp-ipv6-rule


<a id="rst-definitions"></a>



## Definitions

<a id="rst-rtgenmsg"></a>
<a id="rst-rt-rule-definition-rtgenmsg"></a>



### rtgenmsg

- **type**:

  struct

- **members**:

  - **family (`u8`)**

<a id="rst-fib-rule-hdr"></a>
<a id="rst-rt-rule-definition-fib-rule-hdr"></a>



### 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`)**

<a id="rst-fr-act"></a>
<a id="rst-rt-rule-definition-fr-act"></a>



### fr-act

- **type**:

  enum

- **enum-name**:

  None

- **entries**:

  - `unspec`


  - `to-tbl`


  - `goto`


  - `nop`


  - `res3`


  - `res4`


  - `blackhole`


  - `unreachable`


  - `prohibit`

<a id="rst-fib-rule-port-range"></a>
<a id="rst-rt-rule-definition-fib-rule-port-range"></a>



### fib-rule-port-range

- **type**:

  struct

- **members**:

  - **start (`u16`)**

  - **end (`u16`)**

<a id="rst-fib-rule-uid-range"></a>
<a id="rst-rt-rule-definition-fib-rule-uid-range"></a>



### fib-rule-uid-range

- **type**:

  struct

- **members**:

  - **start (`u32`)**

  - **end (`u32`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-fib-rule-attrs"></a>
<a id="rst-rt-rule-attribute-set-fib-rule-attrs"></a>



### fib-rule-attrs

<a id="rst-dst-binary"></a>



#### dst (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-src-binary"></a>



#### src (`binary`)

- **display-hint**:

  ipv4-or-v6

<a id="rst-iifname-string"></a>



#### iifname (`string`)

<a id="rst-goto-u32"></a>



#### goto (`u32`)

<a id="rst-unused2-pad"></a>



#### unused2 (`pad`)

<a id="rst-priority-u32"></a>



#### priority (`u32`)

<a id="rst-unused3-pad"></a>



#### unused3 (`pad`)

<a id="rst-unused4-pad"></a>



#### unused4 (`pad`)

<a id="rst-unused5-pad"></a>



#### unused5 (`pad`)

<a id="rst-fwmark-u32"></a>



#### fwmark (`u32`)

- **display-hint**:

  hex

<a id="rst-flow-u32"></a>



#### flow (`u32`)

<a id="rst-tun-id-u64"></a>



#### tun-id (`u64`)

<a id="rst-suppress-ifgroup-u32"></a>



#### suppress-ifgroup (`u32`)

<a id="rst-suppress-prefixlen-u32"></a>



#### suppress-prefixlen (`u32`)

- **display-hint**:

  hex

<a id="rst-table-u32"></a>



#### table (`u32`)

<a id="rst-fwmask-u32"></a>



#### fwmask (`u32`)

- **display-hint**:

  hex

<a id="rst-oifname-string"></a>



#### oifname (`string`)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-l3mdev-u8"></a>



#### l3mdev (`u8`)

<a id="rst-uid-range-binary"></a>



#### uid-range (`binary`)

- **struct**:

  [fib-rule-uid-range](#rst-rt-rule-definition-fib-rule-uid-range)

<a id="rst-protocol-u8"></a>



#### protocol (`u8`)

<a id="rst-ip-proto-u8"></a>



#### ip-proto (`u8`)

<a id="rst-sport-range-binary"></a>



#### sport-range (`binary`)

- **struct**:

  [fib-rule-port-range](#rst-rt-rule-definition-fib-rule-port-range)

<a id="rst-dport-range-binary"></a>



#### dport-range (`binary`)

- **struct**:

  [fib-rule-port-range](#rst-rt-rule-definition-fib-rule-port-range)

<a id="rst-dscp-u8"></a>



#### dscp (`u8`)

<a id="rst-flowlabel-u32"></a>



#### flowlabel (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  hex

<a id="rst-flowlabel-mask-u32"></a>



#### flowlabel-mask (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  hex

<a id="rst-sport-mask-u16"></a>



#### sport-mask (`u16`)

- **display-hint**:

  hex

<a id="rst-dport-mask-u16"></a>



#### dport-mask (`u16`)

- **display-hint**:

  hex

<a id="rst-dscp-mask-u8"></a>



#### dscp-mask (`u8`)

- **display-hint**:

  hex

---

# Family tc netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the tc Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-tc-netlink-specification"></a>
<a id="rst-netlink-tc"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Netlink raw family for tc qdisc, chain, class and filter configuration over rtnetlink.

<a id="rst-operations"></a>



## Operations

<a id="rst-newqdisc"></a>
<a id="rst-tc-operation-newqdisc"></a>



### newqdisc



Create new tc qdisc.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`kind`, `options`, `rate`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-delqdisc"></a>
<a id="rst-tc-operation-delqdisc"></a>



### delqdisc



Delete existing tc qdisc.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

<a id="rst-getqdisc"></a>
<a id="rst-tc-operation-getqdisc"></a>



### getqdisc



Get / dump tc qdisc information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **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`\]

<a id="rst-newtclass"></a>
<a id="rst-tc-operation-newtclass"></a>



### newtclass



Get / dump tc traffic class information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`kind`, `options`, `rate`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-deltclass"></a>
<a id="rst-tc-operation-deltclass"></a>



### deltclass



Get / dump tc traffic class information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

<a id="rst-gettclass"></a>
<a id="rst-tc-operation-gettclass"></a>



### gettclass



Get / dump tc traffic class information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  **reply**

  - **attributes**:

    \[`kind`, `options`, `stats`, `xstats`, `rate`, `fcnt`, `stats2`, `stab`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-newtfilter"></a>
<a id="rst-tc-operation-newtfilter"></a>



### newtfilter



Get / dump tc filter information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`kind`, `options`, `rate`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-deltfilter"></a>
<a id="rst-tc-operation-deltfilter"></a>



### deltfilter



Get / dump tc filter information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`chain`, `kind`\]

<a id="rst-gettfilter"></a>
<a id="rst-tc-operation-gettfilter"></a>



### gettfilter



Get / dump tc filter information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`chain`, `kind`\]

  **reply**

  - **attributes**:

    \[`kind`, `options`, `stats`, `xstats`, `rate`, `fcnt`, `stats2`, `stab`, `chain`, `ingress-block`, `egress-block`\]

- **dump**:

  **request**

  - **attributes**:

    \[`chain`, `dump-flags`\]

  **reply**

  - **attributes**:

    \[`kind`, `options`, `stats`, `xstats`, `rate`, `fcnt`, `stats2`, `stab`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-newchain"></a>
<a id="rst-tc-operation-newchain"></a>



### newchain



Get / dump tc chain information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`kind`, `options`, `rate`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-delchain"></a>
<a id="rst-tc-operation-delchain"></a>



### delchain



Get / dump tc chain information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`chain`\]

<a id="rst-getchain"></a>
<a id="rst-tc-operation-getchain"></a>



### getchain



Get / dump tc chain information.

- **attribute-set**:

  [attrs](#rst-tc-attribute-set-attrs)

- **fixed-header**:

  [tcmsg](#rst-tc-definition-tcmsg)

- **do**:

  **request**

  - **attributes**:

    \[`chain`\]

  **reply**

  - **attributes**:

    \[`kind`, `options`, `stats`, `xstats`, `rate`, `fcnt`, `stats2`, `stab`, `chain`, `ingress-block`, `egress-block`\]

<a id="rst-multicast-groups"></a>



## Multicast groups

- rtnlgrp-tc


<a id="rst-definitions"></a>



## Definitions

<a id="rst-tcmsg"></a>
<a id="rst-tc-definition-tcmsg"></a>



### tcmsg

- **type**:

  struct

- **header**:

  linux/rtnetlink.h

- **members**:

  - **family (`u8`)**

  - **ifindex (`s32`)**

  - **handle (`u32`)**

  - **parent (`u32`)**

  - **info (`u32`)**

<a id="rst-cls-flags"></a>
<a id="rst-tc-definition-cls-flags"></a>



### cls-flags

- **enum-name**:

  None

- **type**:

  flags

- **entries**:

  - `skip-hw`


  - `skip-sw`


  - `in-hw`


  - `not-in-nw`


  - `verbose`

<a id="rst-flower-key-ctrl-flags"></a>
<a id="rst-tc-definition-flower-key-ctrl-flags"></a>



### flower-key-ctrl-flags

- **name-prefix**:

  tca-flower-key-flags-

- **enum-name**:

  None

- **type**:

  flags

- **entries**:

  - `frag`


  - `firstfrag`


  - `tuncsum`


  - `tundf`


  - `tunoam`


  - `tuncrit`

<a id="rst-dualpi2-drop-overload"></a>
<a id="rst-tc-definition-dualpi2-drop-overload"></a>



### dualpi2-drop-overload

- **type**:

  enum

- **entries**:

  - `overflow`


  - `drop`

<a id="rst-dualpi2-drop-early"></a>
<a id="rst-tc-definition-dualpi2-drop-early"></a>



### dualpi2-drop-early

- **type**:

  enum

- **entries**:

  - `drop-dequeue`


  - `drop-enqueue`

<a id="rst-dualpi2-ecn-mask"></a>
<a id="rst-tc-definition-dualpi2-ecn-mask"></a>



### dualpi2-ecn-mask

- **type**:

  enum

- **value-start**:

  1

- **entries**:

  - `l4s-ect`


  - `cla-ect`


  - `any-ect`

<a id="rst-dualpi2-split-gso"></a>
<a id="rst-tc-definition-dualpi2-split-gso"></a>



### dualpi2-split-gso

- **type**:

  enum

- **entries**:

  - `no-split-gso`


  - `split-gso`

<a id="rst-tc-stats"></a>
<a id="rst-tc-definition-tc-stats"></a>



### 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`)**

<a id="rst-tc-cbs-qopt"></a>
<a id="rst-tc-definition-tc-cbs-qopt"></a>



### tc-cbs-qopt

- **type**:

  struct

- **members**:

  - **offload (`u8`)**

  - **hicredit (`s32`)**

  - **locredit (`s32`)**

  - **idleslope (`s32`)**

  - **sendslope (`s32`)**

<a id="rst-tc-etf-qopt"></a>
<a id="rst-tc-definition-tc-etf-qopt"></a>



### tc-etf-qopt

- **type**:

  struct

- **members**:

  - **delta (`s32`)**

  - **clockid (`s32`)**

  - **flags (`s32`)**

<a id="rst-tc-fifo-qopt"></a>
<a id="rst-tc-definition-tc-fifo-qopt"></a>



### tc-fifo-qopt

- **type**:

  struct

- **members**:

  - **limit (`u32`)**:

    Queue length; bytes for bfifo, packets for pfifo

<a id="rst-tc-htb-opt"></a>
<a id="rst-tc-definition-tc-htb-opt"></a>



### tc-htb-opt

- **type**:

  struct

- **members**:

  - **rate (`binary`)**

  - **ceil (`binary`)**

  - **buffer (`u32`)**

  - **cbuffer (`u32`)**

  - **quantum (`u32`)**

  - **level (`u32`)**

  - **prio (`u32`)**

<a id="rst-tc-htb-glob"></a>
<a id="rst-tc-definition-tc-htb-glob"></a>



### 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

<a id="rst-tc-gred-qopt"></a>
<a id="rst-tc-definition-tc-gred-qopt"></a>



### 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`)**

<a id="rst-tc-gred-sopt"></a>
<a id="rst-tc-definition-tc-gred-sopt"></a>



### tc-gred-sopt

- **type**:

  struct

- **members**:

  - **DPs (`u32`)**

  - **def-DP (`u32`)**

  - **grio (`u8`)**

  - **flags (`u8`)**

<a id="rst-tc-hfsc-qopt"></a>
<a id="rst-tc-definition-tc-hfsc-qopt"></a>



### tc-hfsc-qopt

- **type**:

  struct

- **members**:

  - **defcls (`u16`)**

<a id="rst-tc-mqprio-qopt"></a>
<a id="rst-tc-definition-tc-mqprio-qopt"></a>



### tc-mqprio-qopt

- **type**:

  struct

- **members**:

  - **num-tc (`u8`)**

  - **prio-tc-map (`binary`)**

  - **hw (`u8`)**

  - **count (`binary`)**

  - **offset (`binary`)**

<a id="rst-tc-multiq-qopt"></a>
<a id="rst-tc-definition-tc-multiq-qopt"></a>



### tc-multiq-qopt

- **type**:

  struct

- **members**:

  - **bands (`u16`)**:

    Number of bands

  - **max-bands (`u16`)**:

    Maximum number of queues

<a id="rst-tc-netem-qopt"></a>
<a id="rst-tc-definition-tc-netem-qopt"></a>



### 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

<a id="rst-tc-netem-gimodel"></a>
<a id="rst-tc-definition-tc-netem-gimodel"></a>



### tc-netem-gimodel

- **doc**:

  State transition probabilities for 4 state model

- **type**:

  struct

- **members**:

  - **p13 (`u32`)**

  - **p31 (`u32`)**

  - **p32 (`u32`)**

  - **p14 (`u32`)**

  - **p23 (`u32`)**

<a id="rst-tc-netem-gemodel"></a>
<a id="rst-tc-definition-tc-netem-gemodel"></a>



### tc-netem-gemodel

- **doc**:

  Gilbert-Elliot models

- **type**:

  struct

- **members**:

  - **p (`u32`)**

  - **r (`u32`)**

  - **h (`u32`)**

  - **k1 (`u32`)**

<a id="rst-tc-netem-corr"></a>
<a id="rst-tc-definition-tc-netem-corr"></a>



### tc-netem-corr

- **type**:

  struct

- **members**:

  - **delay-corr (`u32`)**:

    Delay correlation

  - **loss-corr (`u32`)**:

    Packet loss correlation

  - **dup-corr (`u32`)**:

    Duplicate correlation

<a id="rst-tc-netem-reorder"></a>
<a id="rst-tc-definition-tc-netem-reorder"></a>



### tc-netem-reorder

- **type**:

  struct

- **members**:

  - **probability (`u32`)**

  - **correlation (`u32`)**

<a id="rst-tc-netem-corrupt"></a>
<a id="rst-tc-definition-tc-netem-corrupt"></a>



### tc-netem-corrupt

- **type**:

  struct

- **members**:

  - **probability (`u32`)**

  - **correlation (`u32`)**

<a id="rst-tc-netem-rate"></a>
<a id="rst-tc-definition-tc-netem-rate"></a>



### tc-netem-rate

- **type**:

  struct

- **members**:

  - **rate (`u32`)**

  - **packet-overhead (`s32`)**

  - **cell-size (`u32`)**

  - **cell-overhead (`s32`)**

<a id="rst-tc-netem-slot"></a>
<a id="rst-tc-definition-tc-netem-slot"></a>



### tc-netem-slot

- **type**:

  struct

- **members**:

  - **min-delay (`s64`)**

  - **max-delay (`s64`)**

  - **max-packets (`s32`)**

  - **max-bytes (`s32`)**

  - **dist-delay (`s64`)**

  - **dist-jitter (`s64`)**

<a id="rst-tc-plug-qopt"></a>
<a id="rst-tc-definition-tc-plug-qopt"></a>



### tc-plug-qopt

- **type**:

  struct

- **members**:

  - **action (`s32`)**

  - **limit (`u32`)**

<a id="rst-tc-prio-qopt"></a>
<a id="rst-tc-definition-tc-prio-qopt"></a>



### tc-prio-qopt

- **type**:

  struct

- **members**:

  - **bands (`u32`)**:

    Number of bands

  - **priomap (`binary`)**:

    Map of logical priority -\> PRIO band

<a id="rst-tc-red-qopt"></a>
<a id="rst-tc-definition-tc-red-qopt"></a>



### 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`)**

<a id="rst-tc-sfb-qopt"></a>
<a id="rst-tc-definition-tc-sfb-qopt"></a>



### 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`)**

<a id="rst-tc-sfq-qopt"></a>
<a id="rst-tc-definition-tc-sfq-qopt"></a>



### 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

<a id="rst-tc-sfqred-stats"></a>
<a id="rst-tc-definition-tc-sfqred-stats"></a>



### 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

<a id="rst-tc-sfq-qopt-v1"></a>
<a id="rst-tc-definition-tc-sfq-qopt-v1"></a>



### 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`)**

<a id="rst-tc-ratespec"></a>
<a id="rst-tc-definition-tc-ratespec"></a>



### tc-ratespec

- **type**:

  struct

- **header**:

  linux/pkt\_sched.h

- **members**:

  - **cell-log (`u8`)**

  - **linklayer (`u8`)**

  - **overhead (`u8`)**

  - **cell-align (`u8`)**

  - **mpu (`u8`)**

  - **rate (`u32`)**

<a id="rst-tc-tbf-qopt"></a>
<a id="rst-tc-definition-tc-tbf-qopt"></a>



### tc-tbf-qopt

- **type**:

  struct

- **members**:

  - **rate (`binary`)**

  - **peakrate (`binary`)**

  - **limit (`u32`)**

  - **buffer (`u32`)**

  - **mtu (`u32`)**

<a id="rst-tc-sizespec"></a>
<a id="rst-tc-definition-tc-sizespec"></a>



### tc-sizespec

- **type**:

  struct

- **members**:

  - **cell-log (`u8`)**

  - **size-log (`u8`)**

  - **cell-align (`s16`)**

  - **overhead (`s32`)**

  - **linklayer (`u32`)**

  - **mpu (`u32`)**

  - **mtu (`u32`)**

  - **tsize (`u32`)**

<a id="rst-gnet-estimator"></a>
<a id="rst-tc-definition-gnet-estimator"></a>



### gnet-estimator

- **type**:

  struct

- **members**:

  - **interval (`s8`)**:

    Sampling period

  - **ewma-log (`u8`)**:

    The log() of measurement window weight

<a id="rst-tc-choke-xstats"></a>
<a id="rst-tc-definition-tc-choke-xstats"></a>



### 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

<a id="rst-tc-codel-xstats"></a>
<a id="rst-tc-definition-tc-codel-xstats"></a>



### 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

<a id="rst-tc-fq-codel-xstats"></a>
<a id="rst-tc-definition-tc-fq-codel-xstats"></a>



### 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`)**

<a id="rst-tc-dualpi2-xstats"></a>
<a id="rst-tc-definition-tc-dualpi2-xstats"></a>



### 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

<a id="rst-tc-fq-pie-xstats"></a>
<a id="rst-tc-definition-tc-fq-pie-xstats"></a>



### 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

<a id="rst-tc-fq-qd-stats"></a>
<a id="rst-tc-definition-tc-fq-qd-stats"></a>



### 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`)**

<a id="rst-tc-hhf-xstats"></a>
<a id="rst-tc-definition-tc-hhf-xstats"></a>



### 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

<a id="rst-tc-pie-xstats"></a>
<a id="rst-tc-definition-tc-pie-xstats"></a>



### 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

<a id="rst-tc-red-xstats"></a>
<a id="rst-tc-definition-tc-red-xstats"></a>



### 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

<a id="rst-tc-sfb-xstats"></a>
<a id="rst-tc-definition-tc-sfb-xstats"></a>



### 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`)**

<a id="rst-tc-sfq-xstats"></a>
<a id="rst-tc-definition-tc-sfq-xstats"></a>



### tc-sfq-xstats

- **type**:

  struct

- **members**:

  - **allot (`s32`)**

<a id="rst-gnet-stats-basic"></a>
<a id="rst-tc-definition-gnet-stats-basic"></a>



### gnet-stats-basic

- **type**:

  struct

- **members**:

  - **bytes (`u64`)**

  - **packets (`u32`)**

<a id="rst-gnet-stats-rate-est"></a>
<a id="rst-tc-definition-gnet-stats-rate-est"></a>



### gnet-stats-rate-est

- **type**:

  struct

- **members**:

  - **bps (`u32`)**

  - **pps (`u32`)**

<a id="rst-gnet-stats-rate-est64"></a>
<a id="rst-tc-definition-gnet-stats-rate-est64"></a>



### gnet-stats-rate-est64

- **type**:

  struct

- **members**:

  - **bps (`u64`)**

  - **pps (`u64`)**

<a id="rst-gnet-stats-queue"></a>
<a id="rst-tc-definition-gnet-stats-queue"></a>



### gnet-stats-queue

- **type**:

  struct

- **members**:

  - **qlen (`u32`)**

  - **backlog (`u32`)**

  - **drops (`u32`)**

  - **requeues (`u32`)**

  - **overlimits (`u32`)**

<a id="rst-tc-u32-key"></a>
<a id="rst-tc-definition-tc-u32-key"></a>



### tc-u32-key

- **type**:

  struct

- **members**:

  - **mask (`u32`)**

  - **val (`u32`)**

  - **off (`s32`)**

  - **offmask (`s32`)**

<a id="rst-tc-u32-mark"></a>
<a id="rst-tc-definition-tc-u32-mark"></a>



### tc-u32-mark

- **type**:

  struct

- **members**:

  - **val (`u32`)**

  - **mask (`u32`)**

  - **success (`u32`)**

<a id="rst-tc-u32-sel"></a>
<a id="rst-tc-definition-tc-u32-sel"></a>



### tc-u32-sel

- **type**:

  struct

- **members**:

  - **flags (`u8`)**

  - **offshift (`u8`)**

  - **nkeys (`u8`)**

  - **offmask (`u16`)**

  - **off (`u16`)**

  - **offoff (`s16`)**

  - **hoff (`s16`)**

  - **hmask (`u32`)**

  - **keys (`binary`)**

<a id="rst-tc-u32-pcnt"></a>
<a id="rst-tc-definition-tc-u32-pcnt"></a>



### tc-u32-pcnt

- **type**:

  struct

- **members**:

  - **rcnt (`u64`)**

  - **rhit (`u64`)**

  - **kcnts (`u64`)**

<a id="rst-tcf-t"></a>
<a id="rst-tc-definition-tcf-t"></a>



### tcf-t

- **type**:

  struct

- **members**:

  - **install (`u64`)**

  - **lastuse (`u64`)**

  - **expires (`u64`)**

  - **firstuse (`u64`)**

<a id="rst-tc-gact"></a>
<a id="rst-tc-definition-tc-gact"></a>



### tc-gact

- **type**:

  struct

- **members**:

  - **index (`u32`)**

  - **capab (`u32`)**

  - **action (`s32`)**

  - **refcnt (`s32`)**

  - **bindcnt (`s32`)**

<a id="rst-tc-gact-p"></a>
<a id="rst-tc-definition-tc-gact-p"></a>



### tc-gact-p

- **type**:

  struct

- **members**:

  - **ptype (`u16`)**

  - **pval (`u16`)**

  - **paction (`s32`)**

<a id="rst-tcf-ematch-tree-hdr"></a>
<a id="rst-tc-definition-tcf-ematch-tree-hdr"></a>



### tcf-ematch-tree-hdr

- **type**:

  struct

- **members**:

  - **nmatches (`u16`)**

  - **progid (`u16`)**

<a id="rst-tc-basic-pcnt"></a>
<a id="rst-tc-definition-tc-basic-pcnt"></a>



### tc-basic-pcnt

- **type**:

  struct

- **members**:

  - **rcnt (`u64`)**

  - **rhit (`u64`)**

<a id="rst-tc-matchall-pcnt"></a>
<a id="rst-tc-definition-tc-matchall-pcnt"></a>



### tc-matchall-pcnt

- **type**:

  struct

- **members**:

  - **rhit (`u64`)**

<a id="rst-tc-mpls"></a>
<a id="rst-tc-definition-tc-mpls"></a>



### tc-mpls

- **type**:

  struct

- **members**:

  - **index (`u32`)**

  - **capab (`u32`)**

  - **action (`s32`)**

  - **refcnt (`s32`)**

  - **bindcnt (`s32`)**

  - **m-action (`s32`)**

<a id="rst-tc-police"></a>
<a id="rst-tc-definition-tc-police"></a>



### 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`)**

<a id="rst-tc-pedit-sel"></a>
<a id="rst-tc-definition-tc-pedit-sel"></a>



### tc-pedit-sel

- **type**:

  struct

- **members**:

  - **index (`u32`)**

  - **capab (`u32`)**

  - **action (`s32`)**

  - **refcnt (`s32`)**

  - **bindcnt (`s32`)**

  - **nkeys (`u8`)**

  - **flags (`u8`)**

  - **keys (`binary`)**

<a id="rst-tc-pedit-key"></a>
<a id="rst-tc-definition-tc-pedit-key"></a>



### tc-pedit-key

- **type**:

  struct

- **members**:

  - **mask (`u32`)**

  - **val (`u32`)**

  - **off (`u32`)**

  - **at (`u32`)**

  - **offmask (`u32`)**

  - **shift (`u32`)**

<a id="rst-tc-vlan"></a>
<a id="rst-tc-definition-tc-vlan"></a>



### tc-vlan

- **type**:

  struct

- **members**:

  - **index (`u32`)**

  - **capab (`u32`)**

  - **action (`s32`)**

  - **refcnt (`s32`)**

  - **bindcnt (`s32`)**

  - **v-action (`s32`)**

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-attrs"></a>
<a id="rst-tc-attribute-set-attrs"></a>



### attrs

<a id="rst-kind-string"></a>



#### kind (`string`)

<a id="rst-options-sub-message"></a>



#### options (`sub-message`)

- **sub-message**:

  [options-msg](#rst-tc-sub-message-options-msg)

- **selector**:

  kind

<a id="rst-stats-binary"></a>



#### stats (`binary`)

- **struct**:

  [tc-stats](#rst-tc-definition-tc-stats)

<a id="rst-xstats-sub-message"></a>



#### xstats (`sub-message`)

- **sub-message**:

  [tca-stats-app-msg](#rst-tc-sub-message-tca-stats-app-msg)

- **selector**:

  kind

<a id="rst-rate-binary"></a>



#### rate (`binary`)

- **struct**:

  [gnet-estimator](#rst-tc-definition-gnet-estimator)

<a id="rst-fcnt-u32"></a>



#### fcnt (`u32`)

<a id="rst-stats2-nest"></a>



#### stats2 (`nest`)

- **nested-attributes**:

  [tca-stats-attrs](#rst-tc-attribute-set-tca-stats-attrs)

<a id="rst-stab-nest"></a>



#### stab (`nest`)

- **nested-attributes**:

  [tca-stab-attrs](#rst-tc-attribute-set-tca-stab-attrs)

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-dump-invisible-flag"></a>



#### dump-invisible (`flag`)

<a id="rst-chain-u32"></a>



#### chain (`u32`)

<a id="rst-hw-offload-u8"></a>



#### hw-offload (`u8`)

<a id="rst-ingress-block-u32"></a>



#### ingress-block (`u32`)

<a id="rst-egress-block-u32"></a>



#### egress-block (`u32`)

<a id="rst-dump-flags-bitfield32"></a>



#### dump-flags (`bitfield32`)

<a id="rst-ext-warn-msg-string"></a>



#### ext-warn-msg (`string`)

<a id="rst-act-attrs"></a>
<a id="rst-tc-attribute-set-act-attrs"></a>



### act-attrs

<a id="rst-kind-string-1"></a>



#### kind (`string`)

<a id="rst-options-sub-message-1"></a>



#### options (`sub-message`)

- **sub-message**:

  [act-options-msg](#rst-tc-sub-message-act-options-msg)

- **selector**:

  kind

<a id="rst-index-u32"></a>



#### index (`u32`)

<a id="rst-stats-nest"></a>



#### stats (`nest`)

- **nested-attributes**:

  [tca-stats-attrs](#rst-tc-attribute-set-tca-stats-attrs)

<a id="rst-pad-pad-1"></a>



#### pad (`pad`)

<a id="rst-cookie-binary"></a>



#### cookie (`binary`)

<a id="rst-flags-bitfield32"></a>



#### flags (`bitfield32`)

<a id="rst-hw-stats-bitfield32"></a>



#### hw-stats (`bitfield32`)

<a id="rst-used-hw-stats-bitfield32"></a>



#### used-hw-stats (`bitfield32`)

<a id="rst-in-hw-count-u32"></a>



#### in-hw-count (`u32`)

<a id="rst-act-bpf-attrs"></a>
<a id="rst-tc-attribute-set-act-bpf-attrs"></a>



### act-bpf-attrs

<a id="rst-tm-binary"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary"></a>



#### parms (`binary`)

<a id="rst-ops-len-u16"></a>



#### ops-len (`u16`)

<a id="rst-ops-binary"></a>



#### ops (`binary`)

<a id="rst-fd-u32"></a>



#### fd (`u32`)

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-pad-pad-2"></a>



#### pad (`pad`)

<a id="rst-tag-binary"></a>



#### tag (`binary`)

<a id="rst-id-binary"></a>



#### id (`binary`)

<a id="rst-act-connmark-attrs"></a>
<a id="rst-tc-attribute-set-act-connmark-attrs"></a>



### act-connmark-attrs

<a id="rst-parms-binary-1"></a>



#### parms (`binary`)

<a id="rst-tm-binary-1"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-pad-pad-3"></a>



#### pad (`pad`)

<a id="rst-act-csum-attrs"></a>
<a id="rst-tc-attribute-set-act-csum-attrs"></a>



### act-csum-attrs

<a id="rst-parms-binary-2"></a>



#### parms (`binary`)

<a id="rst-tm-binary-2"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-pad-pad-4"></a>



#### pad (`pad`)

<a id="rst-act-ct-attrs"></a>
<a id="rst-tc-attribute-set-act-ct-attrs"></a>



### act-ct-attrs

<a id="rst-parms-binary-3"></a>



#### parms (`binary`)

<a id="rst-tm-binary-3"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-action-u16"></a>



#### action (`u16`)

<a id="rst-zone-u16"></a>



#### zone (`u16`)

<a id="rst-mark-u32"></a>



#### mark (`u32`)

<a id="rst-mark-mask-u32"></a>



#### mark-mask (`u32`)

<a id="rst-labels-binary"></a>



#### labels (`binary`)

<a id="rst-labels-mask-binary"></a>



#### labels-mask (`binary`)

<a id="rst-nat-ipv4-min-u32"></a>



#### nat-ipv4-min (`u32`)

- **byte-order**:

  big-endian

<a id="rst-nat-ipv4-max-u32"></a>



#### nat-ipv4-max (`u32`)

- **byte-order**:

  big-endian

<a id="rst-nat-ipv6-min-binary"></a>



#### nat-ipv6-min (`binary`)

<a id="rst-nat-ipv6-max-binary"></a>



#### nat-ipv6-max (`binary`)

<a id="rst-nat-port-min-u16"></a>



#### nat-port-min (`u16`)

- **byte-order**:

  big-endian

<a id="rst-nat-port-max-u16"></a>



#### nat-port-max (`u16`)

- **byte-order**:

  big-endian

<a id="rst-pad-pad-5"></a>



#### pad (`pad`)

<a id="rst-helper-name-string"></a>



#### helper-name (`string`)

<a id="rst-helper-family-u8"></a>



#### helper-family (`u8`)

<a id="rst-helper-proto-u8"></a>



#### helper-proto (`u8`)

<a id="rst-act-ctinfo-attrs"></a>
<a id="rst-tc-attribute-set-act-ctinfo-attrs"></a>



### act-ctinfo-attrs

<a id="rst-pad-pad-6"></a>



#### pad (`pad`)

<a id="rst-tm-binary-4"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-act-binary"></a>



#### act (`binary`)

<a id="rst-zone-u16-1"></a>



#### zone (`u16`)

<a id="rst-parms-dscp-mask-u32"></a>



#### parms-dscp-mask (`u32`)

<a id="rst-parms-dscp-statemask-u32"></a>



#### parms-dscp-statemask (`u32`)

<a id="rst-parms-cpmark-mask-u32"></a>



#### parms-cpmark-mask (`u32`)

<a id="rst-stats-dscp-set-u64"></a>



#### stats-dscp-set (`u64`)

<a id="rst-stats-dscp-error-u64"></a>



#### stats-dscp-error (`u64`)

<a id="rst-stats-cpmark-set-u64"></a>



#### stats-cpmark-set (`u64`)

<a id="rst-act-gate-attrs"></a>
<a id="rst-tc-attribute-set-act-gate-attrs"></a>



### act-gate-attrs

<a id="rst-tm-binary-5"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-4"></a>



#### parms (`binary`)

<a id="rst-pad-pad-7"></a>



#### pad (`pad`)

<a id="rst-priority-s32"></a>



#### priority (`s32`)

<a id="rst-entry-list-binary"></a>



#### entry-list (`binary`)

<a id="rst-base-time-u64"></a>



#### base-time (`u64`)

<a id="rst-cycle-time-u64"></a>



#### cycle-time (`u64`)

<a id="rst-cycle-time-ext-u64"></a>



#### cycle-time-ext (`u64`)

<a id="rst-flags-u32"></a>



#### flags (`u32`)

<a id="rst-clockid-s32"></a>



#### clockid (`s32`)

<a id="rst-act-ife-attrs"></a>
<a id="rst-tc-attribute-set-act-ife-attrs"></a>



### act-ife-attrs

<a id="rst-parms-binary-5"></a>



#### parms (`binary`)

<a id="rst-tm-binary-6"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-dmac-binary"></a>



#### dmac (`binary`)

<a id="rst-smac-binary"></a>



#### smac (`binary`)

<a id="rst-type-u16"></a>



#### type (`u16`)

<a id="rst-metalst-binary"></a>



#### metalst (`binary`)

<a id="rst-pad-pad-8"></a>



#### pad (`pad`)

<a id="rst-act-mirred-attrs"></a>
<a id="rst-tc-attribute-set-act-mirred-attrs"></a>



### act-mirred-attrs

<a id="rst-tm-binary-7"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-6"></a>



#### parms (`binary`)

<a id="rst-pad-pad-9"></a>



#### pad (`pad`)

<a id="rst-blockid-binary"></a>



#### blockid (`binary`)

<a id="rst-act-mpls-attrs"></a>
<a id="rst-tc-attribute-set-act-mpls-attrs"></a>



### act-mpls-attrs

<a id="rst-tm-binary-8"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-7"></a>



#### parms (`binary`)

- **struct**:

  [tc-mpls](#rst-tc-definition-tc-mpls)

<a id="rst-pad-pad-10"></a>



#### pad (`pad`)

<a id="rst-proto-u16"></a>



#### proto (`u16`)

- **byte-order**:

  big-endian

<a id="rst-label-u32"></a>



#### label (`u32`)

<a id="rst-tc-u8"></a>



#### tc (`u8`)

<a id="rst-ttl-u8"></a>



#### ttl (`u8`)

<a id="rst-bos-u8"></a>



#### bos (`u8`)

<a id="rst-act-nat-attrs"></a>
<a id="rst-tc-attribute-set-act-nat-attrs"></a>



### act-nat-attrs

<a id="rst-parms-binary-8"></a>



#### parms (`binary`)

<a id="rst-tm-binary-9"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-pad-pad-11"></a>



#### pad (`pad`)

<a id="rst-act-pedit-attrs"></a>
<a id="rst-tc-attribute-set-act-pedit-attrs"></a>



### act-pedit-attrs

<a id="rst-tm-binary-10"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-9"></a>



#### parms (`binary`)

- **struct**:

  [tc-pedit-sel](#rst-tc-definition-tc-pedit-sel)

<a id="rst-pad-pad-12"></a>



#### pad (`pad`)

<a id="rst-parms-ex-binary"></a>



#### parms-ex (`binary`)

<a id="rst-keys-ex-binary"></a>



#### keys-ex (`binary`)

<a id="rst-key-ex-binary"></a>



#### key-ex (`binary`)

<a id="rst-act-simple-attrs"></a>
<a id="rst-tc-attribute-set-act-simple-attrs"></a>



### act-simple-attrs

<a id="rst-tm-binary-11"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-10"></a>



#### parms (`binary`)

<a id="rst-data-binary"></a>



#### data (`binary`)

<a id="rst-pad-pad-13"></a>



#### pad (`pad`)

<a id="rst-act-skbedit-attrs"></a>
<a id="rst-tc-attribute-set-act-skbedit-attrs"></a>



### act-skbedit-attrs

<a id="rst-tm-binary-12"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-11"></a>



#### parms (`binary`)

<a id="rst-priority-u32"></a>



#### priority (`u32`)

<a id="rst-queue-mapping-u16"></a>



#### queue-mapping (`u16`)

<a id="rst-mark-u32-1"></a>



#### mark (`u32`)

<a id="rst-pad-pad-14"></a>



#### pad (`pad`)

<a id="rst-ptype-u16"></a>



#### ptype (`u16`)

<a id="rst-mask-u32"></a>



#### mask (`u32`)

<a id="rst-flags-u64"></a>



#### flags (`u64`)

<a id="rst-queue-mapping-max-u16"></a>



#### queue-mapping-max (`u16`)

<a id="rst-act-skbmod-attrs"></a>
<a id="rst-tc-attribute-set-act-skbmod-attrs"></a>



### act-skbmod-attrs

<a id="rst-tm-binary-13"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-12"></a>



#### parms (`binary`)

<a id="rst-dmac-binary-1"></a>



#### dmac (`binary`)

<a id="rst-smac-binary-1"></a>



#### smac (`binary`)

<a id="rst-etype-binary"></a>



#### etype (`binary`)

<a id="rst-pad-pad-15"></a>



#### pad (`pad`)

<a id="rst-act-tunnel-key-attrs"></a>
<a id="rst-tc-attribute-set-act-tunnel-key-attrs"></a>



### act-tunnel-key-attrs

<a id="rst-tm-binary-14"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-13"></a>



#### parms (`binary`)

<a id="rst-enc-ipv4-src-u32"></a>



#### enc-ipv4-src (`u32`)

- **byte-order**:

  big-endian

<a id="rst-enc-ipv4-dst-u32"></a>



#### enc-ipv4-dst (`u32`)

- **byte-order**:

  big-endian

<a id="rst-enc-ipv6-src-binary"></a>



#### enc-ipv6-src (`binary`)

<a id="rst-enc-ipv6-dst-binary"></a>



#### enc-ipv6-dst (`binary`)

<a id="rst-enc-key-id-u64"></a>



#### enc-key-id (`u64`)

- **byte-order**:

  big-endian

<a id="rst-pad-pad-16"></a>



#### pad (`pad`)

<a id="rst-enc-dst-port-u16"></a>



#### enc-dst-port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-no-csum-u8"></a>



#### no-csum (`u8`)

<a id="rst-enc-opts-binary"></a>



#### enc-opts (`binary`)

<a id="rst-enc-tos-u8"></a>



#### enc-tos (`u8`)

<a id="rst-enc-ttl-u8"></a>



#### enc-ttl (`u8`)

<a id="rst-no-frag-flag"></a>



#### no-frag (`flag`)

<a id="rst-act-vlan-attrs"></a>
<a id="rst-tc-attribute-set-act-vlan-attrs"></a>



### act-vlan-attrs

<a id="rst-tm-binary-15"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-14"></a>



#### parms (`binary`)

- **struct**:

  [tc-vlan](#rst-tc-definition-tc-vlan)

<a id="rst-push-vlan-id-u16"></a>



#### push-vlan-id (`u16`)

<a id="rst-push-vlan-protocol-u16"></a>



#### push-vlan-protocol (`u16`)

<a id="rst-pad-pad-17"></a>



#### pad (`pad`)

<a id="rst-push-vlan-priority-u8"></a>



#### push-vlan-priority (`u8`)

<a id="rst-push-eth-dst-binary"></a>



#### push-eth-dst (`binary`)

<a id="rst-push-eth-src-binary"></a>



#### push-eth-src (`binary`)

<a id="rst-basic-attrs"></a>
<a id="rst-tc-attribute-set-basic-attrs"></a>



### basic-attrs

<a id="rst-classid-u32"></a>



#### classid (`u32`)

<a id="rst-ematches-nest"></a>



#### ematches (`nest`)

- **nested-attributes**:

  [ematch-attrs](#rst-tc-attribute-set-ematch-attrs)

<a id="rst-act-indexed-array"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-police-nest"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-pcnt-binary"></a>



#### pcnt (`binary`)

- **struct**:

  [tc-basic-pcnt](#rst-tc-definition-tc-basic-pcnt)

<a id="rst-pad-pad-18"></a>



#### pad (`pad`)

<a id="rst-bpf-attrs"></a>
<a id="rst-tc-attribute-set-bpf-attrs"></a>



### bpf-attrs

<a id="rst-act-indexed-array-1"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-police-nest-1"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-classid-u32-1"></a>



#### classid (`u32`)

<a id="rst-ops-len-u16-1"></a>



#### ops-len (`u16`)

<a id="rst-ops-binary-1"></a>



#### ops (`binary`)

<a id="rst-fd-u32-1"></a>



#### fd (`u32`)

<a id="rst-name-string-1"></a>



#### name (`string`)

<a id="rst-flags-u32-1"></a>



#### flags (`u32`)

<a id="rst-flags-gen-u32"></a>



#### flags-gen (`u32`)

<a id="rst-tag-binary-1"></a>



#### tag (`binary`)

<a id="rst-id-u32"></a>



#### id (`u32`)

<a id="rst-cake-attrs"></a>
<a id="rst-tc-attribute-set-cake-attrs"></a>



### cake-attrs

<a id="rst-pad-pad-19"></a>



#### pad (`pad`)

<a id="rst-base-rate64-u64"></a>



#### base-rate64 (`u64`)

<a id="rst-diffserv-mode-u32"></a>



#### diffserv-mode (`u32`)

<a id="rst-atm-u32"></a>



#### atm (`u32`)

<a id="rst-flow-mode-u32"></a>



#### flow-mode (`u32`)

<a id="rst-overhead-u32"></a>



#### overhead (`u32`)

<a id="rst-rtt-u32"></a>



#### rtt (`u32`)

<a id="rst-target-u32"></a>



#### target (`u32`)

<a id="rst-autorate-u32"></a>



#### autorate (`u32`)

<a id="rst-memory-u32"></a>



#### memory (`u32`)

<a id="rst-nat-u32"></a>



#### nat (`u32`)

<a id="rst-raw-u32"></a>



#### raw (`u32`)

<a id="rst-wash-u32"></a>



#### wash (`u32`)

<a id="rst-mpu-u32"></a>



#### mpu (`u32`)

<a id="rst-ingress-u32"></a>



#### ingress (`u32`)

<a id="rst-ack-filter-u32"></a>



#### ack-filter (`u32`)

<a id="rst-split-gso-u32"></a>



#### split-gso (`u32`)

<a id="rst-fwmark-u32"></a>



#### fwmark (`u32`)

<a id="rst-cake-stats-attrs"></a>
<a id="rst-tc-attribute-set-cake-stats-attrs"></a>



### cake-stats-attrs

<a id="rst-pad-pad-20"></a>



#### pad (`pad`)

<a id="rst-capacity-estimate64-u64"></a>



#### capacity-estimate64 (`u64`)

<a id="rst-memory-limit-u32"></a>



#### memory-limit (`u32`)

<a id="rst-memory-used-u32"></a>



#### memory-used (`u32`)

<a id="rst-avg-netoff-u32"></a>



#### avg-netoff (`u32`)

<a id="rst-min-netlen-u32"></a>



#### min-netlen (`u32`)

<a id="rst-max-netlen-u32"></a>



#### max-netlen (`u32`)

<a id="rst-min-adjlen-u32"></a>



#### min-adjlen (`u32`)

<a id="rst-max-adjlen-u32"></a>



#### max-adjlen (`u32`)

<a id="rst-tin-stats-indexed-array"></a>



#### tin-stats (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [cake-tin-stats-attrs](#rst-tc-attribute-set-cake-tin-stats-attrs)

<a id="rst-deficit-s32"></a>



#### deficit (`s32`)

<a id="rst-cobalt-count-u32"></a>



#### cobalt-count (`u32`)

<a id="rst-dropping-u32"></a>



#### dropping (`u32`)

<a id="rst-drop-next-us-s32"></a>



#### drop-next-us (`s32`)

<a id="rst-p-drop-u32"></a>



#### p-drop (`u32`)

<a id="rst-blue-timer-us-s32"></a>



#### blue-timer-us (`s32`)

<a id="rst-active-queues-u32"></a>



#### active-queues (`u32`)

<a id="rst-cake-tin-stats-attrs"></a>
<a id="rst-tc-attribute-set-cake-tin-stats-attrs"></a>



### cake-tin-stats-attrs

<a id="rst-pad-pad-21"></a>



#### pad (`pad`)

<a id="rst-sent-packets-u32"></a>



#### sent-packets (`u32`)

<a id="rst-sent-bytes64-u64"></a>



#### sent-bytes64 (`u64`)

<a id="rst-dropped-packets-u32"></a>



#### dropped-packets (`u32`)

<a id="rst-dropped-bytes64-u64"></a>



#### dropped-bytes64 (`u64`)

<a id="rst-acks-dropped-packets-u32"></a>



#### acks-dropped-packets (`u32`)

<a id="rst-acks-dropped-bytes64-u64"></a>



#### acks-dropped-bytes64 (`u64`)

<a id="rst-ecn-marked-packets-u32"></a>



#### ecn-marked-packets (`u32`)

<a id="rst-ecn-marked-bytes64-u64"></a>



#### ecn-marked-bytes64 (`u64`)

<a id="rst-backlog-packets-u32"></a>



#### backlog-packets (`u32`)

<a id="rst-backlog-bytes-u32"></a>



#### backlog-bytes (`u32`)

<a id="rst-threshold-rate64-u64"></a>



#### threshold-rate64 (`u64`)

<a id="rst-target-us-u32"></a>



#### target-us (`u32`)

<a id="rst-interval-us-u32"></a>



#### interval-us (`u32`)

<a id="rst-way-indirect-hits-u32"></a>



#### way-indirect-hits (`u32`)

<a id="rst-way-misses-u32"></a>



#### way-misses (`u32`)

<a id="rst-way-collisions-u32"></a>



#### way-collisions (`u32`)

<a id="rst-peak-delay-us-u32"></a>



#### peak-delay-us (`u32`)

<a id="rst-avg-delay-us-u32"></a>



#### avg-delay-us (`u32`)

<a id="rst-base-delay-us-u32"></a>



#### base-delay-us (`u32`)

<a id="rst-sparse-flows-u32"></a>



#### sparse-flows (`u32`)

<a id="rst-bulk-flows-u32"></a>



#### bulk-flows (`u32`)

<a id="rst-unresponsive-flows-u32"></a>



#### unresponsive-flows (`u32`)

<a id="rst-max-skblen-u32"></a>



#### max-skblen (`u32`)

<a id="rst-flow-quantum-u32"></a>



#### flow-quantum (`u32`)

<a id="rst-cbs-attrs"></a>
<a id="rst-tc-attribute-set-cbs-attrs"></a>



### cbs-attrs

<a id="rst-parms-binary-15"></a>



#### parms (`binary`)

- **struct**:

  [tc-cbs-qopt](#rst-tc-definition-tc-cbs-qopt)

<a id="rst-cgroup-attrs"></a>
<a id="rst-tc-attribute-set-cgroup-attrs"></a>



### cgroup-attrs

<a id="rst-act-indexed-array-2"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-police-nest-2"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-ematches-binary"></a>



#### ematches (`binary`)

<a id="rst-choke-attrs"></a>
<a id="rst-tc-attribute-set-choke-attrs"></a>



### choke-attrs

<a id="rst-parms-binary-16"></a>



#### parms (`binary`)

- **struct**:

  [tc-red-qopt](#rst-tc-definition-tc-red-qopt)

<a id="rst-stab-binary"></a>



#### stab (`binary`)

<a id="rst-max-p-u32"></a>



#### max-p (`u32`)

<a id="rst-codel-attrs"></a>
<a id="rst-tc-attribute-set-codel-attrs"></a>



### codel-attrs

<a id="rst-target-u32-1"></a>



#### target (`u32`)

<a id="rst-limit-u32"></a>



#### limit (`u32`)

<a id="rst-interval-u32"></a>



#### interval (`u32`)

<a id="rst-ecn-u32"></a>



#### ecn (`u32`)

<a id="rst-ce-threshold-u32"></a>



#### ce-threshold (`u32`)

<a id="rst-drr-attrs"></a>
<a id="rst-tc-attribute-set-drr-attrs"></a>



### drr-attrs

<a id="rst-quantum-u32"></a>



#### quantum (`u32`)

<a id="rst-dualpi2-attrs"></a>
<a id="rst-tc-attribute-set-dualpi2-attrs"></a>



### dualpi2-attrs

<a id="rst-limit-u32-1"></a>



#### limit (`u32`)

- **doc**:

  Limit of total number of packets in queue

<a id="rst-memory-limit-u32-1"></a>



#### memory-limit (`u32`)

- **doc**:

  Memory limit of total number of packets in queue

<a id="rst-target-u32-2"></a>



#### target (`u32`)

- **doc**:

  Classic target delay in microseconds

<a id="rst-tupdate-u32"></a>



#### tupdate (`u32`)

- **doc**:

  Drop probability update interval time in microseconds

<a id="rst-alpha-u32"></a>



#### alpha (`u32`)

- **doc**:

  Integral gain factor in Hz for PI controller

<a id="rst-beta-u32"></a>



#### beta (`u32`)

- **doc**:

  Proportional gain factor in Hz for PI controller

<a id="rst-step-thresh-pkts-u32"></a>



#### step-thresh-pkts (`u32`)

- **doc**:

  L4S step marking threshold in packets

<a id="rst-step-thresh-us-u32"></a>



#### step-thresh-us (`u32`)

- **doc**:

  L4S Step marking threshold in microseconds

<a id="rst-min-qlen-step-u32"></a>



#### 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)

<a id="rst-coupling-u8"></a>



#### coupling (`u8`)

- **doc**:

  Probability coupling factor between Classic and L4S (2 is recommended)

<a id="rst-drop-overload-u8"></a>



#### drop-overload (`u8`)

- **doc**:

  Control the overload strategy (drop to preserve latency or let the queue overflow)

- **enum**:

  [dualpi2-drop-overload](#rst-tc-definition-dualpi2-drop-overload)

<a id="rst-drop-early-u8"></a>



#### drop-early (`u8`)

- **doc**:

  Decide where the Classic packets are PI-based dropped or marked

- **enum**:

  [dualpi2-drop-early](#rst-tc-definition-dualpi2-drop-early)

<a id="rst-c-protection-u8"></a>



#### c-protection (`u8`)

- **doc**:

  Classic WRR weight in percentage (from 0 to 100)

<a id="rst-ecn-mask-u8"></a>



#### ecn-mask (`u8`)

- **doc**:

  Configure the L-queue ECN classifier

- **enum**:

  [dualpi2-ecn-mask](#rst-tc-definition-dualpi2-ecn-mask)

<a id="rst-split-gso-u8"></a>



#### split-gso (`u8`)

- **doc**:

  Split aggregated skb or not

- **enum**:

  [dualpi2-split-gso](#rst-tc-definition-dualpi2-split-gso)

<a id="rst-ematch-attrs"></a>
<a id="rst-tc-attribute-set-ematch-attrs"></a>



### ematch-attrs

<a id="rst-tree-hdr-binary"></a>



#### tree-hdr (`binary`)

- **struct**:

  [tcf-ematch-tree-hdr](#rst-tc-definition-tcf-ematch-tree-hdr)

<a id="rst-tree-list-binary"></a>



#### tree-list (`binary`)

<a id="rst-flow-attrs"></a>
<a id="rst-tc-attribute-set-flow-attrs"></a>



### flow-attrs

<a id="rst-keys-u32"></a>



#### keys (`u32`)

<a id="rst-mode-u32"></a>



#### mode (`u32`)

<a id="rst-baseclass-u32"></a>



#### baseclass (`u32`)

<a id="rst-rshift-u32"></a>



#### rshift (`u32`)

<a id="rst-addend-u32"></a>



#### addend (`u32`)

<a id="rst-mask-u32-1"></a>



#### mask (`u32`)

<a id="rst-xor-u32"></a>



#### xor (`u32`)

<a id="rst-divisor-u32"></a>



#### divisor (`u32`)

<a id="rst-act-binary-1"></a>



#### act (`binary`)

<a id="rst-police-nest-3"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-ematches-binary-1"></a>



#### ematches (`binary`)

<a id="rst-perturb-u32"></a>



#### perturb (`u32`)

<a id="rst-flower-attrs"></a>
<a id="rst-tc-attribute-set-flower-attrs"></a>



### flower-attrs

<a id="rst-classid-u32-2"></a>



#### classid (`u32`)

<a id="rst-indev-string"></a>



#### indev (`string`)

<a id="rst-act-indexed-array-3"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-key-eth-dst-binary"></a>



#### key-eth-dst (`binary`)

- **display-hint**:

  mac

<a id="rst-key-eth-dst-mask-binary"></a>



#### key-eth-dst-mask (`binary`)

- **display-hint**:

  mac

<a id="rst-key-eth-src-binary"></a>



#### key-eth-src (`binary`)

- **display-hint**:

  mac

<a id="rst-key-eth-src-mask-binary"></a>



#### key-eth-src-mask (`binary`)

- **display-hint**:

  mac

<a id="rst-key-eth-type-u16"></a>



#### key-eth-type (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-ip-proto-u8"></a>



#### key-ip-proto (`u8`)

<a id="rst-key-ipv4-src-u32"></a>



#### key-ipv4-src (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-ipv4-src-mask-u32"></a>



#### key-ipv4-src-mask (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-ipv4-dst-u32"></a>



#### key-ipv4-dst (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-ipv4-dst-mask-u32"></a>



#### key-ipv4-dst-mask (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-ipv6-src-binary"></a>



#### key-ipv6-src (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-ipv6-src-mask-binary"></a>



#### key-ipv6-src-mask (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-ipv6-dst-binary"></a>



#### key-ipv6-dst (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-ipv6-dst-mask-binary"></a>



#### key-ipv6-dst-mask (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-tcp-src-u16"></a>



#### key-tcp-src (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-tcp-dst-u16"></a>



#### key-tcp-dst (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-udp-src-u16"></a>



#### key-udp-src (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-udp-dst-u16"></a>



#### key-udp-dst (`u16`)

- **byte-order**:

  big-endian

<a id="rst-flags-u32-2"></a>



#### flags (`u32`)

- **enum**:

  [cls-flags](#rst-tc-definition-cls-flags)

- **enum-as-flags**:

  True

<a id="rst-key-vlan-id-u16"></a>



#### key-vlan-id (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-vlan-prio-u8"></a>



#### key-vlan-prio (`u8`)

<a id="rst-key-vlan-eth-type-u16"></a>



#### key-vlan-eth-type (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-key-id-u32"></a>



#### key-enc-key-id (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-ipv4-src-u32"></a>



#### key-enc-ipv4-src (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-enc-ipv4-src-mask-u32"></a>



#### key-enc-ipv4-src-mask (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-enc-ipv4-dst-u32"></a>



#### key-enc-ipv4-dst (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-enc-ipv4-dst-mask-u32"></a>



#### key-enc-ipv4-dst-mask (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-key-enc-ipv6-src-binary"></a>



#### key-enc-ipv6-src (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-enc-ipv6-src-mask-binary"></a>



#### key-enc-ipv6-src-mask (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-enc-ipv6-dst-binary"></a>



#### key-enc-ipv6-dst (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-enc-ipv6-dst-mask-binary"></a>



#### key-enc-ipv6-dst-mask (`binary`)

- **display-hint**:

  ipv6

<a id="rst-key-tcp-src-mask-u16"></a>



#### key-tcp-src-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-tcp-dst-mask-u16"></a>



#### key-tcp-dst-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-udp-src-mask-u16"></a>



#### key-udp-src-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-udp-dst-mask-u16"></a>



#### key-udp-dst-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-sctp-src-mask-u16"></a>



#### key-sctp-src-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-sctp-dst-mask-u16"></a>



#### key-sctp-dst-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-sctp-src-u16"></a>



#### key-sctp-src (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-sctp-dst-u16"></a>



#### key-sctp-dst (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-udp-src-port-u16"></a>



#### key-enc-udp-src-port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-udp-src-port-mask-u16"></a>



#### key-enc-udp-src-port-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-udp-dst-port-u16"></a>



#### key-enc-udp-dst-port (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-udp-dst-port-mask-u16"></a>



#### key-enc-udp-dst-port-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-flags-u32"></a>



#### key-flags (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [flower-key-ctrl-flags](#rst-tc-definition-flower-key-ctrl-flags)

- **enum-as-flags**:

  True

<a id="rst-key-flags-mask-u32"></a>



#### key-flags-mask (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [flower-key-ctrl-flags](#rst-tc-definition-flower-key-ctrl-flags)

- **enum-as-flags**:

  True

<a id="rst-key-icmpv4-code-u8"></a>



#### key-icmpv4-code (`u8`)

<a id="rst-key-icmpv4-code-mask-u8"></a>



#### key-icmpv4-code-mask (`u8`)

<a id="rst-key-icmpv4-type-u8"></a>



#### key-icmpv4-type (`u8`)

<a id="rst-key-icmpv4-type-mask-u8"></a>



#### key-icmpv4-type-mask (`u8`)

<a id="rst-key-icmpv6-code-u8"></a>



#### key-icmpv6-code (`u8`)

<a id="rst-key-icmpv6-code-mask-u8"></a>



#### key-icmpv6-code-mask (`u8`)

<a id="rst-key-icmpv6-type-u8"></a>



#### key-icmpv6-type (`u8`)

<a id="rst-key-icmpv6-type-mask-u8"></a>



#### key-icmpv6-type-mask (`u8`)

<a id="rst-key-arp-sip-u32"></a>



#### key-arp-sip (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-arp-sip-mask-u32"></a>



#### key-arp-sip-mask (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-arp-tip-u32"></a>



#### key-arp-tip (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-arp-tip-mask-u32"></a>



#### key-arp-tip-mask (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-arp-op-u8"></a>



#### key-arp-op (`u8`)

<a id="rst-key-arp-op-mask-u8"></a>



#### key-arp-op-mask (`u8`)

<a id="rst-key-arp-sha-binary"></a>



#### key-arp-sha (`binary`)

- **display-hint**:

  mac

<a id="rst-key-arp-sha-mask-binary"></a>



#### key-arp-sha-mask (`binary`)

- **display-hint**:

  mac

<a id="rst-key-arp-tha-binary"></a>



#### key-arp-tha (`binary`)

- **display-hint**:

  mac

<a id="rst-key-arp-tha-mask-binary"></a>



#### key-arp-tha-mask (`binary`)

- **display-hint**:

  mac

<a id="rst-key-mpls-ttl-u8"></a>



#### key-mpls-ttl (`u8`)

<a id="rst-key-mpls-bos-u8"></a>



#### key-mpls-bos (`u8`)

<a id="rst-key-mpls-tc-u8"></a>



#### key-mpls-tc (`u8`)

<a id="rst-key-mpls-label-u32"></a>



#### key-mpls-label (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-tcp-flags-u16"></a>



#### key-tcp-flags (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-tcp-flags-mask-u16"></a>



#### key-tcp-flags-mask (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-ip-tos-u8"></a>



#### key-ip-tos (`u8`)

<a id="rst-key-ip-tos-mask-u8"></a>



#### key-ip-tos-mask (`u8`)

<a id="rst-key-ip-ttl-u8"></a>



#### key-ip-ttl (`u8`)

<a id="rst-key-ip-ttl-mask-u8"></a>



#### key-ip-ttl-mask (`u8`)

<a id="rst-key-cvlan-id-u16"></a>



#### key-cvlan-id (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-cvlan-prio-u8"></a>



#### key-cvlan-prio (`u8`)

<a id="rst-key-cvlan-eth-type-u16"></a>



#### key-cvlan-eth-type (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-ip-tos-u8"></a>



#### key-enc-ip-tos (`u8`)

<a id="rst-key-enc-ip-tos-mask-u8"></a>



#### key-enc-ip-tos-mask (`u8`)

<a id="rst-key-enc-ip-ttl-u8"></a>



#### key-enc-ip-ttl (`u8`)

<a id="rst-key-enc-ip-ttl-mask-u8"></a>



#### key-enc-ip-ttl-mask (`u8`)

<a id="rst-key-enc-opts-nest"></a>



#### key-enc-opts (`nest`)

- **nested-attributes**:

  [flower-key-enc-opts-attrs](#rst-tc-attribute-set-flower-key-enc-opts-attrs)

<a id="rst-key-enc-opts-mask-nest"></a>



#### key-enc-opts-mask (`nest`)

- **nested-attributes**:

  [flower-key-enc-opts-attrs](#rst-tc-attribute-set-flower-key-enc-opts-attrs)

<a id="rst-in-hw-count-u32-1"></a>



#### in-hw-count (`u32`)

<a id="rst-key-port-src-min-u16"></a>



#### key-port-src-min (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-port-src-max-u16"></a>



#### key-port-src-max (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-port-dst-min-u16"></a>



#### key-port-dst-min (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-port-dst-max-u16"></a>



#### key-port-dst-max (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-ct-state-u16"></a>



#### key-ct-state (`u16`)

<a id="rst-key-ct-state-mask-u16"></a>



#### key-ct-state-mask (`u16`)

<a id="rst-key-ct-zone-u16"></a>



#### key-ct-zone (`u16`)

<a id="rst-key-ct-zone-mask-u16"></a>



#### key-ct-zone-mask (`u16`)

<a id="rst-key-ct-mark-u32"></a>



#### key-ct-mark (`u32`)

<a id="rst-key-ct-mark-mask-u32"></a>



#### key-ct-mark-mask (`u32`)

<a id="rst-key-ct-labels-binary"></a>



#### key-ct-labels (`binary`)

<a id="rst-key-ct-labels-mask-binary"></a>



#### key-ct-labels-mask (`binary`)

<a id="rst-key-mpls-opts-nest"></a>



#### key-mpls-opts (`nest`)

- **nested-attributes**:

  [flower-key-mpls-opt-attrs](#rst-tc-attribute-set-flower-key-mpls-opt-attrs)

<a id="rst-key-hash-u32"></a>



#### key-hash (`u32`)

<a id="rst-key-hash-mask-u32"></a>



#### key-hash-mask (`u32`)

<a id="rst-key-num-of-vlans-u8"></a>



#### key-num-of-vlans (`u8`)

<a id="rst-key-pppoe-sid-u16"></a>



#### key-pppoe-sid (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-ppp-proto-u16"></a>



#### key-ppp-proto (`u16`)

- **byte-order**:

  big-endian

<a id="rst-key-l2tpv3-sid-u32"></a>



#### key-l2tpv3-sid (`u32`)

- **byte-order**:

  big-endian

<a id="rst-l2-miss-u8"></a>



#### l2-miss (`u8`)

<a id="rst-key-cfm-nest"></a>



#### key-cfm (`nest`)

- **nested-attributes**:

  [flower-key-cfm-attrs](#rst-tc-attribute-set-flower-key-cfm-attrs)

<a id="rst-key-spi-u32"></a>



#### key-spi (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-spi-mask-u32"></a>



#### key-spi-mask (`u32`)

- **byte-order**:

  big-endian

<a id="rst-key-enc-flags-u32"></a>



#### key-enc-flags (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [flower-key-ctrl-flags](#rst-tc-definition-flower-key-ctrl-flags)

- **enum-as-flags**:

  True

<a id="rst-key-enc-flags-mask-u32"></a>



#### key-enc-flags-mask (`u32`)

- **byte-order**:

  big-endian

- **enum**:

  [flower-key-ctrl-flags](#rst-tc-definition-flower-key-ctrl-flags)

- **enum-as-flags**:

  True

<a id="rst-flower-key-enc-opts-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-enc-opts-attrs"></a>



### flower-key-enc-opts-attrs

<a id="rst-geneve-nest"></a>



#### geneve (`nest`)

- **nested-attributes**:

  [flower-key-enc-opt-geneve-attrs](#rst-tc-attribute-set-flower-key-enc-opt-geneve-attrs)

<a id="rst-vxlan-nest"></a>



#### vxlan (`nest`)

- **nested-attributes**:

  [flower-key-enc-opt-vxlan-attrs](#rst-tc-attribute-set-flower-key-enc-opt-vxlan-attrs)

<a id="rst-erspan-nest"></a>



#### erspan (`nest`)

- **nested-attributes**:

  [flower-key-enc-opt-erspan-attrs](#rst-tc-attribute-set-flower-key-enc-opt-erspan-attrs)

<a id="rst-gtp-nest"></a>



#### gtp (`nest`)

- **nested-attributes**:

  [flower-key-enc-opt-gtp-attrs](#rst-tc-attribute-set-flower-key-enc-opt-gtp-attrs)

<a id="rst-flower-key-enc-opt-geneve-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-enc-opt-geneve-attrs"></a>



### flower-key-enc-opt-geneve-attrs

<a id="rst-class-u16"></a>



#### class (`u16`)

<a id="rst-type-u8"></a>



#### type (`u8`)

<a id="rst-data-binary-1"></a>



#### data (`binary`)

<a id="rst-flower-key-enc-opt-vxlan-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-enc-opt-vxlan-attrs"></a>



### flower-key-enc-opt-vxlan-attrs

<a id="rst-gbp-u32"></a>



#### gbp (`u32`)

<a id="rst-flower-key-enc-opt-erspan-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-enc-opt-erspan-attrs"></a>



### flower-key-enc-opt-erspan-attrs

<a id="rst-ver-u8"></a>



#### ver (`u8`)

<a id="rst-index-u32-1"></a>



#### index (`u32`)

<a id="rst-dir-u8"></a>



#### dir (`u8`)

<a id="rst-hwid-u8"></a>



#### hwid (`u8`)

<a id="rst-flower-key-enc-opt-gtp-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-enc-opt-gtp-attrs"></a>



### flower-key-enc-opt-gtp-attrs

<a id="rst-pdu-type-u8"></a>



#### pdu-type (`u8`)

<a id="rst-qfi-u8"></a>



#### qfi (`u8`)

<a id="rst-flower-key-mpls-opt-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-mpls-opt-attrs"></a>



### flower-key-mpls-opt-attrs

<a id="rst-lse-depth-u8"></a>



#### lse-depth (`u8`)

<a id="rst-lse-ttl-u8"></a>



#### lse-ttl (`u8`)

<a id="rst-lse-bos-u8"></a>



#### lse-bos (`u8`)

<a id="rst-lse-tc-u8"></a>



#### lse-tc (`u8`)

<a id="rst-lse-label-u32"></a>



#### lse-label (`u32`)

<a id="rst-flower-key-cfm-attrs"></a>
<a id="rst-tc-attribute-set-flower-key-cfm-attrs"></a>



### flower-key-cfm-attrs

<a id="rst-md-level-u8"></a>



#### md-level (`u8`)

<a id="rst-opcode-u8"></a>



#### opcode (`u8`)

<a id="rst-fw-attrs"></a>
<a id="rst-tc-attribute-set-fw-attrs"></a>



### fw-attrs

<a id="rst-classid-u32-3"></a>



#### classid (`u32`)

<a id="rst-police-nest-4"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-indev-string-1"></a>



#### indev (`string`)

<a id="rst-act-indexed-array-4"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-mask-u32-2"></a>



#### mask (`u32`)

<a id="rst-gred-attrs"></a>
<a id="rst-tc-attribute-set-gred-attrs"></a>



### gred-attrs

<a id="rst-parms-binary-17"></a>



#### parms (`binary`)

<a id="rst-stab-binary-1"></a>



#### stab (`binary`)

- **sub-type**:

  u8

<a id="rst-dps-binary"></a>



#### dps (`binary`)

- **struct**:

  [tc-gred-sopt](#rst-tc-definition-tc-gred-sopt)

<a id="rst-max-p-binary"></a>



#### max-p (`binary`)

- **sub-type**:

  u32

<a id="rst-limit-u32-2"></a>



#### limit (`u32`)

<a id="rst-vq-list-nest"></a>



#### vq-list (`nest`)

- **nested-attributes**:

  [tca-gred-vq-list-attrs](#rst-tc-attribute-set-tca-gred-vq-list-attrs)

<a id="rst-tca-gred-vq-list-attrs"></a>
<a id="rst-tc-attribute-set-tca-gred-vq-list-attrs"></a>



### tca-gred-vq-list-attrs

<a id="rst-entry-nest"></a>



#### entry (`nest`)

- **nested-attributes**:

  [tca-gred-vq-entry-attrs](#rst-tc-attribute-set-tca-gred-vq-entry-attrs)

- **multi-attr**:

  True

<a id="rst-tca-gred-vq-entry-attrs"></a>
<a id="rst-tc-attribute-set-tca-gred-vq-entry-attrs"></a>



### tca-gred-vq-entry-attrs

<a id="rst-pad-pad-22"></a>



#### pad (`pad`)

<a id="rst-dp-u32"></a>



#### dp (`u32`)

<a id="rst-stat-bytes-u64"></a>



#### stat-bytes (`u64`)

<a id="rst-stat-packets-u32"></a>



#### stat-packets (`u32`)

<a id="rst-stat-backlog-u32"></a>



#### stat-backlog (`u32`)

<a id="rst-stat-prob-drop-u32"></a>



#### stat-prob-drop (`u32`)

<a id="rst-stat-prob-mark-u32"></a>



#### stat-prob-mark (`u32`)

<a id="rst-stat-forced-drop-u32"></a>



#### stat-forced-drop (`u32`)

<a id="rst-stat-forced-mark-u32"></a>



#### stat-forced-mark (`u32`)

<a id="rst-stat-pdrop-u32"></a>



#### stat-pdrop (`u32`)

<a id="rst-stat-other-u32"></a>



#### stat-other (`u32`)

<a id="rst-flags-u32-3"></a>



#### flags (`u32`)

<a id="rst-hfsc-attrs"></a>
<a id="rst-tc-attribute-set-hfsc-attrs"></a>



### hfsc-attrs

<a id="rst-rsc-binary"></a>



#### rsc (`binary`)

<a id="rst-fsc-binary"></a>



#### fsc (`binary`)

<a id="rst-usc-binary"></a>



#### usc (`binary`)

<a id="rst-hhf-attrs"></a>
<a id="rst-tc-attribute-set-hhf-attrs"></a>



### hhf-attrs

<a id="rst-backlog-limit-u32"></a>



#### backlog-limit (`u32`)

<a id="rst-quantum-u32-1"></a>



#### quantum (`u32`)

<a id="rst-hh-flows-limit-u32"></a>



#### hh-flows-limit (`u32`)

<a id="rst-reset-timeout-u32"></a>



#### reset-timeout (`u32`)

<a id="rst-admit-bytes-u32"></a>



#### admit-bytes (`u32`)

<a id="rst-evict-timeout-u32"></a>



#### evict-timeout (`u32`)

<a id="rst-non-hh-weight-u32"></a>



#### non-hh-weight (`u32`)

<a id="rst-htb-attrs"></a>
<a id="rst-tc-attribute-set-htb-attrs"></a>



### htb-attrs

<a id="rst-parms-binary-18"></a>



#### parms (`binary`)

- **struct**:

  [tc-htb-opt](#rst-tc-definition-tc-htb-opt)

<a id="rst-init-binary"></a>



#### init (`binary`)

- **struct**:

  [tc-htb-glob](#rst-tc-definition-tc-htb-glob)

<a id="rst-ctab-binary"></a>



#### ctab (`binary`)

<a id="rst-rtab-binary"></a>



#### rtab (`binary`)

<a id="rst-direct-qlen-u32"></a>



#### direct-qlen (`u32`)

<a id="rst-rate64-u64"></a>



#### rate64 (`u64`)

<a id="rst-ceil64-u64"></a>



#### ceil64 (`u64`)

<a id="rst-pad-pad-23"></a>



#### pad (`pad`)

<a id="rst-offload-flag"></a>



#### offload (`flag`)

<a id="rst-matchall-attrs"></a>
<a id="rst-tc-attribute-set-matchall-attrs"></a>



### matchall-attrs

<a id="rst-classid-u32-4"></a>



#### classid (`u32`)

<a id="rst-act-indexed-array-5"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-flags-u32-4"></a>



#### flags (`u32`)

<a id="rst-pcnt-binary-1"></a>



#### pcnt (`binary`)

- **struct**:

  [tc-matchall-pcnt](#rst-tc-definition-tc-matchall-pcnt)

<a id="rst-pad-pad-24"></a>



#### pad (`pad`)

<a id="rst-etf-attrs"></a>
<a id="rst-tc-attribute-set-etf-attrs"></a>



### etf-attrs

<a id="rst-parms-binary-19"></a>



#### parms (`binary`)

- **struct**:

  [tc-etf-qopt](#rst-tc-definition-tc-etf-qopt)

<a id="rst-ets-attrs"></a>
<a id="rst-tc-attribute-set-ets-attrs"></a>



### ets-attrs

<a id="rst-nbands-u8"></a>



#### nbands (`u8`)

<a id="rst-nstrict-u8"></a>



#### nstrict (`u8`)

<a id="rst-quanta-nest"></a>



#### quanta (`nest`)

- **nested-attributes**:

  [ets-attrs](#rst-tc-attribute-set-ets-attrs)

<a id="rst-quanta-band-u32"></a>



#### quanta-band (`u32`)

- **multi-attr**:

  True

<a id="rst-priomap-nest"></a>



#### priomap (`nest`)

- **nested-attributes**:

  [ets-attrs](#rst-tc-attribute-set-ets-attrs)

<a id="rst-priomap-band-u8"></a>



#### priomap-band (`u8`)

- **multi-attr**:

  True

<a id="rst-fq-attrs"></a>
<a id="rst-tc-attribute-set-fq-attrs"></a>



### fq-attrs

<a id="rst-plimit-u32"></a>



#### plimit (`u32`)

- **doc**:

  Limit of total number of packets in queue

<a id="rst-flow-plimit-u32"></a>



#### flow-plimit (`u32`)

- **doc**:

  Limit of packets per flow

<a id="rst-quantum-u32-2"></a>



#### quantum (`u32`)

- **doc**:

  RR quantum

<a id="rst-initial-quantum-u32"></a>



#### initial-quantum (`u32`)

- **doc**:

  RR quantum for new flow

<a id="rst-rate-enable-u32"></a>



#### rate-enable (`u32`)

- **doc**:

  Enable / disable rate limiting

<a id="rst-flow-default-rate-u32"></a>



#### flow-default-rate (`u32`)

- **doc**:

  Obsolete, do not use

<a id="rst-flow-max-rate-u32"></a>



#### flow-max-rate (`u32`)

- **doc**:

  Per flow max rate

<a id="rst-buckets-log-u32"></a>



#### buckets-log (`u32`)

- **doc**:

  log2(number of buckets)

<a id="rst-flow-refill-delay-u32"></a>



#### flow-refill-delay (`u32`)

- **doc**:

  Flow credit refill delay in usec

<a id="rst-orphan-mask-u32"></a>



#### orphan-mask (`u32`)

- **doc**:

  Mask applied to orphaned skb hashes

<a id="rst-low-rate-threshold-u32"></a>



#### low-rate-threshold (`u32`)

- **doc**:

  Per packet delay under this rate

<a id="rst-ce-threshold-u32-1"></a>



#### ce-threshold (`u32`)

- **doc**:

  DCTCP-like CE marking threshold

<a id="rst-timer-slack-u32"></a>



#### timer-slack (`u32`)

<a id="rst-horizon-u32"></a>



#### horizon (`u32`)

- **doc**:

  Time horizon in usec

<a id="rst-horizon-drop-u8"></a>



#### horizon-drop (`u8`)

- **doc**:

  Drop packets beyond horizon, or cap their EDT

<a id="rst-priomap-binary"></a>



#### priomap (`binary`)

- **struct**:

  [tc-prio-qopt](#rst-tc-definition-tc-prio-qopt)

<a id="rst-weights-binary"></a>



#### weights (`binary`)

- **sub-type**:

  s32

- **doc**:

  Weights for each band

<a id="rst-fq-codel-attrs"></a>
<a id="rst-tc-attribute-set-fq-codel-attrs"></a>



### fq-codel-attrs

<a id="rst-target-u32-3"></a>



#### target (`u32`)

<a id="rst-limit-u32-3"></a>



#### limit (`u32`)

<a id="rst-interval-u32-1"></a>



#### interval (`u32`)

<a id="rst-ecn-u32-1"></a>



#### ecn (`u32`)

<a id="rst-flows-u32"></a>



#### flows (`u32`)

<a id="rst-quantum-u32-3"></a>



#### quantum (`u32`)

<a id="rst-ce-threshold-u32-2"></a>



#### ce-threshold (`u32`)

<a id="rst-drop-batch-size-u32"></a>



#### drop-batch-size (`u32`)

<a id="rst-memory-limit-u32-2"></a>



#### memory-limit (`u32`)

<a id="rst-ce-threshold-selector-u8"></a>



#### ce-threshold-selector (`u8`)

<a id="rst-ce-threshold-mask-u8"></a>



#### ce-threshold-mask (`u8`)

<a id="rst-fq-pie-attrs"></a>
<a id="rst-tc-attribute-set-fq-pie-attrs"></a>



### fq-pie-attrs

<a id="rst-limit-u32-4"></a>



#### limit (`u32`)

<a id="rst-flows-u32-1"></a>



#### flows (`u32`)

<a id="rst-target-u32-4"></a>



#### target (`u32`)

<a id="rst-tupdate-u32-1"></a>



#### tupdate (`u32`)

<a id="rst-alpha-u32-1"></a>



#### alpha (`u32`)

<a id="rst-beta-u32-1"></a>



#### beta (`u32`)

<a id="rst-quantum-u32-4"></a>



#### quantum (`u32`)

<a id="rst-memory-limit-u32-3"></a>



#### memory-limit (`u32`)

<a id="rst-ecn-prob-u32"></a>



#### ecn-prob (`u32`)

<a id="rst-ecn-u32-2"></a>



#### ecn (`u32`)

<a id="rst-bytemode-u32"></a>



#### bytemode (`u32`)

<a id="rst-dq-rate-estimator-u32"></a>



#### dq-rate-estimator (`u32`)

<a id="rst-netem-attrs"></a>
<a id="rst-tc-attribute-set-netem-attrs"></a>



### netem-attrs

<a id="rst-corr-binary"></a>



#### corr (`binary`)

- **struct**:

  [tc-netem-corr](#rst-tc-definition-tc-netem-corr)

<a id="rst-delay-dist-binary"></a>



#### delay-dist (`binary`)

- **sub-type**:

  s16

<a id="rst-reorder-binary"></a>



#### reorder (`binary`)

- **struct**:

  [tc-netem-reorder](#rst-tc-definition-tc-netem-reorder)

<a id="rst-corrupt-binary"></a>



#### corrupt (`binary`)

- **struct**:

  [tc-netem-corrupt](#rst-tc-definition-tc-netem-corrupt)

<a id="rst-loss-nest"></a>



#### loss (`nest`)

- **nested-attributes**:

  [netem-loss-attrs](#rst-tc-attribute-set-netem-loss-attrs)

<a id="rst-rate-binary-1"></a>



#### rate (`binary`)

- **struct**:

  [tc-netem-rate](#rst-tc-definition-tc-netem-rate)

<a id="rst-ecn-u32-3"></a>



#### ecn (`u32`)

<a id="rst-rate64-u64-1"></a>



#### rate64 (`u64`)

<a id="rst-pad-u32"></a>



#### pad (`u32`)

<a id="rst-latency64-s64"></a>



#### latency64 (`s64`)

<a id="rst-jitter64-s64"></a>



#### jitter64 (`s64`)

<a id="rst-slot-binary"></a>



#### slot (`binary`)

- **struct**:

  [tc-netem-slot](#rst-tc-definition-tc-netem-slot)

<a id="rst-slot-dist-binary"></a>



#### slot-dist (`binary`)

- **sub-type**:

  s16

<a id="rst-prng-seed-u64"></a>



#### prng-seed (`u64`)

<a id="rst-netem-loss-attrs"></a>
<a id="rst-tc-attribute-set-netem-loss-attrs"></a>



### netem-loss-attrs

<a id="rst-gi-binary"></a>



#### gi (`binary`)

- **doc**:

  General Intuitive - 4 state model

- **struct**:

  [tc-netem-gimodel](#rst-tc-definition-tc-netem-gimodel)

<a id="rst-ge-binary"></a>



#### ge (`binary`)

- **doc**:

  Gilbert Elliot models

- **struct**:

  [tc-netem-gemodel](#rst-tc-definition-tc-netem-gemodel)

<a id="rst-pie-attrs"></a>
<a id="rst-tc-attribute-set-pie-attrs"></a>



### pie-attrs

<a id="rst-target-u32-5"></a>



#### target (`u32`)

<a id="rst-limit-u32-5"></a>



#### limit (`u32`)

<a id="rst-tupdate-u32-2"></a>



#### tupdate (`u32`)

<a id="rst-alpha-u32-2"></a>



#### alpha (`u32`)

<a id="rst-beta-u32-2"></a>



#### beta (`u32`)

<a id="rst-ecn-u32-4"></a>



#### ecn (`u32`)

<a id="rst-bytemode-u32-1"></a>



#### bytemode (`u32`)

<a id="rst-dq-rate-estimator-u32-1"></a>



#### dq-rate-estimator (`u32`)

<a id="rst-police-attrs"></a>
<a id="rst-tc-attribute-set-police-attrs"></a>



### police-attrs

<a id="rst-tbf-binary"></a>



#### tbf (`binary`)

- **struct**:

  [tc-police](#rst-tc-definition-tc-police)

<a id="rst-rate-binary-2"></a>



#### rate (`binary`)

<a id="rst-peakrate-binary"></a>



#### peakrate (`binary`)

<a id="rst-avrate-u32"></a>



#### avrate (`u32`)

<a id="rst-result-u32"></a>



#### result (`u32`)

<a id="rst-tm-binary-16"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-pad-pad-25"></a>



#### pad (`pad`)

<a id="rst-rate64-u64-2"></a>



#### rate64 (`u64`)

<a id="rst-peakrate64-u64"></a>



#### peakrate64 (`u64`)

<a id="rst-pktrate64-u64"></a>



#### pktrate64 (`u64`)

<a id="rst-pktburst64-u64"></a>



#### pktburst64 (`u64`)

<a id="rst-qfq-attrs"></a>
<a id="rst-tc-attribute-set-qfq-attrs"></a>



### qfq-attrs

<a id="rst-weight-u32"></a>



#### weight (`u32`)

<a id="rst-lmax-u32"></a>



#### lmax (`u32`)

<a id="rst-red-attrs"></a>
<a id="rst-tc-attribute-set-red-attrs"></a>



### red-attrs

<a id="rst-parms-binary-20"></a>



#### parms (`binary`)

- **struct**:

  [tc-red-qopt](#rst-tc-definition-tc-red-qopt)

<a id="rst-stab-binary-2"></a>



#### stab (`binary`)

<a id="rst-max-p-u32-1"></a>



#### max-p (`u32`)

<a id="rst-flags-bitfield32-1"></a>



#### flags (`bitfield32`)

<a id="rst-early-drop-block-u32"></a>



#### early-drop-block (`u32`)

<a id="rst-mark-block-u32"></a>



#### mark-block (`u32`)

<a id="rst-route-attrs"></a>
<a id="rst-tc-attribute-set-route-attrs"></a>



### route-attrs

<a id="rst-classid-u32-5"></a>



#### classid (`u32`)

<a id="rst-to-u32"></a>



#### to (`u32`)

<a id="rst-from-u32"></a>



#### from (`u32`)

<a id="rst-iif-u32"></a>



#### iif (`u32`)

<a id="rst-police-nest-5"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-act-indexed-array-6"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-taprio-attrs"></a>
<a id="rst-tc-attribute-set-taprio-attrs"></a>



### taprio-attrs

<a id="rst-priomap-binary-1"></a>



#### priomap (`binary`)

- **struct**:

  [tc-mqprio-qopt](#rst-tc-definition-tc-mqprio-qopt)

<a id="rst-sched-entry-list-nest"></a>



#### sched-entry-list (`nest`)

- **nested-attributes**:

  [taprio-sched-entry-list](#rst-tc-attribute-set-taprio-sched-entry-list)

<a id="rst-sched-base-time-s64"></a>



#### sched-base-time (`s64`)

<a id="rst-sched-single-entry-nest"></a>



#### sched-single-entry (`nest`)

- **nested-attributes**:

  [taprio-sched-entry](#rst-tc-attribute-set-taprio-sched-entry)

<a id="rst-sched-clockid-s32"></a>



#### sched-clockid (`s32`)

<a id="rst-pad-pad-26"></a>



#### pad (`pad`)

<a id="rst-admin-sched-binary"></a>



#### admin-sched (`binary`)

<a id="rst-sched-cycle-time-s64"></a>



#### sched-cycle-time (`s64`)

<a id="rst-sched-cycle-time-extension-s64"></a>



#### sched-cycle-time-extension (`s64`)

<a id="rst-flags-u32-5"></a>



#### flags (`u32`)

<a id="rst-txtime-delay-u32"></a>



#### txtime-delay (`u32`)

<a id="rst-tc-entry-nest"></a>



#### tc-entry (`nest`)

- **nested-attributes**:

  [taprio-tc-entry-attrs](#rst-tc-attribute-set-taprio-tc-entry-attrs)

<a id="rst-taprio-sched-entry-list"></a>
<a id="rst-tc-attribute-set-taprio-sched-entry-list"></a>



### taprio-sched-entry-list

<a id="rst-entry-nest-1"></a>



#### entry (`nest`)

- **nested-attributes**:

  [taprio-sched-entry](#rst-tc-attribute-set-taprio-sched-entry)

- **multi-attr**:

  True

<a id="rst-taprio-sched-entry"></a>
<a id="rst-tc-attribute-set-taprio-sched-entry"></a>



### taprio-sched-entry

<a id="rst-index-u32-2"></a>



#### index (`u32`)

<a id="rst-cmd-u8"></a>



#### cmd (`u8`)

<a id="rst-gate-mask-u32"></a>



#### gate-mask (`u32`)

<a id="rst-interval-u32-2"></a>



#### interval (`u32`)

<a id="rst-taprio-tc-entry-attrs"></a>
<a id="rst-tc-attribute-set-taprio-tc-entry-attrs"></a>



### taprio-tc-entry-attrs

<a id="rst-index-u32-3"></a>



#### index (`u32`)

<a id="rst-max-sdu-u32"></a>



#### max-sdu (`u32`)

<a id="rst-fp-u32"></a>



#### fp (`u32`)

<a id="rst-tbf-attrs"></a>
<a id="rst-tc-attribute-set-tbf-attrs"></a>



### tbf-attrs

<a id="rst-parms-binary-21"></a>



#### parms (`binary`)

- **struct**:

  [tc-tbf-qopt](#rst-tc-definition-tc-tbf-qopt)

<a id="rst-rtab-binary-1"></a>



#### rtab (`binary`)

<a id="rst-ptab-binary"></a>



#### ptab (`binary`)

<a id="rst-rate64-u64-3"></a>



#### rate64 (`u64`)

<a id="rst-prate64-u64"></a>



#### prate64 (`u64`)

<a id="rst-burst-u32"></a>



#### burst (`u32`)

<a id="rst-pburst-u32"></a>



#### pburst (`u32`)

<a id="rst-pad-pad-27"></a>



#### pad (`pad`)

<a id="rst-act-sample-attrs"></a>
<a id="rst-tc-attribute-set-act-sample-attrs"></a>



### act-sample-attrs

<a id="rst-tm-binary-17"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-22"></a>



#### parms (`binary`)

- **struct**:

  [tc-gact](#rst-tc-definition-tc-gact)

<a id="rst-rate-u32"></a>



#### rate (`u32`)

<a id="rst-trunc-size-u32"></a>



#### trunc-size (`u32`)

<a id="rst-psample-group-u32"></a>



#### psample-group (`u32`)

<a id="rst-pad-pad-28"></a>



#### pad (`pad`)

<a id="rst-act-gact-attrs"></a>
<a id="rst-tc-attribute-set-act-gact-attrs"></a>



### act-gact-attrs

<a id="rst-tm-binary-18"></a>



#### tm (`binary`)

- **struct**:

  [tcf-t](#rst-tc-definition-tcf-t)

<a id="rst-parms-binary-23"></a>



#### parms (`binary`)

- **struct**:

  [tc-gact](#rst-tc-definition-tc-gact)

<a id="rst-prob-binary"></a>



#### prob (`binary`)

- **struct**:

  [tc-gact-p](#rst-tc-definition-tc-gact-p)

<a id="rst-pad-pad-29"></a>



#### pad (`pad`)

<a id="rst-tca-stab-attrs"></a>
<a id="rst-tc-attribute-set-tca-stab-attrs"></a>



### tca-stab-attrs

<a id="rst-base-binary"></a>



#### base (`binary`)

- **struct**:

  [tc-sizespec](#rst-tc-definition-tc-sizespec)

<a id="rst-data-binary-2"></a>



#### data (`binary`)

<a id="rst-tca-stats-attrs"></a>
<a id="rst-tc-attribute-set-tca-stats-attrs"></a>



### tca-stats-attrs

<a id="rst-basic-binary"></a>



#### basic (`binary`)

- **struct**:

  [gnet-stats-basic](#rst-tc-definition-gnet-stats-basic)

<a id="rst-rate-est-binary"></a>



#### rate-est (`binary`)

- **struct**:

  [gnet-stats-rate-est](#rst-tc-definition-gnet-stats-rate-est)

<a id="rst-queue-binary"></a>



#### queue (`binary`)

- **struct**:

  [gnet-stats-queue](#rst-tc-definition-gnet-stats-queue)

<a id="rst-app-sub-message"></a>



#### app (`sub-message`)

- **sub-message**:

  [tca-stats-app-msg](#rst-tc-sub-message-tca-stats-app-msg)

- **selector**:

  kind

<a id="rst-rate-est64-binary"></a>



#### rate-est64 (`binary`)

- **struct**:

  [gnet-stats-rate-est64](#rst-tc-definition-gnet-stats-rate-est64)

<a id="rst-pad-pad-30"></a>



#### pad (`pad`)

<a id="rst-basic-hw-binary"></a>



#### basic-hw (`binary`)

- **struct**:

  [gnet-stats-basic](#rst-tc-definition-gnet-stats-basic)

<a id="rst-pkt64-u64"></a>



#### pkt64 (`u64`)

<a id="rst-u32-attrs"></a>
<a id="rst-tc-attribute-set-u32-attrs"></a>



### u32-attrs

<a id="rst-classid-u32-6"></a>



#### classid (`u32`)

<a id="rst-hash-u32"></a>



#### hash (`u32`)

<a id="rst-link-u32"></a>



#### link (`u32`)

<a id="rst-divisor-u32-1"></a>



#### divisor (`u32`)

<a id="rst-sel-binary"></a>



#### sel (`binary`)

- **struct**:

  [tc-u32-sel](#rst-tc-definition-tc-u32-sel)

<a id="rst-police-nest-6"></a>



#### police (`nest`)

- **nested-attributes**:

  [police-attrs](#rst-tc-attribute-set-police-attrs)

<a id="rst-act-indexed-array-7"></a>



#### act (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [act-attrs](#rst-tc-attribute-set-act-attrs)

<a id="rst-indev-string-2"></a>



#### indev (`string`)

<a id="rst-pcnt-binary-2"></a>



#### pcnt (`binary`)

- **struct**:

  [tc-u32-pcnt](#rst-tc-definition-tc-u32-pcnt)

<a id="rst-mark-binary"></a>



#### mark (`binary`)

- **struct**:

  [tc-u32-mark](#rst-tc-definition-tc-u32-mark)

<a id="rst-flags-u32-6"></a>



#### flags (`u32`)

<a id="rst-pad-pad-31"></a>



#### pad (`pad`)

<a id="rst-sub-messages"></a>



## Sub-messages

<a id="rst-options-msg"></a>
<a id="rst-tc-sub-message-options-msg"></a>



### options-msg

- **basic**

  - **attribute-set**:

    [basic-attrs](#rst-tc-attribute-set-basic-attrs)

- **bpf**

  - **attribute-set**:

    [bpf-attrs](#rst-tc-attribute-set-bpf-attrs)

- **bfifo**

  - **fixed-header**:

    [tc-fifo-qopt](#rst-tc-definition-tc-fifo-qopt)

- **cake**

  - **attribute-set**:

    [cake-attrs](#rst-tc-attribute-set-cake-attrs)

- **cbs**

  - **attribute-set**:

    [cbs-attrs](#rst-tc-attribute-set-cbs-attrs)

- **cgroup**

  - **attribute-set**:

    [cgroup-attrs](#rst-tc-attribute-set-cgroup-attrs)

- **choke**

  - **attribute-set**:

    [choke-attrs](#rst-tc-attribute-set-choke-attrs)

- **clsact**


- **codel**

  - **attribute-set**:

    [codel-attrs](#rst-tc-attribute-set-codel-attrs)

- **drr**

  - **attribute-set**:

    [drr-attrs](#rst-tc-attribute-set-drr-attrs)

- **dualpi2**

  - **attribute-set**:

    [dualpi2-attrs](#rst-tc-attribute-set-dualpi2-attrs)

- **etf**

  - **attribute-set**:

    [etf-attrs](#rst-tc-attribute-set-etf-attrs)

- **ets**

  - **attribute-set**:

    [ets-attrs](#rst-tc-attribute-set-ets-attrs)

- **flow**

  - **attribute-set**:

    [flow-attrs](#rst-tc-attribute-set-flow-attrs)

- **flower**

  - **attribute-set**:

    [flower-attrs](#rst-tc-attribute-set-flower-attrs)

- **fq**

  - **attribute-set**:

    [fq-attrs](#rst-tc-attribute-set-fq-attrs)

- **fq\_codel**

  - **attribute-set**:

    [fq-codel-attrs](#rst-tc-attribute-set-fq-codel-attrs)

- **fq\_pie**

  - **attribute-set**:

    [fq-pie-attrs](#rst-tc-attribute-set-fq-pie-attrs)

- **fw**

  - **attribute-set**:

    [fw-attrs](#rst-tc-attribute-set-fw-attrs)

- **gred**

  - **attribute-set**:

    [gred-attrs](#rst-tc-attribute-set-gred-attrs)

- **hfsc**

  - **fixed-header**:

    [tc-hfsc-qopt](#rst-tc-definition-tc-hfsc-qopt)

- **hhf**

  - **attribute-set**:

    [hhf-attrs](#rst-tc-attribute-set-hhf-attrs)

- **htb**

  - **attribute-set**:

    [htb-attrs](#rst-tc-attribute-set-htb-attrs)

- **ingress**


- **matchall**

  - **attribute-set**:

    [matchall-attrs](#rst-tc-attribute-set-matchall-attrs)

- **mq**


- **mqprio**

  - **fixed-header**:

    [tc-mqprio-qopt](#rst-tc-definition-tc-mqprio-qopt)

- **multiq**

  - **fixed-header**:

    [tc-multiq-qopt](#rst-tc-definition-tc-multiq-qopt)

- **netem**

  - **fixed-header**:

    [tc-netem-qopt](#rst-tc-definition-tc-netem-qopt)

  - **attribute-set**:

    [netem-attrs](#rst-tc-attribute-set-netem-attrs)

- **pfifo**

  - **fixed-header**:

    [tc-fifo-qopt](#rst-tc-definition-tc-fifo-qopt)

- **pfifo\_fast**

  - **fixed-header**:

    [tc-prio-qopt](#rst-tc-definition-tc-prio-qopt)

- **pfifo\_head\_drop**

  - **fixed-header**:

    [tc-fifo-qopt](#rst-tc-definition-tc-fifo-qopt)

- **pie**

  - **attribute-set**:

    [pie-attrs](#rst-tc-attribute-set-pie-attrs)

- **plug**

  - **fixed-header**:

    [tc-plug-qopt](#rst-tc-definition-tc-plug-qopt)

- **prio**

  - **fixed-header**:

    [tc-prio-qopt](#rst-tc-definition-tc-prio-qopt)

- **qfq**

  - **attribute-set**:

    [qfq-attrs](#rst-tc-attribute-set-qfq-attrs)

- **red**

  - **attribute-set**:

    [red-attrs](#rst-tc-attribute-set-red-attrs)

- **route**

  - **attribute-set**:

    [route-attrs](#rst-tc-attribute-set-route-attrs)

- **sfb**

  - **fixed-header**:

    [tc-sfb-qopt](#rst-tc-definition-tc-sfb-qopt)

- **sfq**

  - **fixed-header**:

    [tc-sfq-qopt-v1](#rst-tc-definition-tc-sfq-qopt-v1)

- **taprio**

  - **attribute-set**:

    [taprio-attrs](#rst-tc-attribute-set-taprio-attrs)

- **tbf**

  - **attribute-set**:

    [tbf-attrs](#rst-tc-attribute-set-tbf-attrs)

- **u32**

  - **attribute-set**:

    [u32-attrs](#rst-tc-attribute-set-u32-attrs)

<a id="rst-act-options-msg"></a>
<a id="rst-tc-sub-message-act-options-msg"></a>



### act-options-msg

- **bpf**

  - **attribute-set**:

    [act-bpf-attrs](#rst-tc-attribute-set-act-bpf-attrs)

- **connmark**

  - **attribute-set**:

    [act-connmark-attrs](#rst-tc-attribute-set-act-connmark-attrs)

- **csum**

  - **attribute-set**:

    [act-csum-attrs](#rst-tc-attribute-set-act-csum-attrs)

- **ct**

  - **attribute-set**:

    [act-ct-attrs](#rst-tc-attribute-set-act-ct-attrs)

- **ctinfo**

  - **attribute-set**:

    [act-ctinfo-attrs](#rst-tc-attribute-set-act-ctinfo-attrs)

- **gact**

  - **attribute-set**:

    [act-gact-attrs](#rst-tc-attribute-set-act-gact-attrs)

- **gate**

  - **attribute-set**:

    [act-gate-attrs](#rst-tc-attribute-set-act-gate-attrs)

- **ife**

  - **attribute-set**:

    [act-ife-attrs](#rst-tc-attribute-set-act-ife-attrs)

- **mirred**

  - **attribute-set**:

    [act-mirred-attrs](#rst-tc-attribute-set-act-mirred-attrs)

- **mpls**

  - **attribute-set**:

    [act-mpls-attrs](#rst-tc-attribute-set-act-mpls-attrs)

- **nat**

  - **attribute-set**:

    [act-nat-attrs](#rst-tc-attribute-set-act-nat-attrs)

- **pedit**

  - **attribute-set**:

    [act-pedit-attrs](#rst-tc-attribute-set-act-pedit-attrs)

- **police**

  - **attribute-set**:

    [police-attrs](#rst-tc-attribute-set-police-attrs)

- **sample**

  - **attribute-set**:

    [act-sample-attrs](#rst-tc-attribute-set-act-sample-attrs)

- **simple**

  - **attribute-set**:

    [act-simple-attrs](#rst-tc-attribute-set-act-simple-attrs)

- **skbedit**

  - **attribute-set**:

    [act-skbedit-attrs](#rst-tc-attribute-set-act-skbedit-attrs)

- **skbmod**

  - **attribute-set**:

    [act-skbmod-attrs](#rst-tc-attribute-set-act-skbmod-attrs)

- **tunnel\_key**

  - **attribute-set**:

    [act-tunnel-key-attrs](#rst-tc-attribute-set-act-tunnel-key-attrs)

- **vlan**

  - **attribute-set**:

    [act-vlan-attrs](#rst-tc-attribute-set-act-vlan-attrs)

<a id="rst-tca-stats-app-msg"></a>
<a id="rst-tc-sub-message-tca-stats-app-msg"></a>



### tca-stats-app-msg

- **cake**

  - **attribute-set**:

    [cake-stats-attrs](#rst-tc-attribute-set-cake-stats-attrs)

- **choke**

  - **fixed-header**:

    [tc-choke-xstats](#rst-tc-definition-tc-choke-xstats)

- **codel**

  - **fixed-header**:

    [tc-codel-xstats](#rst-tc-definition-tc-codel-xstats)

- **dualpi2**

  - **fixed-header**:

    [tc-dualpi2-xstats](#rst-tc-definition-tc-dualpi2-xstats)

- **fq**

  - **fixed-header**:

    [tc-fq-qd-stats](#rst-tc-definition-tc-fq-qd-stats)

- **fq\_codel**

  - **fixed-header**:

    [tc-fq-codel-xstats](#rst-tc-definition-tc-fq-codel-xstats)

- **fq\_pie**

  - **fixed-header**:

    [tc-fq-pie-xstats](#rst-tc-definition-tc-fq-pie-xstats)

- **hhf**

  - **fixed-header**:

    [tc-hhf-xstats](#rst-tc-definition-tc-hhf-xstats)

- **pie**

  - **fixed-header**:

    [tc-pie-xstats](#rst-tc-definition-tc-pie-xstats)

- **red**

  - **fixed-header**:

    [tc-red-xstats](#rst-tc-definition-tc-red-xstats)

- **sfb**

  - **fixed-header**:

    [tc-sfb-xstats](#rst-tc-definition-tc-sfb-xstats)

- **sfq**

  - **fixed-header**:

    [tc-sfq-xstats](#rst-tc-definition-tc-sfq-xstats)

---

# Family tcp_metrics netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the tcp_metrics Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-tcp-metrics-netlink-specification"></a>
<a id="rst-netlink-tcp-metrics"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Management interface for TCP metrics.

<a id="rst-operations"></a>



## Operations

<a id="rst-get"></a>
<a id="rst-tcp-metrics-operation-get"></a>



### get



Retrieve metrics.

- **attribute-set**:

  [tcp-metrics](#rst-tcp-metrics-attribute-set-tcp-metrics)

- **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`\]

<a id="rst-del"></a>
<a id="rst-tcp-metrics-operation-del"></a>



### del



Delete metrics.

- **attribute-set**:

  [tcp-metrics](#rst-tcp-metrics-attribute-set-tcp-metrics)

- **dont-validate**:

  \['strict', 'dump'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`addr-ipv4`, `addr-ipv6`, `saddr-ipv4`, `saddr-ipv6`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-tcp-fastopen-cookie-max"></a>
<a id="rst-tcp-metrics-definition-tcp-fastopen-cookie-max"></a>



### tcp-fastopen-cookie-max

- **type**:

  const

- **value**:

  16

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-tcp-metrics"></a>
<a id="rst-tcp-metrics-attribute-set-tcp-metrics"></a>



### tcp-metrics

<a id="rst-addr-ipv4-u32"></a>



#### addr-ipv4 (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-addr-ipv6-binary"></a>



#### addr-ipv6 (`binary`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv6

<a id="rst-age-u64"></a>



#### age (`u64`)

<a id="rst-tw-tsval-u32"></a>



#### tw-tsval (`u32`)

- **doc**:

  unused

<a id="rst-tw-ts-stamp-s32"></a>



#### tw-ts-stamp (`s32`)

- **doc**:

  unused

<a id="rst-vals-nest"></a>



#### vals (`nest`)

- **nested-attributes**:

  [metrics](#rst-tcp-metrics-attribute-set-metrics)

<a id="rst-fopen-mss-u16"></a>



#### fopen-mss (`u16`)

<a id="rst-fopen-syn-drops-u16"></a>



#### fopen-syn-drops (`u16`)

<a id="rst-fopen-syn-drop-ts-u64"></a>



#### fopen-syn-drop-ts (`u64`)

<a id="rst-fopen-cookie-binary"></a>



#### fopen-cookie (`binary`)

<a id="rst-saddr-ipv4-u32"></a>



#### saddr-ipv4 (`u32`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv4

<a id="rst-saddr-ipv6-binary"></a>



#### saddr-ipv6 (`binary`)

- **byte-order**:

  big-endian

- **display-hint**:

  ipv6

<a id="rst-pad-pad"></a>



#### pad (`pad`)

<a id="rst-metrics"></a>
<a id="rst-tcp-metrics-attribute-set-metrics"></a>



### 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).

<a id="rst-rtt-u32"></a>



#### rtt (`u32`)

- **doc**:

  Round Trip Time (RTT), in msecs with 3 bits fractional (left-shift by 3 to get the msec value).

<a id="rst-rttvar-u32"></a>



#### rttvar (`u32`)

- **doc**:

  Round Trip Time VARiance (RTT), in msecs with 2 bits fractional (left-shift by 2 to get the msec value).

<a id="rst-ssthresh-u32"></a>



#### ssthresh (`u32`)

- **doc**:

  Slow Start THRESHold.

<a id="rst-cwnd-u32"></a>



#### cwnd (`u32`)

- **doc**:

  Congestion Window.

<a id="rst-reodering-u32"></a>



#### reodering (`u32`)

- **doc**:

  Reodering metric.

<a id="rst-rtt-us-u32"></a>



#### rtt-us (`u32`)

- **doc**:

  Round Trip Time (RTT), in usecs, with 3 bits fractional (left-shift by 3 to get the msec value).

<a id="rst-rttvar-us-u32"></a>



#### 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_

> Protocol reference for the team Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-team-netlink-specification"></a>
<a id="rst-netlink-team"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## Summary



Network team device driver.

<a id="rst-operations"></a>



## Operations

<a id="rst-noop"></a>
<a id="rst-team-operation-noop"></a>



### noop



No operation

- **value**:

  0

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **do**:

  **reply**

  - **attributes**:

    \[`team-ifindex`\]

<a id="rst-options-set"></a>
<a id="rst-team-operation-options-set"></a>



### options-set



Set team options

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`team-ifindex`, `list-option`\]

  **reply**

  - **attributes**:

    \[`team-ifindex`, `list-option`\]

<a id="rst-options-get"></a>
<a id="rst-team-operation-options-get"></a>



### options-get



Get team options info

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`team-ifindex`\]

  **reply**

  - **attributes**:

    \[`team-ifindex`, `list-option`\]

<a id="rst-port-list-get"></a>
<a id="rst-team-operation-port-list-get"></a>



### port-list-get



Get team ports info

- **attribute-set**:

  [team](#rst-team-attribute-set-team)

- **dont-validate**:

  \['strict'\]

- **flags**:

  \[`admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`team-ifindex`\]

  **reply**

  - **attributes**:

    \[`team-ifindex`, `list-port`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-string-max-len"></a>
<a id="rst-team-definition-string-max-len"></a>



### string-max-len

- **type**:

  const

- **value**:

  32

<a id="rst-genl-change-event-mc-grp-name"></a>
<a id="rst-team-definition-genl-change-event-mc-grp-name"></a>



### genl-change-event-mc-grp-name

- **type**:

  const

- **value**:

  change\_event

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-team"></a>
<a id="rst-team-attribute-set-team"></a>



### team



The team nested layout of get/set msg looks like:

```text
[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_*], ...
    ...
```

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-team-ifindex-u32"></a>



#### team-ifindex (`u32`)

<a id="rst-list-option-nest"></a>



#### list-option (`nest`)

- **nested-attributes**:

  [item-option](#rst-team-attribute-set-item-option)

<a id="rst-list-port-nest"></a>



#### list-port (`nest`)

- **nested-attributes**:

  [item-port](#rst-team-attribute-set-item-port)

<a id="rst-item-option"></a>
<a id="rst-team-attribute-set-item-option"></a>



### item-option

<a id="rst-option-unspec-unused"></a>



#### option-unspec (`unused`)

- **value**:

  0

<a id="rst-option-nest"></a>



#### option (`nest`)

- **nested-attributes**:

  [attr-option](#rst-team-attribute-set-attr-option)

<a id="rst-attr-option"></a>
<a id="rst-team-attribute-set-attr-option"></a>



### attr-option

<a id="rst-unspec-unused-1"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-name-string"></a>



#### name (`string`)

<a id="rst-changed-flag"></a>



#### changed (`flag`)

<a id="rst-type-u8"></a>



#### type (`u8`)

<a id="rst-data-binary"></a>



#### data (`binary`)

<a id="rst-removed-flag"></a>



#### removed (`flag`)

<a id="rst-port-ifindex-u32"></a>



#### port-ifindex (`u32`)

- **doc**:

  for per-port options

<a id="rst-array-index-u32"></a>



#### array-index (`u32`)

- **doc**:

  for array options

<a id="rst-item-port"></a>
<a id="rst-team-attribute-set-item-port"></a>



### item-port

<a id="rst-port-unspec-unused"></a>



#### port-unspec (`unused`)

- **value**:

  0

<a id="rst-port-nest"></a>



#### port (`nest`)

- **nested-attributes**:

  [attr-port](#rst-team-attribute-set-attr-port)

<a id="rst-attr-port"></a>
<a id="rst-team-attribute-set-attr-port"></a>



### attr-port

<a id="rst-unspec-unused-2"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

<a id="rst-changed-flag-1"></a>



#### changed (`flag`)

<a id="rst-linkup-flag"></a>



#### linkup (`flag`)

<a id="rst-speed-u32"></a>



#### speed (`u32`)

<a id="rst-duplex-u8"></a>



#### duplex (`u8`)

<a id="rst-removed-flag-1"></a>



#### removed (`flag`)

---

# Family wireguard netlink specification

_Peios Kernel / Internals / Netlink / specs_

> Protocol reference for the wireguard Netlink family, generated from the Peios kernel specification.

<!-- SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) -->


<a id="rst-family-wireguard-netlink-specification"></a>
<a id="rst-netlink-wireguard"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

<a id="rst-summary"></a>



## 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.

<a id="rst-operations"></a>



## Operations

<a id="rst-get-device"></a>
<a id="rst-wireguard-operation-get-device"></a>



### get-device

<a id="rst-retrieve-wireguard-device"></a>



#### 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**:

  [wgdevice](#rst-wireguard-attribute-set-wgdevice)

- **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`\]

<a id="rst-set-device"></a>
<a id="rst-wireguard-operation-set-device"></a>



### set-device

<a id="rst-set-wireguard-device"></a>



#### 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**:

  [wgdevice](#rst-wireguard-attribute-set-wgdevice)

- **flags**:

  \[`uns-admin-perm`\]

- **do**:

  **request**

  - **attributes**:

    \[`ifindex`, `ifname`, `private-key`, `public-key`, `flags`, `listen-port`, `fwmark`, `peers`\]

<a id="rst-definitions"></a>



## Definitions

<a id="rst-key-len"></a>
<a id="rst-wireguard-definition-key-len"></a>



### key-len

- **name-prefix**:

  wg-

- **type**:

  const

- **value**:

  32

<a id="rst-kernel-timespec"></a>
<a id="rst-wireguard-definition-kernel-timespec"></a>



### --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.

<a id="rst-wgdevice-flags"></a>
<a id="rst-wireguard-definition-wgdevice-flags"></a>



### wgdevice-flags

- **name-prefix**:

  wgdevice-f-

- **enum-name**:

  wgdevice-flag

- **type**:

  flags

- **entries**:

  - `replace-peers`

<a id="rst-wgpeer-flags"></a>
<a id="rst-wireguard-definition-wgpeer-flags"></a>



### wgpeer-flags

- **name-prefix**:

  wgpeer-f-

- **enum-name**:

  wgpeer-flag

- **type**:

  flags

- **entries**:

  - `remove-me`


  - `replace-allowedips`


  - `update-only`

<a id="rst-wgallowedip-flags"></a>
<a id="rst-wireguard-definition-wgallowedip-flags"></a>



### wgallowedip-flags

- **name-prefix**:

  wgallowedip-f-

- **enum-name**:

  wgallowedip-flag

- **type**:

  flags

- **entries**:

  - `remove-me`

<a id="rst-attribute-sets"></a>



## Attribute sets

<a id="rst-wgdevice"></a>
<a id="rst-wireguard-attribute-set-wgdevice"></a>



### wgdevice

<a id="rst-unspec-unused"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-ifindex-u32"></a>



#### ifindex (`u32`)

<a id="rst-ifname-string"></a>



#### ifname (`string`)

<a id="rst-private-key-binary"></a>



#### private-key (`binary`)

- **doc**:

  Set to all zeros to remove.

- **display-hint**:

  hex

<a id="rst-public-key-binary"></a>



#### public-key (`binary`)

- **display-hint**:

  hex

<a id="rst-flags-u32"></a>



#### flags (`u32`)

- **doc**:

  `0` or `WGDEVICE_F_REPLACE_PEERS` if all current peers should be removed prior to adding the list below.

- **enum**:

  [wgdevice-flags](#rst-wireguard-definition-wgdevice-flags)

<a id="rst-listen-port-u16"></a>



#### listen-port (`u16`)

- **doc**:

  Set as `0` to choose randomly.

<a id="rst-fwmark-u32"></a>



#### fwmark (`u32`)

- **doc**:

  Set as `0` to disable.

<a id="rst-peers-indexed-array"></a>



#### peers (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [wgpeer](#rst-wireguard-attribute-set-wgpeer)

- **doc**:

  The index/type parameter is unused on `SET_DEVICE` operations and is zero on `GET_DEVICE` operations.

<a id="rst-wgpeer"></a>
<a id="rst-wireguard-attribute-set-wgpeer"></a>



### wgpeer

<a id="rst-unspec-unused-1"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-public-key-binary-1"></a>



#### public-key (`binary`)

- **display-hint**:

  hex

<a id="rst-preshared-key-binary"></a>



#### preshared-key (`binary`)

- **doc**:

  Set as all zeros to remove.

- **display-hint**:

  hex

<a id="rst-flags-u32-1"></a>



#### flags (`u32`)

- **doc**:

  `0` and/or `WGPEER_F_REMOVE_ME` if the specified peer should not exist at the end of the operation, rather than added/updated and/or `WGPEER_F_REPLACE_ALLOWEDIPS` if all current allowed IPs of this peer should be removed prior to adding the list below and/or `WGPEER_F_UPDATE_ONLY` if the peer should only be set if it already exists.

- **enum**:

  [wgpeer-flags](#rst-wireguard-definition-wgpeer-flags)

<a id="rst-endpoint-binary"></a>



#### endpoint (`binary`)

- **doc**:

  struct sockaddr\_in or struct sockaddr\_in6

<a id="rst-persistent-keepalive-interval-u16"></a>



#### persistent-keepalive-interval (`u16`)

- **doc**:

  Set as `0` to disable.

<a id="rst-last-handshake-time-binary"></a>



#### last-handshake-time (`binary`)

- **struct**:

  [--kernel-timespec](#rst-wireguard-definition-kernel-timespec)

<a id="rst-rx-bytes-u64"></a>



#### rx-bytes (`u64`)

<a id="rst-tx-bytes-u64"></a>



#### tx-bytes (`u64`)

<a id="rst-allowedips-indexed-array"></a>



#### allowedips (`indexed-array`)

- **sub-type**:

  nest

- **nested-attributes**:

  [wgallowedip](#rst-wireguard-attribute-set-wgallowedip)

- **doc**:

  The index/type parameter is unused on `SET_DEVICE` operations and is zero on `GET_DEVICE` operations.

<a id="rst-protocol-version-u32"></a>



#### 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`.

<a id="rst-wgallowedip"></a>
<a id="rst-wireguard-attribute-set-wgallowedip"></a>



### wgallowedip

<a id="rst-unspec-unused-2"></a>



#### unspec (`unused`)

- **value**:

  0

<a id="rst-family-u16"></a>



#### family (`u16`)

- **doc**:

  IP family, either `AF_INET` or `AF_INET6`.

<a id="rst-ipaddr-binary"></a>



#### ipaddr (`binary`)

- **doc**:

  Either `struct in_addr` or `struct in6_addr`.

- **display-hint**:

  ipv4-or-v6

<a id="rst-cidr-mask-u8"></a>



#### cidr-mask (`u8`)

<a id="rst-flags-u32-2"></a>



#### flags (`u32`)

- **doc**:

  `WGALLOWEDIP_F_REMOVE_ME` if the specified IP should be removed; otherwise, this IP will be added if it is not already present.

- **enum**:

  [wgallowedip-flags](#rst-wireguard-definition-wgallowedip-flags)

---

# 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.

Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.


```yaml
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
%YAML 1.2
---
$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: [ string, integer ]
    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: [ string, integer ]
    pattern: ^[0-9A-Za-z_-]+$
    minimum: 0

# Schema for specs
title: Protocol
description: Specification of a genetlink protocol
type: object
required: [ name, doc, attribute-sets, operations ]
additionalProperties: False
properties:
  name:
    description: Name of the genetlink family.
    type: string
  doc:
    type: string
  protocol:
    description: Schema compatibility level. Default is "genetlink".
    enum: [ genetlink, genetlink-c ]
  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: [ type, name ]
      additionalProperties: False
      properties:
        name:
          type: string
        header:
          description: For C-compatible languages, header which already defines this value.
          type: string
        type:
          enum: [ const, enum, flags ]
        doc:
          type: string
        # For const
        value:
          description: For const - the value.
          type: [ string, integer ]
        # For enum and flags
        value-start:
          description: For enum or flags the literal initializer for the first value.
          type: [ string, integer ]
        entries:
          description: For enum or flags array of values.
          type: array
          items:
            oneOf:
              - type: string
              - type: object
                required: [ name ]
                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: [ string, "null" ]
        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: [ name, attributes ]
      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: [ string, "null" ]
        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: [ name ]
            additionalProperties: False
            properties:
              name:
                type: string
              type: &attr-type
                enum: [ unused, pad, flag, binary,
                        uint, sint, u8, u16, u32, u64, s8, s16, s32, s64,
                        string, nest, indexed-array, nest-type-value ]
              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: [ little-endian, big-endian ]
              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
                description: |
                  Optional format indicator that is intended only for choosing
                  the right formatting mechanism when displaying values of this
                  type.
                enum: [ hex, mac, fddi, ipv4, ipv6, ipv4-or-v6, uuid ]
              # 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 ]
        subset-of:
          not:
            required: [ name-prefix ]

      # type property is only required if not in subset definition
      if:
        properties:
          subset-of:
            not:
              type: string
      then:
        properties:
          attributes:
            items:
              required: [ type ]

  operations:
    description: Operations supported by the protocol.
    type: object
    required: [ list ]
    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: [ unified ]
      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: [ string, "null" ]
      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: [ string, "null" ]
      list:
        description: List of commands
        type: array
        items:
          type: object
          additionalProperties: False
          required: [ name, doc ]
          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: &cmd_flags
              description: Command flags.
              type: array
              items:
                enum: [ admin-perm ]
            dont-validate:
              description: Kernel attribute validation flags.
              type: array
              items:
                enum: [ strict, dump, dump-strict ]
            config-cond:
              description: |
                Name of the kernel config option gating the presence of
                the operation, without the 'CONFIG_' prefix.
              type: string
            do: &subop-type
              description: Main command handler.
              type: object
              additionalProperties: False
              properties:
                request: &subop-attr-list
                  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: [ list ]
    additionalProperties: False
    properties:
      list:
        description: List of groups.
        type: array
        items:
          type: object
          required: [ name ]
          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.

Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.


```yaml
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
%YAML 1.2
---
$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: [ string, integer ]
    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: [ string, integer ]
    pattern: ^[0-9A-Za-z_-]+$
    minimum: 0

# Schema for specs
title: Protocol
description: Specification of a genetlink protocol
type: object
required: [ name, doc, attribute-sets, operations ]
additionalProperties: False
properties:
  name:
    description: Name of the genetlink family.
    type: string
  doc:
    type: string
  protocol:
    description: Schema compatibility level. Default is "genetlink".
    enum: [ genetlink, genetlink-c, genetlink-legacy ] # 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: [ split, per-op, global ]
  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: [ type, name ]
      additionalProperties: False
      properties:
        name:
          $ref: '#/$defs/name'
        header:
          description: For C-compatible languages, header which already defines this value.
          type: string
        type:
          enum: [ const, enum, flags, struct ] # Trim
        doc:
          type: string
        # For const
        value:
          description: For const - the value.
          type: [ string, integer ]
        # For enum and flags
        value-start:
          description: For enum or flags the literal initializer for the first value.
          type: [ string, integer ]
        entries:
          description: For enum or flags array of values.
          type: array
          items:
            oneOf:
              - type: string
              - type: object
                required: [ name ]
                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: [ string, "null" ]
        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: [ name, type ]
            additionalProperties: False
            properties:
              name:
                $ref: '#/$defs/name'
              type:
                description: The netlink attribute type
                enum: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary ]
              len:
                $ref: '#/$defs/len-or-define'
              byte-order:
                enum: [ little-endian, big-endian ]
              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: &display-hint
                description: |
                  Optional format indicator that is intended only for choosing
                  the right formatting mechanism when displaying values of this
                  type.
                enum: [ hex, mac, fddi, ipv4, ipv6, ipv4-or-v6, uuid ]
              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: [ name, attributes ]
      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: [ string, "null" ]
        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: [ name ]
            additionalProperties: False
            properties:
              name:
                $ref: '#/$defs/name'
              type: &attr-type
                description: The netlink attribute type
                enum: [ unused, pad, flag, binary, bitfield32,
                        uint, sint, u8, u16, u32, u64, s8, s16, s32, s64,
                        string, nest, indexed-array, nest-type-value ]
              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: [ little-endian, big-endian ]
              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 ]
        subset-of:
          not:
            required: [ name-prefix ]

      # type property is only required if not in subset definition
      if:
        properties:
          subset-of:
            not:
              type: string
      then:
        properties:
          attributes:
            items:
              required: [ type ]

  operations:
    description: Operations supported by the protocol.
    type: object
    required: [ list ]
    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: [ unified, directional ] # 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: [ string, "null" ]
      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: [ string, "null" ]
      # Start genetlink-legacy
      fixed-header: &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: [ name, doc ]
          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: &cmd_flags
              description: Command flags.
              type: array
              items:
                enum: [ admin-perm, uns-admin-perm ]
            dont-validate:
              description: Kernel attribute validation flags.
              type: array
              items:
                enum: [ strict, dump, dump-strict ]
            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: &subop-type
              description: Main command handler.
              type: object
              additionalProperties: False
              properties:
                request: &subop-attr-list
                  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: [ list ]
    additionalProperties: False
    properties:
      list:
        description: List of groups.
        type: array
        items:
          type: object
          required: [ name ]
          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.

Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.


```yaml
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
%YAML 1.2
---
$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: [ string, integer ]
    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: [ string, integer ]
    pattern: ^[0-9A-Za-z_-]+$
    minimum: 0

# Schema for specs
title: Protocol
description: Specification of a genetlink protocol
type: object
required: [ name, doc, attribute-sets, operations ]
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: [ genetlink ]
  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: [ type, name ]
      additionalProperties: False
      properties:
        name:
          $ref: '#/$defs/name'
        header:
          description: For C-compatible languages, header which already defines this value.
          type: string
        type:
          enum: [ const, enum, flags ]
        doc:
          type: string
        # For const
        value:
          description: For const - the value.
          type: [ string, integer ]
        # For enum and flags
        value-start:
          description: For enum or flags the literal initializer for the first value.
          type: [ string, integer ]
        entries:
          description: For enum or flags array of values.
          type: array
          items:
            oneOf:
              - type: string
              - type: object
                required: [ name ]
                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: [ name, attributes ]
      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: [ name ]
            additionalProperties: False
            properties:
              name:
                $ref: '#/$defs/name'
              type: &attr-type
                enum: [ unused, pad, flag, binary,
                        uint, sint, u8, u16, u32, u64, s8, s16, s32, s64,
                        string, nest, indexed-array, nest-type-value ]
              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: [ little-endian, big-endian ]
              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: &display-hint
                description: |
                  Optional format indicator that is intended only for choosing
                  the right formatting mechanism when displaying values of this
                  type.
                enum: [ hex, mac, fddi, ipv4, ipv6, ipv4-or-v6, uuid ]

      # Make sure name-prefix does not appear in subsets (subsets inherit naming)
      dependencies:
        name-prefix:
          not:
            required: [ subset-of ]
        subset-of:
          not:
            required: [ name-prefix ]

      # type property is only required if not in subset definition
      if:
        properties:
          subset-of:
            not:
              type: string
      then:
        properties:
          attributes:
            items:
              required: [ type ]

  operations:
    description: Operations supported by the protocol.
    type: object
    required: [ list ]
    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: [ unified ]
      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: [ name, doc ]
          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: &cmd_flags
              description: Command flags.
              type: array
              items:
                enum: [ admin-perm ]
            dont-validate:
              description: Kernel attribute validation flags.
              type: array
              items:
                enum: [ strict, dump, dump-strict ]
            config-cond:
              description: |
                Name of the kernel config option gating the presence of
                the operation, without the 'CONFIG_' prefix.
              type: string
            do: &subop-type
              description: Main command handler.
              type: object
              additionalProperties: False
              properties:
                request: &subop-attr-list
                  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: [ list ]
    additionalProperties: False
    properties:
      list:
        description: List of groups.
        type: array
        items:
          type: object
          required: [ name ]
          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.

Machine-readable schema defining the structure and constraints of Netlink specifications. This is the schema source, including its descriptions and validation rules.


```yaml
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
%YAML 1.2
---
$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: [ string, integer ]
    pattern: ^[0-9A-Za-z_-]+( - 1)?$
    minimum: 0

# Schema for specs
title: Protocol
description: Specification of a raw netlink protocol
type: object
required: [ name, doc, attribute-sets, operations ]
additionalProperties: False
properties:
  name:
    description: Name of the netlink family.
    type: string
  doc:
    type: string
  protocol:
    description: Schema compatibility level.
    enum: [ netlink-raw ] # 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: [ split, per-op, global ]
  # End genetlink-legacy

  definitions:
    description: List of type and constant definitions (enums, flags, defines).
    type: array
    items:
      type: object
      required: [ type, name ]
      additionalProperties: False
      properties:
        name:
          $ref: '#/$defs/name'
        header:
          description: For C-compatible languages, header which already defines this value.
          type: string
        type:
          enum: [ const, enum, flags, struct ] # Trim
        doc:
          type: string
        # For const
        value:
          description: For const - the value.
          type: [ string, integer ]
        # For enum and flags
        value-start:
          description: For enum or flags the literal initializer for the first value.
          type: [ string, integer ]
        entries:
          description: For enum or flags array of values.
          type: array
          items:
            oneOf:
              - type: string
              - type: object
                required: [ name ]
                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: [ string, "null" ]
        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: [ name, type ]
            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: [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary, pad ]
              len:
                $ref: '#/$defs/len-or-define'
              byte-order:
                enum: [ little-endian, big-endian ]
              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: &display-hint
                description: |
                  Optional format indicator that is intended only for choosing
                  the right formatting mechanism when displaying values of this
                  type.
                enum: [ hex, mac, fddi, ipv4, ipv6, ipv4-or-v6, uuid ]
              struct:
                description: Name of the nested struct type.
                type: string
            if:
              properties:
                type:
                  const: pad
            then:
              required: [ len ]
            if:
              properties:
                type:
                  const: binary
            then:
              oneOf:
                - required: [ len ]
                - required: [ struct ]
        # 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: [ name, attributes ]
      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: [ string, "null" ]
        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: [ name ]
            additionalProperties: False
            properties:
              name:
                $ref: '#/$defs/name'
              type: &attr-type
                description: The netlink attribute type
                enum: [ unused, pad, flag, binary, bitfield32,
                        uint, sint, u8, u16, u32, u64, s8, s16, s32, s64,
                        string, nest, indexed-array, nest-type-value,
                        sub-message ]
              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: [ little-endian, big-endian ]
              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 ]
        subset-of:
          not:
            required: [ name-prefix ]

      # type property is only required if not in subset definition
      if:
        properties:
          subset-of:
            not:
              type: string
      then:
        properties:
          attributes:
            items:
              required: [ type ]

  # Start netlink-raw
  sub-messages:
    description: Definition of sub message attributes
    type: array
    items:
      type: object
      additionalProperties: False
      required: [ name, formats ]
      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: [ value ]
            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: [ list ]
    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: [ unified, directional ] # 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: [ string, "null" ]
      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: [ string, "null" ]
      # Start genetlink-legacy
      fixed-header: &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: [ name, doc ]
          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: &cmd_flags
              description: Command flags.
              type: array
              items:
                enum: [ admin-perm ]
            dont-validate:
              description: Kernel attribute validation flags.
              type: array
              items:
                enum: [ strict, dump ]
            # Start genetlink-legacy
            fixed-header: *fixed-header
            # End genetlink-legacy
            do: &subop-type
              description: Main command handler.
              type: object
              additionalProperties: False
              properties:
                request: &subop-attr-list
                  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: [ list ]
    additionalProperties: False
    properties:
      list:
        description: List of groups.
        type: array
        items:
          type: object
          required: [ name ]
          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

```
