The Linux Kernel
5.14.0
  • The Linux kernel user’s and administrator’s guide
  • Kernel Build System
  • The Linux kernel firmware guide
  • Open Firmware and Devicetree
  • The Linux kernel user-space API guide
  • Working with the kernel development community
  • Development tools for the kernel
  • How to write kernel documentation
  • Kernel Hacking Guides
  • Linux Tracing Technologies
  • Kernel Maintainer Handbook
  • fault-injection
  • Kernel Livepatching
  • Rust
  • The Linux driver implementer’s API guide
  • Core API Documentation
  • locking
  • Accounting
  • Block
  • cdrom
  • Linux CPUFreq - CPU frequency and voltage scaling code in the Linux(TM) kernel
  • Integrated Drive Electronics (IDE)
  • Frame Buffer
  • fpga
  • Human Interface Devices (HID)
  • I2C/SMBus Subsystem
  • Industrial I/O
  • ISDN
  • InfiniBand
  • LEDs
  • NetLabel
  • Linux Networking Documentation
    • netdev FAQ
    • AF_XDP
    • Bare UDP Tunnelling Module Documentation
    • batman-adv
    • SocketCAN - Controller Area Network
    • The UCAN Protocol
    • Hardware Device Drivers
    • Distributed Switch Architecture
    • Linux Devlink Documentation
    • CAIF
    • Netlink interface for ethtool
    • IEEE 802.15.4 Developer’s Guide
    • J1939 Documentation
    • Linux Networking and Network Devices APIs
    • MSG_ZEROCOPY
    • FAILOVER
    • Net DIM - Generic Network Dynamic Interrupt Moderation
    • NET_FAILOVER
    • Page Pool API
    • PHY Abstraction Layer
    • phylink
    • IP-Aliasing
    • Ethernet Bridging
    • SNMP counter
    • Checksum Offloads
    • Segmentation Offloads
    • Scaling in the Linux Networking Stack
    • Kernel TLS
    • Kernel TLS offload
    • In-Kernel TLS Handshake
    • Linux NFC subsystem
    • Netdev private dataroom for 6lowpan interfaces
    • 6pack Protocol
    • ARCnet Hardware
    • ARCnet
    • ATM
    • AX.25
    • Linux Ethernet Bonding Driver HOWTO
    • cdc_mbim - Driver for CDC MBIM Mobile Broadband modems
    • DCCP protocol
    • DCTCP (DataCenter TCP)
    • Linux DECnet Networking Layer Information
    • DNS Resolver Module
    • Softnet Driver Issues
    • EQL Driver: Serial IP Load Balancing HOWTO
    • LC-trie implementation notes
    • Linux Socket Filtering aka Berkeley Packet Filter (BPF)
    • Generic HDLC layer
    • Generic Netlink
    • Netlink Family Specifications
      • Family devlink netlink specification
      • Family dpll netlink specification
      • Family ethtool netlink specification
      • Family fou netlink specification
      • Family handshake netlink specification
      • Family mptcp_pm netlink specification
      • Family netdev netlink specification
      • Family nfsd netlink specification
      • Family ovs_datapath netlink specification
      • Family ovs_flow netlink specification
      • Family ovs_vport netlink specification
      • Family rt-addr netlink specification
      • Family rt-link netlink specification
      • Family rt-route netlink specification
      • Family tc netlink specification
        • Summary
        • Operations
        • Multicast groups
        • Definitions
        • Attribute sets
        • Sub-messages
    • Generic networking statistics for netlink users
    • The Linux kernel GTP tunneling module
    • Identifier Locator Addressing (ILA)
    • AppleTalk-IP Decapsulation and AppleTalk-IP Encapsulation
    • IP dynamic address hack-port v0.03
    • IPsec
    • IP Sysctl
    • IPv6
    • IPVLAN Driver HOWTO
    • IPvs-sysctl
    • Kernel Connection Multiplexor
    • L2TP
    • The Linux LAPB Module Interface
    • How to use packet injection with mac80211
    • MPLS Sysfs variables
    • MPTCP Sysfs variables
    • HOWTO for multiqueue network device support
    • Common Networking Struct Cachelines
    • Netconsole
    • Netdev features mess and how to get out from it alive
    • Network Devices, the Kernel, and You!
    • Netfilter Sysfs variables
    • NETIF Msg Level
    • Resilient Next-hop Groups
    • Netfilter Conntrack Sysfs variables
    • Netfilter’s flowtable infrastructure
    • Open vSwitch datapath developer documentation
    • Operational States
    • Packet MMAP
    • Linux Phonet protocol family
    • HOWTO for the linux packet generator
    • PLIP: The Parallel Line Internet Protocol Device
    • PPP Generic Driver and Channel Interface
    • The proc/net/tcp and proc/net/tcp6 variables
    • Power Sourcing Equipment (PSE) Documentation
    • How to use radiotap headers
    • Overview
    • RDS Architecture
    • Socket Interface
    • RDMA for RDS
    • Congestion Notifications
    • RDS Protocol
    • RDS Transport Layer
    • RDS Kernel Structures
    • Connection management
    • The send path
    • The recv path
    • Multipath RDS (mprds)
    • Linux wireless regulatory documentation
    • Network Function Representors
    • RxRPC Network Protocol
    • SOCKET OPTIONS
    • SECURITY
    • EXAMPLE CLIENT USAGE
    • Linux Kernel SCTP
    • LSM/SeLinux secid
    • Seg6 Sysfs variables
    • Interface statistics
    • Stream Parser (strparser)
    • Ethernet switch device driver model (switchdev)
    • Sysfs tagging
    • TC Actions - Environmental Rules
    • TC queue based filtering
    • Thin-streams and TCP
    • Team
    • Timestamping
    • Linux Kernel TIPC
    • Transparent proxy support
    • Universal TUN/TAP device driver
    • The UDP-Lite protocol (RFC 3828)
    • Virtual Routing and Forwarding (VRF)
    • Virtual eXtensible Local Area Networking documentation
    • Packet Layer to Device Driver
    • Device Driver to Packet Layer
    • Requirements for the device driver
    • Linux X.25 Project
    • XFRM device - offloading the IPsec computations
    • XFRM proc - /proc/net/xfrm_* files
    • XFRM
    • XFRM Syscall
    • XDP RX Metadata
    • AF_XDP TX Metadata
  • pcmcia
  • Power Management
  • TCM Virtual Device
  • timers
  • Serial Peripheral Interface (SPI)
  • 1-Wire Subsystem
  • Linux Watchdog Support
  • Linux Virtualization Support
  • The Linux Input Documentation
  • Linux Hardware Monitoring
  • Linux GPU Driver Developer’s Guide
  • Security Documentation
  • Sound Subsystem Documentation
  • Linux Kernel Crypto API
  • Filesystems in the Linux kernel
  • Linux Memory Management Documentation
  • BPF Documentation
  • USB support
  • Linux PCI Bus Subsystem
  • Linux SCSI Subsystem
  • Assorted Miscellaneous Devices Documentation
  • Linux Scheduler
  • MHI
  • TTY
  • Assembler Annotations
  • CPU Architectures
  • Kernel tools
  • Unsorted Documentation
  • Atomic Types
  • Atomic bitops
  • Memory Barriers
  • General notification mechanism
  • Translations
The Linux Kernel
  • »
  • Linux Networking Documentation »
  • Netlink Family Specifications »
  • Family tc netlink specification
  • View page source

Family tc netlink specification¶

Contents

  • Family tc netlink specification

    • Summary

    • Operations

      • newqdisc

      • delqdisc

      • getqdisc

      • newtclass

      • deltclass

      • gettclass

      • newtfilter

      • deltfilter

      • gettfilter

      • newchain

      • delchain

      • getchain

    • Multicast groups

    • Definitions

      • tcmsg

      • tc-cls-flags

      • tc-flower-key-ctrl-flags

      • tc-stats

      • tc-cbs-qopt

      • tc-etf-qopt

      • tc-fifo-qopt

      • tc-htb-opt

      • tc-htb-glob

      • tc-gred-qopt

      • tc-gred-sopt

      • tc-hfsc-qopt

      • tc-mqprio-qopt

      • tc-multiq-qopt

      • tc-netem-qopt

      • tc-netem-gimodel

      • tc-netem-gemodel

      • tc-netem-corr

      • tc-netem-reorder

      • tc-netem-corrupt

      • tc-netem-rate

      • tc-netem-slot

      • tc-plug-qopt

      • tc-prio-qopt

      • tc-red-qopt

      • tc-sfb-qopt

      • tc-sfq-qopt

      • tc-sfqred-stats

      • tc-sfq-qopt-v1

      • tc-ratespec

      • tc-tbf-qopt

      • tc-sizespec

      • gnet-estimator

      • tc-choke-xstats

      • tc-codel-xstats

      • tc-fq-codel-xstats

      • tc-fq-pie-xstats

      • tc-fq-qd-stats

      • tc-hhf-xstats

      • tc-pie-xstats

      • tc-red-xstats

      • tc-sfb-xstats

      • tc-sfq-xstats

      • gnet-stats-basic

      • gnet-stats-rate-est

      • gnet-stats-rate-est64

      • gnet-stats-queue

      • tc-u32-key

      • tc-u32-sel

      • tc-u32-pcnt

      • tcf-t

      • tc-gen

      • tc-gact-p

      • tcf-ematch-tree-hdr

      • tc-basic-pcnt

      • tc-matchall-pcnt

      • tc-mpls

      • tc-police

      • tc-pedit-sel

      • tc-pedit-key

      • tc-vlan

    • Attribute sets

      • tc-attrs

        • kind (string)

        • options (sub-message)

        • stats (binary)

        • xstats (sub-message)

        • rate (binary)

        • fcnt (u32)

        • stats2 (nest)

        • stab (nest)

        • pad (pad)

        • dump-invisible (flag)

        • chain (u32)

        • hw-offload (u8)

        • ingress-block (u32)

        • egress-block (u32)

        • dump-flags (bitfield32)

        • ext-warn-msg (string)

      • tc-act-attrs

        • kind (string)

        • options (sub-message)

        • index (u32)

        • stats (nest)

        • pad (pad)

        • cookie (binary)

        • flags (bitfield32)

        • hw-stats (bitfield32)

        • used-hw-stats (bitfield32)

        • in-hw-count (u32)

      • tc-act-stats-attrs

        • basic (binary)

        • rate-est (binary)

        • queue (binary)

        • app (binary)

        • rate-est64 (binary)

        • pad (pad)

        • basic-hw (binary)

        • pkt64 (u64)

      • tc-act-bpf-attrs

        • tm (binary)

        • parms (binary)

        • ops-len (u16)

        • ops (binary)

        • fd (u32)

        • name (string)

        • pad (pad)

        • tag (binary)

        • id (binary)

      • tc-act-connmark-attrs

        • parms (binary)

        • tm (binary)

        • pad (pad)

      • tc-act-csum-attrs

        • parms (binary)

        • tm (binary)

        • pad (pad)

      • tc-act-ct-attrs

        • parms (binary)

        • tm (binary)

        • action (u16)

        • zone (u16)

        • mark (u32)

        • mark-mask (u32)

        • labels (binary)

        • labels-mask (binary)

        • nat-ipv4-min (u32)

        • nat-ipv4-max (u32)

        • nat-ipv6-min (binary)

        • nat-ipv6-max (binary)

        • nat-port-min (u16)

        • nat-port-max (u16)

        • pad (pad)

        • helper-name (string)

        • helper-family (u8)

        • helper-proto (u8)

      • tc-act-ctinfo-attrs

        • pad (pad)

        • tm (binary)

        • act (binary)

        • zone (u16)

        • parms-dscp-mask (u32)

        • parms-dscp-statemask (u32)

        • parms-cpmark-mask (u32)

        • stats-dscp-set (u64)

        • stats-dscp-error (u64)

        • stats-cpmark-set (u64)

      • tc-act-gate-attrs

        • tm (binary)

        • parms (binary)

        • pad (pad)

        • priority (s32)

        • entry-list (binary)

        • base-time (u64)

        • cycle-time (u64)

        • cycle-time-ext (u64)

        • flags (u32)

        • clockid (s32)

      • tc-act-ife-attrs

        • parms (binary)

        • tm (binary)

        • dmac (binary)

        • smac (binary)

        • type (u16)

        • metalst (binary)

        • pad (pad)

      • tc-act-mirred-attrs

        • tm (binary)

        • parms (binary)

        • pad (pad)

        • blockid (binary)

      • tc-act-mpls-attrs

        • tm (binary)

        • parms (binary)

        • pad (pad)

        • proto (u16)

        • label (u32)

        • tc (u8)

        • ttl (u8)

        • bos (u8)

      • tc-act-nat-attrs

        • parms (binary)

        • tm (binary)

        • pad (pad)

      • tc-act-pedit-attrs

        • tm (binary)

        • parms (binary)

        • pad (pad)

        • parms-ex (binary)

        • keys-ex (binary)

        • key-ex (binary)

      • tc-act-simple-attrs

        • tm (binary)

        • parms (binary)

        • data (binary)

        • pad (pad)

      • tc-act-skbedit-attrs

        • tm (binary)

        • parms (binary)

        • priority (u32)

        • queue-mapping (u16)

        • mark (u32)

        • pad (pad)

        • ptype (u16)

        • mask (u32)

        • flags (u64)

        • queue-mapping-max (u16)

      • tc-act-skbmod-attrs

        • tm (binary)

        • parms (binary)

        • dmac (binary)

        • smac (binary)

        • etype (binary)

        • pad (pad)

      • tc-act-tunnel-key-attrs

        • tm (binary)

        • parms (binary)

        • enc-ipv4-src (u32)

        • enc-ipv4-dst (u32)

        • enc-ipv6-src (binary)

        • enc-ipv6-dst (binary)

        • enc-key-id (u64)

        • pad (pad)

        • enc-dst-port (u16)

        • no-csum (u8)

        • enc-opts (binary)

        • enc-tos (u8)

        • enc-ttl (u8)

        • no-frag (flag)

      • tc-act-vlan-attrs

        • tm (binary)

        • parms (binary)

        • push-vlan-id (u16)

        • push-vlan-protocol (u16)

        • pad (pad)

        • push-vlan-priority (u8)

        • push-eth-dst (binary)

        • push-eth-src (binary)

      • tc-basic-attrs

        • classid (u32)

        • ematches (nest)

        • act (array-nest)

        • police (nest)

        • pcnt (binary)

        • pad (pad)

      • tc-bpf-attrs

        • act (nest)

        • police (nest)

        • classid (u32)

        • ops-len (u16)

        • ops (binary)

        • fd (u32)

        • name (string)

        • flags (u32)

        • flags-gen (u32)

        • tag (binary)

        • id (u32)

      • tc-cake-attrs

        • pad (pad)

        • base-rate64 (u64)

        • diffserv-mode (u32)

        • atm (u32)

        • flow-mode (u32)

        • overhead (u32)

        • rtt (u32)

        • target (u32)

        • autorate (u32)

        • memory (u32)

        • nat (u32)

        • raw (u32)

        • wash (u32)

        • mpu (u32)

        • ingress (u32)

        • ack-filter (u32)

        • split-gso (u32)

        • fwmark (u32)

      • tc-cake-stats-attrs

        • pad (pad)

        • capacity-estimate64 (u64)

        • memory-limit (u32)

        • memory-used (u32)

        • avg-netoff (u32)

        • min-netlen (u32)

        • max-netlen (u32)

        • min-adjlen (u32)

        • max-adjlen (u32)

        • tin-stats (array-nest)

        • deficit (s32)

        • cobalt-count (u32)

        • dropping (u32)

        • drop-next-us (s32)

        • p-drop (u32)

        • blue-timer-us (s32)

      • tc-cake-tin-stats-attrs

        • pad (pad)

        • sent-packets (u32)

        • sent-bytes64 (u64)

        • dropped-packets (u32)

        • dropped-bytes64 (u64)

        • acks-dropped-packets (u32)

        • acks-dropped-bytes64 (u64)

        • ecn-marked-packets (u32)

        • ecn-marked-bytes64 (u64)

        • backlog-packets (u32)

        • backlog-bytes (u32)

        • threshold-rate64 (u64)

        • target-us (u32)

        • interval-us (u32)

        • way-indirect-hits (u32)

        • way-misses (u32)

        • way-collisions (u32)

        • peak-delay-us (u32)

        • avg-delay-us (u32)

        • base-delay-us (u32)

        • sparse-flows (u32)

        • bulk-flows (u32)

        • unresponsive-flows (u32)

        • max-skblen (u32)

        • flow-quantum (u32)

      • tc-cbs-attrs

        • parms (binary)

      • tc-cgroup-attrs

        • act (nest)

        • police (nest)

        • ematches (binary)

      • tc-choke-attrs

        • parms (binary)

        • stab (binary)

        • max-p (u32)

      • tc-codel-attrs

        • target (u32)

        • limit (u32)

        • interval (u32)

        • ecn (u32)

        • ce-threshold (u32)

      • tc-drr-attrs

        • quantum (u32)

      • tc-ematch-attrs

        • tree-hdr (binary)

        • tree-list (binary)

      • tc-flow-attrs

        • keys (u32)

        • mode (u32)

        • baseclass (u32)

        • rshift (u32)

        • addend (u32)

        • mask (u32)

        • xor (u32)

        • divisor (u32)

        • act (binary)

        • police (nest)

        • ematches (binary)

        • perturb (u32)

      • tc-flower-attrs

        • classid (u32)

        • indev (string)

        • act (array-nest)

        • key-eth-dst (binary)

        • key-eth-dst-mask (binary)

        • key-eth-src (binary)

        • key-eth-src-mask (binary)

        • key-eth-type (u16)

        • key-ip-proto (u8)

        • key-ipv4-src (u32)

        • key-ipv4-src-mask (u32)

        • key-ipv4-dst (u32)

        • key-ipv4-dst-mask (u32)

        • key-ipv6-src (binary)

        • key-ipv6-src-mask (binary)

        • key-ipv6-dst (binary)

        • key-ipv6-dst-mask (binary)

        • key-tcp-src (u16)

        • key-tcp-dst (u16)

        • key-udp-src (u16)

        • key-udp-dst (u16)

        • flags (u32)

        • key-vlan-id (u16)

        • key-vlan-prio (u8)

        • key-vlan-eth-type (u16)

        • key-enc-key-id (u32)

        • key-enc-ipv4-src (u32)

        • key-enc-ipv4-src-mask (u32)

        • key-enc-ipv4-dst (u32)

        • key-enc-ipv4-dst-mask (u32)

        • key-enc-ipv6-src (binary)

        • key-enc-ipv6-src-mask (binary)

        • key-enc-ipv6-dst (binary)

        • key-enc-ipv6-dst-mask (binary)

        • key-tcp-src-mask (u16)

        • key-tcp-dst-mask (u16)

        • key-udp-src-mask (u16)

        • key-udp-dst-mask (u16)

        • key-sctp-src-mask (u16)

        • key-sctp-dst-mask (u16)

        • key-sctp-src (u16)

        • key-sctp-dst (u16)

        • key-enc-udp-src-port (u16)

        • key-enc-udp-src-port-mask (u16)

        • key-enc-udp-dst-port (u16)

        • key-enc-udp-dst-port-mask (u16)

        • key-flags (u32)

        • key-flags-mask (u32)

        • key-icmpv4-code (u8)

        • key-icmpv4-code-mask (u8)

        • key-icmpv4-type (u8)

        • key-icmpv4-type-mask (u8)

        • key-icmpv6-code (u8)

        • key-icmpv6-code-mask (u8)

        • key-icmpv6-type (u8)

        • key-icmpv6-type-mask (u8)

        • key-arp-sip (u32)

        • key-arp-sip-mask (u32)

        • key-arp-tip (u32)

        • key-arp-tip-mask (u32)

        • key-arp-op (u8)

        • key-arp-op-mask (u8)

        • key-arp-sha (binary)

        • key-arp-sha-mask (binary)

        • key-arp-tha (binary)

        • key-arp-tha-mask (binary)

        • key-mpls-ttl (u8)

        • key-mpls-bos (u8)

        • key-mpls-tc (u8)

        • key-mpls-label (u32)

        • key-tcp-flags (u16)

        • key-tcp-flags-mask (u16)

        • key-ip-tos (u8)

        • key-ip-tos-mask (u8)

        • key-ip-ttl (u8)

        • key-ip-ttl-mask (u8)

        • key-cvlan-id (u16)

        • key-cvlan-prio (u8)

        • key-cvlan-eth-type (u16)

        • key-enc-ip-tos (u8)

        • key-enc-ip-tos-mask (u8)

        • key-enc-ip-ttl (u8)

        • key-enc-ip-ttl-mask (u8)

        • key-enc-opts (nest)

        • key-enc-opts-mask (nest)

        • in-hw-count (u32)

        • key-port-src-min (u16)

        • key-port-src-max (u16)

        • key-port-dst-min (u16)

        • key-port-dst-max (u16)

        • key-ct-state (u16)

        • key-ct-state-mask (u16)

        • key-ct-zone (u16)

        • key-ct-zone-mask (u16)

        • key-ct-mark (u32)

        • key-ct-mark-mask (u32)

        • key-ct-labels (binary)

        • key-ct-labels-mask (binary)

        • key-mpls-opts (nest)

        • key-hash (u32)

        • key-hash-mask (u32)

        • key-num-of-vlans (u8)

        • key-pppoe-sid (u16)

        • key-ppp-proto (u16)

        • key-l2-tpv3-sid (u32)

        • l2-miss (u8)

        • key-cfm (nest)

        • key-spi (u32)

        • key-spi-mask (u32)

        • key-enc-flags (u32)

        • key-enc-flags-mask (u32)

      • tc-flower-key-enc-opts-attrs

        • geneve (nest)

        • vxlan (nest)

        • erspan (nest)

        • gtp (nest)

      • tc-flower-key-enc-opt-geneve-attrs

        • class (u16)

        • type (u8)

        • data (binary)

      • tc-flower-key-enc-opt-vxlan-attrs

        • gbp (u32)

      • tc-flower-key-enc-opt-erspan-attrs

        • ver (u8)

        • index (u32)

        • dir (u8)

        • hwid (u8)

      • tc-flower-key-enc-opt-gtp-attrs

        • pdu-type (u8)

        • qfi (u8)

      • tc-flower-key-mpls-opt-attrs

        • lse-depth (u8)

        • lse-ttl (u8)

        • lse-bos (u8)

        • lse-tc (u8)

        • lse-label (u32)

      • tc-flower-key-cfm-attrs

        • md-level (u8)

        • opcode (u8)

      • tc-fw-attrs

        • classid (u32)

        • police (nest)

        • indev (string)

        • act (array-nest)

        • mask (u32)

      • tc-gred-attrs

        • parms (binary)

        • stab (binary)

        • dps (binary)

        • max-p (binary)

        • limit (u32)

        • vq-list (nest)

      • tca-gred-vq-list-attrs

        • entry (nest)

      • tca-gred-vq-entry-attrs

        • pad (pad)

        • dp (u32)

        • stat-bytes (u64)

        • stat-packets (u32)

        • stat-backlog (u32)

        • stat-prob-drop (u32)

        • stat-prob-mark (u32)

        • stat-forced-drop (u32)

        • stat-forced-mark (u32)

        • stat-pdrop (u32)

        • stat-other (u32)

        • flags (u32)

      • tc-hfsc-attrs

        • rsc (binary)

        • fsc (binary)

        • usc (binary)

      • tc-hhf-attrs

        • backlog-limit (u32)

        • quantum (u32)

        • hh-flows-limit (u32)

        • reset-timeout (u32)

        • admit-bytes (u32)

        • evict-timeout (u32)

        • non-hh-weight (u32)

      • tc-htb-attrs

        • parms (binary)

        • init (binary)

        • ctab (binary)

        • rtab (binary)

        • direct-qlen (u32)

        • rate64 (u64)

        • ceil64 (u64)

        • pad (pad)

        • offload (flag)

      • tc-matchall-attrs

        • classid (u32)

        • act (array-nest)

        • flags (u32)

        • pcnt (binary)

        • pad (pad)

      • tc-etf-attrs

        • parms (binary)

      • tc-ets-attrs

        • nbands (u8)

        • nstrict (u8)

        • quanta (nest)

        • quanta-band (u32)

        • priomap (nest)

        • priomap-band (u8)

      • tc-fq-attrs

        • plimit (u32)

        • flow-plimit (u32)

        • quantum (u32)

        • initial-quantum (u32)

        • rate-enable (u32)

        • flow-default-rate (u32)

        • flow-max-rate (u32)

        • buckets-log (u32)

        • flow-refill-delay (u32)

        • orphan-mask (u32)

        • low-rate-threshold (u32)

        • ce-threshold (u32)

        • timer-slack (u32)

        • horizon (u32)

        • horizon-drop (u8)

        • priomap (binary)

        • weights (binary)

      • tc-fq-codel-attrs

        • target (u32)

        • limit (u32)

        • interval (u32)

        • ecn (u32)

        • flows (u32)

        • quantum (u32)

        • ce-threshold (u32)

        • drop-batch-size (u32)

        • memory-limit (u32)

        • ce-threshold-selector (u8)

        • ce-threshold-mask (u8)

      • tc-fq-pie-attrs

        • limit (u32)

        • flows (u32)

        • target (u32)

        • tupdate (u32)

        • alpha (u32)

        • beta (u32)

        • quantum (u32)

        • memory-limit (u32)

        • ecn-prob (u32)

        • ecn (u32)

        • bytemode (u32)

        • dq-rate-estimator (u32)

      • tc-netem-attrs

        • corr (binary)

        • delay-dist (binary)

        • reorder (binary)

        • corrupt (binary)

        • loss (nest)

        • rate (binary)

        • ecn (u32)

        • rate64 (u64)

        • pad (u32)

        • latency64 (s64)

        • jitter64 (s64)

        • slot (binary)

        • slot-dist (binary)

        • prng-seed (u64)

      • tc-netem-loss-attrs

        • gi (binary)

        • ge (binary)

      • tc-pie-attrs

        • target (u32)

        • limit (u32)

        • tupdate (u32)

        • alpha (u32)

        • beta (u32)

        • ecn (u32)

        • bytemode (u32)

        • dq-rate-estimator (u32)

      • tc-police-attrs

        • tbf (binary)

        • rate (binary)

        • peakrate (binary)

        • avrate (u32)

        • result (u32)

        • tm (binary)

        • pad (pad)

        • rate64 (u64)

        • peakrate64 (u64)

        • pktrate64 (u64)

        • pktburst64 (u64)

      • tc-qfq-attrs

        • weight (u32)

        • lmax (u32)

      • tc-red-attrs

        • parms (binary)

        • stab (binary)

        • max-p (u32)

        • flags (bitfield32)

        • early-drop-block (u32)

        • mark-block (u32)

      • tc-route-attrs

        • classid (u32)

        • to (u32)

        • from (u32)

        • iif (u32)

        • police (nest)

        • act (array-nest)

      • tc-taprio-attrs

        • priomap (binary)

        • sched-entry-list (nest)

        • sched-base-time (s64)

        • sched-single-entry (nest)

        • sched-clockid (s32)

        • pad (pad)

        • admin-sched (binary)

        • sched-cycle-time (s64)

        • sched-cycle-time-extension (s64)

        • flags (u32)

        • txtime-delay (u32)

        • tc-entry (nest)

      • tc-taprio-sched-entry-list

        • entry (nest)

      • tc-taprio-sched-entry

        • index (u32)

        • cmd (u8)

        • gate-mask (u32)

        • interval (u32)

      • tc-taprio-tc-entry-attrs

        • index (u32)

        • max-sdu (u32)

        • fp (u32)

      • tc-tbf-attrs

        • parms (binary)

        • rtab (binary)

        • ptab (binary)

        • rate64 (u64)

        • prate4 (u64)

        • burst (u32)

        • pburst (u32)

        • pad (pad)

      • tc-act-sample-attrs

        • tm (binary)

        • parms (binary)

        • rate (u32)

        • trunc-size (u32)

        • psample-group (u32)

        • pad (pad)

      • tc-act-gact-attrs

        • tm (binary)

        • parms (binary)

        • prob (binary)

        • pad (pad)

      • tca-stab-attrs

        • base (binary)

        • data (binary)

      • tca-stats-attrs

        • basic (binary)

        • rate-est (binary)

        • queue (binary)

        • app (sub-message)

        • rate-est64 (binary)

        • pad (pad)

        • basic-hw (binary)

        • pkt64 (u64)

      • tc-u32-attrs

        • classid (u32)

        • hash (u32)

        • link (u32)

        • divisor (u32)

        • sel (binary)

        • police (nest)

        • act (array-nest)

        • indev (string)

        • pcnt (binary)

        • mark (binary)

        • flags (u32)

        • pad (pad)

    • Sub-messages

      • tc-options-msg

      • tc-act-options-msg

      • tca-stats-app-msg

Summary¶

Netlink raw family for tc qdisc, chain, class and filter configuration over rtnetlink.

Operations¶

newqdisc¶

Create new tc qdisc.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[kind, options, rate, chain, ingress-block, egress-block]

delqdisc¶

Delete existing tc qdisc.

attribute-set

tc-attrs

fixed-header

tcmsg

do

request

getqdisc¶

Get / dump tc qdisc information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[dump-invisible]

reply
attributes

[kind, options, stats, xstats, rate, fcnt, stats2, stab, chain, ingress-block, egress-block]

newtclass¶

Get / dump tc traffic class information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[kind, options, rate, chain, ingress-block, egress-block]

deltclass¶

Get / dump tc traffic class information.

attribute-set

tc-attrs

fixed-header

tcmsg

do

request

gettclass¶

Get / dump tc traffic class information.

attribute-set

tc-attrs

fixed-header

tcmsg

do

request

reply
attributes

[kind, options, stats, xstats, rate, fcnt, stats2, stab, chain, ingress-block, egress-block]

newtfilter¶

Get / dump tc filter information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[kind, options, rate, chain, ingress-block, egress-block]

deltfilter¶

Get / dump tc filter information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[chain, kind]

gettfilter¶

Get / dump tc filter information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[chain, kind]

reply
attributes

[kind, options, stats, xstats, rate, fcnt, stats2, stab, chain, ingress-block, egress-block]

dump
request
attributes

[chain, dump-flags]

reply
attributes

[kind, options, stats, xstats, rate, fcnt, stats2, stab, chain, ingress-block, egress-block]

newchain¶

Get / dump tc chain information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[kind, options, rate, chain, ingress-block, egress-block]

delchain¶

Get / dump tc chain information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[chain]

getchain¶

Get / dump tc chain information.

attribute-set

tc-attrs

fixed-header

tcmsg

do
request
attributes

[chain]

reply
attributes

[kind, options, stats, xstats, rate, fcnt, stats2, stab, chain, ingress-block, egress-block]

Multicast groups¶

  • rtnlgrp-tc

Definitions¶

tcmsg¶

type

struct

members
family

pad

ifindex

handle

parent

info

tc-cls-flags¶

type

flags

entries
  • skip-hw

  • skip-sw

  • in-hw

  • not-in-nw

  • verbose

tc-flower-key-ctrl-flags¶

type

flags

entries
  • frag

  • firstfrag

  • tuncsum

  • tundf

  • tunoam

  • tuncrit

tc-stats¶

type

struct

members
bytes

Number of enqueued bytes

packets

Number of enqueued packets

drops

Packets dropped because of lack of resources

overlimits

Number of throttle events when this flow goes out of allocated bandwidth

bps

Current flow byte rate

pps

Current flow packet rate

qlen

backlog

tc-cbs-qopt¶

type

struct

members
offload

pad

hicredit

locredit

idleslope

sendslope

tc-etf-qopt¶

type

struct

members
delta

clockid

flags

tc-fifo-qopt¶

type

struct

members
limit

Queue length; bytes for bfifo, packets for pfifo

tc-htb-opt¶

type

struct

members
rate

ceil

buffer

cbuffer

quantum

level

prio

tc-htb-glob¶

type

struct

members
version

rate2quantum

bps->quantum divisor

defcls

Default class number

debug

Debug flags

direct-pkts

Count of non shaped packets

tc-gred-qopt¶

type

struct

members
limit

HARD maximal queue length in bytes

qth-min

Min average length threshold in bytes

qth-max

Max average length threshold in bytes

DP

Up to 2^32 DPs

backlog

qave

forced

early

other

pdrop

Wlog

log(W)

Plog

log(P_max / (qth-max - qth-min))

Scell_log

cell size for idle damping

prio

Priority of this VQ

packets

bytesin

tc-gred-sopt¶

type

struct

members
DPs

def_DP

grio

flags

pad

tc-hfsc-qopt¶

type

struct

members
defcls

tc-mqprio-qopt¶

type

struct

members
num-tc

prio-tc-map

hw

count

offset

tc-multiq-qopt¶

type

struct

members
bands

Number of bands

max-bands

Maximum number of queues

tc-netem-qopt¶

type

struct

members
latency

Added delay in microseconds

limit

Fifo limit in packets

loss

Random packet loss (0=none, ~0=100%)

gap

Re-ordering gap (0 for none)

duplicate

Random packet duplication (0=none, ~0=100%)

jitter

Random jitter latency in microseconds

tc-netem-gimodel¶

doc

State transition probabilities for 4 state model

type

struct

members
p13

p31

p32

p14

p23

tc-netem-gemodel¶

doc

Gilbert-Elliot models

type

struct

members
p

r

h

k1

tc-netem-corr¶

type

struct

members
delay-corr

Delay correlation

loss-corr

Packet loss correlation

dup-corr

Duplicate correlation

tc-netem-reorder¶

type

struct

members
probability

correlation

tc-netem-corrupt¶

type

struct

members
probability

correlation

tc-netem-rate¶

type

struct

members
rate

packet-overhead

cell-size

cell-overhead

tc-netem-slot¶

type

struct

members
min-delay

max-delay

max-packets

max-bytes

dist-delay

dist-jitter

tc-plug-qopt¶

type

struct

members
action

limit

tc-prio-qopt¶

type

struct

members
bands

Number of bands

priomap

Map of logical priority -> PRIO band

tc-red-qopt¶

type

struct

members
limit

Hard queue length in packets

qth-min

Min average threshold in packets

qth-max

Max average threshold in packets

Wlog

log(W)

Plog

log(P_max / (qth-max - qth-min))

Scell-log

Cell size for idle damping

flags

tc-sfb-qopt¶

type

struct

members
rehash-interval

warmup-time

max

bin-size

increment

decrement

limit

penalty-rate

penalty-burst

tc-sfq-qopt¶

type

struct

members
quantum

Bytes per round allocated to flow

perturb-period

Period of hash perturbation

limit

Maximal packets in queue

divisor

Hash divisor

flows

Maximal number of flows

tc-sfqred-stats¶

type

struct

members
prob-drop

Early drops, below max threshold

forced-drop

Early drops, after max threshold

prob-mark

Marked packets, below max threshold

forced-mark

Marked packets, after max threshold

prob-mark-head

Marked packets, below max threshold

forced-mark-head

Marked packets, after max threshold

tc-sfq-qopt-v1¶

type

struct

members
v0

depth

Maximum number of packets per flow

headdrop

limit

HARD maximal flow queue length in bytes

qth-min

Min average length threshold in bytes

qth-max

Max average length threshold in bytes

Wlog

log(W)

Plog

log(P_max / (qth-max - qth-min))

Scell-log

Cell size for idle damping

flags

max-P

probabilty, high resolution

stats

tc-ratespec¶

type

struct

members
cell-log

linklayer

overhead

cell-align

mpu

rate

tc-tbf-qopt¶

type

struct

members
rate

peakrate

limit

buffer

mtu

tc-sizespec¶

type

struct

members
cell-log

size-log

cell-align

overhead

linklayer

mpu

mtu

tsize

gnet-estimator¶

type

struct

members
interval

Sampling period

ewma-log

The log() of measurement window weight

tc-choke-xstats¶

type

struct

members
early

Early drops

pdrop

Drops due to queue limits

other

Drops due to drop() calls

marked

Marked packets

matched

Drops due to flow match

tc-codel-xstats¶

type

struct

members
maxpacket

Largest packet we’ve seen so far

count

How many drops we’ve done since the last time we entered dropping state

lastcount

Count at entry to dropping state

ldelay

in-queue delay seen by most recently dequeued packet

drop-next

Time to drop next packet

drop-overlimit

Number of times max qdisc packet limit was hit

ecn-mark

Number of packets we’ve ECN marked instead of dropped

dropping

Are we in a dropping state?

ce-mark

Number of CE marked packets because of ce-threshold

tc-fq-codel-xstats¶

type

struct

members
type

maxpacket

Largest packet we’ve seen so far

drop-overlimit

Number of times max qdisc packet limit was hit

ecn-mark

Number of packets we ECN marked instead of being dropped

new-flow-count

Number of times packets created a new flow

new-flows-len

Count of flows in new list

old-flows-len

Count of flows in old list

ce-mark

Packets above ce-threshold

memory-usage

Memory usage in bytes

drop-overmemory

tc-fq-pie-xstats¶

type

struct

members
packets-in

Total number of packets enqueued

dropped

Packets dropped due to fq_pie_action

overlimit

Dropped due to lack of space in queue

overmemory

Dropped due to lack of memory in queue

ecn-mark

Packets marked with ecn

new-flow-count

Count of new flows created by packets

new-flows-len

Count of flows in new list

old-flows-len

Count of flows in old list

memory-usage

Total memory across all queues

tc-fq-qd-stats¶

type

struct

members
gc-flows

highprio-packets

obsolete

tcp-retrans

obsolete

throttled

flows-plimit

pkts-too-long

allocation-errors

time-next-delayed-flow

flows

inactive-flows

throttled-flows

unthrottle-latency-ns

ce-mark

Packets above ce-threshold

horizon-drops

horizon-caps

fastpath-packets

band-drops

band-pkt-count

pad

tc-hhf-xstats¶

type

struct

members
drop-overlimit

Number of times max qdisc packet limit was hit

hh-overlimit

Number of times max heavy-hitters was hit

hh-tot-count

Number of captured heavy-hitters so far

hh-cur-count

Number of current heavy-hitters

tc-pie-xstats¶

type

struct

members
prob

Current probability

delay

Current delay in ms

avg-dq-rate

Current average dq rate in bits/pie-time

dq-rate-estimating

Is avg-dq-rate being calculated?

packets-in

Total number of packets enqueued

dropped

Packets dropped due to pie action

overlimit

Dropped due to lack of space in queue

maxq

Maximum queue size

ecn-mark

Packets marked with ecn

tc-red-xstats¶

type

struct

members
early

Early drops

pdrop

Drops due to queue limits

other

Drops due to drop() calls

marked

Marked packets

tc-sfb-xstats¶

type

struct

members
earlydrop

penaltydrop

bucketdrop

queuedrop

childdrop

drops in child qdisc

marked

maxqlen

maxprob

avgprob

tc-sfq-xstats¶

type

struct

members
allot

gnet-stats-basic¶

type

struct

members
bytes

packets

gnet-stats-rate-est¶

type

struct

members
bps

pps

gnet-stats-rate-est64¶

type

struct

members
bps

pps

gnet-stats-queue¶

type

struct

members
qlen

backlog

drops

requeues

overlimits

tc-u32-key¶

type

struct

members
mask

val

off

offmask

tc-u32-sel¶

type

struct

members
flags

offshift

nkeys

offmask

off

offoff

hoff

hmask

keys

tc-u32-pcnt¶

type

struct

members
rcnt

rhit

kcnts

tcf-t¶

type

struct

members
install

lastuse

expires

firstuse

tc-gen¶

type

struct

members
index

capab

action

refcnt

bindcnt

tc-gact-p¶

type

struct

members
ptype

pval

paction

tcf-ematch-tree-hdr¶

type

struct

members
nmatches

progid

tc-basic-pcnt¶

type

struct

members
rcnt

rhit

tc-matchall-pcnt¶

type

struct

members
rhit

tc-mpls¶

type

struct

members
index

capab

action

refcnt

bindcnt

m-action

tc-police¶

type

struct

members
index

action

limit

burst

mtu

rate

peakrate

refcnt

bindcnt

capab

tc-pedit-sel¶

type

struct

members
index

capab

action

refcnt

bindcnt

nkeys

flags

keys

tc-pedit-key¶

type

struct

members
mask

val

off

at

offmask

shift

tc-vlan¶

type

struct

members
index

capab

action

refcnt

bindcnt

v-action

Attribute sets¶

tc-attrs¶

kind (string)¶

options (sub-message)¶

sub-message

tc-options-msg

selector

kind

stats (binary)¶

struct

tc-stats

xstats (sub-message)¶

sub-message

tca-stats-app-msg

selector

kind

rate (binary)¶

struct

gnet-estimator

fcnt (u32)¶

stats2 (nest)¶

nested-attributes

tca-stats-attrs

stab (nest)¶

nested-attributes

tca-stab-attrs

pad (pad)¶

dump-invisible (flag)¶

chain (u32)¶

hw-offload (u8)¶

ingress-block (u32)¶

egress-block (u32)¶

dump-flags (bitfield32)¶

ext-warn-msg (string)¶

tc-act-attrs¶

kind (string)¶

options (sub-message)¶

sub-message

tc-act-options-msg

selector

kind

index (u32)¶

stats (nest)¶

nested-attributes

tc-act-stats-attrs

pad (pad)¶

cookie (binary)¶

flags (bitfield32)¶

hw-stats (bitfield32)¶

used-hw-stats (bitfield32)¶

in-hw-count (u32)¶

tc-act-stats-attrs¶

basic (binary)¶

struct

gnet-stats-basic

rate-est (binary)¶

struct

gnet-stats-rate-est

queue (binary)¶

struct

gnet-stats-queue

app (binary)¶

rate-est64 (binary)¶

struct

gnet-stats-rate-est64

pad (pad)¶

basic-hw (binary)¶

struct

gnet-stats-basic

pkt64 (u64)¶

tc-act-bpf-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

ops-len (u16)¶

ops (binary)¶

fd (u32)¶

name (string)¶

pad (pad)¶

tag (binary)¶

id (binary)¶

tc-act-connmark-attrs¶

parms (binary)¶

tm (binary)¶

struct

tcf-t

pad (pad)¶

tc-act-csum-attrs¶

parms (binary)¶

tm (binary)¶

struct

tcf-t

pad (pad)¶

tc-act-ct-attrs¶

parms (binary)¶

tm (binary)¶

struct

tcf-t

action (u16)¶

zone (u16)¶

mark (u32)¶

mark-mask (u32)¶

labels (binary)¶

labels-mask (binary)¶

nat-ipv4-min (u32)¶

byte-order

big-endian

nat-ipv4-max (u32)¶

byte-order

big-endian

nat-ipv6-min (binary)¶

nat-ipv6-max (binary)¶

nat-port-min (u16)¶

byte-order

big-endian

nat-port-max (u16)¶

byte-order

big-endian

pad (pad)¶

helper-name (string)¶

helper-family (u8)¶

helper-proto (u8)¶

tc-act-ctinfo-attrs¶

pad (pad)¶

tm (binary)¶

struct

tcf-t

act (binary)¶

zone (u16)¶

parms-dscp-mask (u32)¶

parms-dscp-statemask (u32)¶

parms-cpmark-mask (u32)¶

stats-dscp-set (u64)¶

stats-dscp-error (u64)¶

stats-cpmark-set (u64)¶

tc-act-gate-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

pad (pad)¶

priority (s32)¶

entry-list (binary)¶

base-time (u64)¶

cycle-time (u64)¶

cycle-time-ext (u64)¶

flags (u32)¶

clockid (s32)¶

tc-act-ife-attrs¶

parms (binary)¶

tm (binary)¶

struct

tcf-t

dmac (binary)¶

smac (binary)¶

type (u16)¶

metalst (binary)¶

pad (pad)¶

tc-act-mirred-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

pad (pad)¶

blockid (binary)¶

tc-act-mpls-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

struct

tc-mpls

pad (pad)¶

proto (u16)¶

byte-order

big-endian

label (u32)¶

tc (u8)¶

ttl (u8)¶

bos (u8)¶

tc-act-nat-attrs¶

parms (binary)¶

tm (binary)¶

struct

tcf-t

pad (pad)¶

tc-act-pedit-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

struct

tc-pedit-sel

pad (pad)¶

parms-ex (binary)¶

keys-ex (binary)¶

key-ex (binary)¶

tc-act-simple-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

data (binary)¶

pad (pad)¶

tc-act-skbedit-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

priority (u32)¶

queue-mapping (u16)¶

mark (u32)¶

pad (pad)¶

ptype (u16)¶

mask (u32)¶

flags (u64)¶

queue-mapping-max (u16)¶

tc-act-skbmod-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

dmac (binary)¶

smac (binary)¶

etype (binary)¶

pad (pad)¶

tc-act-tunnel-key-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

enc-ipv4-src (u32)¶

byte-order

big-endian

enc-ipv4-dst (u32)¶

byte-order

big-endian

enc-ipv6-src (binary)¶

enc-ipv6-dst (binary)¶

enc-key-id (u64)¶

byte-order

big-endian

pad (pad)¶

enc-dst-port (u16)¶

byte-order

big-endian

no-csum (u8)¶

enc-opts (binary)¶

enc-tos (u8)¶

enc-ttl (u8)¶

no-frag (flag)¶

tc-act-vlan-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

struct

tc-vlan

push-vlan-id (u16)¶

push-vlan-protocol (u16)¶

pad (pad)¶

push-vlan-priority (u8)¶

push-eth-dst (binary)¶

push-eth-src (binary)¶

tc-basic-attrs¶

classid (u32)¶

ematches (nest)¶

nested-attributes

tc-ematch-attrs

act (array-nest)¶

nested-attributes

tc-act-attrs

police (nest)¶

nested-attributes

tc-police-attrs

pcnt (binary)¶

struct

tc-basic-pcnt

pad (pad)¶

tc-bpf-attrs¶

act (nest)¶

nested-attributes

tc-act-attrs

police (nest)¶

nested-attributes

tc-police-attrs

classid (u32)¶

ops-len (u16)¶

ops (binary)¶

fd (u32)¶

name (string)¶

flags (u32)¶

flags-gen (u32)¶

tag (binary)¶

id (u32)¶

tc-cake-attrs¶

pad (pad)¶

base-rate64 (u64)¶

diffserv-mode (u32)¶

atm (u32)¶

flow-mode (u32)¶

overhead (u32)¶

rtt (u32)¶

target (u32)¶

autorate (u32)¶

memory (u32)¶

nat (u32)¶

raw (u32)¶

wash (u32)¶

mpu (u32)¶

ingress (u32)¶

ack-filter (u32)¶

split-gso (u32)¶

fwmark (u32)¶

tc-cake-stats-attrs¶

pad (pad)¶

capacity-estimate64 (u64)¶

memory-limit (u32)¶

memory-used (u32)¶

avg-netoff (u32)¶

min-netlen (u32)¶

max-netlen (u32)¶

min-adjlen (u32)¶

max-adjlen (u32)¶

tin-stats (array-nest)¶

nested-attributes

tc-cake-tin-stats-attrs

deficit (s32)¶

cobalt-count (u32)¶

dropping (u32)¶

drop-next-us (s32)¶

p-drop (u32)¶

blue-timer-us (s32)¶

tc-cake-tin-stats-attrs¶

pad (pad)¶

sent-packets (u32)¶

sent-bytes64 (u64)¶

dropped-packets (u32)¶

dropped-bytes64 (u64)¶

acks-dropped-packets (u32)¶

acks-dropped-bytes64 (u64)¶

ecn-marked-packets (u32)¶

ecn-marked-bytes64 (u64)¶

backlog-packets (u32)¶

backlog-bytes (u32)¶

threshold-rate64 (u64)¶

target-us (u32)¶

interval-us (u32)¶

way-indirect-hits (u32)¶

way-misses (u32)¶

way-collisions (u32)¶

peak-delay-us (u32)¶

avg-delay-us (u32)¶

base-delay-us (u32)¶

sparse-flows (u32)¶

bulk-flows (u32)¶

unresponsive-flows (u32)¶

max-skblen (u32)¶

flow-quantum (u32)¶

tc-cbs-attrs¶

parms (binary)¶

struct

tc-cbs-qopt

tc-cgroup-attrs¶

act (nest)¶

nested-attributes

tc-act-attrs

police (nest)¶

nested-attributes

tc-police-attrs

ematches (binary)¶

tc-choke-attrs¶

parms (binary)¶

struct

tc-red-qopt

stab (binary)¶

max-p (u32)¶

tc-codel-attrs¶

target (u32)¶

limit (u32)¶

interval (u32)¶

ecn (u32)¶

ce-threshold (u32)¶

tc-drr-attrs¶

quantum (u32)¶

tc-ematch-attrs¶

tree-hdr (binary)¶

struct

tcf-ematch-tree-hdr

tree-list (binary)¶

tc-flow-attrs¶

keys (u32)¶

mode (u32)¶

baseclass (u32)¶

rshift (u32)¶

addend (u32)¶

mask (u32)¶

xor (u32)¶

divisor (u32)¶

act (binary)¶

police (nest)¶

nested-attributes

tc-police-attrs

ematches (binary)¶

perturb (u32)¶

tc-flower-attrs¶

classid (u32)¶

indev (string)¶

act (array-nest)¶

nested-attributes

tc-act-attrs

key-eth-dst (binary)¶

display-hint

mac

key-eth-dst-mask (binary)¶

display-hint

mac

key-eth-src (binary)¶

display-hint

mac

key-eth-src-mask (binary)¶

display-hint

mac

key-eth-type (u16)¶

byte-order

big-endian

key-ip-proto (u8)¶

key-ipv4-src (u32)¶

byte-order

big-endian

display-hint

ipv4

key-ipv4-src-mask (u32)¶

byte-order

big-endian

display-hint

ipv4

key-ipv4-dst (u32)¶

byte-order

big-endian

display-hint

ipv4

key-ipv4-dst-mask (u32)¶

byte-order

big-endian

display-hint

ipv4

key-ipv6-src (binary)¶

display-hint

ipv6

key-ipv6-src-mask (binary)¶

display-hint

ipv6

key-ipv6-dst (binary)¶

display-hint

ipv6

key-ipv6-dst-mask (binary)¶

display-hint

ipv6

key-tcp-src (u16)¶

byte-order

big-endian

key-tcp-dst (u16)¶

byte-order

big-endian

key-udp-src (u16)¶

byte-order

big-endian

key-udp-dst (u16)¶

byte-order

big-endian

flags (u32)¶

enum

tc-cls-flags

enum-as-flags

True

key-vlan-id (u16)¶

byte-order

big-endian

key-vlan-prio (u8)¶

key-vlan-eth-type (u16)¶

byte-order

big-endian

key-enc-key-id (u32)¶

byte-order

big-endian

key-enc-ipv4-src (u32)¶

byte-order

big-endian

display-hint

ipv4

key-enc-ipv4-src-mask (u32)¶

byte-order

big-endian

display-hint

ipv4

key-enc-ipv4-dst (u32)¶

byte-order

big-endian

display-hint

ipv4

key-enc-ipv4-dst-mask (u32)¶

byte-order

big-endian

display-hint

ipv4

key-enc-ipv6-src (binary)¶

display-hint

ipv6

key-enc-ipv6-src-mask (binary)¶

display-hint

ipv6

key-enc-ipv6-dst (binary)¶

display-hint

ipv6

key-enc-ipv6-dst-mask (binary)¶

display-hint

ipv6

key-tcp-src-mask (u16)¶

byte-order

big-endian

key-tcp-dst-mask (u16)¶

byte-order

big-endian

key-udp-src-mask (u16)¶

byte-order

big-endian

key-udp-dst-mask (u16)¶

byte-order

big-endian

key-sctp-src-mask (u16)¶

byte-order

big-endian

key-sctp-dst-mask (u16)¶

byte-order

big-endian

key-sctp-src (u16)¶

byte-order

big-endian

key-sctp-dst (u16)¶

byte-order

big-endian

key-enc-udp-src-port (u16)¶

byte-order

big-endian

key-enc-udp-src-port-mask (u16)¶

byte-order

big-endian

key-enc-udp-dst-port (u16)¶

byte-order

big-endian

key-enc-udp-dst-port-mask (u16)¶

byte-order

big-endian

key-flags (u32)¶

byte-order

big-endian

enum

tc-flower-key-ctrl-flags

enum-as-flags

True

key-flags-mask (u32)¶

byte-order

big-endian

enum

tc-flower-key-ctrl-flags

enum-as-flags

True

key-icmpv4-code (u8)¶

key-icmpv4-code-mask (u8)¶

key-icmpv4-type (u8)¶

key-icmpv4-type-mask (u8)¶

key-icmpv6-code (u8)¶

key-icmpv6-code-mask (u8)¶

key-icmpv6-type (u8)¶

key-icmpv6-type-mask (u8)¶

key-arp-sip (u32)¶

byte-order

big-endian

key-arp-sip-mask (u32)¶

byte-order

big-endian

key-arp-tip (u32)¶

byte-order

big-endian

key-arp-tip-mask (u32)¶

byte-order

big-endian

key-arp-op (u8)¶

key-arp-op-mask (u8)¶

key-arp-sha (binary)¶

display-hint

mac

key-arp-sha-mask (binary)¶

display-hint

mac

key-arp-tha (binary)¶

display-hint

mac

key-arp-tha-mask (binary)¶

display-hint

mac

key-mpls-ttl (u8)¶

key-mpls-bos (u8)¶

key-mpls-tc (u8)¶

key-mpls-label (u32)¶

byte-order

big-endian

key-tcp-flags (u16)¶

byte-order

big-endian

key-tcp-flags-mask (u16)¶

byte-order

big-endian

key-ip-tos (u8)¶

key-ip-tos-mask (u8)¶

key-ip-ttl (u8)¶

key-ip-ttl-mask (u8)¶

key-cvlan-id (u16)¶

byte-order

big-endian

key-cvlan-prio (u8)¶

key-cvlan-eth-type (u16)¶

byte-order

big-endian

key-enc-ip-tos (u8)¶

key-enc-ip-tos-mask (u8)¶

key-enc-ip-ttl (u8)¶

key-enc-ip-ttl-mask (u8)¶

key-enc-opts (nest)¶

nested-attributes

tc-flower-key-enc-opts-attrs

key-enc-opts-mask (nest)¶

nested-attributes

tc-flower-key-enc-opts-attrs

in-hw-count (u32)¶

key-port-src-min (u16)¶

byte-order

big-endian

key-port-src-max (u16)¶

byte-order

big-endian

key-port-dst-min (u16)¶

byte-order

big-endian

key-port-dst-max (u16)¶

byte-order

big-endian

key-ct-state (u16)¶

key-ct-state-mask (u16)¶

key-ct-zone (u16)¶

key-ct-zone-mask (u16)¶

key-ct-mark (u32)¶

key-ct-mark-mask (u32)¶

key-ct-labels (binary)¶

key-ct-labels-mask (binary)¶

key-mpls-opts (nest)¶

nested-attributes

tc-flower-key-mpls-opt-attrs

key-hash (u32)¶

key-hash-mask (u32)¶

key-num-of-vlans (u8)¶

key-pppoe-sid (u16)¶

byte-order

big-endian

key-ppp-proto (u16)¶

byte-order

big-endian

key-l2-tpv3-sid (u32)¶

byte-order

big-endian

l2-miss (u8)¶

key-cfm (nest)¶

nested-attributes

tc-flower-key-cfm-attrs

key-spi (u32)¶

byte-order

big-endian

key-spi-mask (u32)¶

byte-order

big-endian

key-enc-flags (u32)¶

byte-order

big-endian

enum

tc-flower-key-ctrl-flags

enum-as-flags

True

key-enc-flags-mask (u32)¶

byte-order

big-endian

enum

tc-flower-key-ctrl-flags

enum-as-flags

True

tc-flower-key-enc-opts-attrs¶

geneve (nest)¶

nested-attributes

tc-flower-key-enc-opt-geneve-attrs

vxlan (nest)¶

nested-attributes

tc-flower-key-enc-opt-vxlan-attrs

erspan (nest)¶

nested-attributes

tc-flower-key-enc-opt-erspan-attrs

gtp (nest)¶

nested-attributes

tc-flower-key-enc-opt-gtp-attrs

tc-flower-key-enc-opt-geneve-attrs¶

class (u16)¶

type (u8)¶

data (binary)¶

tc-flower-key-enc-opt-vxlan-attrs¶

gbp (u32)¶

tc-flower-key-enc-opt-erspan-attrs¶

ver (u8)¶

index (u32)¶

dir (u8)¶

hwid (u8)¶

tc-flower-key-enc-opt-gtp-attrs¶

pdu-type (u8)¶

qfi (u8)¶

tc-flower-key-mpls-opt-attrs¶

lse-depth (u8)¶

lse-ttl (u8)¶

lse-bos (u8)¶

lse-tc (u8)¶

lse-label (u32)¶

tc-flower-key-cfm-attrs¶

md-level (u8)¶

opcode (u8)¶

tc-fw-attrs¶

classid (u32)¶

police (nest)¶

nested-attributes

tc-police-attrs

indev (string)¶

act (array-nest)¶

nested-attributes

tc-act-attrs

mask (u32)¶

tc-gred-attrs¶

parms (binary)¶

stab (binary)¶

sub-type

u8

dps (binary)¶

struct

tc-gred-sopt

max-p (binary)¶

sub-type

u32

limit (u32)¶

vq-list (nest)¶

nested-attributes

tca-gred-vq-list-attrs

tca-gred-vq-list-attrs¶

entry (nest)¶

nested-attributes

tca-gred-vq-entry-attrs

multi-attr

True

tca-gred-vq-entry-attrs¶

pad (pad)¶

dp (u32)¶

stat-bytes (u64)¶

stat-packets (u32)¶

stat-backlog (u32)¶

stat-prob-drop (u32)¶

stat-prob-mark (u32)¶

stat-forced-drop (u32)¶

stat-forced-mark (u32)¶

stat-pdrop (u32)¶

stat-other (u32)¶

flags (u32)¶

tc-hfsc-attrs¶

rsc (binary)¶

fsc (binary)¶

usc (binary)¶

tc-hhf-attrs¶

backlog-limit (u32)¶

quantum (u32)¶

hh-flows-limit (u32)¶

reset-timeout (u32)¶

admit-bytes (u32)¶

evict-timeout (u32)¶

non-hh-weight (u32)¶

tc-htb-attrs¶

parms (binary)¶

struct

tc-htb-opt

init (binary)¶

struct

tc-htb-glob

ctab (binary)¶

rtab (binary)¶

direct-qlen (u32)¶

rate64 (u64)¶

ceil64 (u64)¶

pad (pad)¶

offload (flag)¶

tc-matchall-attrs¶

classid (u32)¶

act (array-nest)¶

nested-attributes

tc-act-attrs

flags (u32)¶

pcnt (binary)¶

struct

tc-matchall-pcnt

pad (pad)¶

tc-etf-attrs¶

parms (binary)¶

struct

tc-etf-qopt

tc-ets-attrs¶

nbands (u8)¶

nstrict (u8)¶

quanta (nest)¶

nested-attributes

tc-ets-attrs

quanta-band (u32)¶

multi-attr

True

priomap (nest)¶

nested-attributes

tc-ets-attrs

priomap-band (u8)¶

multi-attr

True

tc-fq-attrs¶

plimit (u32)¶

doc

Limit of total number of packets in queue

flow-plimit (u32)¶

doc

Limit of packets per flow

quantum (u32)¶

doc

RR quantum

initial-quantum (u32)¶

doc

RR quantum for new flow

rate-enable (u32)¶

doc

Enable / disable rate limiting

flow-default-rate (u32)¶

doc

Obsolete, do not use

flow-max-rate (u32)¶

doc

Per flow max rate

buckets-log (u32)¶

doc

log2(number of buckets)

flow-refill-delay (u32)¶

doc

Flow credit refill delay in usec

orphan-mask (u32)¶

doc

Mask applied to orphaned skb hashes

low-rate-threshold (u32)¶

doc

Per packet delay under this rate

ce-threshold (u32)¶

doc

DCTCP-like CE marking threshold

timer-slack (u32)¶

horizon (u32)¶

doc

Time horizon in usec

horizon-drop (u8)¶

doc

Drop packets beyond horizon, or cap their EDT

priomap (binary)¶

struct

tc-prio-qopt

weights (binary)¶

sub-type

s32

doc

Weights for each band

tc-fq-codel-attrs¶

target (u32)¶

limit (u32)¶

interval (u32)¶

ecn (u32)¶

flows (u32)¶

quantum (u32)¶

ce-threshold (u32)¶

drop-batch-size (u32)¶

memory-limit (u32)¶

ce-threshold-selector (u8)¶

ce-threshold-mask (u8)¶

tc-fq-pie-attrs¶

limit (u32)¶

flows (u32)¶

target (u32)¶

tupdate (u32)¶

alpha (u32)¶

beta (u32)¶

quantum (u32)¶

memory-limit (u32)¶

ecn-prob (u32)¶

ecn (u32)¶

bytemode (u32)¶

dq-rate-estimator (u32)¶

tc-netem-attrs¶

corr (binary)¶

struct

tc-netem-corr

delay-dist (binary)¶

sub-type

s16

reorder (binary)¶

struct

tc-netem-reorder

corrupt (binary)¶

struct

tc-netem-corrupt

loss (nest)¶

nested-attributes

tc-netem-loss-attrs

rate (binary)¶

struct

tc-netem-rate

ecn (u32)¶

rate64 (u64)¶

pad (u32)¶

latency64 (s64)¶

jitter64 (s64)¶

slot (binary)¶

struct

tc-netem-slot

slot-dist (binary)¶

sub-type

s16

prng-seed (u64)¶

tc-netem-loss-attrs¶

gi (binary)¶

doc

General Intuitive - 4 state model

struct

tc-netem-gimodel

ge (binary)¶

doc

Gilbert Elliot models

struct

tc-netem-gemodel

tc-pie-attrs¶

target (u32)¶

limit (u32)¶

tupdate (u32)¶

alpha (u32)¶

beta (u32)¶

ecn (u32)¶

bytemode (u32)¶

dq-rate-estimator (u32)¶

tc-police-attrs¶

tbf (binary)¶

struct

tc-police

rate (binary)¶

peakrate (binary)¶

avrate (u32)¶

result (u32)¶

tm (binary)¶

struct

tcf-t

pad (pad)¶

rate64 (u64)¶

peakrate64 (u64)¶

pktrate64 (u64)¶

pktburst64 (u64)¶

tc-qfq-attrs¶

weight (u32)¶

lmax (u32)¶

tc-red-attrs¶

parms (binary)¶

struct

tc-red-qopt

stab (binary)¶

max-p (u32)¶

flags (bitfield32)¶

early-drop-block (u32)¶

mark-block (u32)¶

tc-route-attrs¶

classid (u32)¶

to (u32)¶

from (u32)¶

iif (u32)¶

police (nest)¶

nested-attributes

tc-police-attrs

act (array-nest)¶

nested-attributes

tc-act-attrs

tc-taprio-attrs¶

priomap (binary)¶

struct

tc-mqprio-qopt

sched-entry-list (nest)¶

nested-attributes

tc-taprio-sched-entry-list

sched-base-time (s64)¶

sched-single-entry (nest)¶

nested-attributes

tc-taprio-sched-entry

sched-clockid (s32)¶

pad (pad)¶

admin-sched (binary)¶

sched-cycle-time (s64)¶

sched-cycle-time-extension (s64)¶

flags (u32)¶

txtime-delay (u32)¶

tc-entry (nest)¶

nested-attributes

tc-taprio-tc-entry-attrs

tc-taprio-sched-entry-list¶

entry (nest)¶

nested-attributes

tc-taprio-sched-entry

tc-taprio-sched-entry¶

index (u32)¶

cmd (u8)¶

gate-mask (u32)¶

interval (u32)¶

tc-taprio-tc-entry-attrs¶

index (u32)¶

max-sdu (u32)¶

fp (u32)¶

tc-tbf-attrs¶

parms (binary)¶

struct

tc-tbf-qopt

rtab (binary)¶

ptab (binary)¶

rate64 (u64)¶

prate4 (u64)¶

burst (u32)¶

pburst (u32)¶

pad (pad)¶

tc-act-sample-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

struct

tc-gen

rate (u32)¶

trunc-size (u32)¶

psample-group (u32)¶

pad (pad)¶

tc-act-gact-attrs¶

tm (binary)¶

struct

tcf-t

parms (binary)¶

struct

tc-gen

prob (binary)¶

struct

tc-gact-p

pad (pad)¶

tca-stab-attrs¶

base (binary)¶

struct

tc-sizespec

data (binary)¶

tca-stats-attrs¶

basic (binary)¶

struct

gnet-stats-basic

rate-est (binary)¶

struct

gnet-stats-rate-est

queue (binary)¶

struct

gnet-stats-queue

app (sub-message)¶

sub-message

tca-stats-app-msg

selector

kind

rate-est64 (binary)¶

struct

gnet-stats-rate-est64

pad (pad)¶

basic-hw (binary)¶

struct

gnet-stats-basic

pkt64 (u64)¶

tc-u32-attrs¶

classid (u32)¶

hash (u32)¶

link (u32)¶

divisor (u32)¶

sel (binary)¶

struct

tc-u32-sel

police (nest)¶

nested-attributes

tc-police-attrs

act (array-nest)¶

nested-attributes

tc-act-attrs

indev (string)¶

pcnt (binary)¶

struct

tc-u32-pcnt

mark (binary)¶

struct

tc-u32-mark

flags (u32)¶

pad (pad)¶

Sub-messages¶

tc-options-msg¶

  • basic
    attribute-set

    tc-basic-attrs

  • bpf
    attribute-set

    tc-bpf-attrs

  • bfifo
    fixed-header

    tc-fifo-qopt

  • cake
    attribute-set

    tc-cake-attrs

  • cbs
    attribute-set

    tc-cbs-attrs

  • cgroup
    attribute-set

    tc-cgroup-attrs

  • choke
    attribute-set

    tc-choke-attrs

  • clsact

  • codel
    attribute-set

    tc-codel-attrs

  • drr
    attribute-set

    tc-drr-attrs

  • etf
    attribute-set

    tc-etf-attrs

  • ets
    attribute-set

    tc-ets-attrs

  • flow
    attribute-set

    tc-flow-attrs

  • flower
    attribute-set

    tc-flower-attrs

  • fq
    attribute-set

    tc-fq-attrs

  • fq_codel
    attribute-set

    tc-fq-codel-attrs

  • fq_pie
    attribute-set

    tc-fq-pie-attrs

  • fw
    attribute-set

    tc-fw-attrs

  • gred
    attribute-set

    tc-gred-attrs

  • hfsc
    fixed-header

    tc-hfsc-qopt

  • hhf
    attribute-set

    tc-hhf-attrs

  • htb
    attribute-set

    tc-htb-attrs

  • ingress

  • matchall
    attribute-set

    tc-matchall-attrs

  • mq

  • mqprio
    fixed-header

    tc-mqprio-qopt

  • multiq
    fixed-header

    tc-multiq-qopt

  • netem
    fixed-header

    tc-netem-qopt

    attribute-set

    tc-netem-attrs

  • pfifo
    fixed-header

    tc-fifo-qopt

  • pfifo_fast
    fixed-header

    tc-prio-qopt

  • pfifo_head_drop
    fixed-header

    tc-fifo-qopt

  • pie
    attribute-set

    tc-pie-attrs

  • plug
    fixed-header

    tc-plug-qopt

  • prio
    fixed-header

    tc-prio-qopt

  • qfq
    attribute-set

    tc-qfq-attrs

  • red
    attribute-set

    tc-red-attrs

  • route
    attribute-set

    tc-route-attrs

  • sfb
    fixed-header

    tc-sfb-qopt

  • sfq
    fixed-header

    tc-sfq-qopt-v1

  • taprio
    attribute-set

    tc-taprio-attrs

  • tbf
    attribute-set

    tc-tbf-attrs

  • u32
    attribute-set

    tc-u32-attrs

tc-act-options-msg¶

  • bpf
    attribute-set

    tc-act-bpf-attrs

  • connmark
    attribute-set

    tc-act-connmark-attrs

  • csum
    attribute-set

    tc-act-csum-attrs

  • ct
    attribute-set

    tc-act-ct-attrs

  • ctinfo
    attribute-set

    tc-act-ctinfo-attrs

  • gact
    attribute-set

    tc-act-gact-attrs

  • gate
    attribute-set

    tc-act-gate-attrs

  • ife
    attribute-set

    tc-act-ife-attrs

  • mirred
    attribute-set

    tc-act-mirred-attrs

  • mpls
    attribute-set

    tc-act-mpls-attrs

  • nat
    attribute-set

    tc-act-nat-attrs

  • pedit
    attribute-set

    tc-act-pedit-attrs

  • police
    attribute-set

    tc-act-police-attrs

  • sample
    attribute-set

    tc-act-sample-attrs

  • simple
    attribute-set

    tc-act-simple-attrs

  • skbedit
    attribute-set

    tc-act-skbedit-attrs

  • skbmod
    attribute-set

    tc-act-skbmod-attrs

  • tunnel_key
    attribute-set

    tc-act-tunnel-key-attrs

  • vlan
    attribute-set

    tc-act-vlan-attrs

tca-stats-app-msg¶

  • cake
    attribute-set

    tc-cake-stats-attrs

  • choke
    fixed-header

    tc-choke-xstats

  • codel
    fixed-header

    tc-codel-xstats

  • fq
    fixed-header

    tc-fq-qd-stats

  • fq_codel
    fixed-header

    tc-fq-codel-xstats

  • fq_pie
    fixed-header

    tc-fq-pie-xstats

  • hhf
    fixed-header

    tc-hhf-xstats

  • pie
    fixed-header

    tc-pie-xstats

  • red
    fixed-header

    tc-red-xstats

  • sfb
    fixed-header

    tc-sfb-xstats

  • sfq
    fixed-header

    tc-sfq-xstats

Next Previous

© Copyright The kernel development community.

Built with Sphinx using a theme provided by Read the Docs.