1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
8 Netlink raw family for tc qdisc, chain, class and filter configuration
45 name: tc-flower-key-ctrl-flags
61 doc: Number of enqueued bytes
65 doc: Number of enqueued packets
69 doc: Packets dropped because of lack of resources
74 Number of throttle events when this flow goes out of allocated bandwidth
78 doc: Current flow byte rate
82 doc: Current flow packet rate
132 doc: Queue length; bytes for bfifo, packets for pfifo
170 doc: bps->quantum divisor
174 doc: Default class number
182 doc: Count of non shaped packets
190 doc: HARD maximal queue length in bytes
194 doc: Min average length threshold in bytes
198 doc: Max average length threshold in bytes
228 doc: log(P_max / (qth-max - qth-min))
232 doc: cell size for idle damping
236 doc: Priority of this VQ
303 doc: Maximum number of queues
311 doc: Added delay in microseconds
315 doc: Fifo limit in packets
319 doc: Random packet loss (0=none, ~0=100%)
323 doc: Re-ordering gap (0 for none)
327 doc: Random packet duplication (0=none, ~0=100%)
331 doc: Random jitter latency in microseconds
333 name: tc-netem-gimodel
334 doc: State transition probabilities for 4 state model
353 name: tc-netem-gemodel
354 doc: Gilbert-Elliot models
376 doc: Delay correlation
380 doc: Packet loss correlation
384 doc: Duplicate correlation
386 name: tc-netem-reorder
396 name: tc-netem-corrupt
413 name: packet-overhead
465 doc: Map of logical priority -> PRIO band
473 doc: Hard queue length in packets
477 doc: Min average threshold in packets
481 doc: Max average threshold in packets
489 doc: log(P_max / (qth-max - qth-min))
493 doc: Cell size for idle damping
502 name: rehash-interval
535 doc: Bytes per round allocated to flow
539 doc: Period of hash perturbation
543 doc: Maximal packets in queue
551 doc: Maximal number of flows
553 name: tc-sfqred-stats
559 doc: Early drops, below max threshold
563 doc: Early drops, after max threshold
567 doc: Marked packets, below max threshold
571 doc: Marked packets, after max threshold
575 doc: Marked packets, below max threshold
577 name: forced-mark-head
579 doc: Marked packets, after max threshold
591 doc: Maximum number of packets per flow
598 doc: HARD maximal flow queue length in bytes
602 doc: Min average length threshold in bytes
606 doc: Max average length threshold in bytes
614 doc: log(P_max / (qth-max - qth-min))
618 doc: Cell size for idle damping
625 doc: probability, high resolution
629 struct: tc-sfqred-stats
712 doc: The log() of measurement window weight
714 name: tc-choke-xstats
724 doc: Drops due to queue limits
728 doc: Drops due to drop() calls
736 doc: Drops due to flow match
738 name: tc-codel-xstats
744 doc: Largest packet we've seen so far
748 doc: How many drops we've done since the last time we entered dropping state
752 doc: Count at entry to dropping state
756 doc: in-queue delay seen by most recently dequeued packet
760 doc: Time to drop next packet
764 doc: Number of times max qdisc packet limit was hit
768 doc: Number of packets we've ECN marked instead of dropped
772 doc: Are we in a dropping state?
776 doc: Number of CE marked packets because of ce-threshold
778 name: tc-fq-codel-xstats
787 doc: Largest packet we've seen so far
791 doc: Number of times max qdisc packet limit was hit
795 doc: Number of packets we ECN marked instead of being dropped
799 doc: Number of times packets created a new flow
803 doc: Count of flows in new list
807 doc: Count of flows in old list
811 doc: Packets above ce-threshold
815 doc: Memory usage in bytes
817 name: drop-overmemory
820 name: tc-fq-pie-xstats
826 doc: Total number of packets enqueued
830 doc: Packets dropped due to fq_pie_action
834 doc: Dropped due to lack of space in queue
838 doc: Dropped due to lack of memory in queue
842 doc: Packets marked with ecn
846 doc: Count of new flows created by packets
850 doc: Count of flows in new list
854 doc: Count of flows in old list
858 doc: Total memory across all queues
867 name: highprio-packets
884 name: allocation-errors
887 name: time-next-delayed-flow
896 name: throttled-flows
899 name: unthrottle-latency-ns
904 doc: Packets above ce-threshold
912 name: fastpath-packets
933 doc: Number of times max qdisc packet limit was hit
937 doc: Number of times max heavy-hitters was hit
941 doc: Number of captured heavy-hitters so far
945 doc: Number of current heavy-hitters
953 doc: Current probability
957 doc: Current delay in ms
961 doc: Current average dq rate in bits/pie-time
963 name: dq-rate-estimating
965 doc: Is avg-dq-rate being calculated?
969 doc: Total number of packets enqueued
973 doc: Packets dropped due to pie action
977 doc: Dropped due to lack of space in queue
981 doc: Maximum queue size
985 doc: Packets marked with ecn
997 doc: Drops due to queue limits
1001 doc: Drops due to drop() calls
1025 doc: drops in child qdisc
1046 name: gnet-stats-basic
1056 name: gnet-stats-rate-est
1066 name: gnet-stats-rate-est64
1076 name: gnet-stats-queue
1101 byte-order: big-endian
1105 byte-order: big-endian
1141 byte-order: big-endian
1154 byte-order: big-endian
1158 struct: tc-u32-key # TODO: array
1171 type: u64 # TODO: array
1221 name: tcf-ematch-tree-hdr
1241 name: tc-matchall-pcnt
1333 struct: tc-pedit-key # TODO: array
1388 sub-message: tc-options-msg
1397 sub-message: tca-stats-app-msg
1402 struct: gnet-estimator
1409 nested-attributes: tca-stats-attrs
1413 nested-attributes: tca-stab-attrs
1418 name: dump-invisible
1447 sub-message: tc-act-options-msg
1455 nested-attributes: tc-act-stats-attrs
1475 name: tc-act-stats-attrs
1480 struct: gnet-stats-basic
1484 struct: gnet-stats-rate-est
1488 struct: gnet-stats-queue
1495 struct: gnet-stats-rate-est64
1502 struct: gnet-stats-basic
1507 name: tc-act-bpf-attrs
1538 name: tc-act-connmark-attrs
1551 name: tc-act-csum-attrs
1564 name: tc-act-ct-attrs
1594 byte-order: big-endian
1598 byte-order: big-endian
1608 byte-order: big-endian
1612 byte-order: big-endian
1626 name: tc-act-ctinfo-attrs
1642 name: parms-dscp-mask
1645 name: parms-dscp-statemask
1648 name: parms-cpmark-mask
1651 name: stats-dscp-set
1654 name: stats-dscp-error
1657 name: stats-cpmark-set
1660 name: tc-act-gate-attrs
1685 name: cycle-time-ext
1694 name: tc-act-ife-attrs
1719 name: tc-act-mirred-attrs
1735 name: tc-act-mpls-attrs
1751 byte-order: big-endian
1765 name: tc-act-nat-attrs
1778 name: tc-act-pedit-attrs
1787 struct: tc-pedit-sel
1801 name: tc-act-police-attrs
1839 name: tc-act-simple-attrs
1855 name: tc-act-skbedit-attrs
1886 name: queue-mapping-max
1889 name: tc-act-skbmod-attrs
1911 name: tc-act-tunnel-key-attrs
1923 byte-order: big-endian
1927 byte-order: big-endian
1937 byte-order: big-endian
1944 byte-order: big-endian
1961 name: tc-act-vlan-attrs
1975 name: push-vlan-protocol
1981 name: push-vlan-priority
1990 name: tc-basic-attrs
1998 nested-attributes: tc-ematch-attrs
2003 nested-attributes: tc-act-attrs
2007 nested-attributes: tc-police-attrs
2011 struct: tc-basic-pcnt
2021 nested-attributes: tc-act-attrs
2025 nested-attributes: tc-police-attrs
2111 name: tc-cake-stats-attrs
2117 name: capacity-estimate64
2144 nested-attributes: tc-cake-tin-stats-attrs
2164 name: tc-cake-tin-stats-attrs
2176 name: dropped-packets
2179 name: dropped-bytes64
2182 name: acks-dropped-packets
2185 name: acks-dropped-bytes64
2188 name: ecn-marked-packets
2191 name: ecn-marked-bytes64
2194 name: backlog-packets
2200 name: threshold-rate64
2209 name: way-indirect-hits
2215 name: way-collisions
2233 name: unresponsive-flows
2249 name: tc-cgroup-attrs
2254 nested-attributes: tc-act-attrs
2258 nested-attributes: tc-police-attrs
2263 name: tc-choke-attrs
2279 name: tc-codel-attrs
2303 name: tc-ematch-attrs
2308 struct: tcf-ematch-tree-hdr
2345 nested-attributes: tc-police-attrs
2353 name: tc-flower-attrs
2365 nested-attributes: tc-act-attrs
2371 name: key-eth-dst-mask
2379 name: key-eth-src-mask
2385 byte-order: big-endian
2392 byte-order: big-endian
2395 name: key-ipv4-src-mask
2397 byte-order: big-endian
2402 byte-order: big-endian
2405 name: key-ipv4-dst-mask
2407 byte-order: big-endian
2414 name: key-ipv6-src-mask
2422 name: key-ipv6-dst-mask
2428 byte-order: big-endian
2432 byte-order: big-endian
2436 byte-order: big-endian
2440 byte-order: big-endian
2449 byte-order: big-endian
2454 name: key-vlan-eth-type
2456 byte-order: big-endian
2458 name: key-enc-key-id
2460 byte-order: big-endian
2462 name: key-enc-ipv4-src
2464 byte-order: big-endian
2467 name: key-enc-ipv4-src-mask
2469 byte-order: big-endian
2472 name: key-enc-ipv4-dst
2474 byte-order: big-endian
2477 name: key-enc-ipv4-dst-mask
2479 byte-order: big-endian
2482 name: key-enc-ipv6-src
2486 name: key-enc-ipv6-src-mask
2490 name: key-enc-ipv6-dst
2494 name: key-enc-ipv6-dst-mask
2498 name: key-tcp-src-mask
2500 byte-order: big-endian
2502 name: key-tcp-dst-mask
2504 byte-order: big-endian
2506 name: key-udp-src-mask
2508 byte-order: big-endian
2510 name: key-udp-dst-mask
2512 byte-order: big-endian
2514 name: key-sctp-src-mask
2516 byte-order: big-endian
2518 name: key-sctp-dst-mask
2520 byte-order: big-endian
2524 byte-order: big-endian
2528 byte-order: big-endian
2530 name: key-enc-udp-src-port
2532 byte-order: big-endian
2534 name: key-enc-udp-src-port-mask
2536 byte-order: big-endian
2538 name: key-enc-udp-dst-port
2540 byte-order: big-endian
2542 name: key-enc-udp-dst-port-mask
2544 byte-order: big-endian
2548 byte-order: big-endian
2549 enum: tc-flower-key-ctrl-flags
2552 name: key-flags-mask
2554 byte-order: big-endian
2555 enum: tc-flower-key-ctrl-flags
2558 name: key-icmpv4-code
2561 name: key-icmpv4-code-mask
2564 name: key-icmpv4-type
2567 name: key-icmpv4-type-mask
2570 name: key-icmpv6-code
2573 name: key-icmpv6-code-mask
2576 name: key-icmpv6-type
2579 name: key-icmpv6-type-mask
2584 byte-order: big-endian
2586 name: key-arp-sip-mask
2588 byte-order: big-endian
2592 byte-order: big-endian
2594 name: key-arp-tip-mask
2596 byte-order: big-endian
2601 name: key-arp-op-mask
2608 name: key-arp-sha-mask
2616 name: key-arp-tha-mask
2629 name: key-mpls-label
2631 byte-order: big-endian
2635 byte-order: big-endian
2637 name: key-tcp-flags-mask
2639 byte-order: big-endian
2644 name: key-ip-tos-mask
2650 name: key-ip-ttl-mask
2655 byte-order: big-endian
2657 name: key-cvlan-prio
2660 name: key-cvlan-eth-type
2662 byte-order: big-endian
2664 name: key-enc-ip-tos
2667 name: key-enc-ip-tos-mask
2670 name: key-enc-ip-ttl
2673 name: key-enc-ip-ttl-mask
2678 nested-attributes: tc-flower-key-enc-opts-attrs
2680 name: key-enc-opts-mask
2682 nested-attributes: tc-flower-key-enc-opts-attrs
2687 name: key-port-src-min
2689 byte-order: big-endian
2691 name: key-port-src-max
2693 byte-order: big-endian
2695 name: key-port-dst-min
2697 byte-order: big-endian
2699 name: key-port-dst-max
2701 byte-order: big-endian
2706 name: key-ct-state-mask
2712 name: key-ct-zone-mask
2718 name: key-ct-mark-mask
2724 name: key-ct-labels-mask
2729 nested-attributes: tc-flower-key-mpls-opt-attrs
2737 name: key-num-of-vlans
2742 byte-order: big-endian
2746 byte-order: big-endian
2748 name: key-l2-tpv3-sid
2750 byte-order: big-endian
2757 nested-attributes: tc-flower-key-cfm-attrs
2761 byte-order: big-endian
2765 byte-order: big-endian
2769 byte-order: big-endian
2770 enum: tc-flower-key-ctrl-flags
2773 name: key-enc-flags-mask
2775 byte-order: big-endian
2776 enum: tc-flower-key-ctrl-flags
2779 name: tc-flower-key-enc-opts-attrs
2784 nested-attributes: tc-flower-key-enc-opt-geneve-attrs
2788 nested-attributes: tc-flower-key-enc-opt-vxlan-attrs
2792 nested-attributes: tc-flower-key-enc-opt-erspan-attrs
2796 nested-attributes: tc-flower-key-enc-opt-gtp-attrs
2798 name: tc-flower-key-enc-opt-geneve-attrs
2810 name: tc-flower-key-enc-opt-vxlan-attrs
2816 name: tc-flower-key-enc-opt-erspan-attrs
2831 name: tc-flower-key-enc-opt-gtp-attrs
2840 name: tc-flower-key-mpls-opt-attrs
2858 name: tc-flower-key-cfm-attrs
2875 nested-attributes: tc-police-attrs
2883 nested-attributes: tc-act-attrs
2892 type: binary # array of struct: tc-gred-qopt
2900 struct: tc-gred-sopt
2911 nested-attributes: tca-gred-vq-list-attrs
2913 name: tca-gred-vq-list-attrs
2918 nested-attributes: tca-gred-vq-entry-attrs
2921 name: tca-gred-vq-entry-attrs
2939 name: stat-prob-drop
2942 name: stat-prob-mark
2945 name: stat-forced-drop
2948 name: stat-forced-mark
2981 name: hh-flows-limit
3028 name: tc-matchall-attrs
3037 nested-attributes: tc-act-attrs
3044 struct: tc-matchall-pcnt
3067 nested-attributes: tc-ets-attrs
3075 nested-attributes: tc-ets-attrs
3086 doc: Limit of total number of packets in queue
3090 doc: Limit of packets per flow
3096 name: initial-quantum
3098 doc: RR quantum for new flow
3102 doc: Enable / disable rate limiting
3104 name: flow-default-rate
3106 doc: Obsolete, do not use
3110 doc: Per flow max rate
3114 doc: log2(number of buckets)
3116 name: flow-refill-delay
3118 doc: Flow credit refill delay in usec
3122 doc: Mask applied to orphaned skb hashes
3124 name: low-rate-threshold
3126 doc: Per packet delay under this rate
3130 doc: DCTCP-like CE marking threshold
3137 doc: Time horizon in usec
3141 doc: Drop packets beyond horizon, or cap their EDT
3145 struct: tc-prio-qopt
3150 doc: Weights for each band
3152 name: tc-fq-codel-attrs
3176 name: drop-batch-size
3182 name: ce-threshold-selector
3185 name: ce-threshold-mask
3188 name: tc-fq-pie-attrs
3224 name: dq-rate-estimator
3227 name: tc-netem-attrs
3232 struct: tc-netem-corr
3240 struct: tc-netem-reorder
3244 struct: tc-netem-corrupt
3248 nested-attributes: tc-netem-loss-attrs
3252 struct: tc-netem-rate
3271 struct: tc-netem-slot
3280 name: tc-netem-loss-attrs
3285 doc: General Intuitive - 4 state model
3286 struct: tc-netem-gimodel
3290 doc: Gilbert Elliot models
3291 struct: tc-netem-gemodel
3317 name: dq-rate-estimator
3320 name: tc-police-attrs
3383 name: early-drop-block
3389 name: tc-route-attrs
3406 nested-attributes: tc-police-attrs
3411 nested-attributes: tc-act-attrs
3413 name: tc-taprio-attrs
3418 struct: tc-mqprio-qopt
3420 name: sched-entry-list
3422 nested-attributes: tc-taprio-sched-entry-list
3424 name: sched-base-time
3427 name: sched-single-entry
3429 nested-attributes: tc-taprio-sched-entry
3440 name: sched-cycle-time
3443 name: sched-cycle-time-extension
3454 nested-attributes: tc-taprio-tc-entry-attrs
3456 name: tc-taprio-sched-entry-list
3461 nested-attributes: tc-taprio-sched-entry
3464 name: tc-taprio-sched-entry
3479 name: tc-taprio-tc-entry-attrs
3519 name: tc-act-sample-attrs
3542 name: tc-act-gact-attrs
3560 name: tca-stab-attrs
3570 name: tca-stats-attrs
3575 struct: gnet-stats-basic
3579 struct: gnet-stats-rate-est
3583 struct: gnet-stats-queue
3587 sub-message: tca-stats-app-msg
3592 struct: gnet-stats-rate-est64
3599 struct: gnet-stats-basic
3625 nested-attributes: tc-police-attrs
3630 nested-attributes: tc-act-attrs
3651 name: tc-options-msg
3655 attribute-set: tc-basic-attrs
3658 attribute-set: tc-bpf-attrs
3661 fixed-header: tc-fifo-qopt
3664 attribute-set: tc-cake-attrs
3667 attribute-set: tc-cbs-attrs
3670 attribute-set: tc-cgroup-attrs
3673 attribute-set: tc-choke-attrs
3675 value: clsact # no content
3678 attribute-set: tc-codel-attrs
3681 attribute-set: tc-drr-attrs
3684 attribute-set: tc-etf-attrs
3687 attribute-set: tc-ets-attrs
3690 attribute-set: tc-flow-attrs
3693 attribute-set: tc-flower-attrs
3696 attribute-set: tc-fq-attrs
3699 attribute-set: tc-fq-codel-attrs
3702 attribute-set: tc-fq-pie-attrs
3705 attribute-set: tc-fw-attrs
3708 attribute-set: tc-gred-attrs
3711 fixed-header: tc-hfsc-qopt
3714 attribute-set: tc-hhf-attrs
3717 attribute-set: tc-htb-attrs
3719 value: ingress # no content
3722 attribute-set: tc-matchall-attrs
3724 value: mq # no content
3727 fixed-header: tc-mqprio-qopt
3730 fixed-header: tc-multiq-qopt
3733 fixed-header: tc-netem-qopt
3734 attribute-set: tc-netem-attrs
3737 fixed-header: tc-fifo-qopt
3740 fixed-header: tc-prio-qopt
3742 value: pfifo_head_drop
3743 fixed-header: tc-fifo-qopt
3746 attribute-set: tc-pie-attrs
3749 fixed-header: tc-plug-qopt
3752 fixed-header: tc-prio-qopt
3755 attribute-set: tc-qfq-attrs
3758 attribute-set: tc-red-attrs
3761 attribute-set: tc-route-attrs
3764 fixed-header: tc-sfb-qopt
3767 fixed-header: tc-sfq-qopt-v1
3770 attribute-set: tc-taprio-attrs
3773 attribute-set: tc-tbf-attrs
3776 attribute-set: tc-u32-attrs
3778 name: tc-act-options-msg
3782 attribute-set: tc-act-bpf-attrs
3785 attribute-set: tc-act-connmark-attrs
3788 attribute-set: tc-act-csum-attrs
3791 attribute-set: tc-act-ct-attrs
3794 attribute-set: tc-act-ctinfo-attrs
3797 attribute-set: tc-act-gact-attrs
3800 attribute-set: tc-act-gate-attrs
3803 attribute-set: tc-act-ife-attrs
3806 attribute-set: tc-act-mirred-attrs
3809 attribute-set: tc-act-mpls-attrs
3812 attribute-set: tc-act-nat-attrs
3815 attribute-set: tc-act-pedit-attrs
3818 attribute-set: tc-act-police-attrs
3821 attribute-set: tc-act-sample-attrs
3824 attribute-set: tc-act-simple-attrs
3827 attribute-set: tc-act-skbedit-attrs
3830 attribute-set: tc-act-skbmod-attrs
3833 attribute-set: tc-act-tunnel-key-attrs
3836 attribute-set: tc-act-vlan-attrs
3838 name: tca-stats-app-msg
3842 attribute-set: tc-cake-stats-attrs
3845 fixed-header: tc-choke-xstats
3848 fixed-header: tc-codel-xstats
3851 fixed-header: tc-fq-qd-stats
3854 fixed-header: tc-fq-codel-xstats
3857 fixed-header: tc-fq-pie-xstats
3860 fixed-header: tc-hhf-xstats
3863 fixed-header: tc-pie-xstats
3866 fixed-header: tc-red-xstats
3869 fixed-header: tc-sfb-xstats
3872 fixed-header: tc-sfq-xstats
3875 enum-model: directional
3879 doc: Create new tc qdisc.
3880 attribute-set: tc-attrs
3885 attributes: &create-params
3894 doc: Delete existing tc qdisc.
3895 attribute-set: tc-attrs
3902 doc: Get / dump tc qdisc information.
3903 attribute-set: tc-attrs
3926 doc: Get / dump tc traffic class information.
3927 attribute-set: tc-attrs
3932 attributes: *create-params
3935 doc: Get / dump tc traffic class information.
3936 attribute-set: tc-attrs
3943 doc: Get / dump tc traffic class information.
3944 attribute-set: tc-attrs
3954 doc: Get / dump tc filter information.
3955 attribute-set: tc-attrs
3960 attributes: *create-params
3963 doc: Get / dump tc filter information.
3964 attribute-set: tc-attrs
3974 doc: Get / dump tc filter information.
3975 attribute-set: tc-attrs
3997 doc: Get / dump tc chain information.
3998 attribute-set: tc-attrs
4003 attributes: *create-params
4006 doc: Get / dump tc chain information.
4007 attribute-set: tc-attrs
4016 doc: Get / dump tc chain information.
4017 attribute-set: tc-attrs