Files
Ben Liderman f27cdae212 qdisc/tbf: add token bucket filter for egress traffic shaping
Implements a single-rate TBF qdisc modeled on Linux's net/sched/sch_tbf.c
and exposes it via --qdisc=tbf, with required --qdisc-tbf-rate and
--qdisc-tbf-burst flags. OCI annotations can lower the configured rate
and burst ceilings but not raise them without --allow-flag-override.

The fifo qdisc's circular packet-buffer list moves into a shared
pkg/tcpip/link/qdisc package so both qdiscs share one implementation.
Loopback and ingress traffic are not shaped.
2026-05-19 21:40:08 +03:00

16 lines
301 B
Python

load("//tools:defs.bzl", "go_library")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "qdisc",
srcs = ["packet_buffer_circular_list.go"],
visibility = ["//visibility:public"],
deps = [
"//pkg/tcpip/stack",
],
)