From 9db16d226ce9303f520dd32b0bb450a6b083853e Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Fri, 20 Dec 2019 09:10:26 -0800 Subject: [PATCH] Make linux tx queue length an error log instead of a fatal on error --- tun_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tun_linux.go b/tun_linux.go index a41a274..cf66a8c 100644 --- a/tun_linux.go +++ b/tun_linux.go @@ -194,7 +194,8 @@ func (c Tun) Activate() error { // Set the transmit queue length ifrq := ifreqQLEN{Name: devName, Value: int32(c.TXQueueLen)} if err = ioctl(fd, unix.SIOCSIFTXQLEN, uintptr(unsafe.Pointer(&ifrq))); err != nil { - return fmt.Errorf("failed to set tun tx queue length: %s", err) + // If we can't set the queue length nebula will still work but it may lead to packet loss + l.WithError(err).Error("Failed to set tun tx queue length") } // Bring up the interface