summaryrefslogtreecommitdiffhomepage
path: root/control/controlhttp/controlhttpserver/controlhttpserver.go
diff options
context:
space:
mode:
authorJonathan Nobels <jnobels@gmail.com>2025-12-17 12:32:40 -0500
committerGitHub <noreply@github.com>2025-12-17 12:32:40 -0500
commit3e89068792e4f1c1f8d7e87414000168548053c9 (patch)
tree5254fe3ba50ce4d862a3245d6a8ab9bedbfac134 /control/controlhttp/controlhttpserver/controlhttpserver.go
parent0fd1670a592c9c6d03e165b382c8823da313f71b (diff)
downloadtailscale-3e89068792e4f1c1f8d7e87414000168548053c9.tar.xz
tailscale-3e89068792e4f1c1f8d7e87414000168548053c9.zip
net/netmon, wgengine/userspace: purge ChangeDelta.Major and address TODOs (#17823)
updates tailscale/corp#33891 Addresses several older the TODO's in netmon. This removes the Major flag precomputes the ChangeDelta state, rather than making consumers of ChangeDeltas sort that out themselves. We're also seeing a lot of ChangeDelta's being flagged as "Major" when they are not interesting, triggering rebinds in wgengine that are not needed. This cleans that up and adds a host of additional tests. The dependencies are cleaned, notably removing dependency on netmon itself for calculating what is interesting, and what is not. This includes letting individual platforms set a bespoke global "IsInterestingInterface" function. This is only used on Darwin. RebindRequired now roughly follows how "Major" was historically calculated but includes some additional checks for various uninteresting events such as changes in interface addresses that shouldn't trigger a rebind. This significantly reduces thrashing (by roughly half on Darwin clients which switching between nics). The individual values that we roll into RebindRequired are also exposed so that components consuming netmap.ChangeDelta can ask more targeted questions. Signed-off-by: Jonathan Nobels <jonathan@tailscale.com>
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions