mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-06 02:30:57 -08:00
Relax the restriction on routines from the config (#1531)
This commit is contained in:
parent
297767b2e3
commit
7aff313a17
20 changed files with 80 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue