From b23089a5eff0c7d8d03b17cfe597b831fe2cccb2 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 12 Jun 2026 09:05:12 -0700 Subject: [PATCH] wgengine/magicsock: update netmap cache flag on receipt of a delta (#20117) Since deltas are only (at present) received from the control plane, processing a delta signifies we are no longer operating on a netmap fully loaded from cache, even if most of the netmap is still in the same configuration. Updates #12542 Change-Id: I84132c4bf2dde6e5c1c57144645edb986b051dca Signed-off-by: M. J. Fromberger --- wgengine/magicsock/magicsock.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgengine/magicsock/magicsock.go b/wgengine/magicsock/magicsock.go index be3633f12..398803faf 100644 --- a/wgengine/magicsock/magicsock.go +++ b/wgengine/magicsock/magicsock.go @@ -3941,6 +3941,10 @@ func (c *Conn) UpdateNetmapDelta(muts []netmap.NodeMutation) { ep.mu.Unlock() } } + + // As of 2026-06-11 we will only get deltas from the control plane, so upon + // receiving one we should infer we have switched out of the cached state. + c.usingCachedNetmap.Store(false) } // UpdateStatus implements the interface needed by ipnstate.StatusBuilder.