Browse Source

gluon-radv-filterd: Tweak constants

As I have seen instances of ebtables being killed with a timeout of 100ms,
increasing it to 500ms.

Also, to ease the straint on the CPU, increasing minimum time between TQ checks
to 15 seconds.
Jan-Philipp Litza 7 years ago
parent
commit
15988a2f08
1 changed files with 2 additions and 2 deletions
  1. 2 2
      package/gluon-radv-filterd/src/gluon-radv-filterd.c

+ 2 - 2
package/gluon-radv-filterd/src/gluon-radv-filterd.c

@@ -57,10 +57,10 @@
 // Recheck TQs at most this often, even if new RAs were received (they won't
 // become the preferred routers until the TQs have been rechecked)
 // Also, the first update will take at least this long
-#define MIN_INTERVAL 5
+#define MIN_INTERVAL 15
 
 // max execution time of a single ebtables call in nanoseconds
-#define EBTABLES_TIMEOUT 1e8 // 100ms
+#define EBTABLES_TIMEOUT 5e8 // 500ms
 
 // TQ value assigned to local routers
 #define LOCAL_TQ 512