Files
tailscale/wgengine
Kabir Sikand a35885f663 cmd/tailscale/cli,wgengine: add --collect-load-metrics and wire it up
Adds the Linux-only CLI flag that opts a subnet router into per-route load
metrics, and plumbs the pref through router.Config so the engine can enable
counting on the TUN wrapper during Reconfig.

When the pref is off the engine passes no routes, which leaves the counting
hook uninstalled, so nodes that have not opted in pay only a nil atomic load
per packet.

Updates tailscale/corp#45684

Change-Id: I2d23184b244b4b32bab071ebcc580923ca8d558d
Signed-off-by: Kabir Sikand <[email protected]>
2026-07-29 02:09:15 +00:00
..