Relax the restriction on routines from the config (#1531)

This commit is contained in:
Nate Brown
2025-11-19 14:10:11 -05:00
committed by GitHub
parent 297767b2e3
commit 7aff313a17
20 changed files with 80 additions and 0 deletions

View File

@@ -222,6 +222,13 @@ func (f *Interface) activate() {
WithField("boringcrypto", boringEnabled()).
Info("Nebula interface is active")
if f.routines > 1 {
if !f.inside.SupportsMultiqueue() || !f.outside.SupportsMultipleReaders() {
f.routines = 1
f.l.Warn("routines is not supported on this platform, falling back to a single routine")
}
}
metrics.GetOrRegisterGauge("routines", nil).Update(int64(f.routines))
// Prepare n tun queues